Page 1 of 1
[2.0.52] Train pathfinding selects full station
Posted: Fri May 23, 2025 9:15 pm
by Grifonice99
During my gameplay on a mega-factory using city-blocks with the ltn mod (the bug also occurs in vanilla), the trains after unloading and leaving the station, it happens that if there is no empty depot station on nearby, the pathfinding select a station that already contain a train.
there is an example of the bug, when switching the double-headed train from manual to automatic, the pathfinding incorrectly selects the station on the right even though there is an empty station on the left. when removing the rail near the constant combinator, the pathfinding selects the empty station as it normally should.
Re: [2.0.52] Train pathfinding selects full station
Posted: Fri May 23, 2025 9:22 pm
by Loewchen
None of the depot stations is full, they do not even have limits.
Re: [2.0.52] Train pathfinding selects full station
Posted: Fri May 23, 2025 9:49 pm
by Grifonice99
Loewchen wrote: Fri May 23, 2025 9:22 pm
None of the depot stations is full, they do not even have limits.
on three depot configured only one have a free path to reach.
Re: [2.0.52] Train pathfinding selects full station
Posted: Fri May 23, 2025 10:09 pm
by Loewchen
Grifonice99 wrote: Fri May 23, 2025 9:49 pm
on three depot configured only one have a free path to reach.
I do not understand what you are trying to say.
Re: [2.0.52] Train pathfinding selects full station
Posted: Fri May 23, 2025 10:20 pm
by Grifonice99
Loewchen wrote: Fri May 23, 2025 10:09 pm
I do not understand what you are trying to say.
when a train leave a station and try to go to a depot, if there is a depot with an empty path in a certain range they go into that depot, instead go to the nearest depot, empty or full doesn't matter. I can send in private the save of my "mega-factory"
Re: [2.0.52] Train pathfinding selects full station
Posted: Fri May 23, 2025 10:37 pm
by Loewchen
Still not 100% sure I understand what you mean, but I think you are misunderstanding how train pathfinding works. Trains will take the station with a path with the lowest pathfinding penalty, distance and how many other trains are in the path are just variables in the calculation of that penalty.