Page 1 of 1
Train pathfinding: choose free path over blocked by manually stopped
Posted: Sat Aug 17, 2019 8:47 pm
by planetmaker
This is not exactly a bug as it probably works as designed, yet I believe the path finding can be improved:
In the attached savegame, train ID 362 (heavy oil train) is heading for the TrainYard station. It tries to pass the tracks on which my personal train (ID 324) is stopped which has no schedule - thus will never move.
At the cost of a detour of about ~10 tiles train ID 362 could get to its destination, but it chooses to wait indefinitely for a free path through the blocked track.
Maybe the path finding can be re-considered periodically when the train has not moved after a certain time. This could be especially the case when the path crosses tracks blocked by trains not acting on automatic orders.
Re: Train pathfinding: choose free path over blocked by manually stopped
Posted: Sat Aug 17, 2019 9:03 pm
by Loewchen
As you said yourself, this does not describe a bug, make a development suggestion for things you consider improvements.
Re: Train pathfinding: choose free path over blocked by manually stopped
Posted: Thu Aug 29, 2019 9:05 am
by planetmaker
As you moved it here... can you possibly move this thread to the suggestion forum instead, please to avoid duplicate threads?
Re: Train pathfinding: choose free path over blocked by manually stopped
Posted: Thu Aug 29, 2019 9:13 am
by Oktokolo
Loewchen wrote: Sat Aug 17, 2019 9:03 pm
As you said yourself, this does not describe a bug, make a development suggestion for things you consider improvements.
That is what he obviously did (although in the wrong subforum).
planetmaker wrote: Thu Aug 29, 2019 9:05 am
As you moved it here... can you possibly move this thread to the suggestion forum instead, please to avoid duplicate threads?
+1 for both: Moving the suggestion to the right place and reevaluating paths of stuck trains every couple of seconds.
Re: Train pathfinding: choose free path over blocked by manually stopped
Posted: Thu Aug 29, 2019 11:48 am
by mrvn
planetmaker wrote: Sat Aug 17, 2019 8:47 pm
This is not exactly a bug as it probably works as designed, yet I believe the path finding can be improved:
In the attached savegame, train ID 362 (heavy oil train) is heading for the TrainYard station. It tries to pass the tracks on which my personal train (ID 324) is stopped which has no schedule - thus will never move.
At the cost of a detour of about ~10 tiles train ID 362 could get to its destination, but it chooses to wait indefinitely for a free path through the blocked track.
Maybe the path finding can be re-considered periodically when the train has not moved after a certain time. This could be especially the case when the path crosses tracks blocked by trains not acting on automatic orders.
Can't load your save right now but trains already re-path after being stopped at a signal for a while. And from
https://wiki.factorio.com/Railway/Train_path_finding
When the path includes a manually controlled stopped train -> Add a penalty of 2000.
When the path includes a manually controlled stopped train without a passenger -> Add a penalty of 7000.
10 tiles detour should be nothing.
Re: Train pathfinding: choose free path over blocked by manually stopped
Posted: Thu Aug 29, 2019 1:24 pm
by BlueTemplar
That's only for chain signals though ?
Also, I had trains being blocked for more than half an hour (unless they got stuck again in the same position later ?) while other paths were available :
(Disregard the removed rail, and also the branch to the left of it going north that I had just added.)
Re: Train pathfinding: choose free path over blocked by manually stopped
Posted: Thu Aug 29, 2019 1:39 pm
by Loewchen
See here on how to make a feature request:
viewtopic.php?f=6&t=47316