The stations are pretty standard although I haven't done the liquid side yet:
- Depot with no special conditions.
- Refuel which is enabled while it has at least X amount of stacks
- [Item] Dropoff:
[Item ] (e.g. iron plates)
Enabled when 1) each group of chests has enough space (in stacks) for a wagon to drop off all its cargo 2) trains coming to or stopped at the station is 0.
When enabled, it sends a signal [item]
Its priority increases the fewer resources it has.
Inserters are filtered to only pickup [item}, when the train has other items for some reason, it'll move on to the corresponding Dropoff
- Pickup:
Enabled when 1) each group of chests has enough stacks to fill a wagon of a train, 2) the train count coming to or at the station is 0, and 3) reads a corresponding [item] signal, meaning there's at least 1 [item] Dropoff enabled
Its priority increases the more resources it has
Schedule:
I tried to make it work without having Depot fixed on the schedule, but without it, the train switches to manual when there are no interrupts active.
Refuel interrupt:
With different fuels so I don't have to worry about it I guess
Pickup interrupt:
Trigger when there is no cargo,
Dropoff interrupt:
Trigger when there's cargo
Idle interrupt:
Here to get the train moving when there are issues with the next station I guess
So with that out of the way, besides asking if this is a good way to do this, here's the issue I have. The idea of the system is for Pickup stations to be enabled only when there's a corresponding Dropoff station available but currently, if for example, I have 1 iron Dropoff station and 2 iron Pickup stations, both Pickup stations will open whenever Dropoff is available. Is there a way to have maybe a shared limit? I've been thinking about it for a while and can't seem to figure it out.