Page 1 of 1

Why is this decider combinator outputting 2 of the same signal?

Posted: Thu Aug 21, 2025 8:10 pm
by Dovenchiko
I'm trying to make S/R latch for my trains so that multiple trains don't try to fill the same station.
Here is the combinator in question. I have it set to output a constant 1 H signal when true and it does when there is a train present C=1 but when C=0, it outputs H=2. All my other combinators output -1 Stone (One to input to negate, other loops back to circuit like that -1 stone seen below) so I don't know what is going on here.
08-21-2025, 14-02-02.png
08-21-2025, 14-02-02.png (1.37 MiB) Viewed 188 times
I'm using the latest factorio version running on a dedicated server.

Re: Why is this decider combinator outputting 2 of the same signal?

Posted: Thu Aug 21, 2025 8:26 pm
by jdrexler75
Because the condition is true for both input signals, it generates H=1 for each. Did you forget an "each" condition in the second branch? How did you set your other deciders?

Re: Why is this decider combinator outputting 2 of the same signal?

Posted: Thu Aug 21, 2025 11:11 pm
by Nidan
You have Each in the conditions, that puts the combinator into what I like to call "vector mode". In the pictured decider the whole set of conditions is evaluated for each signal present on the green wire. Since the lower part of the condition always passes, you get H=1 for each signal on the green wire.
If you never want to output a H larger than one, even when given e.g. Stone=-1 Iron=-1 C=1, you could replace Each with Anything.

Re: Why is this decider combinator outputting 2 of the same signal?

Posted: Fri Aug 22, 2025 8:16 am
by Dovenchiko
jdrexler75 wrote: Thu Aug 21, 2025 8:26 pm Because the condition is true for both input signals, it generates H=1 for each. Did you forget an "each" condition in the second branch? How did you set your other deciders?
Sorry for the delay sent this off before I went to make dinner

Here is the setup. Combinator on the left is the one on the original screenshot
08-22-2025, 01-55-10.png
08-22-2025, 01-55-10.png (1.87 MiB) Viewed 98 times
Here is the setup for the selector combinator
08-22-2025, 01-58-00.png
08-22-2025, 01-58-00.png (1.18 MiB) Viewed 98 times
The arithmetic combinator is a diode, anything * 1 = anything which I don't technically need right now but I'm holding onto in case I need it.

The group on the bottom is a clock that is set for the number of stations. The lone constant combinator is my manual simulation of the stops that request resources. I feel that I'm close but cant figure out the last little snag that C gets set by the station while the train is leaving and when it is coming making it difficult for the selection to work.

Re: Why is this decider combinator outputting 2 of the same signal?

Posted: Fri Aug 22, 2025 8:25 am
by Dovenchiko
Nidan wrote: Thu Aug 21, 2025 11:11 pm You have Each in the conditions, that puts the combinator into what I like to call "vector mode". In the pictured decider the whole set of conditions is evaluated for each signal present on the green wire. Since the lower part of the condition always passes, you get H=1 for each signal on the green wire.
If you never want to output a H larger than one, even when given e.g. Stone=-1 Iron=-1 C=1, you could replace Each with Anything.
Anything worked for making H not go above 1 thank you. This "vector mode" is an interesting behavior and not one that I would have expected. Now time to see if I can figure out this latch.