Search found 4 matches

by griz
Fri Aug 20, 2021 9:04 pm
Forum: Dialogue System for Unity
Topic: Null reference exception for a variable that's not actually null
Replies: 7
Views: 909

Re: Null reference exception for a variable that's not actually null

Turned out the problem was more or less what you mentioned earlier, but with the QuestController being destroyed rather than the Dialogue Manager object being swapped to a new one. The Luas were being registered with the first level load, then when leaving the level, QuestController would be dumped ...
by griz
Tue Aug 17, 2021 6:25 am
Forum: Dialogue System for Unity
Topic: Null reference exception for a variable that's not actually null
Replies: 7
Views: 909

Re: Null reference exception for a variable that's not actually null

The variable throwing the null error is just the dialogueNPC gameobject from line 202 which is just : Debug.Log("closest Dialogue NPC : " + dialogueNPC.name); I threw in some more debugs here and there. On the script that passes in the variable, it will return that the dialogueNPC variable...
by griz
Sat Aug 14, 2021 6:11 am
Forum: Dialogue System for Unity
Topic: Null reference exception for a variable that's not actually null
Replies: 7
Views: 909

Re: Null reference exception for a variable that's not actually null

Hi, thanks for the quick reply. The QuestController.cs is our script that's mainly for spawning quest spawning but includes our Luas for DialogueSytem in the scene. Line 202 that's throwing the error here is just a debug printing the name of the gameobject that's causing the null error. The variable...
by griz
Fri Aug 13, 2021 10:17 am
Forum: Dialogue System for Unity
Topic: Null reference exception for a variable that's not actually null
Replies: 7
Views: 909

Null reference exception for a variable that's not actually null

Having an issue with running a custom Lua script through dialogue. It will run properly the first time with no errors, but when I change scenes then return to the original, I get a null error for a variable in the method. The issue is that if I look at the inspector, the variable is not null. I can ...