[2.0.11] Train interrupt activates even if all next stops are disabled

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Dune
Fast Inserter
Fast Inserter
Posts: 212
Joined: Tue Dec 12, 2017 4:27 am
Contact:

[2.0.11] Train interrupt activates even if all next stops are disabled

Post by Dune »

So, if the train has a loading station and fills up, and then is waiting for an available unloading station, but none are available, if the train has a fuel interrupt, it'll just leave for the interrupt instead of waiting until their next destination is available. IE, the train shouldn't interrupt unless the next destination in their schedule is enabled.

Picture is of a train occupying the fuel station because its next destination is unavailable.
{F599A3FA-2C28-46CB-81A1-E0460AD06566}.png
{F599A3FA-2C28-46CB-81A1-E0460AD06566}.png (846.64 KiB) Viewed 412 times
Image
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5267
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [2.0.11] Train interrupt activates even if all next stops are disabled

Post by Klonan »

Hi,

Can you provide the save game?
Dune
Fast Inserter
Fast Inserter
Posts: 212
Joined: Tue Dec 12, 2017 4:27 am
Contact:

Re: [2.0.11] Train interrupt activates even if all next stops are disabled

Post by Dune »

The save game - but at a later time from when it happened.

Edit: I opened the map and found an easy way to duplicate it. Go to the streel train, change the stop to disable by changing the sign to less-than (see picture) so that it is disabled. Then remove fuel from the train, down to less than 20 which is the fuel trigger. The interrupt triggers. The train will go to the interrupt stop (the fueling station) but then have nowhere to go.
{468C8448-DCE3-4D6C-856C-57FDD7DC90FF}.png
{468C8448-DCE3-4D6C-856C-57FDD7DC90FF}.png (1.4 MiB) Viewed 337 times
Attachments
V2 SpaceAge 002 010c.zip
(21.86 MiB) Downloaded 15 times
Image
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5267
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [2.0.11] Train interrupt activates even if all next stops are disabled

Post by Klonan »

Ok, that is working correctly, the interrupt has no conditions about if it should care if it has cargo or not, it is just following the programming, and it isn't the interrupt systems responsibility to ensure subsequent stations are open
10-30-2024, 11-37-36.png
10-30-2024, 11-37-36.png (120.45 KiB) Viewed 324 times
IF you don't want it to refuel with full cargo, then add that as an interrupt condition
Dune
Fast Inserter
Fast Inserter
Posts: 212
Joined: Tue Dec 12, 2017 4:27 am
Contact:

Re: [2.0.11] Train interrupt activates even if all next stops are disabled

Post by Dune »

Is there a way to add a condition to see if there are open stations to the interrupt? Otherwise, it still seems broken. Wouldn't the spirit of the fueling station be that trains shouldn't remain there after they fill up?
Image
Mightyloly
Burner Inserter
Burner Inserter
Posts: 15
Joined: Wed Oct 30, 2024 1:34 am
Contact:

Re: [2.0.11] Train interrupt activates even if all next stops are disabled

Post by Mightyloly »

I highly recommend that if you use that kind of train system,
you should use 'waiting bays' or 'depots' for the trains to wait at until the station is open.
It'll reduce the amount of time a train is hogging a specific station if it has nowhere to go down to almost zero.
The depots should theoretically be nearby the fuel stations, sort of like rest stops that have gas pumps
However you implement such an idea is entirely up to you.
Kalanndok
Long Handed Inserter
Long Handed Inserter
Posts: 90
Joined: Sat Dec 12, 2015 9:07 am
Contact:

Re: [2.0.11] Train interrupt activates even if all next stops are disabled

Post by Kalanndok »

Possible solution:

Make anohter interrupt...
If...
...at refuel station
and
...no path
then...
go to depot

Set the depot to a higher priority so the train in the depot will be dispatched to the unloader before any train waiting at a loading station.
Post Reply

Return to “Gameplay Help”