Project Zomboid

Project Zomboid

[B42] Nested Containers (compatible with Clean UI)
56 Comments
Jaxx - pshoooo 20 Jul @ 1:47pm 
good mod, might be nice to have it so if you have a ton of a single type of bag nested, like plastic bags, and they are all empty, only one bag shows up as nested until you start filling them individually, in order to prevent your inventory list being nothing but nested empty bags when you've stuffed a bunch down for storage.
bingley 13 Jul @ 7:34pm 
Dang I thought this would make key rings/wallets on zombies appear separate so I don't have to throw them on the ground to get the contents :steamsad:
NecromancerPig 13 Jul @ 1:54am 
Thankyou good sir/madam for this completely necessary mod
NinjaNerd 11 Jul @ 5:14am 
@korps - thank you!
Sephie 11 Jul @ 1:42am 
If this mod doesn't work try using Starlit Library. It fixed it for me
Loccatpowersdog 6 Jul @ 4:26pm 
Would this just replace Nested Containers/Nested Containers Fix mod if you are already using CleanUI?
Felkami 6 Jul @ 10:26am 
I'm on PZ 42.10.0 and this is not working for me. I tried it on a fresh game by itself, and with Clean UI
RynxXK5 4 Jul @ 8:58am 
Is there a way to incorporate this mod into it or do something that accomplishes the same thing?
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3400854913
PoczciwyPawwwlo 27 Jun @ 4:51am 
Is it compatible with inventory terris?
GoldenIcon 25 Jun @ 8:25am 
Save yourselves the effort.. started a new game with ONLY this mod, and it doesn't work. Figures I'd try this AFTER hours of disabling/enabling mods trying to find a conflict.
David 24 Jun @ 6:46pm 
Yeah this mod doesn't seem to do anything for me either.. Is it compatible mid save, and is there any other incompatibilities anyone is aware of? Or a way you have to activate it?
reanimated6 23 Jun @ 1:59am 
Workes great with customizable containers on my end. never had an issue. I have a med kit that can hold 30 weight units inside of my backback that can hold 100 weight units. The only incompatibility is that you can have the backpack filled with 99 out of a 100 weight units worth of stuff then just put the med kit inside it and fill that up to 30 too. The backback will then hold 130 out of 100 weight units. Or you can put 10 cointainers that hold 50 weight units inside and effectivly carry 500 (10x50 wu)
Rabbitowitz 21 Jun @ 1:18pm 
would be nice if it worked outside our inventory too.
Pater273 19 Jun @ 2:43pm 
i use clean ui, i acrivate the mod, and then dose not chage anything. i dont know much abaut these things.
cursedblade 18 Jun @ 5:31pm 
@Pater273 gonna need a little more context than just "the mod doesnt seem to work"
Pater273 18 Jun @ 2:45pm 
Hello, i am having a problem were the mod doesnt seem to work, i dont know if i am doing something wrong or what, if someone can help me
Yama 17 Jun @ 8:14pm 
@Ryan I just tested Nested Container Fix alongside Clean UI and it still work if you want to try.
Yama 17 Jun @ 7:54pm 
Is this supposed to work like nested container mod in B41? i'm using clean UI and it doesn't show unequipped container in the left panel,
Ryan 15 Jun @ 8:56pm 
@maraganina here you go. contains logs as well as save file & mod list. I had tried both on new game & old save. This one is from new save. Also another thing I noticed the mod partially works. When I have a bag inside a bag which is in my inventory the bag inside another one would show up but not the ones in my main inventory. https://limewire.com/d/igtx5#SSMYg1Sa9B
maraganina  [author] 15 Jun @ 8:39pm 
@Ryan yeah it's better than nothing, let's try that. Just to make sure: are you trying this on an existing save or on a fresh campaign? Did you try both?
Ryan 15 Jun @ 8:31pm 
That's the thing there are no error logs. What I can do is give you the entire log file and maybe you can sort it out from there
maraganina  [author] 15 Jun @ 8:28pm 
@Ryan not sure what to tell you, man. I'm using it along with ~100 other mods. If you start a discussion and paste the error log there, I can try to understand what's going on. Other than that, there's nothing I can do
maraganina  [author] 15 Jun @ 8:27pm 
@ezeepeezee I probably messed up how the user settings are stored in the latest update. Now that you mentioned, that's happening with me too. I'll check that out
Ryan 15 Jun @ 12:04am 
tested in 42.9 with only mod load order & error magnifier. For whatever reason this mod does not work. tried placing this mod both before & after clean ui still doesn't work.
GestumStage 14 Jun @ 12:22pm 
Хорошие у Вас моды
ezeepeezee 13 Jun @ 9:10pm 
I've got a bit of an issue that the mini-icons showing which container the nested container is inside of doesn't reliably show up; it only shows up after disabling and re-enabling the option in mod options.

Not sure what might be affecting it, but I'm using Mutie's context menu icons (among others of course, but that's the only thing I could imagine touching the same code).
maraganina  [author] 13 Jun @ 7:01am 
@Nilanth thanks. I just added a couple checks to prevent unexpected objects (or whatever it is from these other mods) to be checked for items. I also downloaded both Eris Food Expiry and Mod Item Information and I could open doors and everything without any errors. As we figure out which specific mods cause issues, I'll continue fixing things
Nilanth 13 Jun @ 6:53am 
well I'll post 4 of those errors in a discussion then, though I still have to do my own homework on which mod(s) cause critical issues, you can probably chalk eris food expiry off the list though. likely best not to mark anything incompatible yet though as it could still be anything sadly.
maraganina  [author] 13 Jun @ 6:25am 
@Nilanth Thanks for the info. If you could create a discussion you can probably paste the full log. I'll mark those mods as incompatible for now. Whenever I have time I'll download them and work on a fix
不再年轻了 13 Jun @ 2:50am 
报错不能用
Nilanth 13 Jun @ 12:00am 
Full errors well exceed the 1000 character limit. im suspecting its a combo of Clean UI, Eris Food expiry, More Item Information and this mod have incompatability but don't have time this second to look into it. but there are errors for this mod in certain situations (and I think it prevents a character opening doors, looting cars, or interacting in general when it occurs) and the other error seems to just be all tooltips. mind you its in splitscreen, and the 2nd player broke (the first was just doing excercises and not enough gameplay to work out if it occured to the first too).

But it looks similar in one of the two cases to the other errors reported here, so throwing in the 4 mods im suspecting cause issues that mainly litter the debuglog in case it is helpful.
Nilanth 12 Jun @ 11:58pm 
Truncated errors:
function: handleSubItems -- file: nested_for_cleanui.lua line # 12 | MOD: (This)
function: handleItems -- file: nested_for_cleanui.lua line # 68 | MOD: This)
function: OnRefreshInventoryWindowContainers -- file: nested_for_cleanui.lua line # 96 | MOD: (This)
Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@4d51cda7
(Vanilla functions here)
attempted index: getItems of non-table: null at KahluaThread.tableget(KahluaThread.java:1667)

&

function: handleSubItems -- file: nested_for_cleanui.lua line # 12 | MOD: (This)
function: handleItems -- file: nested_for_cleanui.lua line # 68 | MOD: (This)
function: OnRefreshInventoryWindowContainers -- file: nested_for_cleanui.lua line # 96 | MOD: (This)
Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@4d51cda7
(Vanilla functions)
attempted index: getItems of non-table: null.
maraganina  [author] 12 Jun @ 4:41pm 
@CarltoN. Not sure what these people want me to fix, then won't give any info. I'm using this mod in my current playthrough without any issues, so I'm good. If there's any evidence that it's bugged due to some other mod, I can try to fix it. Until then or there's a game update this is it
CarltoN. 12 Jun @ 3:14pm 
this looks really useful. id like to add it but concerned about the reports of errors. will sub when stuff is fixed.
walexanderbsme 12 Jun @ 2:39pm 
Unfortunately did not work with CleanUI. I have been slowly testing each mod and this one throws up errors on any action like (opening a door, closing a window, etc)
maraganina  [author] 11 Jun @ 2:42pm 
@Outlook sorry. It's public now
LocationOfSmokeApparatus 11 Jun @ 4:54am 
bugged. item infos arent shown while this mods active
Outlook 10 Jun @ 4:35pm 
@maraganina

Hey no worries at all, thanks for responding and putting this up to work with Clean UI!

Can you make your collection public?
maraganina  [author] 10 Jun @ 6:55am 
@Outlook That's unfortunate. Sorry, I'm very new to this so I'm not even sure how to go about troubleshooting that. Here's a collection with the items I'm using in my current campaign:

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails?id=3496590694

Hope it helps.
Outlook 9 Jun @ 9:26pm 
Seems like this might be an issue on my machine. I did a full clean installation and subscribed to only this mod and cleanUI and i get the same issue with just the default containers. I will have to investigate on my end some more.

Can you export your mods to a steam collection so I can subscribe to all of them?
Ryan 9 Jun @ 6:45pm 
It's still conflicting with something. I'm not sure which mod . it still doesn't show up and still no error message
Outlook 9 Jun @ 5:15pm 
@maraganina

Thank you for checking it out and I am sorry I wasted your time! Let me figure it out and I will let you know! Thanks for doing this. I will post an error screenshot
X-Ray-Jin 9 Jun @ 10:18am 
@Ryan
If it is working for the containers in the "loot inventory" but not in the "players inventory" you can use the "accessible containers" mod ( https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3400854913 ) in addition to "nested containers".

It exactly fills the gap and nothing more. So if you still want to be able to nest your containers you have to keep "nested containers" active, too. Actually, I think it might not even work for the "loot inventory" anymore without "nested containers" mod. Did not test it though.
maraganina  [author] 9 Jun @ 7:08am 
@Outlook Just tried adding the AZ's Hiking Backpack Tier 3 inside another container and vice versa and everything looks good. Could be some interaction with another mod. If you want you can either give me more info or open PZ in debug mode and see why the "container" variable is not a table.
maraganina  [author] 9 Jun @ 7:03am 
@Outlook I've downloading AuthenticZ just to test it out and it is working fine for me. I even spawned a Tier 3 Hiking Bag and put my med kit inside it. Check it out: https://imgur.com/bg4FRVd
Vurrin 9 Jun @ 6:30am 
Love u <3
Outlook 8 Jun @ 9:57pm 
Hey i do get errors when I have the AuthenticZClothing mod.
Error: attempted index: getItems of non-table:null

on line 12: local container = item.container.getItems(),

The current item is the HikingBag Tier 3 of that mod.

How would you go around fixing this? Would I have to interface with the mod items?
maraganina  [author] 8 Jun @ 9:53am 
@Ryan I've just pushed version 1.1 and tested it directly from the Workshop. It's working fine now. Either the issue was in 1.0.1 or another mod.
Ryan 8 Jun @ 9:37am 
@maraganina it used to work. but I guess some mod updated & not working today. Not even showing any errors. Containers just doesn't show up unless equipped