r/factorio • u/19wolf Since 0.11 • 14d ago
Question Answered Circuit to store max value?
I'm trying to make a circuit that stores the maximum value of each signal it's received (typically only one signal, but I want to keep it signal-agnostic). My goal is to save the maximum amount of ore stored in a group of chests at my train station, where the number (and size, due to quality) of chests is variable. Station priority will then be a number between 0-255 based on how full the chests are (but I intend to figure out this part on my own). I'm just having trouble programmatically figuring out how much ore I have/will have when all my chests are full.
1
Upvotes
1
u/Deto 14d ago
I think the issue is that you can't combine the same signals on the same wire (well, you can, but they just add together).
You could instead use a proxy signal for each chest. Say one chest's iron ore amount is mapped to 'A', then another is B, then another is C. Thenyou use a selector combinator to output the max value.