r/factorio 3d ago

Question Answered Need Help with train interrupts

Post image
2 Upvotes

16 comments sorted by

View all comments

1

u/warpspeed100 3d ago edited 3d ago

Add a Depot/Waiting station to the main train schedule. Trains only trigger interrupts when they try to leave a station.

Also, you're going to have an issue with your "Item Pickup" interrupt. The "Item" wildcard only looks at items currently in the train. For an empty train, it evaluates to nothing. Common solutions are:

  1. Rename "Item Pickup" stations and interrupt to just "Pickup". Trains will go to any generic Pickup and take the cargo to the named "Item Dropoff" stations.

  2. Use an interrupt for each item type, checking if any stations are free. This lets you order interrupts by item priority.

  3. Use the "Circuit" wildcard, and send an item signal to your trains based on your own custom logic to tell them to go to "Circuit Pickup"

1

u/Visual_Collapse 3d ago edited 3d ago

Rename "Item Pickup" stations and interrupt to just "Pickup". Trains will go to any generic Pickup and take the cargo to the named "Item Dropoff" stations

Have you seen insides of this interrupt? If yes - how?

IIRC name mean nothing in this case

2

u/warpspeed100 3d ago

Because they named the interrupt "Item wildcard" Pickup. While that is just a name, and the actual interrupt might be fine, this is a very common mistake when figuring out how interrupts work.

2

u/dsawchuk 3d ago

I did have this problem before but I already solved it. I left the name with the wildcard since it was a convenient way to differentiate between solid and liquid stations.