Weird pathing behavior

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
RiverRob
Burner Inserter
Burner Inserter
Posts: 14
Joined: Sun Jan 05, 2020 3:09 pm
Contact:

Weird pathing behavior

Post by RiverRob »

Hi,
I've started to use bi-directional 1-2-1 trains for supply runs (building materials, fuel, etc).
I have a main depot (first screenshot) which is in the middle of everything.
I want to set up smaller depots farther away, so I came up with the design in the second screenshot.
The problem I'm running into is also in the second screenshot.
Even though there is plenty of space left in the main depot, trains are still trying to park at the small depot even though it's full already.
The third screenshot is the same idea just farther away from the main depot.
Any ideas how I can fix this? I don't think it's an LTN issue, but I can't figure this out.
Thanks in advance
mainDepot.png
mainDepot.png (1.87 MiB) Viewed 1307 times
issue1.png
issue1.png (2.47 MiB) Viewed 1307 times
issue2.png
issue2.png (1.21 MiB) Viewed 1307 times

User avatar
planetmaker
Fast Inserter
Fast Inserter
Posts: 180
Joined: Mon Jan 21, 2019 9:30 am
Contact:

Re: Weird pathing behavior

Post by planetmaker »

The path finder considers different things when assigning a station to a train:
  • distance to station
  • number of occupied blocks and / number of trains in the way
  • station being currently being occupied
  • red circuit controlled signals
These are weighted and the 'closest' station given these is chosen. A fix for your situation might be that you add additional signals to your small depot which are turned red via circuit network when it is occupied by a train so that the red-signal penalty for an occupied station in the small depot is increased.

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2916
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Weird pathing behavior

Post by Optera »

Pathing can't be changed by mods.
This has nothing to do with LTN.

RiverRob
Burner Inserter
Burner Inserter
Posts: 14
Joined: Sun Jan 05, 2020 3:09 pm
Contact:

Re: Weird pathing behavior

Post by RiverRob »

Yep, not a mod issue, but someone using LTN might run into this depot issue if their map gets big enough.
Thanks @planetmaker, the distance was the issue. I added in a bunch of circuit controlled signals and it's fixed the issue.
The mini-Depot looks like a landing strip now lol.
Thanks for the help!
issueResolved.png
issueResolved.png (1.33 MiB) Viewed 1282 times

Zaflis
Filter Inserter
Filter Inserter
Posts: 417
Joined: Sun Apr 24, 2016 12:51 am
Contact:

Re: Weird pathing behavior

Post by Zaflis »

Some of those 1-4-1 trains are not actually 2-way trains. It matters which way you place the locomotives, using R key when placing them down.

RiverRob
Burner Inserter
Burner Inserter
Posts: 14
Joined: Sun Jan 05, 2020 3:09 pm
Contact:

Re: Weird pathing behavior

Post by RiverRob »

All of the 1-4-1's are single direction and for main factories (ore, circuits, etc). The 1-2-1's are bi-directional and for building materials (miners, belts, rails, etc) and consumables (fuel).

Post Reply

Return to “Gameplay Help”