# Debug error after hostile NPC killed

**URL:** https://discourse.cataclysmdda.org/t/debug-error-after-hostile-npc-killed/21765
**Category:** The Garage
**Created:** [October 24, 2019, 12:03pm UTC](https://discourse.cataclysmdda.org/t/debug-error-after-hostile-npc-killed/21765 "2019-10-24T12:03:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Paul\_Blay](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/paul_blay/32/6803_2.png) [@Paul\_Blay](https://discourse.cataclysmdda.org/u/Paul_Blay)
#### Post date: [October 24, 2019, 12:03pm UTC](https://discourse.cataclysmdda.org/t/debug-error-after-hostile-npc-killed/21765/1 "2019-10-24T12:03:19Z")

</div>

So a random NPC turned up, told me to piss off, and stole a bunch of stuff from my vehicle. Needless to say I was not keen on this development. Looking at the space where she fell I get debug messages about a non-existent faction (probably because the last member died?).

DEBUG : Requested non-existing faction ‘solo\_Bonnie McLean’

FUNCTION : faction\* faction\_manager::get(const faction\_id&, bool)  
FILE : src/faction.cpp  
LINE : 427

---

<div class="post-metadata">

### Author: ![dpwb](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dpwb/32/2609_2.png) [@dpwb](https://discourse.cataclysmdda.org/u/dpwb)
#### Post date: [October 24, 2019, 4:30pm UTC](https://discourse.cataclysmdda.org/t/debug-error-after-hostile-npc-killed/21765/2 "2019-10-24T16:30:59Z")

</div>

so you examined the items that the NPC dropped - or pressed X to hover over the tile?

what version of the game are you running?

---

<div class="post-metadata">

### Author: ![Paul\_Blay](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/paul_blay/32/6803_2.png) [@Paul\_Blay](https://discourse.cataclysmdda.org/u/Paul_Blay)
#### Post date: [October 24, 2019, 4:36pm UTC](https://discourse.cataclysmdda.org/t/debug-error-after-hostile-npc-killed/21765/3 "2019-10-24T16:36:58Z")

</div>

It was 9796, but it may have been a bad save file. I’d done things to it. ^ ^; Probably better wait to see if it’s repeatable.

---

<div class="post-metadata">

### Author: ![dpwb](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dpwb/32/2609_2.png) [@dpwb](https://discourse.cataclysmdda.org/u/dpwb)
#### Post date: [October 24, 2019, 4:40pm UTC](https://discourse.cataclysmdda.org/t/debug-error-after-hostile-npc-killed/21765/4 "2019-10-24T16:40:17Z")

</div>

Youve done things to the save file? right yeah that could do it.

This bug no longer occurs ( or should no longer occur ) on latest experimental.

You could test ona new save file, spawn NPC, make them hostile, kill them and try and reproduce.
