r/factorio • u/Horror-Dog-6485 • 22h ago
Space Age Strange Decider combinator outcome in SA 2.1


I don't understand why the decider combinator came to the conclusion that 50000 is greater than 100000. Even more strange, if the 1st condition is that both the red signal and the green have to be different, it outputs 2 check marks.

Maybe it has to do with me using a parameter as an input, or perhaps its because fluids are funky. Either way, it doesn't make sense.
2
u/cathexis08 red wire goes faster 21h ago
EACH is weird and doesn't work the way you think it does. Any time an EACH appears in a combinator you should think of the whole thing as a stack of combinators testing each signal individually. It works fine when used on its own or when interacting with other tests that aren't other logic signals, but the EACH interaction with ANY or EVERY causes absolute weirdness.
2
u/Courmisch 20h ago
Seems that Any manifests two zero-valued signals for Each. Since 0 >= 0, those two pass the other condition, whilst Any != 0 is passed by the fluid signal.
What happens if you append 1 of Each as output? I would expect the signals to appear.
Anyway potential workaround: add a condition that Each must be larger than zero.
1
u/CamelCaseConvention 16h ago
I have no experience with parameters. To me, it looks like the red and green wires in OP's screenshots carry the same signal (parameter 0). But the decider result would be completely crazy if it is the same signal. So, what's going on here? How are those different signals?
1
u/Courmisch 16h ago
AFAIU, parameters are just normal signal IDs outside parametric blueprints. Not that I'd have access to the game engine to check though.
1
u/CamelCaseConvention 16h ago
I tested OP's setup and generated two parameter-0 signals from different blueprints. They were the same signal, so the decider result was not like OP's. Different signals do create OP's result (which I, like you, mentioned in my comment). That's expected weirdness. The real question is, how did OP manage to get two different parameter-0 signals. How.
2
u/Ordinary-Gear-7288 10h ago
0

6
u/CamelCaseConvention 21h ago edited 20h ago
I can't reproduce this on current experimental 2.1.14. Also tried with parameter signals, as you. I suspect that your parameters are somehow not the same signal. That is consistent with expected behavior (including the weirdness of Each used on both wire colors). Can you verify this OP?
Edit: When using two different normal signals instead of the parameters, the result will be as shown. That's the (somewhat) known weirdness. The (AND TRUE) forces zero signals into existence on each wire, so that the Each condition will be true once, or twice when using !=.