# Game literally unplayable due to this new NPC on fire crash

**URL:** <https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557>\
**Category:** The Bunker\
**Created:** [May 26, 2018, 6:13am UTC](https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557 "2018-05-26T06:13:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![vassock](https://avatars.discourse-cdn.com/v4/letter/v/46a35a/32.png) [@vassock](https://discourse.cataclysmdda.org/u/vassock)\
**Post date:** [May 26, 2018, 6:13am UTC](https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557/1 "2018-05-26T06:13:19Z")

</div>

I started two games in a row, both Really Bad Day, and each one crashes as soon as the NPC catches fire! Is there any fix for this? This is kind of ridiculous given that half a year ago the game was more stable.

Or is the only option to disable NPCs, both random and static?

---

<div class="post-metadata">

**Author:** ![budg3](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/budg3/32/2138_2.png) [@budg3](https://discourse.cataclysmdda.org/u/budg3)\
**Post date:** [May 26, 2018, 8:09am UTC](https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557/2 "2018-05-26T08:09:26Z")

</div>

> <https://github.com/CleverRaven/Cataclysm-DDA/pull/23663>

I think this fixes it, but I haven’t done enough testing to confirm it.

---

<div class="post-metadata">

**Author:** ![vassock](https://avatars.discourse-cdn.com/v4/letter/v/46a35a/32.png) [@vassock](https://discourse.cataclysmdda.org/u/vassock)\
**Post date:** [May 26, 2018, 8:30am UTC](https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557/3 "2018-05-26T08:30:28Z")

</div>

Well I can certainly test it since my current save seems to have it happen 100% of the time. How do I apply this fix to an existing installation?

---

<div class="post-metadata">

**Author:** ![budg3](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/budg3/32/2138_2.png) [@budg3](https://discourse.cataclysmdda.org/u/budg3)\
**Post date:** [May 26, 2018, 8:38am UTC](https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557/4 "2018-05-26T08:38:52Z")

</div>

You will have to compile it yourself with the changes made to `player.cpp` and then copy your saves/mods etc over to the new custom build.

---

<div class="post-metadata">

**Author:** ![vassock](https://avatars.discourse-cdn.com/v4/letter/v/46a35a/32.png) [@vassock](https://discourse.cataclysmdda.org/u/vassock)\
**Post date:** [May 26, 2018, 8:42am UTC](https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557/5 "2018-05-26T08:42:21Z")

</div>

Is there a step-by-step process of what to download and how to do it?  
Do I just download Cataclysm-DDA-0.6.zip, edit the parts that fix tells me to edit, and compile?

---

<div class="post-metadata">

**Author:** ![budg3](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/budg3/32/2138_2.png) [@budg3](https://discourse.cataclysmdda.org/u/budg3)\
**Post date:** [May 26, 2018, 8:49am UTC](https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557/6 "2018-05-26T08:49:36Z")

</div>

If you’re on Windows I can share my compiling setup since the instructions in `COMPILING.md` didn’t work for me, or if you want to I can just give you the custom build I use, but it also has some other PRs in it (rebalanced fire and neutral traits) + a small personal edit that disables the kickstarter backer names.

---

<div class="post-metadata">

**Author:** ![BorkBorkGoesTheCode](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/borkborkgoesthecode/32/2343_2.png) [@BorkBorkGoesTheCode](https://discourse.cataclysmdda.org/u/BorkBorkGoesTheCode)\
**Post date:** [May 26, 2018, 8:56am UTC](https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557/7 "2018-05-26T08:56:12Z")

</div>

@vassock Don’t download 0.6. Download a .zip from [https://github.com/RadHazard/Cataclysm-DDA/tree/fix-clothes-dropping](https://github.com/RadHazard/Cataclysm-DDA/tree/fix-clothes-dropping) using the green “clone or download” button.

---

<div class="post-metadata">

**Author:** ![vassock](https://avatars.discourse-cdn.com/v4/letter/v/46a35a/32.png) [@vassock](https://discourse.cataclysmdda.org/u/vassock)\
**Post date:** [May 26, 2018, 9:15am UTC](https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557/8 "2018-05-26T09:15:07Z")

</div>

I got the file using the green button, extracted it, and made the two changes listed in the fix.

I also installed Git.

How do I compile it?

---

<div class="post-metadata">

**Author:** ![budg3](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/budg3/32/2138_2.png) [@budg3](https://discourse.cataclysmdda.org/u/budg3)\
**Post date:** [May 26, 2018, 9:41am UTC](https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557/9 "2018-05-26T09:41:54Z")

</div>

Assuming you’re on Windows and already got git-bash (in case you don’t: [git for windows](https://github.com/git-for-windows/git/releases)) I downloaded [MinGW-w64 - for 32 and 64 bit Windows](https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/5.3.0/threads-posix/dwarf/), [pkg-config-lite](https://sourceforge.net/projects/pkgconfiglite/) and then got the four SDL libraries:

> [https://www.libsdl.org/release/SDL2-devel-2.0.8-mingw.tar.gz](https://www.libsdl.org/release/SDL2-devel-2.0.8-mingw.tar.gz)  
> [https://www.libsdl.org/projects/SDL\_ttf/release/SDL2\_ttf-devel-2.0.14-mingw.tar.gz](https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-devel-2.0.14-mingw.tar.gz)  
> [https://www.libsdl.org/projects/SDL\_image/release/SDL2\_image-devel-2.0.3-mingw.tar.gz](https://www.libsdl.org/projects/SDL_image/release/SDL2_image-devel-2.0.3-mingw.tar.gz)  
> [https://www.libsdl.org/projects/SDL\_mixer/release/SDL2\_mixer-devel-2.0.2-mingw.tar.gz](https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-devel-2.0.2-mingw.tar.gz)

Finally you will need this edited [makefile](https://drive.google.com/open?id=1GOSr1_qBik8yslWU43Q02et4vR0TVGIP).

1. Extract MinGW to `C:\` or wherever you want.
2. Extract the contents (`bin`, `include`, `lib`, `share` folders etc) of the various SDL libraries in the `i686-w64-mingw32` (32bit) or `x86_64-w64-mingw32` (64bit) folders to the MinGW folder.
3. Extract the `bin` and `share` folder from pkg-config-lite to the MinGW folder.
4. Extract the makefile to the CDDA source folder.
5. Open git bash in the CDDA source folder (right click on folder - Git Bash here).
6. Type `export PATH=$PATH:/c/mingw32/bin` where `/c/mingw32/bin` is where you extracted MinGW.
7. Type `mingw32-make -j4 NATIVE=win32 RELEASE=1 DYNAMIC_LINKING=1 TILES=1 SOUND=1 LOCALIZE=0 BACKTRACE=0` and wait for up to an hour depending on your system. You can change `win32` to `win64` if you’re on 64bit.
8. When it’s done you should have an .exe in your CDDA source folder.
9. You will now have to paste all the SDL .DLL files (from `i686-w64-mingw32\bin\` or `x86_64-w64-mingw32\bin\`) into your CDDA source folder. Note that SDL above 2.0.5 causes weird black lines for all the mshock based tilesets. If you want to use those tilesets, you will have to get SDL 2.0.5, SDL\_mixer 2.0.1 and SDL\_image 2.0.1 as well and use their .DLLs instead.

Note that this build will not include LUA or localization support. If you want those features you will have to get the required libraries for those.

---

<div class="post-metadata">

**Author:** ![BorkBorkGoesTheCode](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/borkborkgoesthecode/32/2343_2.png) [@BorkBorkGoesTheCode](https://discourse.cataclysmdda.org/u/BorkBorkGoesTheCode)\
**Post date:** [May 26, 2018, 10:12am UTC](https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557/10 "2018-05-26T10:12:43Z")

</div>

narc0tiq has a dependency bundle named WinDepend-MSVC.zip here: [http://dev.narc.ro/cataclysm/](http://dev.narc.ro/cataclysm/)

---

<div class="post-metadata">

**Author:** ![vassock](https://avatars.discourse-cdn.com/v4/letter/v/46a35a/32.png) [@vassock](https://discourse.cataclysmdda.org/u/vassock)\
**Post date:** [May 26, 2018, 4:58pm UTC](https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557/11 "2018-05-26T16:58:47Z")

</div>

There aren’t even any executables in that folder spelled “migw32-make”

---

<div class="post-metadata">

**Author:** ![vassock](https://avatars.discourse-cdn.com/v4/letter/v/46a35a/32.png) [@vassock](https://discourse.cataclysmdda.org/u/vassock)\
**Post date:** [May 26, 2018, 5:53pm UTC](https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557/12 "2018-05-26T17:53:17Z")

</div>

So I compiled using this tutorial:

But I got the text, not tiles version and it crashes when minimized. Since I only changed two lines, is it possible to just copy from the compiled version one or two files to the bugged official version?

---

<div class="post-metadata">

**Author:** ![vassock](https://avatars.discourse-cdn.com/v4/letter/v/46a35a/32.png) [@vassock](https://discourse.cataclysmdda.org/u/vassock)\
**Post date:** [May 27, 2018, 10:02am UTC](https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557/13 "2018-05-27T10:02:39Z")

</div>

I’ve been going back and forth between instruction pieces, starting from scratch each time, and I keep running into roadblocks, like missing .h files (they’re there, but minGW stupidly doesn’t search in those directories, which raises the question of why the folder structures are there to begin with as MinGW finds the files if they are in the include dir without a folder). Even when I hunt down all the files, I then get errors with the compiler or like I mentioned I get a non-tiles version that crashes.

---

<div class="post-metadata">

**Author:** ![budg3](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/budg3/32/2138_2.png) [@budg3](https://discourse.cataclysmdda.org/u/budg3)\
**Post date:** [May 27, 2018, 10:04am UTC](https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557/14 "2018-05-27T10:04:06Z")

</div>

The executables are in the `mingw32\bin` folder, which is what you setup to use with `export PATH=$PATH:/c/mingw32/bin`. `mingw32-make` is the program used to compile using the makefile.

I also remembered that I forgot to include that you need to make some changes to the makefile. I’ve uploaded the makefile here: [https://drive.google.com/open?id=1GOSr1\_qBik8yslWU43Q02et4vR0TVGIP](https://drive.google.com/open?id=1GOSr1_qBik8yslWU43Q02et4vR0TVGIP)

---

<div class="post-metadata">

**Author:** ![vassock](https://avatars.discourse-cdn.com/v4/letter/v/46a35a/32.png) [@vassock](https://discourse.cataclysmdda.org/u/vassock)\
**Post date:** [May 27, 2018, 10:18am UTC](https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557/15 "2018-05-27T10:18:39Z")

</div>

There is no “git bash” if I install it that way. I just get a mingw folder with the only executables being a shortcut and a .bat file. Running the bat file just opens cmd which doesn’t recognize export.

---

<div class="post-metadata">

**Author:** ![budg3](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/budg3/32/2138_2.png) [@budg3](https://discourse.cataclysmdda.org/u/budg3)\
**Post date:** [May 27, 2018, 10:27am UTC](https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557/16 "2018-05-27T10:27:35Z")

</div>

Git bash should be included when you install git for windows, which I thought you already did. Here’s the one I got otherwise: [https://github.com/git-for-windows/git/releases](https://github.com/git-for-windows/git/releases)

---

<div class="post-metadata">

**Author:** ![Logen](https://avatars.discourse-cdn.com/v4/letter/l/a183cd/32.png) [@Logen](https://discourse.cataclysmdda.org/u/Logen)\
**Post date:** [May 27, 2018, 12:04pm UTC](https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557/17 "2018-05-27T12:04:19Z")

</div>

I encountered same issue, downloaded and compiled source from [https://github.com/RadHazard/Cataclysm-DDA/tree/fix-clothes-dropping](https://github.com/RadHazard/Cataclysm-DDA/tree/fix-clothes-dropping) but the bug still persists. What could be the problem? I’m on ubuntu 16.04 x64, did compilation following this guide [https://github.com/CleverRaven/Cataclysm-DDA/blob/master/COMPILING.md#linux-native-sdl-builds](https://github.com/CleverRaven/Cataclysm-DDA/blob/master/COMPILING.md#linux-native-sdl-builds)

---

<div class="post-metadata">

**Author:** ![budg3](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/budg3/32/2138_2.png) [@budg3](https://discourse.cataclysmdda.org/u/budg3)\
**Post date:** [May 27, 2018, 12:43pm UTC](https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557/18 "2018-05-27T12:43:43Z")

</div>

Alternate fix to the same problem in here by Maeyanie. If this doesn’t work the burning crash bug might not be related to the item dropping crash bugs.

> <https://github.com/CleverRaven/Cataclysm-DDA/issues/23394>

**Edit:**  
It seems like there might be two different bugs at play here. One is the crash that is related to NPCs dropping their items and the other has to do with how the game destroys items inside fires.

> <https://github.com/CleverRaven/Cataclysm-DDA/issues/23770>

  

> <https://github.com/CleverRaven/Cataclysm-DDA/issues/22555>

---

<div class="post-metadata">

**Author:** ![Logen](https://avatars.discourse-cdn.com/v4/letter/l/a183cd/32.png) [@Logen](https://discourse.cataclysmdda.org/u/Logen)\
**Post date:** [May 27, 2018, 1:48pm UTC](https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557/19 "2018-05-27T13:48:08Z")

</div>

Thanks! The solution from Maeyanie worked.

---

<div class="post-metadata">

**Author:** ![vassock](https://avatars.discourse-cdn.com/v4/letter/v/46a35a/32.png) [@vassock](https://discourse.cataclysmdda.org/u/vassock)\
**Post date:** [May 27, 2018, 5:53pm UTC](https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557/20 "2018-05-27T17:53:19Z")

</div>

OK, and that has no such file in the install dir.

Cloest I see are  
x86\_64-w64-mingw32-agrep.exe  
x86\_64-w64-mingw32-deflatehd.exe  
x86\_64-w64-mingw32-inflatehd.exe

[Next page](https://discourse.cataclysmdda.org/t/game-literally-unplayable-due-to-this-new-npc-on-fire-crash/15557.md?page=2)
