Journal does not show quests

Announcements, support questions, and discussion for Quest Machine.
Post Reply
joe1512
Posts: 11
Joined: Wed Jan 26, 2022 5:16 am

Journal does not show quests

Post by joe1512 »

Everything goes smoothly, I have the quest getting activated, the quests showing text in the corner of the screen and even the alerts when the quest is complete. However when I open the journal it doesn't show completed quests and it doesn't show active quests I've tried deleting my quests and starting again but to no luck.
Any solutions?
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Journal does not show quests

Post by Tony Li »

Hi,

Make sure to open the journal UI through the Quest Journal component or a QuestJournalButton. Example:

Code: Select all

QuestMachine.GetQuestJournal().ShowJournalUI();
This provides the journal UI with the quests in the Quest Journal component. If you just open the journal UI (e.g., by calling its Open() method), it will open but it won't know what quests to show.
joe1512
Posts: 11
Joined: Wed Jan 26, 2022 5:16 am

Re: Journal does not show quests

Post by joe1512 »

Awesome I was using Opsive ultimate inventory system to open the tab for the journal, I've kept it simple with an on click event problem solved. :D
scranley
Posts: 3
Joined: Thu Apr 28, 2022 8:02 am

Re: Journal does not show quests

Post by scranley »

Hello my quest journal isn't showing anything. I have a character prefab that spawns, the hud and dialog works and I can complete the quest. I was following these tutorials: https://www.pixelcrushers.com/quest-mac ... tutorials/

For the methods for the button I tried: Putting the journal on the prefab, and using QuestJournal.ToggleJournalUI. I also tried QuestJournal.ShowJournalUI
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Journal does not show quests

Post by Tony Li »

Hi,

Make sure you're calling QuestJournal.ShowJournalUI() on the scene instance of the player, not the prefab. Also, during play, inspect the scene instance's Quest Journal component. Verify that its Quests list actually has quests in it.

Are there any errors or warnings in the Console window?

Does the journal properly show quests in Quest Machine's Demo scene?

Can you send a reproduction project to tony (at) pixelcrushers.com?
scranley
Posts: 3
Joined: Thu Apr 28, 2022 8:02 am

Re: Journal does not show quests

Post by scranley »

Hello Thank you for the quick help! Awesome!

I disabled the spawn of the prefab and then re-assigned the journal function to the Player in the scene.. (I created the player in the scene before play with the same prefab)
This worked!

So if I need the player to spawn, how do I go about getting the journal working?

Also all the other troubleshooting you listed worked.. the quest shows up on the list.

I am using more mountains top down engine with the quest asset if that helps anyone else.
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Journal does not show quests

Post by Tony Li »

Hi,

The only thing you need to avoid is pointing event handlers to the player prefab.

An easy way to get the journal working is to set up a UI Button. Add a QuestJournalButton component to the UI Button. Configure the UI Button's OnClick() event to call its QuestJournalButton.ShowJournalUI or ToggleJournalUI. This will automatically find the player instance that's in the scene.
scranley
Posts: 3
Joined: Thu Apr 28, 2022 8:02 am

Re: Journal does not show quests

Post by scranley »

Ok will do on the event handlers, What you said about the quest journal worked.. I can now use the spawner with the player prefab. Thank you for the great support!
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Journal does not show quests

Post by Tony Li »

Happy to help!
Post Reply