Project Zomboid

Project Zomboid

Accessible Containers
69 Comments
CFW Magic 3 hours ago 
@KoiMaik > Fixed version for B41: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3533981185

What happened was, the mod is only located in the 42 folder and needed a copy of the files to be in root folder. I literally just moved the files and it shows up in mod list now.
KoiMaik 8 Apr @ 7:48am 
i cant see it in mod list
mister.monroeville 5 Apr @ 7:33pm 
Man, what a great mod. This is a QoL improvement that TIS needs to take note of. Thanks, and good work!
M1ST0R 30 Mar @ 9:25am 
Kozonak 3 Feb @ 3:05am 
Me think, why waste time say lot word, when few word do trick.
xEv0x 30 Jan @ 12:56am 
@Mitchel - In the process of making yourself look like an ass by editing his sentence description, only proved that you really did understand what he was saying and what the thing did. So if you knew, why go and make yourself look like a prick and make that post? Not only are you now wasting your time ranting about shit you already knew, you made yourself look like an ass doin it. Congrats.

And second, how you gonna give someone crap about giving a vague description and then try to trash on them about having low writing skill levels right after you asked your own question that looks like it was written by a 1st grader?

"sorry I'm pretty new to PZ mods -- so does what this do, break immersion?" - Mitchel Vories

so does what this do, break immersion? -- Maybe before you start throwing rocks Mitchel, make sure you don't live in a glass house. Just stick to just playing games man, the whole internet keyboard warrior troll gig your trying to front isn't for you.
Damonicus1986 29 Jan @ 4:17pm 
it is great idea for mod but can you make it more unique ? i mean can you try to restrict it so it only shows icons for sewing kit , ifrst aids, lunch boxes and toolboxes ? is it even possible ?
Greatcalzones 29 Jan @ 11:15am 
@Mitchel - You are an incredibly sad person, and I pity you. Hopefully you'll come to realize how berating someone who is OFFERING SOMETHING FOR FREE THAT THEY DO IN THEIR PRECIOUS SPARE TIME is so fucking pathetic. I really hope you're a middle schooler or something, because that's the only excuse I can see for acting like an entitled, screaming little child - if your tiny little peanut brain hasn't fully developed yet. I hope @JawKneePlays was able to ban your salty ass from posting on his mods.

Be grateful to the people who spend their hard earned free time doing something that benefits you, and that you get for FREE. This shit is difficult, and take a ton of time and effort, even for a mod author who has a lot of experience.

Keep up the great work JawKneePlays, and don't let a few incessant children get in the way of contributing to the mod community - the large majority of us appreciate it!
JawKneePlays  [author] 24 Jan @ 6:46am 
It looks like that new Nested Containers is running into the same issues I did. Let's hope he figures out how to get past the game crashing when opening the containers, which is where I got stuck due to no log output after the crash.
≫ Dasfer 23 Jan @ 8:08pm 
[NM] Nested Containers

For anyone that is waiting for the nested containers mod, there is this new one that only shows the first layer (so a duffel bag inside a crate is shown, but not the garbage bag that is inside the duffel bag, for example) and is being worked on right now (there is a crash bug with those plastic bags inside of plastic bags that spawn in the trunk of some cars) :spiffo:
JawKneePlays  [author] 23 Jan @ 7:15pm 
I'm always high bro. Sometimes I miss entire words in sentences so that's not so bad...lol
Inquisition 23 Jan @ 4:29pm 
@JawKneePlays Damn right!

I too missed nested containers so this is perfect. The only typo in your description is complexed instead of complex. Excellent writing too if stoned like I currently am lmao.
JawKneePlays  [author] 22 Jan @ 7:05pm 
Thanks guys.

English is my first language and I don't think there is anything wrong with the structure of my sentence personally, but who cares anyway. The mod does what it's supposed to do.

I actually did check to see if I could block him from my workshop. If you're going to act like a twat then I don't want you to have it.

I almost didn't even upload it to the workshop. I made it for myself while I got high, but I felt selfish having it while others were waiting. And I only put in the time to learn Lua and PZ's code base to figure out how to re-hash someone else's code in an attempt to re-create Nested Containers for myself. I'm just home now from a bar job ffs...

So, to anyone else that feels that I owe you anything because I posted this mod, don't subscribe and go fuck yourself. Thanks

As a side note: I will revisit coding for this game to see if I can get Nesting to work. I pumped a lot of hours in trying to get it and I think my knowledge just isn't there yet.
Bielprendes 22 Jan @ 9:10am 
@Mitchel Vories Dude, first of all, it's perfectly fine to understand the mod's description. Okay, there are some grammatical errors, but there aren't any obligations for him to write it 100% correctly, especially if English isn't his native language.

And second, if you really wanted to help him, you should go and nicely explain what was wrong, not barge in like a total douche

@JawKneePlay, i really missed the nested containers mod from B41, thats great you came up with your mod keep the good work man!
Inquisition 21 Jan @ 4:14pm 
@Mitchel Vories People are so goddamn entitled these days. I keep seeing comments like these and it just blows my mind. This is a mod being offered to you entirely for free by someone who does this as a hobby. You are lucky the workshop doesn't allow them to block you from accessing it as I sure would. Best I can do is report your comment. Go soak your head.
JawKneePlays  [author] 20 Jan @ 6:56pm 
@Mitchel Vories

Alright pal. Make your own mod then. I owe you nothing.

@Inquisition you're welcome buddy
Inquisition 19 Jan @ 12:20am 
I love you.
JawKneePlays  [author] 18 Jan @ 8:29pm 
It's in the description and other comments

It creates a button for containers in the player inventory without needing to equip them, making them...Accessible...
JawKneePlays  [author] 12 Jan @ 8:09pm 
@Manterok Create a test save with just this mod and a starter pack. When you load in unequip your bag and see if the button for it is still there
Manterok 12 Jan @ 3:58pm 
I guess I don't understand what this mod is supposed to do. I had sewing kit in my main inventory, and could not access it without equipping it, or putting it down. Maybe it's a mod conflict.
Joe_Blo_le_Hobo 8 Jan @ 6:14pm 
Haven't tried this yet but I've been missing nested containers soooo much. I hope this works as intended, or like... the way I hope it does. Thanks a lot for your efforts!
JawKneePlays  [author] 7 Jan @ 7:44pm 
@fristy5mm if you can send me a log output that would be great.

Again, currently this mod does NOT support nesting. You maybe using the previous version of the mod which attempted nesting but that was removed in the latest version.

I suggest making sure the mod is up to date and see if you are getting the same behavior. If you are, then I think something else is happening to allow you to nest?!
frosty5mm 7 Jan @ 6:16pm 
@JawKneePlays

Tested with this mod and difficulty mode only, same behavior:
Put bag 1 in bag 2
Drop bag 2
Transparent icon for bag 1 appears, same when in car.

Use barricaded start to start with some bags, after the crash it seems to remove the barricades and bags.

When also using Proximity inventory, items from nested bag (1) is also available in the window from that mod.


Can it be due to resolution?
JawKneePlays  [author] 7 Jan @ 3:01pm 
@Greatcalzones Thanks a lot pal, really appreciate it. It seems so simple at first too lol

I think if the game didn't completely crash every time I tested it I could get somewhere. Anyway, I'll keep trying, or I may look at a workaround, so the buttons are only added after opening that container. This could resolve large lists of containers etc. Makes it a bit more realistic too

@skully gave me that idea
Greatcalzones 7 Jan @ 2:52pm 
I'm loving the mod, and thank you for doing the dev work to get this functioning! I also tried diving in and getting deeper levels of container recursion to work (like B41 Nested Containers) and you're 1000% right when you say this is tough to get working!

Keep up the great work!
JawKneePlays  [author] 7 Jan @ 2:49pm 
Just got home to read your comment properly.

So yeah, another mod is probably extending this functionality, but to the same point I had it when trying to nest containers, it crashes. It looks good initially until you try to open the containers.

I am looking into get this to function and will probably introduce it as a side mod or separate if I can get it to work.

I'll try reaching out to Mxswat. I'm a complete novice with lua and modding so the learning has begun!! Thanks again for the feedback
JawKneePlays  [author] 7 Jan @ 2:41pm 
Btw, you will know my mod created the buttons because they are dimmer than the default buttons. Just to be sure it's my mod creating those nests
JawKneePlays  [author] 7 Jan @ 2:38pm 
@frosty5mm can you check it's my mod doing that? Because mine should only function on the player inventory. Nesting of containers shouldn't exists as of now.

I don't want to go debugging unless it's for sure my code that is causing your issue

Thanks for the feedback pal
frosty5mm 7 Jan @ 2:02pm 
Part 2. Had to split the message.

II.
In the trunk of cars
Get 2 bags
Put bag A in Bag B
Put bag B in the trunk of a car
Sometimes it does not work, only showing B.
Most of the time it will show bag B, a shortcut for bag B, and bag A as if it is in the trunk.
If you click bag A from the trunk menu, the game crashes.

Crafting seems to work most of the time from all containers, if using the global menu from Proximity inventory.

You might want to consider separate versions to test nested containers,
using the items inside the bags might work without the buggy side menu clones.
See if you can do something with that info, let me know if I can look into anything else, I would be glad to help.
frosty5mm 7 Jan @ 2:02pm 
I tried a few things.

I also use Proximity inventory (by Mxswat), Customizable Containers, Better containers and a lot of other mods,
but I think the one you might be interested in talking to is Mxwat,
there seems to be an interaction with his mod that makes yours work just fine, unless you click the wrong container in the side menu.

However, nested containers crash the game.
The issue (I think):

I. On ground and in containers
Get 2 bags
Put bag A in Bag B
In inventory, this does nothing
Drop bag B on the ground
At least for me with the mods I get: 1 global menu, 1 bag A, 1 bag B.

Both bags look like they are dropped on the ground, no shortcut

In boxes it kind of works but you still get the odd bag without shortcut that crashes the game sometimes.

The global menu shows all items inside both bags, most of the time (It sometimes does not work with huge hoards of items).
JawKneePlays  [author] 7 Jan @ 9:05am 
@Fuyuno In default B42 if you have a container (a bag or first aid kit) in your base inventory, there is no button to open it to look inside. You need to equip these items to open them.

This mod creates a button for those containers so you don't need to equip them to view the contents. You'll know it's the mod adding the button because it's dimmer than the default buttons

I'm looking into nesting etc, but it's fucking hard lol
Fuyuno 7 Jan @ 8:39am 
legit curious, in what ways is this different from current vanilla B42 behaviour?
JawKneePlays  [author] 7 Jan @ 5:26am 
@Mai Shot great news!!!
Mai Shot 6 Jan @ 9:37pm 
@JawKneePlays
It work , Nice job :steamthumbsup:
Thank you
JawKneePlays  [author] 6 Jan @ 7:36pm 
I think it's fixed!!

Give it a test and let me know if it crashes for you at all!!

Thanks guys
Miko Niku 6 Jan @ 5:43am 
look like the crash caused by contain icon that was duplicated on the side panel.
Miko Niku 6 Jan @ 5:31am 
so far if you checking one of the plastic bag that inside another plastic bag cause the game to crash.
JawKneePlays  [author] 5 Jan @ 8:19pm 
Okay, if it's causing these issues I might pull the mo until I test it further. I don't want it breaking people's saves.
JawKneePlays  [author] 5 Jan @ 8:18pm 
@Space Lord, sorry to hear that pal. Was the bag from a mod or from the base game? This may be why the Nested Containers code was so complicated...I'll have a look tomorrow. o you have a log by chance?
O MISMO PARA MI CTD UNA Y OTRA VEZ AL TOCAR MOCHILAS Y PASAR COSAS A OTRA MOCHILA O AL SUELO Y CUANDO SE BLOQUEA EL JUEGO Y HAY QUE SALIR DE FORMA FORZADA Y ABRIMOS DE NUEVO EL UNICIO DE SESION DE EL PC CUANDO SE ENTRA AL JUEGO YA NO HAY NADA QUE AYAMOS PUESTO EN EL SUELO MENUDO FASTIDIO QUE AHORA E PERDIDO DOS BUENAS PARTIDAS DODNE TOCO BUEN LOOT NADA MAS EMPEZAR
Space Lord 5 Jan @ 7:25pm 
Getting a lot of crashes with this mod. Had one bag completely disappear after crashing. In 300 didn't have the problem until I downloaded this. To recreate I did:
Got in vehicle, clicked on backpack on my back to unequip and crashed. Bag disappeared after login in. Also crashed when clicking bags on vehicle seats and on vehicle trunk.
Ender 5 Jan @ 6:57pm 
Getting crashes with this too, unfortunately
JawKneePlays  [author] 5 Jan @ 1:50pm 
@skully, nah man, I used ChatGPT to teach me and get a head start. If you get stuck though, fire me a message and I'll help if I can. Best of luck pal!
Skully 5 Jan @ 12:17pm 
Alright. I'm gonna try to do it as well, might try it since it came to mind haha. Did you watch any tutorials on PZ modding?
𝕶𝖚𝖊𝖗𝖐𝖞 5 Jan @ 10:45am 
wait i just dropped them on the ground and used the proximity inventory to access them
JawKneePlays  [author] 5 Jan @ 10:25am 
Did someone reward me points for this?? Thank you whoever you are! ✌️♥️
JawKneePlays  [author] 5 Jan @ 10:22am 
No. You can access the first aid kit if you take it out of your bag without having to equip it or access the first aid kit if it's in a cupboard or something.
By default in B42 you have to equip these boxes to open them (correct me if I'm wrong here)
Coby 5 Jan @ 10:14am 
does this work like when, i have a first aid kid in my backpack, ill be able to still have acces to the items in the first aid kid?
JawKneePlays  [author] 5 Jan @ 10:09am 
@yayie if I can get @skully's suggestion to work, and then force it as a requirement, then this would resolve the issue of 20 icons for garbage bags. What do you think?
JawKneePlays  [author] 5 Jan @ 10:06am 
Mod *