# NPC dialog glitch in 9620

**URL:** https://discourse.cataclysmdda.org/t/npc-dialog-glitch-in-9620/21345
**Category:** The Garage
**Created:** [September 15, 2019, 4:52pm UTC](https://discourse.cataclysmdda.org/t/npc-dialog-glitch-in-9620/21345 "2019-09-15T16:52:07Z")
**Posts on this page:** 7
**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: [September 15, 2019, 4:52pm UTC](https://discourse.cataclysmdda.org/t/npc-dialog-glitch-in-9620/21345/1 "2019-09-15T16:52:07Z")

</div>

Random generated NPC encounter.

![npcdialog](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/3/3acf7c4986a8b12467c50bc5f327511ccb3e1ce3.png)

I don’t really follow how the dialog system works. I had a quick look at the code, but _shrug_.

---

<div class="post-metadata">

### Author: ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)
#### Post date: [September 15, 2019, 5:40pm UTC](https://discourse.cataclysmdda.org/t/npc-dialog-glitch-in-9620/21345/2 "2019-09-15T17:40:55Z")

</div>

I don’t know what’s going on here, either. I’ve been seeing this for a while, I wrote a specific unit test case to help debug it, and the unit test case works every time. It’s very confusing.

---

<div class="post-metadata">

### Author: ![Ricky\_Van](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/ricky_van/32/4666_2.png) [@Ricky\_Van](https://discourse.cataclysmdda.org/u/Ricky_Van)
#### Post date: [September 18, 2019, 2:33am UTC](https://discourse.cataclysmdda.org/t/npc-dialog-glitch-in-9620/21345/3 "2019-09-18T02:33:58Z")

</div>

i don’t know if this is true but few days ago, i see on the github repo there is some sort of JSON enforcement that causing mods in-game bugged. is it related to that or different problem?

---

<div class="post-metadata">

### Author: ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)
#### Post date: [September 18, 2019, 12:24pm UTC](https://discourse.cataclysmdda.org/t/npc-dialog-glitch-in-9620/21345/4 "2019-09-18T12:24:30Z")

</div>

That’s an entirely different issue. The NPC’s have perfectly valid JSON, they just don’t seem to have an NPC class when you ask them their job.

---

<div class="post-metadata">

### Author: ![Ricky\_Van](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/ricky_van/32/4666_2.png) [@Ricky\_Van](https://discourse.cataclysmdda.org/u/Ricky_Van)
#### Post date: [September 18, 2019, 1:02pm UTC](https://discourse.cataclysmdda.org/t/npc-dialog-glitch-in-9620/21345/5 "2019-09-18T13:02:38Z")

</div>

hmm interesting…

sadly i don’t have knowledge in coding but i believe github team will be able to fix it.

---

<div class="post-metadata">

### Author: ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)
#### Post date: [September 21, 2019, 2:41pm UTC](https://discourse.cataclysmdda.org/t/npc-dialog-glitch-in-9620/21345/6 "2019-09-21T14:41:06Z")

</div>

Just as a note, the reason I have the “Great contributor” tag is because I am an active developer/contributor who has done 70+% of the recent work with NPC dialogue. So for this bug, I basically am the github team.

Finally got the bug to reproduce when I was awake enough to do something about it. Apparently randomly generated NPCs were getting the NPC\_MISSION\_TRAVELLING mission, which makes sense, but there wasn’t a response coded for that mission. Simple enough to fix.

---

<div class="post-metadata">

### Author: ![Ricky\_Van](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/ricky_van/32/4666_2.png) [@Ricky\_Van](https://discourse.cataclysmdda.org/u/Ricky_Van)
#### Post date: [September 22, 2019, 1:26am UTC](https://discourse.cataclysmdda.org/t/npc-dialog-glitch-in-9620/21345/7 "2019-09-22T01:26:34Z")

</div>

allright… glad to see the problem solved easily.
