# Hybrid Inventory \[2019-5-8\]

**URL:** <https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953>\
**Category:** The Lab\
**Created:** [July 22, 2018, 2:33pm UTC](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953 "2018-07-22T14:33:23Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)\
**Post date:** [August 3, 2018, 8:47pm UTC](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953/21 "2018-08-03T20:47:24Z")

</div>

The maintainers want a similar system, but not hybrid. Every container should be able to store specific items, but you should also be able to let the program decide where stuff is for when you don’t care.

Unfortunately, no one seems to be working on the superior inventory system. But no one wants to merge Robik’s changes only to remove them for the superior system.

---

<div class="post-metadata">

**Author:** ![0be1isk](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/0be1isk/32/2710_2.png) [@0be1isk](https://discourse.cataclysmdda.org/u/0be1isk)\
**Post date:** [August 3, 2018, 8:49pm UTC](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953/22 "2018-08-03T20:49:24Z")

</div>

I believe reverting the changes is as simple as merging them. it would require two builds though (which I doubt is remotely a problem)

---

<div class="post-metadata">

**Author:** ![Robik](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/robik/32/1349_2.png) [@Robik](https://discourse.cataclysmdda.org/u/Robik)\
**Post date:** [August 3, 2018, 9:13pm UTC](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953/23 "2018-08-03T21:13:39Z")

</div>

> [@stk2008](#):
>
> does it not work for clothes yet trye to use it on a coat but did not seem to let me?

Easiest way to make it work with other clothing is making new .json file inside of the HybridInventory folder, copy desired clothing from default game .json files, attach extra “container\_data” element at the end, and tweak “storage” and “contains” values as you please.

Example:

```
  {
    "id": "greatcoat",
    "type": "ARMOR",
    "name": "greatcoat",
    "description": "A heavy, full-length wool coat. Cumbersome, but warm and with deep pockets.",
    "weight": 2428,
    "volume": 32,
    "price": 18000,
    "to_hit": -3,
    "material": ["wool"],
    "symbol": "[",
    "color": "blue",
    "covers": ["TORSO", "ARMS", "LEGS"],
    "coverage": 95,
    "encumbrance": 23,
    "storage": 11,
    "warmth": 50,
    "material_thickness": 4,
    "environmental_protection": 1,
    "flags": ["VARSIZE", "POCKETS", "COLLAR", "OUTER"],
    "container_data" : {
        "contains": 11
    }		
  }

```

Since you did not specify the exact type of coat, I vent with greatcoat, but it is the same for the rest. Original “storage” was 22, I splitted the value between “storage” and “contains” to both having 11.

It is not necessary to keep your changes in your own .json file, but it is much easier to keep your changes when you download new .zip that way.

---

<div class="post-metadata">

**Author:** ![Robik](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/robik/32/1349_2.png) [@Robik](https://discourse.cataclysmdda.org/u/Robik)\
**Post date:** [August 8, 2018, 5:28am UTC](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953/24 "2018-08-08T05:28:11Z")

</div>

I updated the my branch with latest changes in vanilla game and compiled game.

The compiled game contains these features aside from HI itself:

- Sort out my loot, please - [PR](https://github.com/CleverRaven/Cataclysm-DDA/pull/24488)
- Chainsaw and a tree - [PR](https://github.com/CleverRaven/Cataclysm-DDA/pull/24634)
- Farm - keep animals / pets inside of an designated animal zone (depends on Sort out my loot, I’l PR it in the future)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/5/5af81e446ecdfca639ed3119dec0d1b467684be6.jpg)

---

<div class="post-metadata">

**Author:** ![stk2008](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@stk2008](https://discourse.cataclysmdda.org/u/stk2008)\
**Post date:** [August 8, 2018, 12:41pm UTC](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953/25 "2018-08-08T12:41:05Z")

</div>

Realy wish this could be added to main branch as an option ETC LOVE IT 🙂

---

<div class="post-metadata">

**Author:** ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)\
**Post date:** [August 8, 2018, 1:01pm UTC](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953/26 "2018-08-08T13:01:34Z")

</div>

I am so in favor of “keep pets inside a zone”. It’s probably not going to get accepted, but just something to keep animals from wandering out of their animal pens would be great.

---

<div class="post-metadata">

**Author:** ![TheZoneWizard](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thezonewizard/32/1397_2.png) [@TheZoneWizard](https://discourse.cataclysmdda.org/u/TheZoneWizard)\
**Post date:** [August 9, 2018, 6:25am UTC](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953/27 "2018-08-09T06:25:14Z")

</div>

I hear good things about using nails + hammer + the beasties feet =D

---

<div class="post-metadata">

**Author:** ![Mantar](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mantar/32/42_2.png) [@Mantar](https://discourse.cataclysmdda.org/u/Mantar)\
**Post date:** [August 9, 2018, 9:27pm UTC](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953/28 "2018-08-09T21:27:34Z")

</div>

Well yeah, you have to nail them to the perch, otherwise they’ll muscle up to those bars and VOOM!

---

<div class="post-metadata">

**Author:** ![Robik](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/robik/32/1349_2.png) [@Robik](https://discourse.cataclysmdda.org/u/Robik)\
**Post date:** [August 11, 2018, 10:36am UTC](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953/29 "2018-08-11T10:36:30Z")

</div>

> [@mlangsdorf](#):
>
> It’s probably not going to get accepted

Yeah, I am not even sure I want to try. I have enough of drama as it is 😉

  

I updated the my branch with latest changes in vanilla game and compiled game.

The compiled game contains these features aside from HI itself:

- Activation and Reload of specific items without picking them up - [PR](https://github.com/CleverRaven/Cataclysm-DDA/pull/24732)
- Sort out my loot, please - [PR](https://github.com/CleverRaven/Cataclysm-DDA/pull/24488)
- Farm - keep animals / pets inside of an designated animal zone (depends on Sort out my loot, I’l PR it in the future)

Chainsaw and a tree - [PR](https://github.com/CleverRaven/Cataclysm-DDA/pull/24634) got into the mainline, so it is no longer an extra

---

<div class="post-metadata">

**Author:** ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)\
**Post date:** [August 11, 2018, 12:10pm UTC](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953/30 "2018-08-11T12:10:18Z")

</div>

Thank you for doing the chainsaw work, that was great stuff.

---

<div class="post-metadata">

**Author:** ![TheKobold](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thekobold/32/513_2.png) [@TheKobold](https://discourse.cataclysmdda.org/u/TheKobold)\
**Post date:** [August 12, 2018, 5:25am UTC](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953/31 "2018-08-12T05:25:49Z")

</div>

I really like the looks of the sort out my loot please. I waste so much IRL time sorting my loot, even though in game time it is trivial, most of the time is spent scanning the list to see what I want where and going back when I realize I’ve missed placing something in my piles. I hope it gets mainlined, despite the drama… Also hope the guy doing the base mechanics hasn’t really left, as both look like tasty additions.

---

<div class="post-metadata">

**Author:** ![Robik](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/robik/32/1349_2.png) [@Robik](https://discourse.cataclysmdda.org/u/Robik)\
**Post date:** [August 12, 2018, 6:13am UTC](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953/32 "2018-08-12T06:13:14Z")

</div>

> [@mlangsdorf](#):
>
> Thank you for doing the chainsaw work, that was great stuff.

Glad you like it.

It is still nothing compared to additions some other guys are doing, like you and nexusmrsep.

Or the mergers, ZhilkinSerg does insane amount of work, though I noticed that the only mergers seems to be him and Rivet… not sure if it can stay like that for prolonged period of time.

---

<div class="post-metadata">

**Author:** ![Robik](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/robik/32/1349_2.png) [@Robik](https://discourse.cataclysmdda.org/u/Robik)\
**Post date:** [August 12, 2018, 6:18am UTC](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953/33 "2018-08-12T06:18:26Z")

</div>

> [@TheKobold](#):
>
> I hope it gets mainlined, despite the drama…

Shouldn’t be a problem. It might get nerfed some more game time wise, but I did not notice any indication that it would be rejected in its entirety.

> [@TheKobold](#):
>
> Also hope the guy doing the base mechanics hasn’t really left, as both look like tasty additions.

I hope he will return too.  
I don’t play with NPC because they suck. Anyone who works on them to suck less, is valuable contributor.

---

<div class="post-metadata">

**Author:** ![TheKobold](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thekobold/32/513_2.png) [@TheKobold](https://discourse.cataclysmdda.org/u/TheKobold)\
**Post date:** [August 12, 2018, 3:01pm UTC](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953/34 "2018-08-12T15:01:43Z")

</div>

The time nerf argument is silly, you proved your point flawlessly.

---

<div class="post-metadata">

**Author:** ![Robik](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/robik/32/1349_2.png) [@Robik](https://discourse.cataclysmdda.org/u/Robik)\
**Post date:** [August 13, 2018, 4:53am UTC](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953/35 "2018-08-13T04:53:29Z")

</div>

I am working on some farming improvements, so I thought I post a sample 20s long video of the farm plot tiling feature as an appetizer [here](https://youtu.be/d3Iv1RNR5_A).

---

<div class="post-metadata">

**Author:** ![TheKobold](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thekobold/32/513_2.png) [@TheKobold](https://discourse.cataclysmdda.org/u/TheKobold)\
**Post date:** [August 13, 2018, 5:00am UTC](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953/36 "2018-08-13T05:00:54Z")

</div>

QoL improvements like this are what Cata needs imho.

---

<div class="post-metadata">

**Author:** ![Robik](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/robik/32/1349_2.png) [@Robik](https://discourse.cataclysmdda.org/u/Robik)\
**Post date:** [August 15, 2018, 3:33pm UTC](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953/37 "2018-08-15T15:33:08Z")

</div>

I updated the my branch with latest changes in vanilla game and compiled game.

The compiled game contains these features aside from HI itself:

- Activation and Reload of specific items without picking them up - [PR](https://github.com/CleverRaven/Cataclysm-DDA/pull/24732)
- Sort out my loot, please - [PR](https://github.com/CleverRaven/Cataclysm-DDA/pull/24488)
- Farm (depends on Sort out my loot, I’l PR it in the future)
  - Animal zone - keep animals / pets inside of an designated animal zone
  - Plot zone - till nearby plot zones, you can set specific seed for each plot zone and plant them

Here is video to see tilling and planting in action.

Compiled game has improved version where you can see selected seed for plant zone in Zone Manager window.

---

<div class="post-metadata">

**Author:** ![TheKobold](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thekobold/32/513_2.png) [@TheKobold](https://discourse.cataclysmdda.org/u/TheKobold)\
**Post date:** [August 15, 2018, 7:25pm UTC](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953/38 "2018-08-15T19:25:04Z")

</div>

Finally. I found it so annoying to pick up a lantern and then light it and then put it back down again. Same with some of the tools. You sir, are the hero we need.

---

<div class="post-metadata">

**Author:** ![Robik](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/robik/32/1349_2.png) [@Robik](https://discourse.cataclysmdda.org/u/Robik)\
**Post date:** [August 17, 2018, 8:03pm UTC](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953/39 "2018-08-17T20:03:48Z")

</div>

I updated the my branch with latest changes in vanilla game and compiled game.

It contains my latest changes in Farm - Plot zone.

If you have Zone manager opened, all zones that support the feature will have its tiles marker with specific graphics. It does solve the problem of designating multiple zones in one go (until you till them all and separation is clearly visible) and trying to remember where the previous one ended.

Currently the only zone that supports it is Plot zone.

Here is a picture how it looks.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/c/c70527fe61be546fbbe60682829987a259b39f0c.jpeg)

---

<div class="post-metadata">

**Author:** ![TheKobold](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thekobold/32/513_2.png) [@TheKobold](https://discourse.cataclysmdda.org/u/TheKobold)\
**Post date:** [August 25, 2018, 2:57am UTC](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953/40 "2018-08-25T02:57:08Z")

</div>

In Sort out my loot please, what does P. food and P. drink stand for… I feel like its probably obvious but i’m not seeing it.

Btw Congrats on getting such a badass feature PRed. Zones were such an under utilized and potentially useful feature.

NM I read the PR more closely and saw it.

[Previous page](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953.md?page=1)

[Next page](https://discourse.cataclysmdda.org/t/hybrid-inventory-2019-5-8/15953.md?page=3)
