Quest HUD won't display infos

Announcements, support questions, and discussion for Quest Machine.
Post Reply
Fax
Posts: 15
Joined: Fri Mar 19, 2021 4:40 am

Quest HUD won't display infos

Post by Fax »

Hi everyone.
I'm new on this awesome asset and encounter some problems.
My actual is that my Quest HUD won't display informations.

I use a custom Frame Manager in order to lock my player and manage frames.
I know that Quest Machine is using a special UI.
I try to extends UnityUIBaseUI to my Frame component. It works for Dialogue UI and Journal UI but not for HUD UI.

HUD UI seems to not be updated by Quest Machine.
I try with classic prefab and with demo's quests without success.

May i have broke something but i don't know what.

Can someone help me ?

Thanks.
Fax
Posts: 15
Joined: Fri Mar 19, 2021 4:40 am

Re: Quest HUD won't display infos

Post by Fax »

I've got no error or warning in my Console.

There is my HUD UI when i got a quest :
2021-03-19_12h16_44.png
2021-03-19_12h16_44.png (12.71 KiB) Viewed 1166 times
2021-03-19_12h17_38.png
2021-03-19_12h17_38.png (28.32 KiB) Viewed 1166 times
There is my QuestMachineConfiguration at the same time (one quest in journal):
2021-03-19_12h15_25.png
2021-03-19_12h15_25.png (26.88 KiB) Viewed 1166 times
And here we got the active section of my quest :
2021-03-19_12h23_18.png
2021-03-19_12h23_18.png (11.93 KiB) Viewed 1166 times
It looks like my HUD UI don't receipe the message.
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest HUD won't display infos

Post by Tony Li »

Hi,

Does the Quest HUD work correctly in Quest Machine's Demo scene?

Make sure your quest is being tracked. Inspect the quest's main properties in the Quest Editor window, and check that 'Is Trackable' and 'Show In Track HUD' are ticked. During play, examine the quest in the Quest Journal UI and make sure its tracking checkbox is ticked.

When the player's Quest Journal information changes, it tells the quest HUD to refresh its display (as long as the quest is marked for tracking).

It's possible to assign a quest HUD to the Quest Journal itself. If you have done this, make sure you have assigned a scene instance of the quest HUD and not a prefab. By default, the Quest Journal's Quest HUD field is unassigned, which means it will use the quest HUD that is assigned to the Quest Machine GameObject's Quest HUD field.

If none of that helps, temporarily tick the Quest Machine GameObject's Debug Settings > Debug Message System checkbox. This will log a lot of information to the Console. When the Quest Journal changes (e.g., accept a new quest), verify that you see a message similar to:

MessageSystem.SendMessage(sender=Quest(Clone) (PixelCrushers.QuestMachine.Wrappers.Quest): Quest State Changed,questID)

This is the message that the Quest Journal listens for to know when to refresh the HUD.
Fax
Posts: 15
Joined: Fri Mar 19, 2021 4:40 am

Re: Quest HUD won't display infos

Post by Fax »

Does the Quest HUD work correctly in Quest Machine's Demo scene?
Yes my Quest HUD work correctly in Demo.
Make sure your quest is being tracked. Inspect the quest's main properties in the Quest Editor window, and check that 'Is Trackable' and 'Show In Track HUD' are ticked. During play, examine the quest in the Quest Journal UI and make sure its tracking checkbox is ticked.
"IsTrackable", "ShowInTrackHUD" and "tracking" are checked.

I've got a message in Debug similar to yours :
MessageSystem.SendMessage(sender=Quest(Clone) (PixelCrushers.QuestMachine.Wrappers.Quest): Quest State Changed,questID)
It's possible to assign a quest HUD to the Quest Journal itself. If you have done this, make sure you have assigned a scene instance of the quest HUD and not a prefab. By default, the Quest Journal's Quest HUD field is unassigned, which means it will use the quest HUD that is assigned to the Quest Machine GameObject's Quest HUD field.
I didnt' found this field. This is a screen of my QuestJournal inspector :
2021-03-19_15h59_50.png
2021-03-19_15h59_50.png (53.13 KiB) Viewed 1163 times
Edit : I try my quest on the demo scene and it works with HUD.
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest HUD won't display infos

Post by Tony Li »

Hi,

The Quest HUD field is on the player's Quest Journal component. If it's unassigned (the default), the Quest Journal will use the Quest HUD that's assigned to the Quest Machine GameObject's Quest HUD field.

As a test, what if you add your skate park quest to the Demo's quest database and an NPC, and then play the Demo scene and accept the quest? Does it appear in the HUD?
Fax
Posts: 15
Joined: Fri Mar 19, 2021 4:40 am

Re: Quest HUD won't display infos

Post by Fax »

My Quest HUD look like this :
2021-03-19_16h17_30.png
2021-03-19_16h17_30.png (27.97 KiB) Viewed 1160 times
I had my quest and an NPC in demo scene, it works.
Fax
Posts: 15
Joined: Fri Mar 19, 2021 4:40 am

Re: Quest HUD won't display infos

Post by Fax »

God i found the "bug".

My QuestJournal component was disable on my Player during play...

Thanks a lot for the help.
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest HUD won't display infos

Post by Tony Li »

Happy to help. Glad you found the issue!
Post Reply