Railway Safety Crossing

Smart setups of railway stations, intelligent routing, solutions to complex train-routing problems.
Please provide - only if it makes sense of course - a blueprint of your creation.
SuicideJunkie
Fast Inserter
Fast Inserter
Posts: 126
Joined: Wed Aug 23, 2017 10:17 pm
Contact:

Railway Safety Crossing

Post by SuicideJunkie »

I wasn't sure if this should be under combinators or railways, but I feel the railway connection is stronger.

For those who have already gotten the achievement and are tired of being pasted by your trains:
A safety gate with flashing red lights.
Ding! Ding! Ding! Ding!
Ding! Ding! Ding! Ding!
SafetyCrossingA.gif (272.46 KiB) Viewed 16050 times
The outer gates register your intent to cross the tracks, and will close a signal further up the track to prevent a train from mashing you into paste if you dawdle.
In the event of a train being already past the point of no return, the inner gates will close and prevent you from stepping out in front of it.

If you step out at exactly the wrong time, the inner gates will prevent you from entering for a second or two, but once it knows the oncoming train is able to stop in time, they will open for you.
This is perfectly safe?!
This is perfectly safe?!
SafetyCrossingB.gif (206.38 KiB) Viewed 16050 times
Blueprint String
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Railway Safety Crossing

Post by eradicator »

I've had similar constructs in an older base. The most difficult thing to get right was always to not trap the player on the rails when the train comes :P. My crossings default to open gates btw, and only close when the train comes, as i was annoyed by constantly ramming into the gate when walking too fast.

Two versions of the one-lane crossing:
Compact
And a larger one for four lanes, which has lamp indicator about which track the train is coming from (note that the sceenshot is only for demonstration, you couldn't actually get to the middle of the track with red lights on):
Multi
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
mrvn
Smart Inserter
Smart Inserter
Posts: 5969
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: Railway Safety Crossing

Post by mrvn »

Now make it save for cars.

Main problem is that with a car you will run into the closed gate and cause damage. There isn't enough time to slow down when you see the gate closed or it might close at the last second.

I envision something with the outer gates further out and red (blue) belts going away from the inner gate and only active when the gate is closed. So when the gate is closed the belts will slow you way down and prevent you from hitting the gate.

PS: are the inner gates fast enough so a person with exosceletons can't run past the gates while the inner gates are closing and get hit by a train?
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Railway Safety Crossing

Post by eradicator »

For unmodded exoskeletons gates should be fast enough. I tested that alot. For modded ones or cars i see no way of making it completely save once you are "too fast". Blue belts barely slow down cars (just tested) so that's not going to work either. Cars are also not detected until they're about ~8ish tiles away from a gate regardless of speed, so the only way to have "early warning" signals for the car driver would be on a straight track where you can detect the train very early. So the car driver would have to stop when they see the yellow light despite the gates still being open. Just like IRL.

Why are you driving through a train crossing at full speed anyway, did you not see the STOP signs ;P?
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
SuicideJunkie
Fast Inserter
Fast Inserter
Posts: 126
Joined: Wed Aug 23, 2017 10:17 pm
Contact:

Re: Railway Safety Crossing

Post by SuicideJunkie »

eradicator wrote:I've had similar constructs in an older base. The most difficult thing to get right was always to not trap the player on the rails when the train comes :P. My crossings default to open gates btw, and only close when the train comes, as i was annoyed by constantly ramming into the gate when walking too fast.
This crossing has open inner gates by default. They only close when a train is approaching, but close on yellow/amber. The outer gates are read-only, so they are never an obstacle.

When the outer gates are active, trains are instructed to halt. If they can't halt in time, the inner gates will already be closed so you can't get on the tracks.
This is overly sensitive to the trains, so sometimes a train that has locked the gate will actually be able to stop, and the inner gates will open for you after it does.

I'm sure you could break the system by placing other signals too close to the gate, but you shouldn't do that.
mrvn
Smart Inserter
Smart Inserter
Posts: 5969
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: Railway Safety Crossing

Post by mrvn »

That's why the outer gate needs to be further away so it detects the car when it is still "breaking-distance" away from the inner gate. Once the car is too near the tracks to stop the inner gate must not close.
DunningsWarehouse
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Feb 14, 2018 10:37 am
Contact:

Re: Railway Safety Crossing

Post by DunningsWarehouse »

Your name seems oddly inappropriate in this instance...
eldzee
Manual Inserter
Manual Inserter
Posts: 1
Joined: Tue Mar 13, 2018 3:49 pm
Contact:

Re: Railway Safety Crossing

Post by eldzee »

First attempt at making crossing, which also blocks you from entering the train track itself.
The track is bi-directional capable
factorio-rail-crossing.gif
factorio-rail-crossing.gif (2.27 MiB) Viewed 14574 times

Code: Select all

0eNrlWtFu2jAU/Rc/hyq2QwJI28se+t4+ThMK4FJLwYkcpx2q8gH7i33bvmR2aCEYO7EhHRJ7qRoSrn3O8fW9PuENLLKKFJwyAWZvgC5zVoLZ9zdQ0jVLM/WZ2BYEzAAVZAMCwNKNuuIpzUAdAMpW5CeYwTro/cqKLOmK8NEy3ywoS0XOWwFQ/SMAhAkqKNlNoLnYzlm1WRAuR9jHKTdplo2ydFPI2EVeyq/kTI0qw4yiu3EAtvIfdDeW0SUcwfNsviDP6QuVI8rHlpQvKyrm8t5q/90nyksxP0HwQrmo5CeHwZsnRuSF8K14pmwNdqOUIlUMhupiU6S8gTcDf379Vg9UJZHDZTmX0ASvyO47jCzV8KUaD6o/a04Ia4Onq4aZulb0aoSgIy1G71PvYAQ2jKwo3w3bROjkJ8vltD8oeUqzkgT7m5ykq/29DkicrHRAWElthAotUPGBfpEzMnqVC8CAFB8j7cKWF4TN16kgu8nruAgr1fMa5ksWzJZkWf7avVi+gtqdRdTiSV0n2jWaWMiMPMlEPmQaV0mbTZ+VP9UhJRZI4z2kZhanYNAxmHYOGMLFfeGgV7jEifDwf1q8WFMW6h9gbJF60qdN6KXN1E8bNJA2x7cukeZxQFUgPMzJtMVgZN25I11QdBwK9gpuK3MwdCr88ObqPrSlAIRdLdUJM9hS/WMzS+8hDyyVZ9B0r8CXRMXwXspHqzcAeSWKyj8hiq1EUDExf+L5Zk6ZjPFRgbxEQN0pASMpUgCQJaOmNgnRORIixwZuOAm7NhZ/ae4HlWZ6YN4sHezZgsY2cbB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