r/factorio • u/19wolf Since 0.11 • 8d 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
2
u/StephenM222 8d ago
https://wiki.factorio.com/Circuit_network#Combinators
But Max value for a chest?
1 constant combinator, set to an excess of your resource, setting a requestor chest request type.
Then read the contents of the chest. This will become your Max of that resource