Train does not use free path [solved]

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
fly
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sun Jul 09, 2017 11:02 am
Contact:

Train does not use free path [solved]

Post by fly »

I have a railroad system that was running for a while but then I noticed train stuck. So I created the simplest possible replica in sandbox and tried to replicate and fix the problem.
Here is what I have:
Black train runs between station 1 (St1) and station out of the image where green arrow shows.
Blue train runs between station 2 (St2) and station that is far to the left.
Black train usually chose path A, but if it's blocked by blue, then it goes via B.
Most of the time this is working without problems. But, in the rare case, when black train starts from station St1 and choses path A, and then in a moment blue train starts from St2 it blocks the path A and path B becomes free. But black train still wants to make it via A and the whole thing stops.
The questions are: Am I doing something wrong? Why doesn't it recalculate its path on blue signal? Is it possible to fix this with just signals, without changing the tracks?
Attached are screenshot and save file.
rail problem.jpg
rail problem.jpg (817.49 KiB) Viewed 1703 times
Attachments
rail problem.zip
(5.19 MiB) Downloaded 87 times
Last edited by fly on Sun Jul 09, 2017 4:52 pm, edited 1 time in total.

Greybeard_LXI
Fast Inserter
Fast Inserter
Posts: 122
Joined: Sun Feb 26, 2017 10:48 pm
Contact:

Re: Train does not use free path

Post by Greybeard_LXI »

Path B is a very long path. Version 15.0 changed rail calculations to make stations real long:
Train station adds 2000 tiles penalty when path finding, so trains try to avoid stations not related to their path.
Removing station 2 or removing a tile behind the blue train will cause the black train to take path B.

It sounds like the path finding does not expect a blocked track to stay blocked for that long.

fly
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sun Jul 09, 2017 11:02 am
Contact:

Re: Train does not use free path

Post by fly »

Oh, I see. Thanks! Hope this will be added to the wiki soon.
For my problem - I just added dummy station on A path to balance them and this seems to be working, more or less, as I want.

Post Reply

Return to “Gameplay Help”