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?
Deadlock. Why?
Deadlock. Why?
- Attachments
-
- trains.png (1.11 MiB) Viewed 135 times
Re: Deadlock. Why?
Because you did not separate the left from the right track at the junction, it's one block.
Re: Deadlock. Why?
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!
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.
Re: Deadlock. Why?
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:
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.)
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.)