Multiple Unit Train Control


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

Tweaks
9 months ago
0.17 - 2.0
4.79K
Trains

b [Fixed] MUTC crash when trying to index field 'schedule' (a nil value) when placing a locomotive that points the other way from the rest

8 months ago

I think this is easy to reproduce, just place down some connected locomotives with locomotives in the same train pointed in different directions, the first one you place that is in a different direction will crash the game with the following exception:

"The mod Multiple Unit Train Control (1.0.3) caused a non-recoverable error.
Please report this error to the mod developer"
"
Error while running event MultipleUnitTrainControl::on_tick (ID 0)
Robot256Lib/script/carriage_replacement.lua:142: attempt to index field 'schedule' (a nil value)
stack traceback:
Robot256Lib/script/carriage_replacement.lua:142: in function 'replaceCarriage'
MultipleUnitTrainControl/control.lua:164: in function 'ProcessReplacement'
MultipleUnitTrainControl/control.lua:275: in function 'ProcessTrain'
MultipleUnitTrainControl/control.lua:377: in function 'ProcessTrainQueue'
MultipleUnitTrainControl/control.lua:405 in function
<MultipleUnitTrainControl/control.lua:402>
"

8 months ago

Thanks for the report! Should be fixed in the latest version of Robot256Lib

New response