Train Network

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
acookienot
Manual Inserter
Manual Inserter
Posts: 1
Joined: Tue Nov 19, 2024 11:25 pm
Contact:

Train Network

Post by acookienot »

This is how my current train network works

The stations are pretty standard although I haven't done the liquid side yet:
  1. Depot with no special conditions.
  2. Refuel which is enabled while it has at least X amount of stacks
  3. [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
    Image
  4. 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
    Image
The train's schedule and the interrupts are pretty straightforward:

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.
Image

Refuel interrupt:
With different fuels so I don't have to worry about it I guess
Image

Pickup interrupt:
Trigger when there is no cargo,
Image

Dropoff interrupt:
Trigger when there's cargo
Image

Idle interrupt:
Here to get the train moving when there are issues with the next station I guess
Image

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.
Post Reply

Return to “Gameplay Help”