Trains and deadlocks

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

crysanja
Long Handed Inserter
Long Handed Inserter
Posts: 73
Joined: Sun Aug 03, 2014 4:47 pm
Contact:

Trains and deadlocks

Post by crysanja »

It would be realy nice know which train is blocking the track.
Now it just tells you how many train are on a block. However a block is not allways easyly identified.
Im often in the situation that i want to place a signal but the game does not want it on the side i want to place it.
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Trains and deadlocks

Post by ssilk »

Do you mean deadlocks or just blocked trains? What situation are you describing? And what do you suggest to solve it?

It's in the nature of a deadlock, that it is ... well ... a deadlock; it cannot be solved automatically.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
mp0011
Fast Inserter
Fast Inserter
Posts: 216
Joined: Mon Mar 20, 2017 1:17 am
Contact:

Re: Trains and deadlocks

Post by mp0011 »

I would like trains to recalculate route after X seconds of red light...
I often use single, bidirectional rails with passing loops, just for fun and realism.

However, there are situations when two trains stops in front of each other, while one of it is able to find alternative, free way to station, but it just does not.
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Trains and deadlocks

Post by ssilk »

AFAIK the route is recalculated when the signal jumps to green. In most cases. But don't ask me about details. :)

Are you sure that you don't have a deadlock? You can check that yourself by locking at the occupied blocks and turning on the train-path in the https://wiki.factorio.com/Debug_mode
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
BenSeidel
Filter Inserter
Filter Inserter
Posts: 591
Joined: Tue Jun 28, 2016 1:44 am
Contact:

Re: Trains and deadlocks

Post by BenSeidel »

If you can post a save or screenshot of the issue then we might get a better understanding of your issue.
As Ssilk said, there are a few good options in the debug menu for dealing with trains. The one I usually have turned on is the "show rail paths" (I think?). It will draw a coloured line for each moving (or trying to move) train, showing you the path it has picked.
mp0011
Fast Inserter
Fast Inserter
Posts: 216
Joined: Mon Mar 20, 2017 1:17 am
Contact:

Re: Trains and deadlocks

Post by mp0011 »

I expected the train on the right to recalculate its path (after some time maybe) and go through the station lower station.
CH = Chain signal, S = Signal.

I know it's less than ideal rail setup, but anyway, it should work...
Lower track must be bidirectional, sometimes both stations are occupied. I expect, in that case, right train to wait until train leave any station.

P.S.
If I hold left train on manual where it is standing, switch right to manual and back to auto, it still want to go that way, even if it's already red and blocked.

P.P.S.
Train recalculate the path (and goes through the station) immediately after I delete track section between them, so this path is "valid and legal".
Attachments
trains.jpg
trains.jpg (336.29 KiB) Viewed 2287 times
BenSeidel
Filter Inserter
Filter Inserter
Posts: 591
Joined: Tue Jun 28, 2016 1:44 am
Contact:

Re: Trains and deadlocks

Post by BenSeidel »

The issue with your setup is that train stops have a pathing penalty applied to them. So in your example the train is not going through the middle path because the train "sees" it being longer because it has to pass a stop. If you just place a stop (but don't use it) on the bottom track I think you will get the result you are after.
mp0011
Fast Inserter
Fast Inserter
Posts: 216
Joined: Mon Mar 20, 2017 1:17 am
Contact:

Re: Trains and deadlocks

Post by mp0011 »

I added the station, and it start to work. I removed it, and it still works just fine - the path is recalculating...
Post Reply

Return to “Ideas and Suggestions”