Avoiding train making loops in two-way rail system?

Adds new train stops forming a highly configurable logistic network.

Moderator: Optera

Post Reply
UndefinedOre
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Nov 09, 2020 7:32 pm
Contact:

Avoiding train making loops in two-way rail system?

Post by UndefinedOre »

I have a homegrown rail grid that has two-way tracks.
LTN-enabled trains often first arrive at a destination from depot facing to the opposite direction to station.
There is no such problem with vanilla trains.
Example:
Train first arrives to ltn station with direction 1. Then it stops and immediately schedules path with direction 2.
Why doesn't it schedule the correct path at the start?
Any workarounds?
ltn.png
ltn.png (1.67 MiB) Viewed 1525 times
Last edited by UndefinedOre on Wed Nov 11, 2020 12:48 am, edited 1 time in total.

User avatar
Nosferatu
Fast Inserter
Fast Inserter
Posts: 228
Joined: Fri Jan 20, 2017 4:48 pm
Contact:

Re: Avoiding train making loops in two-way rail system?

Post by Nosferatu »

Ltn creates a temporary stop directly before the real stop.
Can you confirm by looking at the train schedule that the first stop you mentioned is that temp stop?

I can't see the rest of your train system but do you really need that track to be bidirectional?

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

Re: Avoiding train making loops in two-way rail system?

Post by Optera »

The temp stop is exactly on the rail attached to the real stop.
If trains run around between those it's a base game issue.

User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 2247
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Avoiding train making loops in two-way rail system?

Post by boskid »

Optera wrote:
Tue Nov 10, 2020 3:40 pm
If trains run around between those it's a base game issue.
Temporary stop is by design counted as 2 possible path goals, one for each direction. Trying to limit this to only a single direction would require other means to provide which direction is the right one. I am not considering this to be a base game issue of any sort.

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

Re: Avoiding train making loops in two-way rail system?

Post by Optera »

boskid wrote:
Tue Nov 10, 2020 3:43 pm
Optera wrote:
Tue Nov 10, 2020 3:40 pm
If trains run around between those it's a base game issue.
Temporary stop is by design counted as 2 possible path goals, one for each direction. Trying to limit this to only a single direction would require other means to provide which direction is the right one. I am not considering this to be a base game issue of any sort.
You're right, I misread the OP as trains reaching the temp stop, then make head.
His station design simply allows trains going to the temp stop from the wrong side.

Post Reply

Return to “Logistic Train Network”