Friday Facts #395 - Generic interrupts and Train stop priority

Regular reports on Factorio development.
Tertius
Filter Inserter
Filter Inserter
Posts: 897
Joined: Fri Mar 19, 2021 5:58 pm
Contact:

Re: Friday Facts #395 - Generic interrupts and Train stop priority

Post by Tertius »

ResidentDeath wrote:
Sun Nov 03, 2024 12:18 pm
Grob wrote:
Fri Jan 26, 2024 12:25 pm
I am currently in the process of building a factory where some trains leaves their stop without knowing where they will go, and their actual destination is decided by the factory in mid-route.
hey, did you find solution in 2.0?
This isn't possible, neither in 1.1 nor in 2.0. A train will only leave station, if it has a destination. In 2.0, you use interrupts for dynamically choose a destination. Whenever a train is about to leave a station, all interrupts in its schedule are checked, and the first interrupt with matching interrupt conditions is executed (its schedule is copied as temporary entries into the main schedule). So you cannot decide mid-route, but you can decide when the train is about to start driving. A common default destination if nothing else matches is a depot, by the way.

Post Reply

Return to “News”