[2.0.37] Decider combinator aggregates output signal incorrectly
Posted: Sun Mar 02, 2025 9:14 pm
Setup: I am passing a number of parallel signals P (indexed from 0), to be compared against a set of items numbered 1 to n (indexed from 1).
To account for the off-by-one error, I include P = 1 in my item index combinator (red signal). So, an input of P = 1 correctly outputs the item with 2 count, the advanced circuit:
When P = 0, it happens to also output P = 1:
And I thought, oh this is so clever, with the new decider combinator settings I can add an extra P = -1 signal, so the output will never be a positive P. However, things did not add up the way that I would expect:
Here I would have expected the P = 1 and P = -1 signals to cancel and no P signal to be output
Here I would have expected the output to be P = 2. I don't even know how P = 3 is happening.
Thank you - I totally understand if this is Minor/Not a Bug/Not Going to Fix. I was simply surprised by the result and thought it might be unintended behavior.
To account for the off-by-one error, I include P = 1 in my item index combinator (red signal). So, an input of P = 1 correctly outputs the item with 2 count, the advanced circuit:
When P = 0, it happens to also output P = 1:
And I thought, oh this is so clever, with the new decider combinator settings I can add an extra P = -1 signal, so the output will never be a positive P. However, things did not add up the way that I would expect:
Here I would have expected the P = 1 and P = -1 signals to cancel and no P signal to be output
Here I would have expected the output to be P = 2. I don't even know how P = 3 is happening.
Thank you - I totally understand if this is Minor/Not a Bug/Not Going to Fix. I was simply surprised by the result and thought it might be unintended behavior.