Page 1 of 1

Quest HUD not updating

Posted: Tue Aug 15, 2023 10:18 pm
by Vard
The quest tracker HUD never updates. I have the HUD visible with an active quest while I start a conversation.

During the conversation, I have a node that has the following script:

SetQuestEntryState("Explore the compound", 1, "success");
UpdateTracker();

If I print out the state in the node after that, with the following code, it prints success (as expected)

[lua(CurrentQuestEntryState("Explore the compound", 1))]

But the quest tracker HUD continues to show the same value.

What am I doing wrong?

Re: Quest HUD not updating

Posted: Wed Aug 16, 2023 8:33 am
by Tony Li
Hi,

SetQuestEntryState() should automatically update the quest tracker HUD. No need for UpdateTracker(). Are there any errors or warnings in the Console window? Does the quest tracker HUD have a StandardUIQuestTracker component? Is it a child of the Dialogue Manager's hierarchy? (It isn't required to be a child of the Dialogue Manager, but this info will help with debugging the issue.)

Re: Quest HUD not updating

Posted: Wed Aug 16, 2023 11:45 pm
by Vard
>Are there any errors or warnings in the Console window?
There aren't

>Does the quest tracker HUD have a StandardUIQuestTracker component?
Yes. Entry Description, Success Description and Failure Description are populated but Entry Container is not.

>Is it a child of the Dialogue Manager's hierarchy?
Does the prefab or the instance? The prefab is in another folder, the instance is now nested on the canvas under Dialogue Manager. There is another canvas in the scene, for the pre-existing UI

DM canvas has a sort order 1, other canvas is sort order 0

Re: Quest HUD not updating

Posted: Thu Aug 17, 2023 7:41 am
by Tony Li
Hi,

That all sounds correct. When a quest state changes so that it should be visible in the HUD, inspect the HUD in the Hierarchy window. Has it added a child element for that quest? Maybe it's adding but not visible.

Also try clicking the HUD's Clear PlayerPrefs Key. Maybe the HUD was marked hidden at some point, which can be recorded in PlayerPrefs.