Page 1 of 1

[1.1.13] Train pathing past destination in wrong direction adds pathfinding penalty

Posted: Fri Jan 22, 2021 2:08 pm
by SpeckledFleebeedoo
When a train has to pass through its destination in the wrong direction to get to it the pathfinding penalty for passing through a station that isn't the train's destination is applied. This can cause unexpected behaviour where trains never go to the closest possible destination.


Re: [1.1.13] Train pathing past destination in wrong direction adds pathfinding penalty

Posted: Fri Jan 22, 2021 2:15 pm
by Kalanndok
This might be intended.
A train stop usually denotes a place where a train does stop and not a through-line.
And that status usually doesn't change with the direction of the train.

However what might be interesting:
Change the train stop penalties from static values to individual properties for each train stop itself.
So in your case you could define the penalty for the inner stop as 0 since your track layout makes it a must-pass-station.

Re: [1.1.13] Train pathing past destination in wrong direction adds pathfinding penalty

Posted: Fri Jan 22, 2021 2:15 pm
by kovarex
Based on fast discussion, this is not considered a bug, as this behaviour can be generally used and avoided based on what you need.

Re: [1.1.13] Train pathing past destination in wrong direction adds pathfinding penalty

Posted: Fri Jan 22, 2021 6:03 pm
by JaJe
kovarex wrote:
Fri Jan 22, 2021 2:15 pm
Based on fast discussion, this is not considered a bug, as this behaviour can be generally used and avoided based on what you need.
I am the person who found this Issue while asking for help to Discord community.
I struggled a lot to understand why my rail circuit won't work as intended and my trains always pick up the longest station rather that the shortest one until Swan told me to change the turn around track before the train drive past the train station as pics below:

Before: (Blue-IN station)
Image

After:
Image

While changing this it fixed my issue, I'm thinking about people finding themselves with the same situation as mine and struggling to understand what's wrong.

Thanks for SpeckledFleebeedoo to report my issue here and for help, same for Swan.