Simple Train Fuel Stop


Automatically requests low-fuel trains, easy to set up and highly customizable.

Content
4 years ago
0.17 - 0.18
21
Trains

b crash when adding "passenger present" condition on temporary station [Closed]

4 years ago
(updated 4 years ago)

Error while running event simple_train_fuel_stop::on_tick (ID 0)
simple_train_fuel_stop/script/trains.lua:53: bad argument #1 of 3 to 'find' (string expected, got nil)
stack traceback:
[C]: in function 'find'
simple_train_fuel_stop/script/trains.lua:53: in function 'CheckTrainScheduleRecords'
simple_train_fuel_stop/script/trains.lua:76: in function 'AddToShedule'
simple_train_fuel_stop/script/trains.lua:94: in function 'CheckTrains'
simple_train_fuel_stop/script/trains.lua:101: in function 'func'
simple_train_fuel_stop/control.lua:36: in function <simple_train_fuel_stop/control.lua:34>

edit: happened also without this condition:

Error while running event simple_train_fuel_stop::on_tick (ID 0)
simple_train_fuel_stop/script/trains.lua:53: bad argument #1 of 3 to 'find' (string expected, got nil)
stack traceback:
[C]: in function 'find'
simple_train_fuel_stop/script/trains.lua:53: in function 'CheckTrainScheduleRecords'
simple_train_fuel_stop/script/trains.lua:76: in function 'AddToShedule'
simple_train_fuel_stop/script/trains.lua:94: in function 'CheckTrains'
simple_train_fuel_stop/script/trains.lua:101: in function 'func'
simple_train_fuel_stop/control.lua:36: in function <simple_train_fuel_stop/control.lua:34>

4 years ago

Hello, thanks for your information!
I fixed the bug in the last update, so it should not happen again. Also it was not intended to change the wati condition on these temporary fuel stops manually. In my last update, I introduced an advanced option to change this if needed.
Tell me if everyting works as you like!

New response