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
8 months ago
2.0
809
Logistics Trains

g Increase product limit over 10

23 days ago
(updated 23 days ago)

On my current playthrough, I am at a point where I found myself importing/exporting more than 10 products from a single station, I didn't know there was a limit and I didn't read that there was a limit on the mod description, so imagine my surprise when I tried to add a 11th product and an error sound was played.

My suggestion is simple... add a configuration to increase this limit and allow to add more than 10 products. I've edited your mod myself and increased the limit to 32, it seems to work fine and I noticed no performance loss.

In case someone has the same problem as me, to edit the limit do this:
- Close the game
- Go to %appdata%/Factorio/Mods
- Open SourceSinkPushPull_0.4.9\SourceSinkPushPull\scripts\gui\station.lua
- On line 171: "if not context.root.ghost.stop.bufferless and #context.rows < 10 then" replace 10 --> 32
- On line 711: " elseif #context.rows < 10 then" replace 10 --> 32

Lines may not match if the mod is updated. So better search for these texts or just search "10", there will be 3 matches, do not modify the train limit.

19 days ago

Update:
Everything still working correctly with 32 products, not a single problem with performance.

As another little suggestion, it would be good to add a config to be able to turn off the check that triggers when a wrong product or fluid is inserted on a cargo wagon.
The reason for this is that if you want to implement a sushi pipe to load a lot of different fluids through the same station, pumps always retain a little ammount of fluid on their buffer when the last train leaves the station, then when the next train reaches the station these 20 units of fluid are loaded on the tank, wich causes the train to be set to manual because of this check.

I edited the mod and disabled this behaviour for fluids, and I built a system to pump out the wrong fluid with another pump, then pump the correct fluid inside the train and finally draw the remaining fluid from the pipes into the tanks again + the remaining fluid that was wrongfully loaded inside the train tank.

Working perfectly fine with a setup that allows to load/unload any item or any fluid with the same station, using both the requester and provider combinators at the same time. This is the best mod I found for logistics and it's pretty easy to use, so awesome work.

New response