# Draw knife from survivor utility belt, crash

**URL:** <https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399>\
**Category:** The Garage\
**Created:** [August 25, 2015, 11:00am UTC](https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399 "2015-08-25T11:00:05Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thwap](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@Thwap](https://discourse.cataclysmdda.org/u/Thwap)\
**Post date:** [August 25, 2015, 11:00am UTC](https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399/1 "2015-08-25T11:00:05Z")

</div>

Version 3609, every time. Can draw fine from a sheath.

---

<div class="post-metadata">

**Author:** ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)\
**Post date:** [August 25, 2015, 2:23pm UTC](https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399/2 "2015-08-25T14:23:04Z")

</div>

Can’t reproduce. Could be a save thing.

What kind of knife?

---

<div class="post-metadata">

**Author:** ![Thwap](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@Thwap](https://discourse.cataclysmdda.org/u/Thwap)\
**Post date:** [August 25, 2015, 5:55pm UTC](https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399/3 "2015-08-25T17:55:03Z")

</div>

Yeah sorry, looks like a save thing

---

<div class="post-metadata">

**Author:** ![Random\_dragon](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@Random\_dragon](https://discourse.cataclysmdda.org/u/Random_dragon)\
**Post date:** [August 25, 2015, 7:15pm UTC](https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399/4 "2015-08-25T19:15:33Z")

</div>

Did you transfer the save from an older version to one of the more recent experimentals?

If so, is the knife in question a tanto or survival knife?

---

<div class="post-metadata">

**Author:** ![Thwap](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@Thwap](https://discourse.cataclysmdda.org/u/Thwap)\
**Post date:** [August 30, 2015, 5:00am UTC](https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399/5 "2015-08-30T05:00:36Z")

</div>

Still happening, no save shenanigans at all. v3609

EDIT: Bingo! Non-reinforced knives do not cause crash, only reinforced, exact type seems irrelevant.

---

<div class="post-metadata">

**Author:** ![Random\_dragon](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@Random\_dragon](https://discourse.cataclysmdda.org/u/Random_dragon)\
**Post date:** [August 30, 2015, 3:31pm UTC](https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399/6 "2015-08-30T15:31:50Z")

</div>

Alright, testing in build 3626, or a3a5eb2.

Survivor utility belt? Check. Steak knife? Check. Soldering iron? Check.

![](http://i810.photobucket.com/albums/zz27/Chaosvolt/Assorted%20Cataclysm%20screenshots/the%20crashening_zpst8otx3qi.png)

If you haven’t already reported this to Github, I’m gonna do some more !!SCIENCE!! on this to see what other variations yield a crash, then report it.

EDIT: Attempts to muck with this further led me to disassemble the SUB rather than debug another survivor’s belt. New bug: it ate my knife.

EDIT 2: Debugged another knife and scrap metal. Drawing knife from survivor’s belt works fine.

EDIT 3: Drawing it from a normal sheath and boots are also fine.

EDIT 4: No wait, found my knife. Didn’t eat it.

EDIT 5: Guess what? It isn’t just reinforced knives.

![](http://i810.photobucket.com/albums/zz27/Chaosvolt/Assorted%20Cataclysm%20screenshots/the%20revenge%20of%20the%20crashing_zpsjjzuvko9.png)

EDIT 6: Issue reported on github ( [https://github.com/CleverRaven/Cataclysm-DDA/issues/13453](https://github.com/CleverRaven/Cataclysm-DDA/issues/13453) ).

---

<div class="post-metadata">

**Author:** ![Thwap](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@Thwap](https://discourse.cataclysmdda.org/u/Thwap)\
**Post date:** [August 30, 2015, 5:15pm UTC](https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399/7 "2015-08-30T17:15:11Z")

</div>

Good times 🙂

---

<div class="post-metadata">

**Author:** ![Random\_dragon](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@Random\_dragon](https://discourse.cataclysmdda.org/u/Random_dragon)\
**Post date:** [August 30, 2015, 6:08pm UTC](https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399/8 "2015-08-30T18:08:38Z")

</div>

Plenty of science ensued. Dunno what the cause is. I have another hunch though, lemme test what happens when I reinforce or damage the belt…

EDIT: Nope. Condition of belt does not affect results.

---

<div class="post-metadata">

**Author:** ![Thwap](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@Thwap](https://discourse.cataclysmdda.org/u/Thwap)\
**Post date:** [September 1, 2015, 5:26am UTC](https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399/9 "2015-09-01T05:26:12Z")

</div>

Poked at this a little more, can’t figure out anything else. Thought it might have to do with the reinforcement status of the survivor belt used to make the utility belt but nope.

---

<div class="post-metadata">

**Author:** ![Slax](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/slax/32/5385_2.png) [@Slax](https://discourse.cataclysmdda.org/u/Slax)\
**Post date:** [September 1, 2015, 11:09am UTC](https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399/10 "2015-09-01T11:09:39Z")

</div>

It’s a survivor belt, man. It’s seen some shit. It’d rather take out the whole world than give you back that knife.

---

<div class="post-metadata">

**Author:** ![Thwap](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@Thwap](https://discourse.cataclysmdda.org/u/Thwap)\
**Post date:** [September 1, 2015, 5:43pm UTC](https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399/11 "2015-09-01T17:43:19Z")

</div>

Someone on Gith is saying they can’t reproduce this, but I’m reproducing it right now, using the exact steps they describe, in the latest experimental.

---

<div class="post-metadata">

**Author:** ![Random\_dragon](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@Random\_dragon](https://discourse.cataclysmdda.org/u/Random_dragon)\
**Post date:** [September 1, 2015, 6:55pm UTC](https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399/12 "2015-09-01T18:55:22Z")

</div>

They rattled off some Cygwin or whatever stuff, so I’m assuming they aren’t using the pre-compiled versions from the main site like sane people use. :V

---

<div class="post-metadata">

**Author:** ![Thwap](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@Thwap](https://discourse.cataclysmdda.org/u/Thwap)\
**Post date:** [September 1, 2015, 8:44pm UTC](https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399/13 "2015-09-01T20:44:05Z")

</div>

Confirmed: Turning off item health bars in the interface settings prevents the crash.

---

<div class="post-metadata">

**Author:** ![Random\_dragon](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@Random\_dragon](https://discourse.cataclysmdda.org/u/Random_dragon)\
**Post date:** [September 1, 2015, 8:49pm UTC](https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399/14 "2015-09-01T20:49:51Z")

</div>

Oh that is weird.

---

<div class="post-metadata">

**Author:** ![Thwap](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@Thwap](https://discourse.cataclysmdda.org/u/Thwap)\
**Post date:** [September 1, 2015, 9:39pm UTC](https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399/15 "2015-09-01T21:39:10Z")

</div>

Yeah this is such a weirdly specific bug. Only damaged/reinforced knives, only the utility belt, only with item health bars on, and only with certain compilers.

---

<div class="post-metadata">

**Author:** ![Random\_dragon](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@Random\_dragon](https://discourse.cataclysmdda.org/u/Random_dragon)\
**Post date:** [September 1, 2015, 10:07pm UTC](https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399/16 "2015-09-01T22:07:22Z")

</div>

Go home Cataclysm, you’re drunk. \>.\<

---

<div class="post-metadata">

**Author:** ![Thwap](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@Thwap](https://discourse.cataclysmdda.org/u/Thwap)\
**Post date:** [September 1, 2015, 11:29pm UTC](https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399/17 "2015-09-01T23:29:52Z")

</div>

You know what’s especially odd? The fact that it crashes when the utility belt containing the reinforced knife is activated. Not when the knife itself is drawn. You don’t even get the menu. That means the game isn’t even trying to draw the item health bars at the moment it crashes.

Here’s something else funny: I went looking through the jsons and it looked like the utility belt was the only item that both had tool uses and functioned as a sheath. Well, since the utility belt is also the only item causing this problem, that seemed noteworthy.

So I went into tools.json and slapped SHEATH\_KNIFE into the USE\_ACTION line for the toolbox. Fired up a new game, left item health bars on, made a reinforced knife, used the toolbox, and could sheath and unsheath it from the box without issue.

Then I went and replaced the entire USE\_ACTION line for the toolbox with the one from the utility belt. Fired up a new game, spawned a toolbox, and sure enough had a toolbox with all the same functions as the utility belt. Except I could still sheath and unsheath reinforced knives from it, with item health bars on, without issue.

I don’t know if any of this is helpful or not but there it is.

---

<div class="post-metadata">

**Author:** ![Random\_dragon](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@Random\_dragon](https://discourse.cataclysmdda.org/u/Random_dragon)\
**Post date:** [September 1, 2015, 11:47pm UTC](https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399/18 "2015-09-01T23:47:36Z")

</div>

That’s…what the fuck.

---

<div class="post-metadata">

**Author:** ![Thwap](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@Thwap](https://discourse.cataclysmdda.org/u/Thwap)\
**Post date:** [September 2, 2015, 12:09am UTC](https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399/19 "2015-09-02T00:09:31Z")

</div>

So I took the radiation biomonitor and did the same thing, replaced the USE\_ACTION line with the one from the utility belt. Did the whole rigamarole. Crash. So I guess it has something to do with the item being wearable? Maybe the fact that it has an item health bar itself? Or just that they’re both in the tool\_armor json? I don’t know.

---

<div class="post-metadata">

**Author:** ![Random\_dragon](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@Random\_dragon](https://discourse.cataclysmdda.org/u/Random_dragon)\
**Post date:** [September 2, 2015, 12:15am UTC](https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399/20 "2015-09-02T00:15:45Z")

</div>

Hmm, odd. Did you copy the use actions to a non-wearable item and try that?

If it works in that case, it might be because armor displays a health meter by default, whereas other items only display it when damaged or reinforced.

[Next page](https://discourse.cataclysmdda.org/t/draw-knife-from-survivor-utility-belt-crash/10399.md?page=2)
