[2.0.52] Train pathfinding selects full station

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Grifonice99
Burner Inserter
Burner Inserter
Posts: 12
Joined: Wed Sep 09, 2020 2:06 pm
Contact:

[2.0.52] Train pathfinding selects full station

Post 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.

bug-report.zip
(3.69 MiB) Downloaded 28 times
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.
Loewchen
Global Moderator
Global Moderator
Posts: 10140
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [2.0.52] Train pathfinding selects full station

Post by Loewchen »

None of the depot stations is full, they do not even have limits.
Grifonice99
Burner Inserter
Burner Inserter
Posts: 12
Joined: Wed Sep 09, 2020 2:06 pm
Contact:

Re: [2.0.52] Train pathfinding selects full station

Post 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.
Loewchen
Global Moderator
Global Moderator
Posts: 10140
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [2.0.52] Train pathfinding selects full station

Post 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.
Grifonice99
Burner Inserter
Burner Inserter
Posts: 12
Joined: Wed Sep 09, 2020 2:06 pm
Contact:

Re: [2.0.52] Train pathfinding selects full station

Post 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"
Loewchen
Global Moderator
Global Moderator
Posts: 10140
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [2.0.52] Train pathfinding selects full station

Post 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.
Post Reply

Return to “Gameplay Help”