Alert display 'nil'
-
- Posts: 106
- Joined: Wed Aug 23, 2017 4:10 pm
- Location: Canada
Alert display 'nil'
Hello Tony, I'm having a weird issue where, after my first dialogue is being shown in the game and is completed, I do have an Alert with 'nil' being displayed. While debugging, I found out that in CheckAlerts(), isConversationActive is set to false. Any idea why this value is set as such?
Unity 2022.3.17f1
Dialogue System 2.2.44.1
OpenAI Addon 1.0.12
Dialogue System 2.2.44.1
OpenAI Addon 1.0.12
Re: Alert display 'nil'
Hi Maxime,
If the first dialogue is completed, then isConversationActive should be false, correct?
Did you remove the Alert variable from your dialogue database? Can you add it back? I think that should fix it. In the next update, I'll make sure that the Dialogue System doesn't show 'nil' if the Alert variable isn't in the database.
If the first dialogue is completed, then isConversationActive should be false, correct?
Did you remove the Alert variable from your dialogue database? Can you add it back? I think that should fix it. In the next update, I'll make sure that the Dialogue System doesn't show 'nil' if the Alert variable isn't in the database.
-
- Posts: 106
- Joined: Wed Aug 23, 2017 4:10 pm
- Location: Canada
Re: Alert display 'nil'
Ahah, yes you are right!
I don't think I ever created an Alert variable in the database as I'm always importing directly from articy and I don't make any custom change in the database file. However, the behavior is quite strange: previous to my first conversation, Alert is found and it is returning an empty string. Then, after my first conversation, Alert is not found and returns nil.
Anyway, I fixed the issue by adding manually an Alert variable in my database.
Unity 2022.3.17f1
Dialogue System 2.2.44.1
OpenAI Addon 1.0.12
Dialogue System 2.2.44.1
OpenAI Addon 1.0.12
Re: Alert display 'nil'
Ultimately it's a bug, and I'll fix it in the next update. I'll send you a patch later today.
-
- Posts: 106
- Joined: Wed Aug 23, 2017 4:10 pm
- Location: Canada
Re: Alert display 'nil'
Ok, I wasn't sure. For now, I've created the 'Alert' variable in the database and all is good. Thanks Tony!
Unity 2022.3.17f1
Dialogue System 2.2.44.1
OpenAI Addon 1.0.12
Dialogue System 2.2.44.1
OpenAI Addon 1.0.12