Version: 2.0.32
Mods enabled: space age, elevated rails, quality
Game mode: freeplay
When within the decider combinator an equality check is performed on items with quality, any item with the correct amount will pass, even when the item type is incorrect, as long as the item count is equal.
See image for where I encountered the issue:
Is this intended? I do not currently know how to filter signals for specific items with a given quality.
Decider combinator not working for equality check on signal with quality for "Each" comparator
-
- Manual Inserter
- Posts: 2
- Joined: Sat Feb 15, 2025 1:28 am
- Contact:
Re: [2.0.32] Decider combinator not working for equality check on signal with quality for "Each" comparator
Yes. The conditions using Each don't select the signal chosen on the right hand side, but all signals with the same value. In the screenshot that's all signals with the value 2.
You can mouse over the signals displayed near the bottom to see how they're evaluated.
It depends on what you want to achieve, but generally I don't think there's a one combinator solution. Since a specific item with a specific quality is always a specific signal, Each may be the wrong tool for the job.I do not currently know how to filter signals for specific items with a given quality.
Assuming your goal is "output the amount of each quality of carbon asteroids, but only output the normal ones when there are no higher quality ones", which is the intent I read from your screenshot, you can use for example two decider combinators in parallel:
The first one set to "if 0 = 0, then output uncommon carbon asteroid input count and rare carbon asteroid input count" (the condition doesn't matter as long as it's always true, it's just to filter out these two signals), the second one set to "if uncommon carbon asteroid = 0 and rare carbon asteroid = 0, then output normal carbon asteroid input count".
There's also the "quality filter" mode of the selector combinator, but it doesn't care for specific items so you'll have to filter those separately.
-
- Manual Inserter
- Posts: 2
- Joined: Sat Feb 15, 2025 1:28 am
- Contact:
Re: [2.0.32] Decider combinator not working for equality check on signal with quality for "Each" comparator
Thank you for clearing that up!
Thank you, that is exactly what I was looking for! I somehow assumed that the Decider would use the total input number and output them for all outputs, this is really neat.The first one set to "if 0 = 0, then output uncommon carbon asteroid input count and rare carbon asteroid input count" (the condition doesn't matter as long as it's always true, it's just to filter out these two signals), the second one set to "if uncommon carbon asteroid = 0 and rare carbon asteroid = 0, then output normal carbon asteroid input count".