Train not choosing farther but valid path

Things that has been reported already before.
Post Reply
six_sigma
Burner Inserter
Burner Inserter
Posts: 6
Joined: Tue Mar 03, 2015 11:55 pm
Contact:

Train not choosing farther but valid path

Post by six_sigma »

Stacked Overview
Image
https://imgur.com/YhnzyTN

Closeup of top of Stacker
Image
https://imgur.com/bVPuDAb

Top Blocks
Image
https://imgur.com/YzRykRQ

Bottom Blocks
Image
https://imgur.com/9gRYpcL

The latest version YOU had experienced the issue with in square brackets:
[0.17.45]

What happened and in what context:
Trains are queuing in a stacker at a chain signal waiting for a circuit controlled rail signal to let them travel to train stop. There are multiple train stops with the same name and multiple locomotives attempting to travel to these train stops. When the stacker is small, this works perfectly. The circuit will close the rail signal if the train stop doesn't have enough room to accept a drop off, or if the rail signal is closed due to a train being present at the stop already, the locomotive that is queued at the chain signal will recalculate and path to a train stop that is farther away but able to be entered.

However, when the distance is far (and the distance seems to be similar in similar setups) the train that is queued at the chain signal will not repath to a train stop that is farther away but able to accept a train (the rail signal before the train stop is open). The queued train will wait for the occupied train to leave the closer station.

If I force the train to move and move it slightly closer to the train farther train stop by either forcing it to go a different station and then re-telling it to go the original station it will path correctly to the farther station. If however the farther station is far enough away it will ignore the station and attempt to path to the closer station again.

The distance appears to be about 600 rail tiles.


What I expected to happen:
I expected the train to recognize the closer station was blocked by the closed rail signal due to a circuit condition or a present and train and path to farther train stop with an open rail signal regardless of far it is. If the train makes a list of stops it can go to, picks one, and proceeds to travel to it, but that train stop becomes inaccessible I would expect it to look down the list of available stops until it finds a train stop it can enter, or wait at the signal and re-evaluation in some amount of time (5 seconds, 60 seconds, doesn't matter as long as it goes to a station if it is available.

Is it because the distance penalty for the farther open station is less than the penalty for a closer but occupied station? If so I would suggest increasing the penalty of an occupied station.

User avatar
disentius
Filter Inserter
Filter Inserter
Posts: 694
Joined: Fri May 12, 2017 3:17 pm
Contact:

Re: Train not choosing farther but valid path

Post by disentius »

With this Wiki info you can calculate what applies in your case:
https://wiki.factorio.com/Railway/Train_path_finding

Rseding91
Factorio Staff
Factorio Staff
Posts: 13204
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Train not choosing farther but valid path

Post by Rseding91 »

Thanks for the report however I'm around 99% sure this is a duplicate of viewtopic.php?f=23&t=71164
If you want to get ahold of me I'm almost always on Discord.

six_sigma
Burner Inserter
Burner Inserter
Posts: 6
Joined: Tue Mar 03, 2015 11:55 pm
Contact:

Re: Train not choosing farther but valid path

Post by six_sigma »

I did see this but I didn't investigate hard enough I guess

When I place a train stop where the occupied station is the added 1000 penalty causes the queued train to pick the farther one.

I guess the train just prefers an train stop it can't go to rather than a train stop it can go to because of the the penalty is less. I wish it would prefer an open one that is far rather than a closed one that is close regardless of the penalty number

Zavian
Smart Inserter
Smart Inserter
Posts: 1641
Joined: Thu Mar 02, 2017 2:57 am
Contact:

Re: Train not choosing farther but valid path

Post by Zavian »

You could add some more circuit controlled signals to increase the penalty for closed stops.

Post Reply

Return to “Duplicates”