Page 1 of 1

Conversation doesn't run when talking to a second NPC

Posted: Tue Jul 04, 2023 5:45 pm
by Luseya
Hello!

I feel like I am missing something basic here, but I can't seem to figure it out.

I have two NPC's in my scene. When I "play the game" and talk to an NPC, the dialogue plays just fine: the NPC subtitle panel shows up and everything appears and runs correctly. After talking to one NPC, and that conversation ends, when I talk to the second NPC, the dialogue for that NPC does not play. The dialogue runs properly for both NPC's as long as they are the first one that I talk to.

I believe that the Dialogue System Events and Proximity Selector components are running properly because when I talk to the second NPC, the Player's movement is frozen as expected, and the Player is able to move again after a few seconds. It seems like the conversation is technically running, but the NPC subtitle panel doesn't show up at all.

Any insight into this would be much appreciated. Thank you!

Re: Conversation doesn't run when talking to a second NPC

Posted: Tue Jul 04, 2023 8:17 pm
by Tony Li
Hi,

Are there any errors or warnings in the Console window? Maybe a warning such as: "Dialogue System: Not starting conversation. Another conversation is already active"?

When you try to talk to the second NPC, inspect the dialogue UI's subtitle text GameObject. Does it contain the text spoken by the second NPC? If so, then the conversation is probably running correctly but the dialogue UI isn't showing itself properly.

You can also temporarily set the Dialogue Manager's Other Settings > Debug Level to Info and then try playing the conversation. With each conversation, you should see lines in the Console such as:

Dialogue System: Starting conversation 'title' with actor=X and conversant=Y
...
Dialogue System: Y says 'dialogue'
...
Dialogue System: Conversation ending.

This might give you an idea of what's going on under the hood.

Re: Conversation doesn't run when talking to a second NPC

Posted: Wed Jul 05, 2023 7:43 pm
by Luseya
Okay so I updated the Debug Level setting to "Info" and I do see the conversation running in the Console. There are no warnings or errors though.

Here is a screenshot of the Inspector for the Dialogue UI Panel:
DialogueUI_Inspector.png
DialogueUI_Inspector.png (92.32 KiB) Viewed 865 times
And here is a screenshot of the Standard UI Subtitle Panel settings for the Subtitle Panel GameObject.
NPC Subtitle Panel Settings.png
NPC Subtitle Panel Settings.png (72.63 KiB) Viewed 865 times
Please let me know if there are any other screenshots that would be helpful! Thank you so much!

Re: Conversation doesn't run when talking to a second NPC

Posted: Wed Jul 05, 2023 10:10 pm
by Tony Li
When the first conversation ends, do you see the line below in the Console window?

Dialogue System: Conversation ending.


Also, if you wait 10 seconds before trying to start the second conversation, does it work? If so, this tells us that it's an animation issue, probably with a "hide panel" animation. (The dialogue UI will time out after 10 seconds waiting for an animation.)

In any case, please feel free to send a reproduction project to tony (at) pixelcrushers.com. I'll be happy to take a direct look.

Re: Conversation doesn't run when talking to a second NPC

Posted: Sun Jul 09, 2023 3:09 pm
by Luseya
The issue still occurred after 10 seconds. I tried to troubleshoot further but still couldn't find a solution, so I'll send over the project files. I appreciate the help!

Re: Conversation doesn't run when talking to a second NPC

Posted: Sun Jul 09, 2023 9:43 pm
by Tony Li
Thank you very much for sending the reproduction project and reproduction steps.

The issue is the Show animation used by the Dialogue Panel and subtitle panel animator controllers. It's currently:

show1.png
show1.png (10.77 KiB) Viewed 838 times

Add the Canvas Group > Alpha property and set its value to 1:

show2.png
show2.png (13.43 KiB) Viewed 838 times

Otherwise, when the Hide animation sets the Canvas Group's Alpha to 0 after the first conversation, nothing will ever set it back to 1 to make it visible again.

Re: Conversation doesn't run when talking to a second NPC

Posted: Thu Jul 13, 2023 8:47 am
by RoyVasquez
Thank you for helping me as well. I appreciate you, you made my day :) Welcome to the land of confectionery delights! Step into the enchanting world of https://casinosanalyzer.com/online-casi ... and.casino examined by CasinosAnalyzer. With its tantalizing game collection, seamless mobile play, and the modern touch of cryptocurrencies, this virtual candyland will leave you craving for more.

Re: Conversation doesn't run when talking to a second NPC

Posted: Thu Jul 13, 2023 10:01 am
by Tony Li
Glad to help!