Conditional Safe Rail Crossing

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
User avatar
Szpak
Inserter
Inserter
Posts: 34
Joined: Wed Dec 13, 2017 6:25 pm
Contact:

Conditional Safe Rail Crossing

Post by Szpak »

Hail factorians!

I have quite big base with lots of trains and lots of rails.
Since i get smashed by runnig train almost daily, i've made some safe crossings across my base. ;)
train.jpg
train.jpg (491.42 KiB) Viewed 3956 times
Pedestrian gates are connected to rail signals and set to open if Green =1
Train gates are connected to same signals and open if Green =/= 1.

Works like a charm.. but..

There is a place near one of the stations where trains are stopped for a while. Like in the screenshot.
And the time they are stopped varies (Depends on demand of items [RCU in this case ;) ].
Sometimes it takes seconds, more often tens of seconds..
I should be able to cross track safely despite a train staying close to a crossing.

Any circuit magick to solve this problem?

Jap2.0
Smart Inserter
Smart Inserter
Posts: 2339
Joined: Tue Jun 20, 2017 12:02 am
Contact:

Re: Conditional Safe Rail Crossing

Post by Jap2.0 »

Can you provide a blueprint string for the crossing?
There are 10 types of people: those who get this joke and those who don't.

User avatar
Szpak
Inserter
Inserter
Posts: 34
Joined: Wed Dec 13, 2017 6:25 pm
Contact:

Re: Conditional Safe Rail Crossing

Post by Szpak »



Here U go.
Last edited by Koub on Tue Jun 05, 2018 6:54 pm, edited 1 time in total.
Reason: changed spoiler tag to bp tag :)

quyxkh
Smart Inserter
Smart Inserter
Posts: 1027
Joined: Sun May 08, 2016 9:01 am
Contact:

Re: Conditional Safe Rail Crossing

Post by quyxkh »

Close the gates if there's yellow anywhere along the way, a train that's stopped hasn't reserved anything.

Hedning1390
Fast Inserter
Fast Inserter
Posts: 231
Joined: Fri Jan 05, 2018 8:47 pm
Contact:

Re: Conditional Safe Rail Crossing

Post by Hedning1390 »

Only stop the player on a yellow signal. In all other cases stop the train instead.

User avatar
Szpak
Inserter
Inserter
Posts: 34
Joined: Wed Dec 13, 2017 6:25 pm
Contact:

Re: Conditional Safe Rail Crossing

Post by Szpak »

Thanks for responses but this yellow light trick just doesnt work like I want it to work.

I want a player gate to be always closed if there is an incoming train but to be open if train has stopped on a chain signal before a gate.

I thought, that maybe i could use something like this:
train.jpg
train.jpg (436.31 KiB) Viewed 3739 times
But now I have some issues, since my circuit knowledge is still in development ;)

1) How to reset arithmetic combinators back to 0 when the input changes to green? Cause now they are counting endlessly.
2) How to make a delay for those two deciders, because i want signal "O" only when a train has stopped, so like half a second would be OK.

Kalamel
Burner Inserter
Burner Inserter
Posts: 6
Joined: Fri Apr 13, 2018 8:13 am
Contact:

Re: Conditional Safe Rail Crossing

Post by Kalamel »

Try connect Green wire (gw) from rail signal to decider, named it D1. Connect Red wire (rw) between input and output of D1. Set D1 condition to ['RED' > 0] with output ['RED' = input].
Place gw between output of D1 to another decider (D2). Set D2 ['RED' > 30] then [O = 1]
That should work, right? Only I don't like about it is that 'RED' in D1 will continuously increase til a train pass before reset.

Post Reply

Return to “Gameplay Help”