Intersecting two unrelated train tracks, stop collisions?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
westy
Burner Inserter
Burner Inserter
Posts: 12
Joined: Tue May 06, 2014 2:51 pm
Contact:

Intersecting two unrelated train tracks, stop collisions?

Post by westy »

Hey all,

I have two separate rail networks in one area - one is a looping single-direction train for oil collection, and one is a push-me-pull-you for copper. To get to a new oil deposit, it looks like I have to make one of the tracks intersect and cross over the other track. I've had a look into the rail signals, but I haven't found any examples for usage to stop trains colliding on two separate tracks.

Any ideas on how I can stop the trains colliding?

Thanks!

User avatar
Drury
Filter Inserter
Filter Inserter
Posts: 783
Joined: Tue Mar 25, 2014 8:01 pm
Contact:

Re: Intersecting two unrelated train tracks, stop collisions

Post by Drury »

Put two-way signals all around.

Image

westy
Burner Inserter
Burner Inserter
Posts: 12
Joined: Tue May 06, 2014 2:51 pm
Contact:

Re: Intersecting two unrelated train tracks, stop collisions

Post by westy »

Sweet, thanks for the quick reply.

murillokb
Inserter
Inserter
Posts: 30
Joined: Fri May 09, 2014 2:21 pm
Contact:

Re: Intersecting two unrelated train tracks, stop collisions

Post by murillokb »

One question: if the signals are too close to the intersection and the trains happen to come at almost same time, there's still a collision risk?


User avatar
Zourin
Fast Inserter
Fast Inserter
Posts: 246
Joined: Tue Feb 11, 2014 2:15 am
Contact:

Re: Intersecting two unrelated train tracks, stop collisions

Post by Zourin »

It's a hard concept to explain, but pretty straightforward once you get a grip on it.

SIgnals force trains to acknowledge which direction a section of track can be traveled. One signal, one-way only. Two signals (directly across from one another), two way track. Signals placed next to different tiles of track create a 'segment' or 'branch' between them.

Signals also invoke one additional rule: Only one train can use a segment at a time. To my knowledge, the only definition for a 'segment' of track is that they are all 'touching' one another, so Drury's solution should work. A train using the 'intersection' segment between all of those signals will prevent any other train from using it until the first has cleared the intersection. Because they're all 'double' signalled, both tracks will function in both directions.

The critical problem to avoid is two trains moving at each other on the same track line. For both rail lines, they are broken into 3 segments. A westbound train and an eastbound train will invariably deadlock here, as the signals will prevent them from entering the segment the oncoming train is using. Drury's solution only works if there is only one 'north-south' train and only one 'east-west' train.

There are a lot of ways to go wrong in designing stations, rails, and signals, and not many clear ways to explain what works. Everything depends on the rail configuration and the number of independant trains that are running.

hipscumbag
Burner Inserter
Burner Inserter
Posts: 14
Joined: Thu May 01, 2014 4:40 am
Contact:

Re: Intersecting two unrelated train tracks, stop collisions

Post by hipscumbag »

Zourin wrote: SIgnals force trains to acknowledge which direction a section of track can be traveled. One signal, one-way only. Two signals (directly across from one another), two way track. Signals placed next to different tiles of track create a 'segment' or 'branch' between them.
Oh, man! This is a really, really important thing about signals I hadn't realized! Maybe the wiki (and the game, dearest developers!) could make that more obvious.

User avatar
Drury
Filter Inserter
Filter Inserter
Posts: 783
Joined: Tue Mar 25, 2014 8:01 pm
Contact:

Re: Intersecting two unrelated train tracks, stop collisions

Post by Drury »

Yeah I guess at this point your best bet for learning how to use signals would be playing OpenTTD.

It has a more noob-friendly pathfinder that provides better feedback than standing still and yelling "no path" - it will go around the track and stop at signals that are placed wrong, or reach the ends of badly placed lines and go back - if it can't find a path it will just wander aimlessly showing you your network's faults on the way.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Intersecting two unrelated train tracks, stop collisions

Post by ssilk »

Hm. I dunno, how to make that fact more obvious. More text won't bring anything than more obfuscation.

Hm... Of course more pics, especially animations... I hope with 0.10 we have the screenshoot-feature. :)
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

Iphrid
Inserter
Inserter
Posts: 25
Joined: Mon May 19, 2014 2:49 am
Contact:

Re: Intersecting two unrelated train tracks, stop collisions

Post by Iphrid »

ssilk wrote:Hm. I dunno, how to make that fact more obvious. More text won't bring anything than more obfuscation.

Hm... Of course more pics, especially animations... I hope with 0.10 we have the screenshoot-feature. :)
Put Factorio as a non-Steam game in Steam. F12 makes the screenshot. Win.
ಠ_ಠ

chainedlupine
Inserter
Inserter
Posts: 48
Joined: Mon May 19, 2014 4:35 am
Contact:

Re: Intersecting two unrelated train tracks, stop collisions

Post by chainedlupine »

Iphrid wrote: Put Factorio as a non-Steam game in Steam. F12 makes the screenshot. Win.
I do this, too. Bonus: I can upload my screenshots to Steam and show off the game to my friends!

As for tracks, really interesting discussion. As of yet I've not done multiple-train-per-track so had yet to toy around with signals. So thanks for the tips!

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Intersecting two unrelated train tracks, stop collisions

Post by ssilk »

A little late, but now when I'm on it I moved that also.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

Post Reply

Return to “Gameplay Help”