Deadlock. Why?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
anprs
Manual Inserter
Manual Inserter
Posts: 1
Joined: Fri Mar 14, 2025 9:06 am
Contact:

Deadlock. Why?

Post by anprs »

I have a deadlock. The train with fluid wagons is blocked from leaving, that's clear and ok. The empty cargo train going down has a red chain signal, but there's a green signal in front of it. The train with the copper ore going up has a red chain signal, but there's a green signal in front of it.
Why are there form a deadlock? How to fix it?
Attachments
trains.png
trains.png (1.11 MiB) Viewed 144 times
Loewchen
Global Moderator
Global Moderator
Posts: 9844
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Deadlock. Why?

Post by Loewchen »

Because you did not separate the left from the right track at the junction, it's one block.
Amarula
Filter Inserter
Filter Inserter
Posts: 575
Joined: Fri Apr 27, 2018 1:29 pm
Contact:

Re: Deadlock. Why?

Post by Amarula »

Hi anprs welcome to the forums!
If you hold a train signal in your hand in game, the tracks are coloured so each block is a different colour from adjacent blocks. This is really helpful when you are trying to figure out which blocks are occupied by a train, and hence blocking other trains. If you do that when you take a screenshot to post, it really helps us to help you.
Have fun and make the factory grow!
My own personal Factorio super-power - running out of power.
kpreid
Long Handed Inserter
Long Handed Inserter
Posts: 68
Joined: Sat Jul 16, 2016 7:54 pm
Contact:

Re: Deadlock. Why?

Post by kpreid »

As already mentioned, you should make sure there are chain signals on the curved tracks that cross the vertical tracks, so that the vertical tracks are all separate blocks from each other. That will allow your trains to proceed. However, there is another principle to consider:
trains-anno-crop.jpg
trains-anno-crop.jpg (37.44 KiB) Viewed 39 times
These two rail signals I have marked with a red box allow the two trains to proceed past the first intersection they encounter, and then stop before the second — while still sticking out into the first intersection, blocking it. To get more reliable behavior, follow this rule: at the end of an intersection, you should only place a rail signal if the signal-free space after it is as long as the longest train that will use it. This ensures that a train can always fully exit the intersection after using it. In your case, these two intersections are close enough together that they should be treated as one intersection — only chain signals should exist between them.

(This rule can sometimes be ignored while still having a reliable train system, but the situations for that are more specific.)
Post Reply

Return to “Gameplay Help”