# Bug/exploit - carrying long objects inside inappropriate containers (+ object cloning?)

**URL:** <https://discourse.cataclysmdda.org/t/bug-exploit-carrying-long-objects-inside-inappropriate-containers-object-cloning/25253>\
**Category:** The Garage\
**Created:** [November 12, 2020, 11:12pm UTC](https://discourse.cataclysmdda.org/t/bug-exploit-carrying-long-objects-inside-inappropriate-containers-object-cloning/25253 "2020-11-12T23:12:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaggieMGill](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/maggiemgill/32/10309_2.png) [@MaggieMGill](https://discourse.cataclysmdda.org/u/MaggieMGill)\
**Post date:** [November 12, 2020, 11:12pm UTC](https://discourse.cataclysmdda.org/t/bug-exploit-carrying-long-objects-inside-inappropriate-containers-object-cloning/25253/1 "2020-11-12T23:12:51Z")

</div>

Hello everyone,  
I’ve been having fun with the new storage system lately and found that it is possible to put an object that is too long for a given bag inside this bag. It is achievable by putting a corresponding holster inside this bag first and then activating the holster from inside the bag and sheathing the object. This way it will appear in this bag and will stay there untill the next manipulation with this bag.

Let me show you the following example - I want to put a wood axe (len 96 cm) inside a dive bag (max len 70 cm). Obviously I can’t do this by regular means:

 ![1](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/4/49aa497d7edc46e41521b86f7edf0710341eee6b.png)

Now I’ve put that axe ring holster inside my dive bag and used it from inside my bag while standing over the axe. So it’s in. And it will stay there untill we try to put or take something from this bag or take this bag off and then put it on (it still stays inside, if you just take it off):

 ![2](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/0/03486bc7f0800e73bc0304111b7cf786e3645b6c.png)

I tested this bug on spear strap and makeshift glaive - it works too, so I think it should work on all items with holster/sheath function.

Also, while messing with bags and holsters I randomly cloned my glaive. Later I managed to reproduce it on wood axe (and on glaive again, actually I have way too much glaives now). Here is the algorithm:

1. Take any sheathed/holstered object that doesn’t fit into your bags.
2. You should recieve wield or wear query. Choose wield.
3. Then you will be asked whether or not you want to draw from sheath/holster you picked up. Choose yes.
4. The next window will give you holster/draw choice. Choose draw.
5. At this point your character will have initially holstered weapon/object in his hands. But the holster itself would steel have this object in it.
6. Congratulations, we just cloned something. At least for now this process didn’t cause any errors or crashes for me

 ![2](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/4/45082361e53a827bd97bda150f584ff077ed94bc.png)

I don’t really know if there is any connection between these bugs, but I suppose they both originate from updated storage system.

---

<div class="post-metadata">

**Author:** ![Victor](https://avatars.discourse-cdn.com/v4/letter/v/3e96dc/32.png) [@Victor](https://discourse.cataclysmdda.org/u/Victor)\
**Post date:** [November 13, 2020, 8:17am UTC](https://discourse.cataclysmdda.org/t/bug-exploit-carrying-long-objects-inside-inappropriate-containers-object-cloning/25253/2 "2020-11-13T08:17:58Z")

</div>

check these github issues and old forum topic:

> <https://github.com/CleverRaven/Cataclysm-DDA/issues/45315>
>
> \# Describe the bug
> 
> Character have no inventory space and takes "scabbard with… saber" from vehicle; subsequent game dialogs suggest to wear/wield scabbard, and then draw saber from scabbard; finally, character wielding saber (duplicated), but vehicle contains "scabbard with saber" (original saber), not empty scabbard.
> 
> \# Steps To Reproduce
> 
> 1. prepare shopping cart with "back scabbard with electrified saber" in it (saber is loaded with medium battery, high capacity);
> 2. get "back scabbard with electrified saber" by a character with no inventory space;
> 3. in dialog "not enough capacity to stash..", with options: wield saber, wear scabbard - select wield;
> 4. in dialog: draw from electrified saber (back scabbard)? Yes, no - select Yes
> 5. in dialog "use electrified saber (back scabbard)", options: sheath, draw - select draw
> 6. check character and shopping cart - character is wielding electrified saber, and shopping cart contains "scabbard with saber"
> 
> \# Expected behavior
> 
> Scabbard in vehicle basket should contain empty scabbard.
> (or as an option, empty scabbard should be placed on character tile)
> 
> \# Screenshots
> !\[CDDA\_bug\_saber-2\](https://user-images.githubusercontent.com/16246933/98517182-2fe5b280-2276-11eb-9d99-f0769ec020ff.png)
> 
> \# Versions and configuration
> - OS: Windows 10
> - Game Version: 0.E-7424-gcbcf5fd
> - Graphics version: Tiles
> - Ingame language: Russian +changed to partial Ukrainian translation with most strings not yet translated
> - Mods loaded: dda, no\_npc\_food, package\_bionic\_professions
> 
> \# Additional context
> \- save file provided
> \[Item\_duplication\_by\_wielding\_scabbard\_and\_then\_drawing\_saber\_from\_it.zip\](https://github.com/CleverRaven/Cataclysm-DDA/files/5508928/Item\_duplication\_by\_wielding\_scabbard\_and\_then\_drawing\_saber\_from\_it.zip)

> <https://github.com/CleverRaven/Cataclysm-DDA/issues/43174>
>
> \# Describe the bug
> 
> 
> Tool belt item draw clones item it contains to player in…ventory, original item remains in tool belt pocket.
> 
> \# Steps To Reproduce
> 1. Insert an item into tool belt.
> 2. Drop the tool belt.
> 3. Apply the tool belt from the ground, select "Draw tool or blade" option.
> 4. An item appears in player inventory, tool belt still contains the item.

> [@Weapon containers can be used to clone weapons and rock forge doesn't use coal](https://discourse.cataclysmdda.org/t/weapon-containers-can-be-used-to-clone-weapons-and-rock-forge-doesnt-use-coal/24781):
>
> Hi. Noticed a couple of bugs that are actually beneficial to the player but should be corrected nevertheless. If you try put on a weapon container with a weapon inside (e.g. spear strap with naginata) directly from floor without picking it up first into your inventory AND do it using W command AND you don’t have enough space in your inventory for the weapon, the game asks if you want to Draw the weapon. If you choose the option to draw in both of the successive dialogues, the weapon is actua…

---

<div class="post-metadata">

**Author:** ![MaggieMGill](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/maggiemgill/32/10309_2.png) [@MaggieMGill](https://discourse.cataclysmdda.org/u/MaggieMGill)\
**Post date:** [November 13, 2020, 8:24am UTC](https://discourse.cataclysmdda.org/t/bug-exploit-carrying-long-objects-inside-inappropriate-containers-object-cloning/25253/3 "2020-11-13T08:24:43Z")

</div>

Thanks, so the cloning issue was already noticed earlier.  
But what about packing long items?
