Page 1 of 1

[2.0.15] Decider combinator [each = 'carbonic asteroid chunk'] clause matches inserter signal

Posted: Fri Nov 15, 2024 9:01 pm
by Erdgeist
I wired up a decider combinator to eject surplus items from my space platform. It should pass on all input signals from the hub that satisfy two conditions. The first condition is [each = item] and the second condition is [item > some_limit]. I connected a few of these AND clauses by OR conditions to account for different items. This works perfectly fine for carbon, iron, ice and metallic asteroid chunks but fails for carbonic asteroid chunk. For some reason the AND clause for carbonic asteroid chunks matches both long and fast inserters but nothing else i have in the hub. I attached a screenshot that illustrates the problem. I also added a savegame where I used /game.tick_paused and /editor command while the potential bug occured.

Re: [2.0.15] Decider combinator [each = 'carbonic asteroid chunk'] clause matches inserter signal

Posted: Fri Nov 15, 2024 9:57 pm
by LCStark
Your condition doesn't compare if "each == item", it compares if "value of each == value of item". It matches the inserters because its value is 2 and the inserters values are also 2.

Re: [2.0.15] Decider combinator [each = 'carbonic asteroid chunk'] clause matches inserter signal

Posted: Mon Nov 18, 2024 2:00 am
by boskid
I am not seeing any bugs here. Decider combinator does exactly what it was asked to do: since carbonic asteroid chunk is positive, all signals that have equal value as carbonic asteroid chunk are able to pass conditions.