Project Zomboid

Project Zomboid

[B42] Nested Containers
189 Comments
KinkedRocket 15 hours ago 
FIX

Hello,
I was experiencing the same issues as below, not being able to unbox or unpackage items, while running a multiplayer server.

I was able to fix it by changing the priority of my mod list, and moving it to the top.
Nikku Miru  [author] 15 Dec @ 10:33pm 
Interesting issue.. will take a look at it, thx for letting me know!
Зибанижат 15 Dec @ 3:35pm 
Same problem
Louie365 15 Dec @ 3:07pm 
So, I've been playing today with this mod and there is an issue with it. And It might be an incompatibility with something like near buillding, or just a bug of nested containers by itself.
Basically I can't unpack or unbox any packaged items like cigarette package or box of energy bars. Also I was not able to saw planks from logs. Once I removed nested containers it all worked again.
WrenderedUseless 15 Dec @ 10:43am 
Thank you so much for this mod and for the speedy update, this is one of the best PZ mods out there fr
Nikku Miru  [author] 15 Dec @ 1:53am 
Thanks for letting me know, I haven't tried MP yet.
I will take a look at later!
silent1 14 Dec @ 9:27pm 
Not seeing the mod options in b42MP btw.
R173YM0N 14 Dec @ 1:41pm 
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 13 Dec @ 9:18pm 
Thank you!
Winsom3r 13 Dec @ 10:48am 
Thank you SO much!
Nikku Miru  [author] 13 Dec @ 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 13 Dec @ 7:50am 
update please!
Winsom3r 11 Dec @ 9:17pm 
@Mednish currently not working, as is the case with a large majority of mods
Mednish 11 Dec @ 6:19pm 
Working on 42.13?
Conductor 25 Nov @ 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 21 Nov @ 6:41pm 
This mod still working on current B42 version :stardrop:
Xtream 14 Nov @ 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] 8 Nov @ 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 6 Nov @ 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. 4 Nov @ 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 3 Nov @ 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 30 Oct @ 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 30 Oct @ 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] 27 Oct @ 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 27 Oct @ 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] 27 Oct @ 2:11am 
Yeah that's no problem since I added a few options already
PANZER 27 Oct @ 1:20am 
Yes trunks and seats work right now, just an idea for a "vehicle" setting
Nikku Miru  [author] 27 Oct @ 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 26 Oct @ 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] 26 Oct @ 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] 26 Oct @ 1:39am 
@PANZER Thanks for letting me know, I will add some more options so everyone can configure it to their liking! :)
PANZER 25 Oct @ 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] 25 Oct @ 8:24am 
Because a depth of 0 would basically disable the mod xD
Nikku Miru  [author] 25 Oct @ 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 25 Oct @ 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] 21 Oct @ 11:06pm 
You're welcome! :)
Please let me know when any issues appear with the new update.
PANZER 21 Oct @ 5:21pm 
Thank you Nikku for your hard work!
Nikku Miru  [author] 21 Oct @ 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] 20 Oct @ 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 20 Oct @ 3:12am 
This mod allows you to overfill bags by filling the nested bags within them
Nikku Miru  [author] 10 Oct @ 5:31pm 
@Karbantms Thanks for letting me know! :)
I also worked a bit on it before and removed the virtualDom.
Karbantms 10 Oct @ 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 10 Oct @ 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 10 Oct @ 1:39pm 
It works, thx
Smiley Face Killer 10 Oct @ 2:31am 
Ah yea fair enough, hope you enjoy it

(but don't forget about us lol)
Nikku Miru  [author] 10 Oct @ 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 10 Oct @ 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] 8 Oct @ 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] 8 Oct @ 2:59pm 
@kittysmuggler I'll see what I can do about that :)
Will probably have that added tomorrow.
kittysmugglers 8 Oct @ 2:55pm 
maybe a context menu option that hides certain containers from displaying on the side menu like sacks