Page 1 of 1
[Resolved] Train pathing to disabled train stop
Posted: Mon Oct 28, 2024 5:07 am
by CatCattyCat
Overview
I'm very new to trains/circuit conditions and do not understand why something is happening: my train is going to a train stop disabled by a circuit condition.
Per the wiki (
https://wiki.factorio.com/Train_stop), this shouldn't happen: "Train stops can be enabled or disabled using the circuit network. When a train stop is disabled, trains will not go to that station."
I think it's very possible I am misunderstanding train schedules/circuit conditions, but maybe this is a bug?
Details
I've attached the save where this is currently happening. The player is standing next to a train stop named "Coal Bus". It is disabled by a circuit condition which checks the amount of coal in the chest buffer next to the stop. The schedule has it go to a stop named "Coal Bus" and wait there until it runs out of coal, the buffer is sufficiently filled, or nothing happens for 5 seconds. There is another stop with the same name (currently enabled), and the idea is it'll go to both depending on their need.
There's also another stop named Dummy: without it the train just is stuck at the stop and doesn't move. I have this in for testing to better show the behavior.
If you stand and watch the train, it paths from the disabled Coal Bus stop, to the Dummy stop, then it chooses and goes to the same disabled Coal Bus stop, over and over. Meanwhile the other, enabled Coal Bus stop is ignored.
Question
Is this a bug or not? Regardless, how can I set up the schedules/circuit conditions to have a train that serves two (or more) stops based on that stop's needs?
Tangential: I have an interrupt that goes to the coal mine to pick up coal when empty - it doesn't trigger unless I also have a wait condition on empty at every Coal Bus station - or in other words interrupts don't interrupt while a train is waiting at a stop, only when a train is choosing its next destination. Is that the correct understanding?
Thanks :)
Re: Train pathing to disabled train stop
Posted: Mon Oct 28, 2024 2:40 pm
by Kalanndok
There have been changes in 2.0 concerning disabling train stops.
Pre-2.0 trains would repath upon disabling a train stop that they were inbound to and potentially stop on track if no destination was reachable.
Since 2.0 that has been "fixed" by keeping an inbound train headed to the station when it got disabled while the train was already routed there.
Basicly it's the enabled train station giving the departing train the promise that it will be get serviced even the train arrives after closing hours.
What disabling the train stop does is just closing the train stop for further elsewehere departing trains.
Re: Train pathing to disabled train stop
Posted: Mon Oct 28, 2024 2:57 pm
by feng
Btw is there any difference on train behaviour now between disabling a train station and setting train limit to 0?
Re: Train pathing to disabled train stop
Posted: Mon Oct 28, 2024 7:10 pm
by FactorioFan822
I believe the new behavior is that a disabled train stop is viewed as if the train limit was 0, according to
https://factorio.com/blog/post/fff-395 , so no, there should be no practical difference.
Re: Train pathing to disabled train stop
Posted: Mon Oct 28, 2024 9:15 pm
by CatCattyCat
Kalanndok wrote: ↑Mon Oct 28, 2024 2:40 pm
There have been changes in 2.0 concerning disabling train stops.
Pre-2.0 trains would repath upon disabling a train stop that they were inbound to and potentially stop on track if no destination was reachable.
Since 2.0 that has been "fixed" by keeping an inbound train headed to the station when it got disabled while the train was already routed there.
Basicly it's the enabled train station giving the departing train the promise that it will be get serviced even the train arrives after closing hours.
What disabling the train stop does is just closing the train stop for further elsewehere departing trains.
Thanks for the info!
In my case, the stop is always disabled by the circuit condition, so it's not that a train is already on the way there, I think. It chooses the disabled stop as it's next destination when leaving the "Dummy" station.
Re: Train pathing to disabled train stop
Posted: Mon Oct 28, 2024 10:21 pm
by feng
So it would be maybe reasonable to remove the "activate train stop by signal" if we can get the same result with train limit = 0? To have both options just seems to be redundant and more confusing than being helpful.
Re: Train pathing to disabled train stop
Posted: Wed Nov 20, 2024 5:55 pm
by superstrijder15
The separate enable/disable stop option is still useful to me because it is easier than adding a combinator with the normal train limit, and then another combinator to check the condition and only have the train limit if it is needed. You can wire a stop directly to the associated chests or tanks and it is its own combinator.
Re: Train pathing to disabled train stop
Posted: Wed Nov 20, 2024 6:11 pm
by CatCattyCat
FYI I was able to resolve this by adding a wait condition for the destination stop not being full. That way the train waits until there isn't a disabled stop, and then it paths to it like expected.