Conversation doesn't run when talking to a second NPC

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Luseya
Posts: 24
Joined: Mon May 29, 2023 6:02 pm

Conversation doesn't run when talking to a second NPC

Post 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!
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.
Luseya
Posts: 24
Joined: Mon May 29, 2023 6:02 pm

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

Post 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 769 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 769 times
Please let me know if there are any other screenshots that would be helpful! Thank you so much!
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.
Luseya
Posts: 24
Joined: Mon May 29, 2023 6:02 pm

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

Post 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!
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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 742 times

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

show2.png
show2.png (13.43 KiB) Viewed 742 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.
RoyVasquez
Posts: 1
Joined: Thu Jul 13, 2023 3:54 am

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

Post 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.
Last edited by RoyVasquez on Sat Jul 22, 2023 2:44 am, edited 1 time in total.
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

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

Post by Tony Li »

Glad to help!
Post Reply