Programmable Train Stops


This mod allows you to program train stop names with a vanilla signal, effectively allowing multi item stations.

Tweaks
6 months ago
2.0
218
Transportation Trains Logistic network Circuit network

b Mod crashes if the input signal goes below 0

6 months ago

Mod crashes if the input signal goes below 0. My expected behavior was that it would ignore signals with a value of 0 or less

6 months ago

The mod Programmable Train Stops (0.1.10) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event programmable-train-stop::on_nth_tick(60)
Index out of bounds.
stack traceback:
[C]: in function 'newindex'
__programmable-train-stop
/src/scheduleHelper.lua:19: in function 'set_train_schedule'
programmable-train-stop/src/scheduleHelper.lua:37: in function 'remove_station_from_schedule'
programmable-train-stop/control.lua:69: in function 'signals_found_for_train_stop'
programmable-train-stop/control.lua:91: in function <programmable-train-stop/control.lua:79>

I think I solved your issue. It looks like it might have had dealt with the backing up station being the only one in the schedule. I couldn't incite an exception when I was putting in negative signal values. The fixed version should be 0.1.12.

New response