Deadlock. Why?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
anprs
Manual Inserter
Manual Inserter
Posts: 2
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 519 times
Loewchen
Global Moderator
Global Moderator
Posts: 9929
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: 592
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: 73
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 414 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.)
wobbycarly
Filter Inserter
Filter Inserter
Posts: 280
Joined: Tue Jan 29, 2019 4:00 am
Contact:

Re: Deadlock. Why?

Post by wobbycarly »

Just to add a little more detail to previous posts, it would help to add chain signals like this:
03-15-2025, 13-08-36.png
03-15-2025, 13-08-36.png (990.53 KiB) Viewed 349 times
This will separate the 2 vertical train lines.
anprs
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Mar 14, 2025 9:06 am
Contact:

Re: Deadlock. Why?

Post by anprs »

Thanks 2 all of you.
Solved
Attachments
20250315171239_1.jpg
20250315171239_1.jpg (380.87 KiB) Viewed 196 times
Post Reply

Return to “Gameplay Help”