PC NPC Subtitle Panel Focus question

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
GreenConure
Posts: 26
Joined: Sun Oct 24, 2021 10:32 am

PC NPC Subtitle Panel Focus question

Post by GreenConure »

Hello!

Hope you had a wonderful holiday!

I'm running into this issue where some parts of a conversation has subtitle 1 and 0 focusing at the same time. The console logs the actor link correctly and I've also assigned the game objects with their dialogue actors in the DS trigger actor and conversant.

I'm using an edited version of the VN Dialogue prefab but this also happens with the base prefab as well. When I check the subtitle animator, Focus is being triggered for both PC and NPC subtitle panels (Panel 0 is for NPC and Panel 1 is for PC).

I've tried the following methods but with no success so far.
1. Using OpenPanel(1, focus) or unfocus sequencer commands.
2. Editing the default sequence + default player sequence via SendMessage(Unfocus,Subtitle Panel 0);
3. Also tried playing the unity event for focus/unfocus to force the other panel to unfocus/focus.

The issue is quite sporadic with some conversations going smoothly with no issues while some has this focus issue.
If there's any other information I can give, let me know.

Thank you so much again for your support!
Attachments
2.PNG
2.PNG (46.25 KiB) Viewed 621 times
1.PNG
1.PNG (79.26 KiB) Viewed 621 times
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: PC NPC Subtitle Panel Focus question

Post by Tony Li »

Hi,

Does the issue still occur if you don't manually control the focus? In other words, if you only let the StandardDialogueUI control which panel is focused as normal, does the issue still occur? This will help pin down what exactly is causing the wrong panel to play its focus animation.
GreenConure
Posts: 26
Joined: Sun Oct 24, 2021 10:32 am

Re: PC NPC Subtitle Panel Focus question

Post by GreenConure »

Hello!

Yes, even without controlling the focus, it still does this. There is a higher tendency as well for this to happen after player response nodes. For context I usually only have two characters speaking in conversations.

Thank you!
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: PC NPC Subtitle Panel Focus question

Post by Tony Li »

Thanks for the info. I'll investigate and reply back here by end of day.
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: PC NPC Subtitle Panel Focus question

Post by Tony Li »

I can reproduce the problem, and I'll try to have a fix ready tomorrow.
GreenConure
Posts: 26
Joined: Sun Oct 24, 2021 10:32 am

Re: PC NPC Subtitle Panel Focus question

Post by GreenConure »

Hello!

I really appreciate it! Thank you so so much!
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: PC NPC Subtitle Panel Focus question

Post by Tony Li »

Hi,

Please give this patch a try. It should fix the issue.

DS_FocusPatch_2022-01-05.unitypackage
GreenConure
Posts: 26
Joined: Sun Oct 24, 2021 10:32 am

Re: PC NPC Subtitle Panel Focus question

Post by GreenConure »

That worked perfectly!
Thank you so much! :)
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: PC NPC Subtitle Panel Focus question

Post by Tony Li »

Happy to help!
Post Reply