NO-PATH with multiple trains

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Sudomeapizza
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Jul 21, 2017 9:03 am
Contact:

NO-PATH with multiple trains

Post 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.
Attachments
factorio-current.log
(5.55 KiB) Downloaded 61 times
Train bug world.zip
A vanilla world showcasing the Train bug example showed in my video.
(1.49 MiB) Downloaded 56 times
robot256
Filter Inserter
Filter Inserter
Posts: 948
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: NO-PATH with multiple trains

Post 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.
Sudomeapizza
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Jul 21, 2017 9:03 am
Contact:

Re: NO-PATH with multiple trains

Post by Sudomeapizza »

User avatar
Nosferatu
Filter Inserter
Filter Inserter
Posts: 253
Joined: Fri Jan 20, 2017 4:48 pm
Contact:

Re: NO-PATH with multiple trains

Post 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.
Sudomeapizza
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Jul 21, 2017 9:03 am
Contact:

Re: NO-PATH with multiple trains

Post 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
User avatar
disentius
Filter Inserter
Filter Inserter
Posts: 694
Joined: Fri May 12, 2017 3:17 pm
Contact:

Re: NO-PATH with multiple trains

Post 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:

Sudomeapizza
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Jul 21, 2017 9:03 am
Contact:

Re: NO-PATH with multiple trains

Post 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!
User avatar
disentius
Filter Inserter
Filter Inserter
Posts: 694
Joined: Fri May 12, 2017 3:17 pm
Contact:

Re: NO-PATH with multiple trains

Post by disentius »

welcome:)
robot256
Filter Inserter
Filter Inserter
Posts: 948
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: NO-PATH with multiple trains

Post 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?
Post Reply

Return to “Gameplay Help”