RimWorld

RimWorld

331 ratings
KanbanStockpile
3
8
6
3
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.2, 1.3, 1.4, 1.5
File Size
Posted
Updated
1.610 MB
14 Nov, 2020 @ 10:17am
22 Apr, 2024 @ 2:17pm
14 Change Notes ( view )

Subscribe to download
KanbanStockpile

In 4 collections by ubergarm
Happy Accidents
82 items
Multiplayer Kitchen Sink
236 items
Multiplayer Kitchen Sink Reloaded
151 items
MultiNomaly
52 items
Description
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)

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.

Inspiration for the `Similar Stack Limit` feature came directly from the great Variety Matters Stockpile.

I got most of the GUI hooks and all the Transpiler stuff from a great and beautiful mod: Stockpile Ranking.

This mod relies heavily on Harmony for ease of patching.

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

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
Popular Discussions View All (6)
6
7 Oct, 2023 @ 6:02pm
Bug: Stack refill threshold
Hetari
2
15 Sep, 2024 @ 12:07pm
Bug: Stack refill threshold setting for different groups of storage are linked together
Alison
7
6 Nov, 2022 @ 9:37am
Suggestion: Max stack size.
Draconicrose
206 Comments
LZIM 12 Jul @ 6:18am 
o7
Apraxas 5 Jul @ 2:52am 
@ubergarm Not rushing you or anything like that but I would like to know if this mod will be updated in 1.6...
ludi1989 7 Jun @ 8:43am 
Śetting stockpile limit on ONE storage container makes it whole map containers also stack -limited
ScoSteSal 12 Mar @ 3:18pm 
I'm seeing the same behavior as @tenthousandcranes in the case of base-game Hopper's (for a nutrient paste dispenser). I wanted pawns to stop refilling the hopper from 69 to 75 every time the NPD generated a meal, but instead (if I set refill threshold to 50%) pawns will only refill to 30-40 and then ignore it. That completely ruins the refill threshold behavior (or at least its value for stopping wasteful/trivial hauling jobs).
tenthousandcranes 13 Jan @ 12:50am 
Refill threshold doesn't seem to work for me, pawns load just enough items to cover the threshold and then completely ignore the zone. Tried on latest 1.5 with all DLCs and no mods beside KanbanStorage and Harmony. Create a new colony, put a single-cell storage zone for wood, set stack size to 100 and refill threshold to 30%, expected behavior - storage is filled to 100ish wood, actual behavior - storage is filled to around 50 wood and then ignored completely.
llunak 20 Dec, 2024 @ 9:37pm 
@ubergarm: Where is the latest source for this? I got annoyed enough by the 1.5-related bugs that I decided to fix them myself, but the linked github repo has not been updated for 2 years, and so it does not work with 1.5 at all.
Halfelfaedyn 14 Dec, 2024 @ 12:49am 
I didn't know I needed this in my life so bad. I was just saying I wish I could 'X' and here it is!
\n 2 Dec, 2024 @ 11:29am 
is it possible to link a stockpile to a workbench (or even multiple) so that it can be auto filled with the recipe inputs
Hellsvien 23 Nov, 2024 @ 5:11am 
Can someone explain how this is meant to work?

I'm telling them 10% restock, similar stacks OFF or 8 does nothing, and quantity is 10.

"No available piles to haul to" even though it has 3.

While the other one has 3000 meat.

I would like some help on this, please. :lunar2019piginablanket:
R4nD0mI3z 30 Oct, 2024 @ 11:04pm 
Turned out mod works ok, just modded fridges I use are treated as single space so 2 tile fridge stores 20 instead of 60. Still get the feeling any storage needs to be filled before threshold is set for it to act as expected but maybe this is just some weird incompatibility with how not full stacks are hauled (hauling >2 food to empty spot with 20% threshold seem to stop hauling the rest to fill it up completely to stack of 10)