Decider combinator not working for equality check on signal with quality for "Each" comparator

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
rolf_kopter
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Feb 15, 2025 1:28 am
Contact:

Decider combinator not working for equality check on signal with quality for "Each" comparator

Post by rolf_kopter »

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:

Issue.png
Issue.png (155.58 KiB) Viewed 286 times
Is this intended? I do not currently know how to filter signals for specific items with a given quality.
Nidan
Filter Inserter
Filter Inserter
Posts: 302
Joined: Sat Nov 21, 2015 1:40 am
Contact:

Re: [2.0.32] Decider combinator not working for equality check on signal with quality for "Each" comparator

Post by Nidan »

rolf_kopter wrote: Sat Feb 15, 2025 1:38 am Is this intended?
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.
I do not currently know how to filter signals for specific items with a given quality.
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.
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.
rolf_kopter
Manual Inserter
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

Post by rolf_kopter »

Thank you for clearing that up!
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".
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.
Post Reply

Return to “Gameplay Help”