# PSA: Nested Containers is now live in experimental

**URL:** <https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529>\
**Category:** The Drawing Board\
**Tags:** inventory\
**Created:** [May 3, 2020, 8:09pm UTC](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529 "2020-05-03T20:09:34Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![Clek](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/clek/32/1410_2.png) [@Clek](https://discourse.cataclysmdda.org/u/Clek)\
**Post date:** [May 15, 2020, 7:25am UTC](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529/61 "2020-05-15T07:25:15Z")

</div>

Oh I just remembered; I have a shotgun waist bandolier and picking up shot shells automatically insert them there which is… good but it doesn’t tell you that it does. The Shot shells appear in your inventory as normal and when you look at them you have no way of knowing what container they’re in. Only when I examined all my containers one by one it tells you what items they’re holding and only then I noticed that they were in the bandolier already. And I miss the amount info that was available in the inventory screen itself like: bandolier (13/25).

And the list of contained items in the info box for a container is wierdly spaced out. My backpack looks like this then:  
lighter

molotov

military ID card

military ID card

military ID card

science ID card (2)

See how some stack and skme don’t?

---

<div class="post-metadata">

**Author:** ![KorGgenT](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/korggent/32/12330_2.png) [@KorGgenT](https://discourse.cataclysmdda.org/u/KorGgenT)\
**Post date:** [May 15, 2020, 3:26pm UTC](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529/62 "2020-05-15T15:26:08Z")

</div>

just so y’all are aware, this is the one thing i have been working on for the past week. all other bugs have been deferred (at least that i can work on) until i can get this merged. [https://github.com/CleverRaven/Cataclysm-DDA/pull/40399](https://github.com/CleverRaven/Cataclysm-DDA/pull/40399)

---

<div class="post-metadata">

**Author:** ![Trigon](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/trigon/32/2668_2.png) [@Trigon](https://discourse.cataclysmdda.org/u/Trigon)\
**Post date:** [May 15, 2020, 4:58pm UTC](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529/63 "2020-05-15T16:58:22Z")

</div>

Those are some key issues. Thank you KorGgenT!

---

<div class="post-metadata">

**Author:** ![Beetlecat](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/beetlecat/32/1305_2.png) [@Beetlecat](https://discourse.cataclysmdda.org/u/Beetlecat)\
**Post date:** [May 16, 2020, 3:46am UTC](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529/64 "2020-05-16T03:46:32Z")

</div>

Beautiful.

Thanks for your continued work on this. CDDA just gets better and better 🙂

---

<div class="post-metadata">

**Author:** ![Clek](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/clek/32/1410_2.png) [@Clek](https://discourse.cataclysmdda.org/u/Clek)\
**Post date:** [May 16, 2020, 8:04am UTC](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529/65 "2020-05-16T08:04:07Z")

</div>

Did I read that right that guns now have “pockets” that only allow certain mags to be inserted and mags have “pockets” that only allow a certain typ of bullet?  
That’s funny 😃

---

<div class="post-metadata">

**Author:** ![Dany\_Raven](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dany_raven/32/8544_2.png) [@Dany\_Raven](https://discourse.cataclysmdda.org/u/Dany_Raven)\
**Post date:** [May 16, 2020, 4:10pm UTC](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529/66 "2020-05-16T16:10:46Z")

</div>

about to start a game with the latest exp release

wish me good luck… I already have headache ☹

---

<div class="post-metadata">

**Author:** ![Beetlecat](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/beetlecat/32/1305_2.png) [@Beetlecat](https://discourse.cataclysmdda.org/u/Beetlecat)\
**Post date:** [May 16, 2020, 7:14pm UTC](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529/67 "2020-05-16T19:14:53Z")

</div>

It seems funny to phrase it that way, but it creates a modular system that can be reproduced in amazing ways.

---

<div class="post-metadata">

**Author:** ![Dany\_Raven](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dany_raven/32/8544_2.png) [@Dany\_Raven](https://discourse.cataclysmdda.org/u/Dany_Raven)\
**Post date:** [May 17, 2020, 8:28am UTC](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529/68 "2020-05-17T08:28:20Z")

</div>

well that’s the least to ask for a gun system to work in a realistic way

there actually are tons of guns that accept only their compatible magazine

but there are many types of ammo that are compatible with many types of guns if I recall

So yea, the pocket system is easily adaptable to the gun system

---

<div class="post-metadata">

**Author:** ![zL0ki](https://avatars.discourse-cdn.com/v4/letter/z/e95f7d/32.png) [@zL0ki](https://discourse.cataclysmdda.org/u/zL0ki)\
**Post date:** [May 17, 2020, 10:40am UTC](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529/69 "2020-05-17T10:40:09Z")

</div>

I’ve been playing this game on and off for many years. This recent playthrough I’ve noticed how immersive it’s become. Serious respect to all the contributors.

Enjoying testing the nested containers.

Couple of thoughts:

I modded a rucksack with several pockets. The 1st a general pocket and the 2nd a belt clip holster type. It currently attaches the item to the first pocket as it fulfils the requirements to fit in it.

Proposal - If you attach an item (e.g with belt\_clip flag) to a container that has several pockets, one of which has flag restriction belt\_clip, it tries to fill that pocket first.

Is this useful? For me it’s more down to visual immersion and a little item management. I’m imagining a rucksack with your general gear in the main bag and e.g an ice pick hanging by the side.

I have a few modded armor/clothes to accept some goto tools. This had the ‘benefit’ of hiding these tools from the inventory list.  
It de-cluttered my standard tools away from the hording/scavenging items I collected. I’m not sure if this was the intended purpose but it was a nice outcome/feature.

Would a similar feature be beneficial? A way to hide certain items from standard inventory view.

Take all with a pinch of salt. Mere musings

---

<div class="post-metadata">

**Author:** ![Segertas](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/segertas/32/8757_2.png) [@Segertas](https://discourse.cataclysmdda.org/u/Segertas)\
**Post date:** [May 17, 2020, 6:45pm UTC](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529/70 "2020-05-17T18:45:57Z")

</div>

> [@zL0ki](#):
>
> Would a similar feature be beneficial? A way to hide certain items from standard inventory view.

Why not a simple toggle on containers to enable/disable its content being shown in your inventory list?  
I’d like that as well.

---

<div class="post-metadata">

**Author:** ![zL0ki](https://avatars.discourse-cdn.com/v4/letter/z/e95f7d/32.png) [@zL0ki](https://discourse.cataclysmdda.org/u/zL0ki)\
**Post date:** [May 18, 2020, 9:09am UTC](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529/71 "2020-05-18T09:09:31Z")

</div>

Initially that was my thought, however, I think there a few things to consider.  
When you pick something up it conceptually goes straight into an available container.  
If you have a on/off toggle how do you distinguish between what you want to see and what you don’t?

Which led me to thinking using something similar to toggling an item as favourite. That item would remain hidden if it’s selected.

Or if you toggle a pocket/container ‘closed’ then the items in that pocket are hidden from standard views.

Downside is that would inevitably lead to greater micro management with dealing with what item goes in what pocket.

---

<div class="post-metadata">

**Author:** ![Dany\_Raven](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dany_raven/32/8544_2.png) [@Dany\_Raven](https://discourse.cataclysmdda.org/u/Dany_Raven)\
**Post date:** [May 18, 2020, 4:42pm UTC](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529/72 "2020-05-18T16:42:03Z")

</div>

there is a thing that grind my gears

in the inventory, in the food section you see the liquids that you carry

and in the containers section you see the bottles with the associated liquid in brackets

basically for a single item like a water bottle you see the single item two times in the inventory, which is pretty confusing

and another thing, I still don’t get how to choose in which container i can insert a single item

like, i wanna put my phone in the backpack, but the game put it in a pocket of my trenchcoat

---

<div class="post-metadata">

**Author:** ![Dany\_Raven](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dany_raven/32/8544_2.png) [@Dany\_Raven](https://discourse.cataclysmdda.org/u/Dany_Raven)\
**Post date:** [May 18, 2020, 5:18pm UTC](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529/73 "2020-05-18T17:18:03Z")

</div>

tried reloading a wooden needle

wooden needle 0/200 and thread disappeared

yay…

---

<div class="post-metadata">

**Author:** ![GiggleGrassGatherer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/gigglegrassgatherer/32/7743_2.png) [@GiggleGrassGatherer](https://discourse.cataclysmdda.org/u/GiggleGrassGatherer)\
**Post date:** [May 18, 2020, 5:25pm UTC](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529/74 "2020-05-18T17:25:53Z")

</div>

Should’ve checked github first, the bug is still there. But in recent video Korg said he’s working on itunderlying reasons.

---

<div class="post-metadata">

**Author:** ![Segertas](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/segertas/32/8757_2.png) [@Segertas](https://discourse.cataclysmdda.org/u/Segertas)\
**Post date:** [May 18, 2020, 7:21pm UTC](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529/75 "2020-05-18T19:21:56Z")

</div>

Just put the relevant qualities on a gun and make its magazine accept thread as ammo :^)

Oh and you need to drop items on the ground then shoot at them in order to have them get repaired.  
Maybe I should have posted in [this thread](https://discourse.cataclysmdda.org/t/we-make-terrible-suggestions-and-come-up-with-horrible-ideas-round-ii/) instead.

---

<div class="post-metadata">

**Author:** ![Valase](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/valase/32/6972_2.png) [@Valase](https://discourse.cataclysmdda.org/u/Valase)\
**Post date:** [May 18, 2020, 10:41pm UTC](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529/76 "2020-05-18T22:41:35Z")

</div>

> [@Dany\_Raven](#):
>
> […] I still don’t get how to choose in which container i can insert a single item

As far as I know, you can’t choose where you want to put it while picking the item up, but you can rearrange stuff after you’ve got it.  
Open your [i]nventory, select (as in: view description of) the container where you want to put your item, press [i]nsert and choose the item(s) you want to move to this container like in the multidrop menu.

---

<div class="post-metadata">

**Author:** ![Dany\_Raven](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dany_raven/32/8544_2.png) [@Dany\_Raven](https://discourse.cataclysmdda.org/u/Dany_Raven)\
**Post date:** [May 19, 2020, 7:16am UTC](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529/77 "2020-05-19T07:16:02Z")

</div>

I don’t have an [i]nsert option nor pressing ‘i’ works at the moment

maybe in a future update?

---

<div class="post-metadata">

**Author:** ![KorGgenT](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/korggent/32/12330_2.png) [@KorGgenT](https://discourse.cataclysmdda.org/u/KorGgenT)\
**Post date:** [May 19, 2020, 9:24am UTC](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529/78 "2020-05-19T09:24:54Z")

</div>

@Segertas the word “simple” is really downplaying the complexiy of the inventory code required to do that. but it’s on the todo list as a follow-up to bugfixing.

@Dany_Raven I added that functionaliy in the original PR, so maybe th eitem you’re trying to inset doesn’t have pockets, or you’re looking at the wrong menu.  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/b/b33aa5552eb12acea5cd09aec777a8b776ff8cfa.png)

---

<div class="post-metadata">

**Author:** ![Dany\_Raven](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dany_raven/32/8544_2.png) [@Dany\_Raven](https://discourse.cataclysmdda.org/u/Dany_Raven)\
**Post date:** [May 19, 2020, 9:49am UTC](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529/79 "2020-05-19T09:49:08Z")

</div>

OOOOOH it’s my fault, I was watching the item to insert, not the container…

ok, now it seems pretty reasonable, i can move items directly in a specific container, like a backpack, in order to have less encumbrance and weight if I need to drop the item in a pinch

thank you… now, please… fix the thread reloaded in needles T\_\_T

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [May 20, 2020, 1:59am UTC](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529/80 "2020-05-20T01:59:19Z")

</div>

Split this topic on May 20, 2020, 1:59am UTC

11 posts were split to a new topic: [Schrödinger’s inventory](https://discourse.cataclysmdda.org/t/schrodinger-s-inventory/23705)

[Previous page](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529.md?page=3)

[Next page](https://discourse.cataclysmdda.org/t/psa-nested-containers-is-now-live-in-experimental/23529.md?page=5)
