Page 1 of 1

Player dialogue stuck

Posted: Sun Aug 13, 2023 7:04 am
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.

Re: Player dialogue stuck

Posted: Sun Aug 13, 2023 10:30 am
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.

Re: Player dialogue stuck

Posted: Mon Aug 14, 2023 8:39 am
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.

Re: Player dialogue stuck

Posted: Mon Aug 14, 2023 10:30 am
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 271 times

Re: Player dialogue stuck

Posted: Tue Aug 15, 2023 7:09 am
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...

Re: Player dialogue stuck

Posted: Tue Aug 15, 2023 8:38 am
by Tony Li
Glad to help! Maybe there was a configuration issue earlier on. Anyway, I'm glad it's working now!