Page 1 of 1

NO-PATH with multiple trains

Posted: Fri May 05, 2023 3:12 am
by Sudomeapizza
-- What did I do/ what happened?
I didn't do anything, the things that are happening is two trains going into buffer stations, or "stacking stations", then going straight into the final 2 differently assigned stations.

-- What did I expect to happen?
1) if there wasn't an issue, then I'd assume that the train would just stop and wait at the signal, or just perform a dead stop in the tracks like if you switched the train from automatic to manual while in movement.
2) if there is a no-path issue, then i would assume it would perform a dead stop in the tracks like if you switched the train from automatic to manual while in movement. But it still continues to run like normal as if nothing happened.
3) or if it were normal, just slow to a pause at the next available red signal and wait it's turn

-- What is the frequency of occurrence?
This is repeatable 100% of the time.

I am using a modded save, but all of these issues are caused using vanilla mechanics as nothing about the trains, train stations, rails, signals, etc were changed using the mods i used. Thus attached a vanilla save with the same issue, and same layout as i copied it with a blueprint.

Youtube video example of the bug

In the attachments are the world file and log. To initiate the trains, just toggle the constant combinator.


If I had to take a guess at what is going on, the train is getting confused with the rail signals somehow where it thinks that there is no path when it's turned red, but then finds the path again almost immediately after saying no path. I would assume it's happening within the same tick but i can't tell.

Re: NO-PATH with multiple trains

Posted: Fri May 05, 2023 3:59 am
by robot256
Can you share the timestamp when the "no path" text appears over the train? It's hard to see in the video. It does seem like the trains behave normally overall.

Re: NO-PATH with multiple trains

Posted: Fri May 05, 2023 4:03 am
by Sudomeapizza

Re: NO-PATH with multiple trains

Posted: Fri May 05, 2023 4:53 am
by Nosferatu
What I see:

The second train intends to drive through the buffer station at full speed as the first one did.
When it starts pathfinding the second leg of its journey it realizes it can't do that because the way out is blocked.
That's where the no path is thrown but is immediately resolved by switching to stopping at the buffer station instead of driving through full speed.

I think the train resolved the problem correctly.
The only problem is that it throws a no path witch gets catched by a ?mod? or is that an option somewhere?
and alerts the user.

Re: NO-PATH with multiple trains

Posted: Fri May 05, 2023 5:06 am
by Sudomeapizza
The first thing is that the video is with my mods enabled, but with the save file in vanilla it does the same thing (probably should've just posted a vanilla recording, I'll update the post with that later)

but even through the pathing of the train, it shouldn't be saying no-path since if it were anything else as it approaches a red light, it'd slow to a stop. but a No-path is always referred to as there is zero way, track missing or no possible path to get from point a to point b, but there's always been a path. just a difference in red lights in the path of the train

Re: NO-PATH with multiple trains

Posted: Fri May 05, 2023 11:52 am
by disentius
First: As long as you do not see the no path appear above the train, it doesn't count:)
Second:. your use of chain signals causes the very brief no path.

Change all chains to rails, and the no path disappears. the trains seem to work like you intend.
Proof:


Re: NO-PATH with multiple trains

Posted: Fri May 05, 2023 4:37 pm
by Sudomeapizza
Thank you, That does seem to fix the issue!
I rewatched Doshdoshington's video on it again and yeah with your blueprint i see it now, i wasn't placing the signals accordingly, thank you for your help!

Re: NO-PATH with multiple trains

Posted: Fri May 05, 2023 5:43 pm
by disentius
welcome:)

Re: NO-PATH with multiple trains

Posted: Fri May 05, 2023 7:03 pm
by robot256
Yes, there's no reason to use a chain signal before a station on a one-way track. There might sometimes be a reason to use chains on the single rail connecting the two groups of stations. Does the problem still happen if there is a chain signal exiting the buffer stations?