Combinators: Keep a Gete ope for some time after passing it

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Quax
Fast Inserter
Fast Inserter
Posts: 104
Joined: Mon Mar 14, 2016 7:57 am
Contact:

Combinators: Keep a Gete ope for some time after passing it

Post by Quax »

Hi all, I'm currently stuck at creating a safe railroad crossing. Recently, I placed some gate elements and set the signal to turn red once the gate is open. However, since the gate closes behind, the signal turns green again when you are still crossing the rails. Which bears some risk of getting steamrolled by a train.

I therefore want to keep the signal red for some seconds after the gate closes again. I already found out how to set up the timer that keeps sending the output signal to the rail signal (via looping back the output to the input). However I cannot figure out how to stop the timer after the first cycle. All I get so far is a decider combinator that runs through endless circles (from 1 to the limit set in the decider).

Any help is much appreciated :-)
User avatar
BraveCaperCat
Filter Inserter
Filter Inserter
Posts: 453
Joined: Mon Jan 15, 2024 10:10 pm
Contact:

Re: Combinators: Keep a Gete ope for some time after passing it

Post by BraveCaperCat »

Actually, A better solution might be to just only turn the signal green when both the entrance and exit gates are closed and have the signal be red otherwise.
Or I'm just misunderstanding what you're trying to do and it won't work for whatever reason.
Creator of multiple mods, including Quality Assurance - My most popular one.
Go check them out with the first and second links!
I'll probably be wanting or giving help with modding most of the time I spend here on the forum.
Quax
Fast Inserter
Fast Inserter
Posts: 104
Joined: Mon Mar 14, 2016 7:57 am
Contact:

Re: Combinators: Keep a Gete ope for some time after passing it

Post by Quax »

Ok, so here's the problem. As you can see, the gate has already closed, and the signal would be green again, but I'm right on the tracks ... so I want the signal to stay red long enough for me to cross the whole track. I know there would be an easy solution to this problem by covering the whole crossing with gates .. but I would like to figure out a smart combinator-based solution, as I'm now starting to dwell into the combinator part of Factorio :-)

Image
User avatar
BraveCaperCat
Filter Inserter
Filter Inserter
Posts: 453
Joined: Mon Jan 15, 2024 10:10 pm
Contact:

Re: Combinators: Keep a Gete ope for some time after passing it

Post by BraveCaperCat »

Quax wrote: Mon Sep 08, 2025 7:20 pm Ok, so here's the problem. As you can see, the gate has already closed, and the signal would be green again, but I'm right on the tracks ... so I want the signal to stay red long enough for me to cross the whole track. I know there would be an easy solution to this problem by covering the whole crossing with gates .. but I would like to figure out a smart combinator-based solution, as I'm now starting to dwell into the combinator part of Factorio :-)

Image
I see... I guess it's a bit more complicated then.
I'm not sure how it would translate into combinators, but you could check for one gate opening - when that happens, you'd turn the signal to red, then wait for the other gate to open and then close again. Once that happens, you'd turn the signal back to green.
Creator of multiple mods, including Quality Assurance - My most popular one.
Go check them out with the first and second links!
I'll probably be wanting or giving help with modding most of the time I spend here on the forum.
Quax
Fast Inserter
Fast Inserter
Posts: 104
Joined: Mon Mar 14, 2016 7:57 am
Contact:

Re: Combinators: Keep a Gete ope for some time after passing it

Post by Quax »

I understand the underlying idea, but how am I supposed to tell the signal (or any combinator processing network signals) to wait for something?
Post Reply

Return to “Gameplay Help”