Turning Train Stations off

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Vandrew
Inserter
Inserter
Posts: 20
Joined: Sat May 21, 2016 6:58 am
Contact:

Turning Train Stations off

Post by Vandrew »

Hi There

I have always turned my waiting stations and requesting stations off when they don't need to be used and so my trains would always continue their routes without visiting the stations that are turned off. I have recently come back to playing and have noticed that I can't do that anymore. The trains stop at the station before the one that is turned off and will stay there with a "Zzz" symbol. Is there a way around this or is it a problem in the latest version of Factorio?


Kind regards

Vandrew
eugenekay
Filter Inserter
Filter Inserter
Posts: 576
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: Turning Train Stations off

Post by eugenekay »

Disabling a stop will cause problems for Trains which are already “on the way”; try setting a Limit of 1 using the same Signal instead.

Generically, you can use an Interrupt Condition to detect “Destination full or no path” condition, and direct your Trains to a Waiting Station (which can also be your Refueling station). This is a good idea for most trains to reduce traffic jams from stalled Locomotives.

Good Luck!
Tertius
Smart Inserter
Smart Inserter
Posts: 1328
Joined: Fri Mar 19, 2021 5:58 pm
Contact:

Re: Turning Train Stations off

Post by Tertius »

You encountered no bug or unintended behavior. It's how it works in game version 2.0. Deactivating a station in 2.0 is different to what it was in 1.1. In 1.1, trains just skipped deactivated stations. In 2.0, deactivated stations are handled as they had a train limit of 0. This means, if train is already heading to a station, and that station is now being deactivated, the train will continue to that station. It had a slot reserved at that station before it was deactivated, so it will continue to that station no matter what happens. In 1.1, trains abandoned the station that was just deactivated and repathed to some other station with the same name. However, it could happen trains stopped in this moment in the middle of nowhere if every station in its schedule was deactivated or full. To avoid this situation, the behavior with deactivated stations was changed in 2.0.

The approach to handle this with 2.0 is interrupts. The fixed schedule will now contain just 1 entry - the default where the train will start, usually some kind of loading station. Every other destination is added dynamically though interrupts.

See https://factorio.com/blog/post/fff-389 and https://factorio.com/blog/post/fff-395. The info from these fff can be directly put into a configuration. Copy the stuff from the screenshots in your config, especially the ones where the wildcards are described. I'm using exactly this concept, and it works really well.
Vandrew
Inserter
Inserter
Posts: 20
Joined: Sat May 21, 2016 6:58 am
Contact:

Re: Turning Train Stations off

Post by Vandrew »

Thank you for the information. WOW Interrupts are exactly what I was wanting for my train setups. I have found a good video on You Tube that helps a lot also.

Thank you again
Post Reply

Return to “Gameplay Help”