RimWorld

RimWorld

303 ratings
KanbanStockpile
3
8
6
3
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 @ 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.

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.

Bugs and Issues
Check the github issues linked below for known issues.

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)
1
7 Jul @ 11:09pm
Bug: Stack refill threshold setting for different groups of storage are linked together
Alison
6
7 Oct, 2023 @ 6:02pm
Bug: Stack refill threshold
Hetari
7
6 Nov, 2022 @ 9:37am
Suggestion: Max stack size.
Draconicrose
191 Comments
Bekky 14 hours ago 
Looks like something weird happens with DWM deep storage, when kanban settings are applied to a storage with linked settings, they'll copy to every storage on the map it seems
llunak 25 Aug @ 10:20pm 
Renaming a shelf breaks the functionality of this mod.

@ubergarm: I've posted a github issue with the exact steps to reproduce.
KampfTomate007 24 Aug @ 10:16am 
@Windows XP:
I haven't messed with the max stack size feature yet, but as far as my mod list goes i found that the similar stack limiter feature does work, so if you set it to 1 on your herb shelves then instead of hauling 3x 25 herbs per shelf they would "only" haul 1x 25 herbs per shelf, 50 total for 2 shelves.
Sure it still isn't optimal, but considering how many herbal medicine gets used after an attack you might aswell haul 25 herbs once rather than 10 2.5 times.

Maybe that works out good enough for you, or atleast lessens the issue.
Windows XP 17 Aug @ 2:28pm 
This was the only working stockpile stack limiter mod. Now it doesn't work as well in 1.5. My pawns keep overshooting the stockpile limits. Once the number of items in that stack is greater than the stockpile limit they'll stock restocking it but this just isn't acceptable when dealing with scarce high value items.

I'm sure each rimworld version takes a really particular cocktail of harmony patches to get a feature like this to work but not being able to limit stacks just makes managing scarce items way too difficult. It should be a feature of vanilla ffs.

My use case is medicine is hard to come by but I still harvest organs. I prefer to keep a stack of 20 herbal medicine in my hospital and a stack of 10 herbal medicine in the prison so there's medicine everywhere at all times. Getting 150 herbal medicine so both stacks stay full is rarely an achievable goal. Micromanaging something like this all the time is too much.
A.Nimo 8 Aug @ 6:21am 
I love this mod, but occasionally it's buggy and I dunno why.
It goes well most of the time, but when I try to make a fire trap room, where the stack limit is 1.
So every place of the stockpile has 1 wood.
But occasionally the pawns dump 2 of even a full stack of wood.
Which I can't seem to be able to correct.
BBBBilly 27 Jun @ 3:50am 
Hello, there is a small issue. "Stack Size" does not have a translation interface set up. I hope it can be resolved to make this great mod go global
BBBBilly 26 Jun @ 10:12am 
You're so great, that's what I'm looking for. It supports multiplayer.
pureMJ 22 Jun @ 10:26pm 
Kanban Storage is great if you want to set stack limit for different things.

However, if you are simply looking for a true hauling hysteresis mod, you might want to try this new mod:
https://steamproxy.net/sharedfiles/filedetails/?id=3273463237
ubergarm  [author] 21 Jun @ 11:33am 
@Fun Police

Aww thaanks! I see your comments around on some other mods, u are making this a fun community! Cheers!
Fun Police 10 Jun @ 8:45am 
i still give u award