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
7 days ago
2.0
582
Logistics Trains

b Crash when change sink station to pull station

a month ago

Error while running event SourceSinkPushPull::on_tick (ID 0)
SourceSinkPushPull/scripts/tick.lua:400: attempt to index field '?' (a nil value)
stack traceback:
SourceSinkPushPull/scripts/tick.lua:400: in function 'pop_best_dispatch_hauler_if_any'
SourceSinkPushPull/scripts/tick.lua:771: in function 'tick_dispatch'
SourceSinkPushPull/scripts/tick.lua:867: in function <SourceSinkPushPull/scripts/tick.lua:843>

When i try to change a sink station to a pull station

Saved game: https://github.com/Telkine2018/resources/blob/main/crash/SSPP.zip?raw=true

a month ago

Hi! This crash is happening due to misconfigured classes - item classes are the same classes as train classes. So the class for iron shouldn't be IRON and copper shouldn't be COPPER, they should both be C1.

There is a bug here that I'll fix, apparently I'm not checking that a class actually exists before trying dispatches. I guess I've just never noticed this because I've always created classes before trying to add items to them 😅

Unrelated, but SSPP actually started it's life like this https://media.discordapp.net/attachments/940020587592556635/1314219618050641960/image.png?ex=67d62725&is=67d4d5a5&hm=346ceb1fc404501c5a9bfe3965312460f63a1840508059107b4377372082432b&=&format=webp&quality=lossless&width=738&height=904 (compact circuits is great!), but eventually doing things with combinators got too limiting

New response