Comparing red and green network signals with deciders

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
JasonC
Filter Inserter
Filter Inserter
Posts: 451
Joined: Tue Mar 22, 2016 3:05 am
Contact:

Comparing red and green network signals with deciders

Post by JasonC »

Is it possible to use a decider to compare signals on the red network with corresponding signals on the green one?

What I really want to do is hook a bunch of resource counts (tanks, smart chests) up to one network, emit threshold values from a constant combinator on the other network, then compare them all with a single combinator to see if each resource count is less than its corresponding threshold constant.

If I can't compare signals like this is there some other way to simplify this?

My ultimate goal is to have threshold values for many resources that are tweakable all in one convenient place.
Took a break from 0.12.29 to 0.17.79, and then to ... oh god now it's 1.something. I never know what's happening.
JasonC
Filter Inserter
Filter Inserter
Posts: 451
Joined: Tue Mar 22, 2016 3:05 am
Contact:

Re: Comparing red and green network signals with deciders

Post by JasonC »

I discovered I can hack it by emitting the negatives of the threshold values from a constant combinator then running both inputs to a decider and comparing each < 0, because the deciders sum the inputs of the red and green networks. Is that the typical strategy?
Took a break from 0.12.29 to 0.17.79, and then to ... oh god now it's 1.something. I never know what's happening.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Comparing red and green network signals with deciders

Post by DaveMcW »

Post Reply

Return to “Gameplay Help”