RimWorld

RimWorld

Variety Matters Stockpile
70 Comments
Icicle 6 Apr, 2022 @ 2:56pm 
Something about the duplicate limit isnt working well with deep storage anymore. It tires to fill more than one stack. A similar problem now is also effecting Kanban stockpile. So either 1.3 or changes in LVMs Deep Storage messed that up.
Mlie 26 Aug, 2021 @ 1:45pm 
Tactical Beaver 19 Aug, 2021 @ 6:01am 
since new game update the buttons for limiting stack sizes are now in the "clear / allow all" buttons and you cant really us this. Any fix for that ?
Reianor 3 Aug, 2021 @ 8:00am 
Tested this and PUaH on some wood and steel on a new start.
Yup there is some weird behaviour there. But it's less like they are broken and more like they are not interacting well.
I set up a stockpile to a stack limit of 1 steal each. You'd think a pawn would fill it up in one go, but no, despite having a full inventory of steal they go looking for more steal to grab after placing down one. But if I don't limit stacks PUaH seems to work as intended.

Whas that what you meant or am I missing something?
Reianor 3 Aug, 2021 @ 7:29am 
@ ec#2718 on Discord
Broken how and in which way?

@Draconicrose
Do you have the Harmony for penguins?
Not a linux user, so I got no details for you, but IIRC there was a mod that fixed some issues between linux and harmony. Maybe those are related?
Timou 2 Aug, 2021 @ 4:35am 
Update please 1.3
胃痛狂草哈基肉 26 Jul, 2021 @ 11:00pm 
1.3 plz!!
XyPeZ 24 Jul, 2021 @ 5:45am 
Update for 1.3 Pleasse :D
qux 12 Jul, 2021 @ 9:37am 
stack size is bugged
Kopp 1 Jun, 2021 @ 4:33am 
Hello Cozar,
seems like there is a bug which is easy to reproduce.

Make a 10x10 Stockpile. Settings: Duplicates 1. Raw food only. Stacksize 40.
Place a butcher table in the middle of the stockpile.
Create a butcher recipe: Butcher creature forever. Drop on floor.

Now let a colonist butcher some thrumbos. (Or any other animal)
The resources of the first one should be dropped just fine but afterwards there may be a stack overflow for a hauler job.
The drop of the resources of the second thrumbo creates some red errors and not all resources are getting dropped.
If you want to go back to the main menu afterwards the game freezes.

Thanks for the mod and your time! Tell me if you need some further testings.
https://gist.github.com/HugsLibRecordKeeper/1545275c013b988b4c8c4fd38d00da70
ELLIOTTCABLE on Discord 23 May, 2021 @ 8:39am 
Just so you know, this is still broken when Pick Up and Haul is installed, as of the version of PUAH uploaded today, May 23.

Hope you can find the time to patch it; what an essential combination of mods! <3
Tobi 5 Apr, 2021 @ 4:57am 
Setting a stack limit doesn't seem to work with DeepStorage containers when a stack size limit is active as well.
鱼饵 1 Apr, 2021 @ 7:03am 
key text please
i want translation into Chinese
Cozar  [author] 31 Mar, 2021 @ 5:17pm 
@Draconicrose - You can try Kanban Stockpile. It has many similar features to this one.
Draconicrose 31 Mar, 2021 @ 4:25pm 
Alright, thank you, but if you can't do anything I think I will just not use the mod, which is a shame. Thank you for your time.
Cozar  [author] 31 Mar, 2021 @ 2:32pm 
I don't have Royalty, but I imagine if there was a hard incompatibility between this mod and Royalty, somebody would have mentioned it by now. I also assume you are using the Harmony version available on Steam. Since its not a mod incompatibility and not a problem I experience, I'm not sure how much I can help.

I would start with basic troubleshooting. Unsubscribe, verify the integrity of the game, start the game, quit, and resubscribe. If that doesn't work, someone in the troubleshooting channel at discord might be able to help: https://discord.gg/rimworld . They'll need a log, though. Since you can't get the HugsLib log, you'll have to supply the Player.log. There is a button inside the Rimworld options menu to open the log folder.
Draconicrose 31 Mar, 2021 @ 1:37pm 
Just did. Nothing but Rimworld, Royalty, Harmony and VMS. Still crashes to desktop.
Cozar  [author] 31 Mar, 2021 @ 12:34pm 
Try starting a game with this and no other mods except this and Harmony and see if it still crashes.
Draconicrose 31 Mar, 2021 @ 1:53am 
The game crashes not even a minute into gameplay and yes, it's a literal crash to desktop. I can consistently reproduce it. Just activate the mod, go into a game, and wait for a minute. When I try to use the ctrl + F12 shortcut it fails the upload and I can't seem to find a physical log location. It might help you to know I'm running the Linux version of Rimworld.
Cozar  [author] 30 Mar, 2021 @ 1:36pm 
A Hugs Library log would be a good start (Hit Ctrl + F12) when in game. Also, a description of when it crashes, what exactly you mean by crash (does it literally crash to the desktop?), and whether you can consistently reproduce the crash.
Draconicrose 30 Mar, 2021 @ 9:27am 
This mod causes a crash in my game. What do I need to give you to help you debug this?
BLAZEPK 9 Mar, 2021 @ 5:36pm 
Is Simple Storage also compatible?
Often works abnormally with Deep Storage and Simple Storage.
In most situations, the Duplicate limit does not work at Deep and Simple storage.
In rimfridge mod, the Stack size limit did not work, put in and pull out food forever.
Is it because of Pick up and Haul?
I hope this mod works well because it is much better than other mods with this features..
Armqus 19 Feb, 2021 @ 5:30am 
Aight. Do you use any alternative to pick up n haul that's working with your mod?
Guess I need to download 2 separate mods to combine stack limiter and satisfy
Cozar  [author] 18 Feb, 2021 @ 2:17pm 
I don't personally use Pick Up and Haul, so I can't promise I'll fix it, but I'll at least take a look at some point and will @ you if I do fix it.
Armqus 18 Feb, 2021 @ 6:09am 
Yea I removed every other mod, but kept pick up and haul and VMS, no match. Then I tried with only VMS and worked like a charm!

I tried another mod (Stockpile Stack Limit (Continued)) with Pick Up and Haul and they worked together.
Cozar  [author] 17 Feb, 2021 @ 11:43am 
Yeah, that sounds like the issue with pick up and haul that existed before testing. Can you run a test without pick up and haul and see if the same issue happens?
Armqus 17 Feb, 2021 @ 10:15am 
I'm trying to use stack size limiter to divide medicine between 2 stockpiles. I have a bug the limiter is activated, a pawn will grab the whole stack and haul it between the 2 stockpiles without separating anything. Haul there, pick em all up, haul back, and loops.

I was thinking maybe Pick Up and Haul has something to do with it, can't tell for sure though.
Vektor T 17 Feb, 2021 @ 9:41am 
Do pawns automatically choose different foods to fulfill their need for diversity? Also, they really don't seen to eat dessert 99% of the time, not sure if related to this mod or not.
Cozar  [author] 19 Jan, 2021 @ 10:12am 
You are welcome.
Devil 19 Jan, 2021 @ 10:07am 
OK I think I understand now and thank you very much for answering all my questions and helping me understand I really do appreciate it
Cozar  [author] 19 Jan, 2021 @ 9:53am 
Let's use resources that stack to 250 in vanilla as an example. If you set XXL to let them stack to 1000 and Satisfied Storage to refill at 50%, Satisfied Storage doesn't know you increased the stack size, so it will pause refilling until there are 125 resources in the stack.

The same with my mod. If you use my mod to set stack limits to 100 and set Satisfied Storage to 50%, Satisfied Storage will still order the refill job if there are less than 125 in the stack (which in this case, would be always). If you want to start a refill when there are 50 items left, you need to set satisfied storage to 50/250 = 20% instead.
Devil 19 Jan, 2021 @ 9:31am 
I think I understand what you’re saying now it doesn’t matter that I’m using XXL If I set a stockpile to one stack it’ll only stack to 75 it ignores that I have increased it if I’m understanding that right
Devil 19 Jan, 2021 @ 9:27am 
Let’s say I have your mod set to a stock pile of 200 and I have it set to fill now or keep filled will satisfied storage override that and fill it at a percentage if I have it set to let’s say 2% when that stockpile gets down to two will it refill
Cozar  [author] 19 Jan, 2021 @ 9:22am 
Oh, now I see your problem. When satisfied storage considers whether to start refilling, it looks at the normal stack size, e.g. 75 for ingredients and doesn't care whether you modified that to 1,000.

Yes, satisfied storage works with this mod, but it still ignores any changes to the stack limits. I could probably make a patch for that if that would help you.
Devil 19 Jan, 2021 @ 8:59am 
Actually I have a question will satisfied storage work with your mod
Devil 19 Jan, 2021 @ 8:57am 
That’s what I figured all three mods are pretty much for vanilla stacks but like I said yours works just fine I can make a stock pile of like 200 and then when he gets low I can just tell him to manually refill it which is fine it just doesn’t work very well with XXL mod because of how big the stacks are
Cozar  [author] 19 Jan, 2021 @ 8:48am 
That's because the features work differently. They can't put a specific number because it is different for each stack. For example, at 80%, meal stacks will refill when less than 8 and ingredient stacks would refill when less than 60. My variation is based on the number of cells in the stockpile rather than the stack sizes. If you want to make a third version that starts refilling at a flat number, you are welcome to use this mod's code as a starting point.
Devil 19 Jan, 2021 @ 8:47am 
Actually now that I have read both of them they only work with vanilla stacks if you have some big stacks like XXL where my cloth is 10,000 I need to make a stockpile of an exact number not a one stack limit because one stack limit is going to equal to 10,000 your mod works just fine it’s just some jobs require different materials some require five some require three so I have to kind of figure out how much I’ve got to put in The stacks to make it where they both empty at the same time so they can both be refilled otherwise I have to manually do it and that’s what I’ve been doing which is fine I just thought if there was a way to add an exact number to when to refill it would be a little easier I guess I don’t know how to mod so I don’t know how hard it would be
Devil 19 Jan, 2021 @ 8:37am 
I can give those a try I just liked yours because you can actually set a number for the stock pile instead of a percentage
Cozar  [author] 19 Jan, 2021 @ 8:27am 
@Devil Now I understand. Have you looked at Kanban Stockpile or Satisfied Storage ? I believe their slider features work the way you would like.
Devil 19 Jan, 2021 @ 8:05am 
I am using XXL Stack mod the slider doesn’t really work when you are trying to have them refill the zone because it has to be empty for them to refill it and most jobs will not empty the zone unless you do a bunch of math to figure out how much it’s going to take so I figured being able to do the same thing as the pause feature being able to put an exact number to when to refill would work really well
Devil 19 Jan, 2021 @ 7:54am 
Instead of having the slider have another box to put a number in that when it gets down to that it refills kind of like the pause feature for jobs
Cozar  [author] 17 Jan, 2021 @ 10:34am 
Updated for improved compatibility with RimFactory and DeepStorage, and better UI.
Cozar  [author] 16 Jan, 2021 @ 7:27am 
I'm not sure what you mean. That's already what the refill slider does.
Devil 16 Jan, 2021 @ 1:55am 
is there a way to simplify this mod to make just a stock pile limit and a stock pile refill to where you set your stock pile limit and when the stock pile refill drops below that they will refill it
Cozar  [author] 11 Jan, 2021 @ 10:28pm 
Updated UI to take up a little less space. I'll look into RimFactory.
rhizin 11 Jan, 2021 @ 2:26pm 
I set up a shipping container with LWM's Deep Storage to fit my needs for now... so there is no hurry, just a suggestion.
rhizin 11 Jan, 2021 @ 1:55pm 
I really like this one, it is very useful. Buuut... unfortunatly it doesn't seem to work with the storage crates of the Rimfactory revived mod... which I also like very much. Maybe something can be done to make those two mods compatible, they are perfect for each other.
Kryth 9 Jan, 2021 @ 9:47pm 
This mod seems to conflict with the UIs from Rimfactory lite, specifically their hoppers and such
ubergarm 14 Nov, 2020 @ 11:34am 
@Cozar - I tried to get both this mod and Satisfied Storage patched for multiplayer but didn't have luck (i think its due to using a StorageSettings type as a dict key). Anyway, full credits to you and the earlier folks, I made a similar mod that is multiplayer compatible: "KanbanStockpile" https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2287142613

There may be more optimizations and improved logic that could be made I'm guessing, but still new to this. Feel free to use any of the code and happy to collaborate!

Cheers!