// Storage · RimWorld Mod
KanbanStockpileContinue
KanbanStockpileContinue Kanban stockpile: precise control over what and how much your pawns haul onto stockpiles and shelves — and now also what they haul away when limits are exceeded.
KanbanStockpileContinue
Kanban stockpile: precise control over what and how much your pawns haul onto stockpiles and shelves — and now also what they haul away when limits are exceeded. A continuation and rework of ubergarm's mod for RimWorld 1.6. original mod from ubergarmWhat it does
Adds three settings per stockpile or shelf, right in the Storage tab:- Refill threshold (%) — pawns stop hauling things in once a stack is filled above the threshold. 100% = vanilla behavior. Lets you keep stockpiles half-empty "in reserve".
- Similar stack limit — how many stacks of the same item may sit on a stockpile. For linked storage groups the limit applies to each member individually.
- Stack size — override the maximum size of an individual stack (e.g. no more than 25 instead of 75).
Excess removal (new)
Unlike the original, the mod no longer only blocks the excess — it removes it:- Pawns haul away items that already exceed the limit — whether old stock or a pawn that deposited too much.
- Cleans up "races", where two pawns haul items to a stockpile with a similar-stack limit at the same time.
- Destination is any other stockpile that accepts the item (regardless of priority). Full kanban stockpiles are skipped automatically.
- Toggled in mod settings, enabled by default.
Hopper support (new)
Nutrient paste dispenser hoppers now respect kanban limits too — both single hoppers and linked hopper groups. Cap how much raw material sits in each hopper (e.g. 10 rice instead of the vanilla 75) or keep hoppers half-empty as a buffered input. The original mod did not handle hoppers properly; this fork fixes that.Mod settings
- Remove excess from kanban stockpiles — enables excess removal.
- Reserved similar stack checking — pawns account for items someone is already hauling (cached for performance).
- Consider different material similar — for items that don't stack (stack = 1), treat them as similar by type rather than by material/quality.
- Prevent PickUpAndHaul over-hauling — avoids conflicts with PickUpAndHaul.
For modders
The mod exposes a small API (`KanbanStockpileContinue.KanbanStockpileAPI`) for cross-mod integration — events plus read/write query helpers:- OnKanbanSettingsChanged — fired when a player changes kanban settings on a stockpile (not during save load).
- OnExcessRemoved — fired when a pawn starts hauling excess items off a kanban stockpile.
- OnKanbanBlock — fired when a hauling attempt is blocked by a kanban rule.
- TryGetSettings — reads a storage owner's current kanban settings (refill threshold, similar-stack limit, stack size).
- SetSettings — writes kanban settings for a storage owner and notifies OnKanbanSettingsChanged (Multiplayer-safe).
- GetSslCapacity — reads the physical similar-stack-limit ceiling for a storage owner.
Compatibility
The mod contains explicit patches for seamless integration with:- StockpileRanking (automatic UI shifting to prevent panels from overlapping).
- PickUpAndHaul (correct inventory capacity limitation by Kanban thresholds).
Requirements
- Harmony
- RimWorld 1.6