Train Control Signals

by Klonan

Simple ways of controlling trains.

Content
3 years ago
1.1
25.5K
Trains

b TCS does not like Super Locomotics from Editor Extensions

I placed a Super Locomotive to test some things, and got a rather unpleasant surprise.

The mod Train Control Signals (1.0.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Train_Control_Signals::on_train_changed_state (ID 24)
__Train_Control_Signals__/script/train_control_signals.lua:16: attempt to index local 'fuel_inventory' (a nil value)
stack traceback:
    __Train_Control_Signals__/script/train_control_signals.lua:16: in function 'train_needs_refueling'
    __Train_Control_Signals__/script/train_control_signals.lua:99: in function 'handler'
    __core__/lualib/event_handler.lua:47: in function <__core__/lualib/event_handler.lua:45>

It would seem TCS does not check that the train indeed has a fuel_inventory that is indexable.

3 years ago

Already reported here: https://mods.factorio.com/mod/Train_Control_Signals/discussion/60b7bb6554cfd90152792a7e
There’s also a simple fix there if you want to play with both mods before Klonan fixes this one.

New response