RimWorld mod adding stack `Refill Threshold` and `Similar Stacks` limit to stockpiles and deep storage inspired by kanban logistic control systems.
Bugs and Issues
- Does not support if you "link" storage.
- Rename the storage *before* you modify storage. (Rename support stopped working in 1.5).
Check the github issues linked below for all known issues.
Features
Refill Threshold
- Just like "pause when satisfied" for a bill—but for hauling to stockpile stacks!
- Defaults to 100% which gives the same as behavior as vanilla.
Example: Set your RimFridge Important dining room stockpile to 20% and it won't trigger hauling jobs for any specific stack until there are less than or equal to 2 meals left in it (meal stack size is 10).
Similar Stacks
- No more than `Similar Stacks` stacks of a thing are allowed in the stockpile.
- Defaults to `OFF` which gives the same behavior as vanilla.
Example: Set your Medicine Cabinet Preferred hospital stockpile to a `Similar Stack Limit` of 1 and you will get no more than a single stack of any medicine and drug type now instead of clogging it up nothing but rotting herbal medicine and smoke leaf joints!
Max Stack Size
- Limit stack size for custom smaller sized stacks per stockpile (thanks Tmq5521 & laughingowl)
- Defaults to `OFF` which gives the same behavior as vanilla.
- Only lowers stack size, so combine with Ogre Stack or similar for larger stacks.
Full Example:
Setup a raw ingredients food Preferred stockpile in the kitchen next to your stove. Set the `Stack Refill Threshold` to 0% and the `Similar Stack Limit` to 1. This way you will get a variety of fresh ingredients close to the cook and will reduce spoilage because the stack is not refilled until it has been completely used up.
Compatible Mods
(untested in 1.5 hah)
- LWM's Deep Storage - Little White Mouse
- KV RimFridge - Kiame Vivacity / Vendan / et al
- Stockpile Ranking - Uuugggg (AlexTD)
- Simple Search Bar - Gguake
- Carry Capacity Fixed - Smash Phil / Dr Zhivago
- Ogre Stack - Ogre
- PickUpAndHaul - Mehni
Please comment below with results if you test this mod with your own favorite storage mods, thanks!
First Class Multiplayer Support
- Data stored using deterministic dictionary keys and all state mutations properly sync'd!
- All development done in a multiplayer context locally with arbiter to minimize potential desyncs.
Performance
- Uses `for` loops similar to vanilla style code for basic `C#` optimization
- Skips hot code paths anytime a stockpile is set to default values
- Avoid using high values of `Similar Stack Limit` in large stockpiles as it must scan every thing in every cell
- Turn off `Reserved Similar Stockpile Limiting` in Settings if you have an older CPU or large colony with many reserved hauling jobs to scan
Credits
Thanks to bananasss00 for contributing code from their github fork that I was unable to directly merge.
Thanks to Tmq5521 for the Maximum Stack Size feature and also laughingowl.
Original idea and inspiration came from my failed attempt to multiplayer patch Satisfied Storage.
- SatisfiedStorage - hoop
- Hauling Hysteresis - Vendan
- Rimworld Search Agency - Killface
Inspiration for the `Similar Stack Limit` feature came directly from the great Variety Matters Stockpile.
- VarietyMattersStockpile - Cozar
I got most of the GUI hooks and all the Transpiler stuff from a great and beautiful mod: Stockpile Ranking.
- Stockpile Ranking - Uuugggg aka AlexTD
This mod relies heavily on Harmony for ease of patching.
- Harmony - pardeike
I hang out occasionally with some great folks over at the Multiplayer Mod Discord[discord.gg]
Finally, thanks to bananasss00 for contributing code from their github fork that I was unable to directly merge.
Mod Packs
If you play Minecraft check out my modpacks
- Rotten Economy[www.curseforge.com] - Highly integrated urban base building with custom resource generation mechanics!
- Sky Magic Islands[www.curseforge.com] - Tons of magic mods and steam power with re-balanced ProjectE for base resource generation
References
- Steam Workshop KanbanStockpile
- https://github.com/ubergarm/RimWorld-KanbanStockpile
- https://github.com/ubergarm/monodevelop
- Kanban[en.wikipedia.org]
Keywords
#rimworld #rimworld 1.5 #rimworld mod #rimworld mods #rimworld mods 1.5
#kanban #kanbanstockpile #kanban stockpile #kanbanstockpiles #storage settings
#kanban stockpiles #kanbanstorage #kanban storage #SatisfiedStorage
#VarietyMattersStockpile #rimworld search agency #hauling hysteresis
#stockpile hyesteresis #rimworld stockpile #rimworld storage settings
#transport kanban system #kanban logistics control #stockpile dupe limit