TL;DR
Allow chests to report their total storage size via the circuit network to enable more dynamic control of inventory-based systems.What?
I propose adding a feature where chests can output their total storage size (inventory capacity) via the circuit network. This would allow players to dynamically calculate thresholds and percentages based on the total available inventory, not just the current item stack count.Currently, players can approximate this value by assuming a fixed inventory size (e.g., 48 slots for standard steel chests). However, this approach becomes unreliable with the introduction of variable inventory sizes, such as when quality-modified steel chests have increased capacity.
Here’s an example of the current workaround:
We calculate a percentage by dividing the number of items by the maximum stack size and then dividing that result by the assumed inventory size. This works only if the inventory size is constant. With dynamic inventory sizes, this calculation requires manual input or assumptions, leading to errors.
Why?
Providing access to the total inventory size would enable more dynamic and flexible automation setups in Factorio. Players could implement precise percentage-based thresholds for train stations or logistic systems without relying on fixed assumptions or manual inputs. This would:Enhance Automation: Simplify dynamic logic circuits for players using train stations or logistic systems based on inventory levels.
Reduce Errors: Avoid incorrect assumptions about inventory sizes, especially with variable-capacity chests.
Improve Scalability: Support setups that adapt to changing chest configurations or quality levels.