# 5d24962-SDL: 2 Inventory related bugs

**URL:** https://discourse.cataclysmdda.org/t/5d24962-sdl-2-inventory-related-bugs/8411
**Category:** The Garage
**Created:** [December 24, 2014, 3:39pm UTC](https://discourse.cataclysmdda.org/t/5d24962-sdl-2-inventory-related-bugs/8411 "2014-12-24T15:39:49Z")
**Posts on this page:** 10
**Page:** 2

<div class="post-metadata">

### Author: ![Goombah](https://avatars.discourse-cdn.com/v4/letter/g/45deac/32.png) [@Goombah](https://discourse.cataclysmdda.org/u/Goombah)
#### Post date: [December 31, 2014, 6:52am UTC](https://discourse.cataclysmdda.org/t/5d24962-sdl-2-inventory-related-bugs/8411/21 "2014-12-31T06:52:38Z")

</div>

So it looks like this is still ongoing?

---

<div class="post-metadata">

### Author: ![KA101](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@KA101](https://discourse.cataclysmdda.org/u/KA101)
#### Post date: [December 31, 2014, 7:31am UTC](https://discourse.cataclysmdda.org/t/5d24962-sdl-2-inventory-related-bugs/8411/22 "2014-12-31T07:31:34Z")

</div>

> [@Goombah](#):
>
> So it looks like this is still ongoing?

I think so, unfortunately–Kevin got a fix up for flame/cookoff-related crashing but that’s not food. That said, it’s not precisely helpful to bump about it. We know.

---

<div class="post-metadata">

### Author: ![AllisonW](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@AllisonW](https://discourse.cataclysmdda.org/u/AllisonW)
#### Post date: [December 31, 2014, 8:11pm UTC](https://discourse.cataclysmdda.org/t/5d24962-sdl-2-inventory-related-bugs/8411/23 "2014-12-31T20:11:58Z")

</div>

A heads-up: I’ve been getting something like this with non-tinned nonperishables as well as perishables. Things like my stockpiles of granola, dehydrated meat, dehydrated fruit, and sugar–specifically, things I crafted, that were not in containers like cardboard boxes or plastic bags–went missing when I put them in a locker that was really, really overfilled. I’ve taken to placing them on their own counter where I hope they’re safe. (I’m glad I noticed this with 21 days of summer to go.)

---

<div class="post-metadata">

### Author: ![KA101](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@KA101](https://discourse.cataclysmdda.org/u/KA101)
#### Post date: [December 31, 2014, 11:23pm UTC](https://discourse.cataclysmdda.org/t/5d24962-sdl-2-inventory-related-bugs/8411/24 "2014-12-31T23:23:52Z")

</div>

Ugh. Thanks.

---

<div class="post-metadata">

### Author: ![Narc](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/narc/32/2705_2.png) [@Narc](https://discourse.cataclysmdda.org/u/Narc)
#### Post date: [January 1, 2015, 12:21am UTC](https://discourse.cataclysmdda.org/t/5d24962-sdl-2-inventory-related-bugs/8411/25 "2015-01-01T00:21:38Z")

</div>

> [@Zipo](#):
>
> […] Happens at 'aj. […]

Coincidentally, that’s the 64th item in the tile. Interesting.

---

<div class="post-metadata">

### Author: ![Narc](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/narc/32/2705_2.png) [@Narc](https://discourse.cataclysmdda.org/u/Narc)
#### Post date: [January 1, 2015, 2:42am UTC](https://discourse.cataclysmdda.org/t/5d24962-sdl-2-inventory-related-bugs/8411/26 "2015-01-01T02:42:05Z")

</div>

And by ‘coincidentally’, I, of course, meant ‘suspiciously’. It turns out the method being used to re-add active items back onto the map after they’ve been processed has an optional parameter that is called “maxitems”, and defaults to… 64. Whenever more than 64 items are in a tile, when an active item is processed (food counts, but also active lightstrips, etc.), the items get deleted instead of being put back.

[Fix](https://github.com/CleverRaven/Cataclysm-DDA/pull/10700) has been posted and should be merged whenever.

---

<div class="post-metadata">

### Author: ![KA101](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@KA101](https://discourse.cataclysmdda.org/u/KA101)
#### Post date: [January 1, 2015, 3:03am UTC](https://discourse.cataclysmdda.org/t/5d24962-sdl-2-inventory-related-bugs/8411/27 "2015-01-01T03:03:24Z")

</div>

[quote=“Narc, post:26, topic:8411”]And by ‘coincidentally’, I, of course, meant ‘suspiciously’. It turns out the method being used to re-add active items back onto the map after they’ve been processed has an optional parameter that is called “maxitems”, and defaults to… 64. Whenever more than 64 items are in a tile, when an active item is processed (food counts, but also active lightstrips, etc.), the items get deleted instead of being put back.

[Fix](https://github.com/CleverRaven/Cataclysm-DDA/pull/10700) has been posted and should be merged whenever.[/quote]

I’m test-compiling now. Update: merged. Give build 2580 a shot, if you please.

---

<div class="post-metadata">

### Author: ![AllisonW](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@AllisonW](https://discourse.cataclysmdda.org/u/AllisonW)
#### Post date: [January 1, 2015, 6:31am UTC](https://discourse.cataclysmdda.org/t/5d24962-sdl-2-inventory-related-bugs/8411/28 "2015-01-01T06:31:38Z")

</div>

Wow, thanks for fixing this so fast, and while I still have plenty of summer left to boot. 🙂 Downloading now. I may not be able to give that much feedback because I’m obsessively reorganizing my home inventory in a panic, but I’ll pipe back up if anything does go wrong. (Also, yay, farming update and a huge chemistry update too.)

Foolish question: are/were crafted nonperishable foods like sugar, dehydrated meat and fruit, granola, and so forth “active” somehow? Because I had the same problem with them going missing, in addition to a whole boatload of canned goods and fresh fruit.

(bah and of course as soon as I’m done setting options in 2580, 2581 hits, but oh well)

---

<div class="post-metadata">

### Author: ![Zipo](https://avatars.discourse-cdn.com/v4/letter/z/fbc32d/32.png) [@Zipo](https://discourse.cataclysmdda.org/u/Zipo)
#### Post date: [January 1, 2015, 7:13am UTC](https://discourse.cataclysmdda.org/t/5d24962-sdl-2-inventory-related-bugs/8411/29 "2015-01-01T07:13:09Z")

</div>

[quote=“KA101, post:27, topic:8411”][quote=“Narc, post:26, topic:8411”]And by ‘coincidentally’, I, of course, meant ‘suspiciously’. It turns out the method being used to re-add active items back onto the map after they’ve been processed has an optional parameter that is called “maxitems”, and defaults to… 64. Whenever more than 64 items are in a tile, when an active item is processed (food counts, but also active lightstrips, etc.), the items get deleted instead of being put back.

[Fix](https://github.com/CleverRaven/Cataclysm-DDA/pull/10700) has been posted and should be merged whenever.[/quote]

I’m test-compiling now. Update: merged. Give build 2580 a shot, if you please.[/quote]  
Well imported a save and tested 2580. The problem with fruit/veg and canned goods seems to be fixed. Well done and thanks for such a quick fix.

---

<div class="post-metadata">

### Author: ![Goombah](https://avatars.discourse-cdn.com/v4/letter/g/45deac/32.png) [@Goombah](https://discourse.cataclysmdda.org/u/Goombah)
#### Post date: [January 1, 2015, 2:50pm UTC](https://discourse.cataclysmdda.org/t/5d24962-sdl-2-inventory-related-bugs/8411/30 "2015-01-01T14:50:51Z")

</div>

I wasn’t trying to bump it. I was trying to find out if it was still a problem for anyone else, to be srure, since at first I thought it was just my save that was screwed.

Sounds like it was a pain in the butt, but at least it’s fixed now from the sounds of things. 🙂

[Previous page](https://discourse.cataclysmdda.org/t/5d24962-sdl-2-inventory-related-bugs/8411.md?page=1)
