Added a new item "Smart Shelf", using the vanilla 1×1 shelf texture with a capacity of 10 stacks.
Added a new item "Large Smart Shelf", using the vanilla 1×2 shelf texture with a capacity of 30stacks.
-- Features --
-Automatically restocks and stores a set quantity of raw materials. Products can be stored up to a specified amount before being sent out, preventing colonists from making two trips for a single task.
-Supports importing recipes directly from workbenches without manual setup.
-Only items with configured recipes will be stored or retrieved, ignoring vanilla filtering logic.
-When raw materials are being restocked, there is an issue where unfinished products that have not reached the delivery line may still be sent out. This is not a major problem (making extra trips for delivery during restocking can actually save working time). However, fixing it would require patching both the input and output lines, which carries considerable risk. Therefore, this issue will remain unresolved for the time being.
--Compatibility --
-Vanilla compatible
-Mostly compatible with ASF Adaptive Storage Framework. However, since both mods apply Harmony patches to the StoreUtility method, the following issues may occur in extreme cases:
Items occasionally fail to go into smart shelves
Items occasionally go directly into other storage
Repeated hauling attempts under special circumstances
An ASF-compatible version is under development. If you encounter any compatibility issues with ASF, please be sure to report them to me.
-- Language Support --
Simplified Chinese
Traditional Chinese
English
-- What Problem Does This Mod Solve? --
To prevent colonists from making unnecessary trips, most players place shelves next to workbenches to store raw materials and finished products. However, the vanilla priority system prevents a single shelf from storing both raw materials and products at the same time:
-Setting a high priority will result in the shelf being filled with raw materials, sometimes even a single type of material occupying the entire shelf, while finished products remain stuck.
-Lowering the priority will cause raw materials to be moved away as well.
Even using two separate shelves (one for materials, one for products) still requires manually adjusting priorities to deliver goods, and two shelves take up more space.
This mod solves this problem. A single shelf can store both raw materials and finished products. You can also manually set quantities and enforce only one stack per item, preventing your warehouse from being emptied during restocking when using stack mods.
The restocking algorithm uses an AI-optimized hysteresis logic. Similar to other smart restocking mods derived from the original hysteresis algorithm, the optimized restocking logic reduces performance overhead caused by the vanilla tick-based polling of hauling states.
This mod is currently a test version. Once stable, I will develop it into a full smart storage system to support containers from other mods, especially “fridge ”。
PLZ report errors and bugs.