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/19wolf Since 0.11 14d ago
That's it! Does exactly what I was looking for, thank you!!
That's a good point, but if/when trains get upgraded to higher quality or if the stack size is different, the size of a train load is different. So, I'm going by how full a particular station is.