Multiple Unit Train Control


Replaces bidirectional trains with ones twice as powerful, to simulate real locomotives driving backwards.

Tweaks
3 months ago
0.17 - 1.1
3.57K
Trains

b [Fixed] Doesn't consistently read localised-name from original entity.

3 years ago
(updated 3 years ago)

I had the following console message on upgrade:

MU Control registered upgrade mapping Battery Powered Locomotive to MU Unknown key: "entity-name.BatteryPack-locomotive"

the locomotive BatteryPack-locomotive has an explicit localised name, as it is derived from locomotive's localised name.

You possibly want to either check to see if a localised_name is defined, or you could perhaps use a library like
Rusty's Locale Utilities
to take care of thinking about that for you.

3 years ago

I realized I was not doing the simplest way to handle this, which is to check if <entity>.localised_name exists before overwriting it. This should be fixed in the latest version now.

New response