Project Zomboid

Project Zomboid

[B42] Nested Containers
184 Comments
Nikku Miru  [author] 4 hours ago 
Thanks for letting me know, I haven't tried MP yet.
I will take a look at later!
silent1 8 hours ago 
Not seeing the mod options in b42MP btw.
R173YM0N 16 hours ago 
it seems i have an issue, sometimes when i perform an action like rip clothes or drink water it doesnt finish and stops early,
Ayanaa Dec 13 @ 9:18pm 
Thank you!
Winsom3r Dec 13 @ 10:48am 
Thank you SO much!
Nikku Miru  [author] Dec 13 @ 10:44am 
I just pushed a update which fixes the recent change that caused the errors.
There're also more mod options so you can now filter what items get nested, for example only loose backpacks in the pockets.
kittysmugglers Dec 13 @ 7:50am 
update please!
Winsom3r Dec 11 @ 9:17pm 
@Mednish currently not working, as is the case with a large majority of mods
Mednish Dec 11 @ 6:19pm 
Working on 42.13?
Conductor Nov 25 @ 12:22am 
its cool that ı can put items in a bag that is also in a backpack but there is a bug (i think its a bug)
you can put like 10 bags on a backpack and fill them. even while the first backpacks limit is 40 you can o something like 200-300+ it can get worse if you use it accordingly there is no limit

for this to work:
Put empty bags on backpack
then put or take the items
if you want more value
Put empty bags on backpack
Put empty bags on those bags
then put your items
and so on
Elma Nov 21 @ 6:41pm 
This mod still working on current B42 version :stardrop:
Xtream Nov 14 @ 11:00am 
Hey Nikku, love the mod and it's a staple of every run i do. I was wondering if it's possible to make nested containers apply their weight reduction when they are inside other containers, or is there a hardcoded limitation from the game to block that ?
Nikku Miru  [author] Nov 8 @ 6:19am 
@Pena_FIN Yeah I know what you're talking about... maybe I will add a filter for those.
Will try to push a update this weekend
Pena_FIN Nov 6 @ 10:27am 
Great mod. But I now hate plastic bags and garbage bags. I can't keep my loose garbage bags anywhere near my other containers. And the first time I was trying to loot a car that had about 25 plastic bags inside it, was, well, an experience. Minor issues though, compared to how useful QoL boost this mod is.
xeno. Nov 4 @ 9:58am 
Issue with this mod is that it doesn't check if the parent backpack actually has space before putting something in a child container. This allows you to exceed the encumberance limit of backpacks
Euzio Nov 3 @ 5:54pm 
Just an FYI, but there seems to be some minor issue when used in conjunction with Smarter Storage. When attempting to change the icons/name using Smarter Storage, Nested Containers will cause the target you are right clicking to default to the Ground. Once I disabled Nested Containers, the right clicking is able to work on the initial target I'm trying to change.
Q Oct 30 @ 7:36pm 
Hi: im not able to put any of my bags in any of my subsequent bags. Im running your container mod and inventory tetris mod. Is there any way to make these work together?
TheStorySmith Oct 30 @ 1:10am 
Do the nested containers reduce the weight of their items? Or is it like vanilla where the weight reduction is only for items directly equipped?
I really want a mod where there is a good reason to utilize containers within other containers (like using bags in a trunk, or a First Aid Kit in a backpack)

Is it possible to do and if so would it also apply to modded containers (I got Unofficial Fools) or only vanilla?
I'm trying to steal every gold bar in the game but they are 16 weight each
Nikku Miru  [author] Oct 27 @ 7:19am 
@Viatorem Don't have to apologize for that xD
I don't mind adding options at all since it'll make it just better for everyone so they can configure it to their liking.
Viatorem Oct 27 @ 7:03am 
sorry for being confusing haha, yeah i didnt remember nested containers working inside equipped containers, not a bug just bad memory lol. love the mod, but dont code options just for me if its annoying lol
Nikku Miru  [author] Oct 27 @ 2:11am 
Yeah that's no problem since I added a few options already
PANZER Oct 27 @ 1:20am 
Yes trunks and seats work right now, just an idea for a "vehicle" setting
Nikku Miru  [author] Oct 27 @ 12:36am 
@PANZER But trunks and seats work rn or am I wrong? maybe did something wrong then
Yeah I can add that, there's a different tag for trunk and trailer, will take a look at that!

You're welcome! :)
PANZER Oct 26 @ 4:59pm 
If it is possible, I would like it if the trunks and seats (everything within a vehicle) had normal mod functionality. If I had a bag within a bag on a seat (my main use case) I would like to see the second bag within the first.

I'm not sure if possible, but I would prefer it disabled for trailers. I dont know if the base code differentiates trailers from a normal vehicle trunk though. Perhaps there is a "trailer" tag?

Again, thank you for the work you put into this Nikku!
Nikku Miru  [author] Oct 26 @ 1:09pm 
@PANZER Could you please tell me how the vehicles as a toggle option should work exactly?
Just so I have a clear image of what option I should add, so far I added options to toggle nesting for player inventory or loot inventory and also filters to both so you can switch between everything / only pockets / only equipped and same for loot inventory so it's either everything or vehicle only basically seats / glove box.

But still need to polish it a bit.
Nikku Miru  [author] Oct 26 @ 1:39am 
@PANZER Thanks for letting me know, I will add some more options so everyone can configure it to their liking! :)
PANZER Oct 25 @ 11:53pm 
I personally like the nested functionality for character and in vehicles only. I tend to keep all containers in a single storage area and mid run it damn near impossible to find what I want when there is 50+ container icons to scroll through to find the parent container. the workaround for this is to set depth to one and cram them into a bag and put it in another bag, but to me this seems stupid.

I dunno how they tag car storage in the base code, but maybe its possible to add vehicles as a toggle option
Nikku Miru  [author] Oct 25 @ 8:24am 
Because a depth of 0 would basically disable the mod xD
Nikku Miru  [author] Oct 25 @ 8:23am 
@Viatorem Hmm maybe it's because of the thing I wrote under "Known Issues" but it sounds like you also basically don't want the functionality for the equipped one?

Could maybe add options like "Exclude Equipped" or "Exclude Player Inventory" so people can configure it more to their liking.
Viatorem Oct 25 @ 7:46am 
i set nest depth 2 to 1 hoping to not see my 2nd bag inside my worn one, but i still can, do i just need a new character? or is this the intended function.
if intended a depth 0 so i can only see them in the cardboard box slot would be much loved.
Nikku Miru  [author] Oct 21 @ 11:06pm 
You're welcome! :)
Please let me know when any issues appear with the new update.
PANZER Oct 21 @ 5:21pm 
Thank you Nikku for your hard work!
Nikku Miru  [author] Oct 21 @ 1:54pm 
I think I was finally able to fix the scrolling issue and also added a parent icon so you can quickly see where the nested container is inside of, it can be disabled in the options.
Nikku Miru  [author] Oct 20 @ 12:03pm 
Will need some more time to fix the scrolling issue... got it working for the floor but then it broke for everything else :steamfacepalm: but i'm getting closer! I think... xD
Night Fox Oct 20 @ 3:12am 
This mod allows you to overfill bags by filling the nested bags within them
Nikku Miru  [author] Oct 10 @ 5:31pm 
@Karbantms Thanks for letting me know! :)
I also worked a bit on it before and removed the virtualDom.
Karbantms Oct 10 @ 4:51pm 
Discussion post is messing up the spacing - I've sent a link with correct formatting under the comments - and here https://sharetext.io/753ccb48
Karbantms Oct 10 @ 4:38pm 
@Nikku Miru - I hope I don't intrude, but I made some changes to your mod for my own use. I threw out the VirtualDom and added the new containers directly into the vanilla list. It fixed the scrolling issue. It works on controller, CleanUI, and respects the nesting depth settings. The only side effect is that the nested containers are now sorted at the bottom of the list beneath equipped items in the player inventory and floor in the world inventory - not beneath their parent container.

This is a quick and dirty fix from someone who just came back home after a 16-hour shift and can barely keep his eyes open. I haven't tested it very thoroughly, but everything seems to work as it should, but you never know. Anyway, do with it as you wish. I just didn't want to keep it for myself if it could help somebody else. (Posting to discussion to not spam here)
MXMS GoodCat Oct 10 @ 1:39pm 
It works, thx
Smiley Face Killer Oct 10 @ 2:31am 
Ah yea fair enough, hope you enjoy it

(but don't forget about us lol)
Nikku Miru  [author] Oct 10 @ 2:25am 
@Smiley Face Killer Thanks for letting me know! I will prioritize fixing the scrolling first, since it also seems to be important for controller players. But I can't guarantee today because of BF6 😂
Smiley Face Killer Oct 10 @ 1:28am 
The whole scrolling being out of order messed me up bad
Came here to tell you it was an issue, but glad to see you know about it already

Also the backpack thing hasn't annoyed me personally (granted I'm not that far in yet)
Nikku Miru  [author] Oct 8 @ 3:10pm 
Please let me know if the equipped backpack issue I mentioned in the description is annoying.
It kinda adds a depth of 1 there since it's equipped.
Nikku Miru  [author] Oct 8 @ 2:59pm 
@kittysmuggler I'll see what I can do about that :)
Will probably have that added tomorrow.
kittysmugglers Oct 8 @ 2:55pm 
maybe a context menu option that hides certain containers from displaying on the side menu like sacks
yayie Oct 8 @ 2:52pm 
Thank you for the update <3
Nikku Miru  [author] Oct 8 @ 2:50pm 
Just pushed out a update that adds a nesting depth option and fixes the keyring issue.
@kittysmuggler what exactly do you mean by hide certain containers, can you give me an example please? :)
kittysmugglers Oct 8 @ 2:25pm 
yeah an option to hide certain containers would be great!
housels77 Oct 8 @ 2:13pm 
First of all, congratulations to the creator of the mod, for me an essential mod on my list, but I have to play without it because now it detects the sacks or bags that are inside a backpack and fills up the sidebar making it difficult to manage.
Wansin Oct 8 @ 12:18pm 
@Nikku Miru Awesome!! No rush needed, i just wanted to know! Thanks! :D