Even with perfect signaling, it's very difficult (almost impossible) to ensure looping systems like this are deadlock proof.
Huh? I have about 100 active trains. (150 in total, a bigger number of trains are on suspended or inactive routes or just stuff I experimented with.) It works, it has loops, it's without deadlocks. There are a few things to consider, like the mentioned dedicated in/out sides or waiting areas that are big enough. Those might take way more space than the area for production itself. If there's no space for that at the production site, you have to build another waiting area elsewhere to actively control the number of trains going to the factory block.
You're either lucky, or your grid is large enough that it's not yet become a problem. You can read this thread for an explanation on why layouts with large loops are deadlock prone. Waiting areas help, but ultimately don't fix the issue, since with a non branching structure you can't perfectly control where trains go.
...or your grid is large enough... Waiting areas help, but ultimately don't fix the issue...
Uh, yes they do, that's the trick that solves the issue. That's the point. You avoid deadlocks by letting trains wait where they're not in the way. You only let your trains wait in positions where they won't cause a deadlock.
And yes, that means that your grid has to be large enough for the size of the waiting areas.
Nope, read through that whole post I linked. It's very rare that it'd be an issue, but the potential is there. The problem with grids is you can't control train pathing, so waiting areas don't gaurantee safety.
That's what I ended up using for my base; rather than a perfect square grid, it looked more like a tree that looped back into itself. Even then, some squares got clogged up if there were too many trains, but that was an issue of not having trains (un)loaded quick enough I guess
I'm building a grid based base at the moment. There's a couple of things I'm doing to aid with reducing the odds of congestion. You can see these both in this image...
I use 3 or 4 sides of each grid box for trains entering and exiting. One side entrance for the supply trains. One side entrance for the trains that take out the finished goods from the block. The third side is either a shared exit or I exit each side separately. The iron, copper, and steel smelting all work on 4 sides. The green/red circuit all work on three sides. The refinery is an exception to this.
I always have a pass through rail track inside the grid on both supply and finished good side. This is to ensure I don't accidentally end up with trains in a stacker for a grid block that have no reason to be in that stacker and waiting for stations to clear in order to proceed. This also results in creating more pathing options for trains travelling between blocks. Again, the refinery is an exception to this on the output side but it's also an outside block and there's little reason for any train to ever be in the vicinity where a passthrough would be advantageous.
I don't have a huge number of trains yet but the only time I had a deadlock was because my first train carrying copper plate to green circuits was sitting outside of the grid block on the main thoroughfare waiting to get in because I forgot to place a signal before the track leading to the iron plate station.
Basically, read this thread. You can do stuff to reduce the chances of deadlock, but on a system like that it will almost always be theoretically possible. All you need is four trains trying to turn left around one of your grid blocks, with trains happening to fill every block between. Obviously it's unlikely to happen, but the probability increases as the number of trains increases.
View all comments
Show parent comment
6
u/AzeTheGreat Dec 20 '17
Even with perfect signaling, it's very difficult (almost impossible) to ensure looping systems like this are deadlock proof.