SSPP Logistics Train Mod

by jagoly

A logistics train mod that aims to be as pleasant to use as possible, even when knee-deep in byproducts. SSPP stands for Source-Sink-Push-Pull.

Content
11 days ago
2.0
584
Logistics Trains

g Crash on removing an SSPP provider station shortly after removing train waiting at the station

a month ago
(updated a month ago)

Doesn't always do it, maybe a race condition of removing the station before it processes the train is gone?

Exception at tick 25161: The mod SSPP Logistics Train Mod (0.3.19) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event SourceSinkPushPull::on_tick (ID 0)
SourceSinkPushPull/scripts/tick.lua:498: attempt to index local 'station' (a nil value)
stack traceback:
SourceSinkPushPull/scripts/tick.lua:498: in function 'get_mode_and_score'
SourceSinkPushPull/scripts/tick.lua:426: in function 'pop_best_station_if_any'
SourceSinkPushPull/scripts/tick.lua:753: in function 'tick_dispatch'
SourceSinkPushPull/scripts/tick.lua:867: in function <SourceSinkPushPull/scripts/tick.lua:843>

a month ago
(updated a month ago)

Just published a new release that should fix this issue. It wasn't actually anything to do with destroying a train, rather destroying a station just wasn't properly disabling its items for further processing until stations get re-polled. Let me know if you still have any issues :)

New response