Dialogue not appearing and Refresh UIs

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Ollymuk
Posts: 39
Joined: Wed Oct 14, 2020 12:59 pm

Dialogue not appearing and Refresh UIs

Post by Ollymuk »

Hi Tony

I've just picked up an old project and I've found that dialogues aren't showing when the Dialogue System Trigger is set to On Enter Trigger. It does show as On Startup though.

When my player enters the 2D trigger I get this in the console.

MessageSystem.SendMessage(sender=Dialogue Manager (PixelCrushers.QuestMachine.DialogueSystemSupport.DialogueSystemQuestMachineBridge): Refresh UIs,)
UnityEngine.Debug:Log (object)
PixelCrushers.MessageSystem:SendMessageWithTarget (object,object,string,string,object[]) (at Assets/Plugins/Pixel Crushers/Common/Scripts/Message System/MessageSystem.cs:350)
PixelCrushers.MessageSystem:SendMessage (object,string,string,object[]) (at Assets/Plugins/Pixel Crushers/Common/Scripts/Message System/MessageSystem.cs:453)
PixelCrushers.QuestMachine.QuestMachineMessages:RefreshUIs (object) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Utility/QuestMachineMessages.cs:210)
PixelCrushers.QuestMachine.DialogueSystemSupport.DialogueSystemQuestMachineBridge:UpdateTracker () (at Assets/Plugins/Pixel Crushers/Quest Machine/Third Party Support/Dialogue System Support/Scripts/Bridge/DialogueSystemQuestMachineBridge.cs:167)
UnityEngine.Component:BroadcastMessage (string,UnityEngine.SendMessageOptions)
PixelCrushers.DialogueSystem.DialogueManager:SendUpdateTracker () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Manager/DialogueManager.cs:1160)
PixelCrushers.DialogueSystem.DialogueSystemTrigger:Fire (UnityEngine.Transform) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Triggers/Triggers/DialogueSystemTrigger.cs:790)
PixelCrushers.DialogueSystem.DialogueSystemTrigger:TryStart (UnityEngine.Transform,UnityEngine.Transform) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Triggers/Triggers/DialogueSystemTrigger.cs:762)
PixelCrushers.DialogueSystem.DialogueSystemTrigger:TryStart (UnityEngine.Transform) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Triggers/Triggers/DialogueSystemTrigger.cs:748)
PixelCrushers.DialogueSystem.DialogueSystemTrigger:OnTriggerEnter2D (UnityEngine.Collider2D) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Triggers/Triggers/DialogueSystemTrigger.cs:612)



My Dialogue System Trigger shows Last Check : True. I have a 2D collider on the same object set to Trigger and can see the player is in the Trigger.

Any ideas why this might not be working? I suspect that when I reopened the project (after many years) and installed some updates I failed to install something that's needed.

The Quest Machine Bridge is on the Dialogue Manager object.

Olly
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue not appearing and Refresh UIs

Post by Tony Li »

Hi Olly,

Are there any other similar Console lines around this one? This one shows that the Dialogue System Trigger is firing, and it's telling the Dialogue System to update UIs. The bridge component gets this message and in turn tells the Quest Machine UIs to update themselves. But this line doesn't say anything about starting a conversation.

Can you post a screenshot of the Dialogue System Trigger's Inspector?
Ollymuk
Posts: 39
Joined: Wed Oct 14, 2020 12:59 pm

Re: Dialogue not appearing and Refresh UIs

Post by Ollymuk »

Hi Tony

Nothing else shown. If I clear the console after start (there are a few errors from TopDown in there) and walk up to the trigger, I get that one sole error.

The trigger inspector looks like this.
Trigger.png
Trigger.png (59.8 KiB) Viewed 80 times
Olly
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue not appearing and Refresh UIs

Post by Tony Li »

What is the Dialogue Manager's Other Settings > Debug Level set to? Please make sure it's at least set to Warning. Temporarily set it to Info to log more detailed info for now. Then reproduce the issue. You'll probably see either:

Dialogue System: Conversation triggered on (gameobject) but... (problem)

or:

Dialogue System; Starting conversation 'Welcome to Mum'...
Ollymuk
Posts: 39
Joined: Wed Oct 14, 2020 12:59 pm

Re: Dialogue not appearing and Refresh UIs

Post by Ollymuk »

Ok, with it set to Info, and walking in to the trigger, I get this.
trigger2.png
trigger2.png (72.95 KiB) Viewed 73 times
2024-09-23 21_19_52-TinyRPG - Inside_Home - Windows, Mac, Linux - Unity 2022.3.4f1_ _DX11_.png
2024-09-23 21_19_52-TinyRPG - Inside_Home - Windows, Mac, Linux - Unity 2022.3.4f1_ _DX11_.png (57.44 KiB) Viewed 73 times
2024-09-23 21_21_42-TinyRPG - Inside_Home - Windows, Mac, Linux - Unity 2022.3.4f1_ _DX11_.png
2024-09-23 21_21_42-TinyRPG - Inside_Home - Windows, Mac, Linux - Unity 2022.3.4f1_ _DX11_.png (81 KiB) Viewed 72 times
2024-09-23 21_22_38-TinyRPG - Inside_Home - Windows, Mac, Linux - Unity 2022.3.4f1_ _DX11_.png
2024-09-23 21_22_38-TinyRPG - Inside_Home - Windows, Mac, Linux - Unity 2022.3.4f1_ _DX11_.png (73.34 KiB) Viewed 72 times
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue not appearing and Refresh UIs

Post by Tony Li »

Hi,

You probably saw in the logs that none of the nodes linked from <START> are currently valid. That is, their Conditions currently evaluate to false. That's why the conversation isn't starting.
Post Reply