Player dialogue stuck

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
gpotatok
Posts: 6
Joined: Thu Aug 10, 2023 1:50 am

Player dialogue stuck

Post by gpotatok »

Hi, sorry for leaving another question right after.



Dialogue system is getting stuck when showing player's subtitle, and I can't get to next dialogue. This happens only with PC dialogues.

I checked "Show PC subtitles during line" true, "Always force response menu" false, and set continue button option to "Always". Also there are more changes in settings, including those I might just not remember.



You can reproduce the result with the project file I've sent you last time. Just download new dialogue database asset in the link above, replace the old BADialogue with it, and change GameObject "GuestTMP" - Component "Guest Behaviour" - Variable "Conversation" from "StandardGuestConversation" into "StandardGuestRandom1".

I'd sincerely appreciate your help in advance, again.
User avatar
Tony Li
Posts: 22119
Joined: Thu Jul 18, 2013 1:27 pm

Re: Player dialogue stuck

Post by Tony Li »

Hi,

If the PC and NPC use separate subtitle panels (i.e., separate StandardUISubtitlePanel components), and if you're using the same continue button for both, then:
  • If you want the continue button to immediately advance the conversation, configure the continue button's OnClick() to call the dialogue UI's StandardDialogueUI.OnContinue.
  • If you want the first continue button click to fast-forward the conversation if it's still typing and the second click to advance the conversation, use two separate continue buttons so you can assign the NPC or PC typewriter effect as appropriate. You can position the continue buttons in the same place so they look like the same button.
gpotatok
Posts: 6
Joined: Thu Aug 10, 2023 1:50 am

Re: Player dialogue stuck

Post by gpotatok »

The issue above doesn't happen when I click the continue button, but when I don't click the button immedietly. The dialogue just stops itself with no subtitles and continue button... and I can't just continue further or escape. I set Onclick() event on continue button to StandardUIContinueButtonFastForward.OnFastForward() though. Both pc and npc subtitle panel is sharing same subtitle text and continue button.
User avatar
Tony Li
Posts: 22119
Joined: Thu Jul 18, 2013 1:27 pm

Re: Player dialogue stuck

Post by Tony Li »

As a test, set the Dialogue Manager's Subtitle Settings > Continue Button dropdown to Never. Does the conversation automatically advance to the end?

If it still gets stuck, we'll need to look into it.

If it advances to the end, then it's probably related to the continue button. Try using just one subtitle panel in your dialogue UI.:

oneSubtitlePanel.png
oneSubtitlePanel.png (88.65 KiB) Viewed 283 times
gpotatok
Posts: 6
Joined: Thu Aug 10, 2023 1:50 am

Re: Player dialogue stuck

Post by gpotatok »



I tried setting continue button to never show itself, and it acted weird but advanced anyway... so as you told, I tried making 2 text panels and continue buttons for each subtitle panel and It fixed the problem!

Thanks for the help! I wonder why this happened from beginning though, because what I used was default Focus Template Standard Dialogue UI provided in Templates folder...
User avatar
Tony Li
Posts: 22119
Joined: Thu Jul 18, 2013 1:27 pm

Re: Player dialogue stuck

Post by Tony Li »

Glad to help! Maybe there was a configuration issue earlier on. Anyway, I'm glad it's working now!
Post Reply