Page 1 of 2

Journal Button Not working

Posted: Sun Jan 28, 2024 3:08 am
by Tidbe
I am current following the Quest Machine - Tutorial 1: Scene Setup, and trying to set it up in an existing game I am working on. I have followed all the steps but when I click on the button, the button "clicks" but nothing else happens. If I enable the journal whilst the game is not playing, it shows up, but when I am playing, nothing happens even if I enable from the hierarchy - even the scene view is a blank grey box. Any ideas?

Just additional info - the On Trigger to activate dialogue works just fine.

Re: Journal Button Not working

Posted: Sun Jan 28, 2024 4:11 am
by Tidbe
Ok so I think I half fixed it - when I started the game, the On Click reset and removed the player and ToggleJournalUI. I added the prefab of the player instead on the in-hierarchy player object, and this now opens the journal, however half the UI is now missing. I have attached a SS of this. Any ideas?

Re: Journal Button Not working

Posted: Sun Jan 28, 2024 11:29 am
by Tony Li
Hi,

Add a Quest Journal Button component to your UI Button. Configure the Button's OnClick() method to call QuestJournalButton.ToggleJournalUI. This method will find the active quest journal and show its content in the journal UI.

Re: Journal Button Not working

Posted: Sun Jan 28, 2024 3:46 pm
by Tidbe
I have now done this (it required me adding the Journal Button instead of the player which is in the video - understand I'm using a complete different project so know there will be differences), However, half of the UI is still missing as per my previous post. I have tried changing the UI images of the journal but these still don't show.

Re: Journal Button Not working

Posted: Sun Jan 28, 2024 4:28 pm
by Tidbe
Looking at the Inspector whilst the game is playing, I see that the image components of of the Portrait Image showing as None.

Re: Journal Button Not working

Posted: Sun Jan 28, 2024 4:58 pm
by Tony Li
Hi,

Did you assign a Display Name and Portrait Image to the Quest Journal component?

Re: Journal Button Not working

Posted: Sun Jan 28, 2024 7:21 pm
by Tidbe
Hmm I don't think so - where can I do this?

Re: Journal Button Not working

Posted: Sun Jan 28, 2024 7:31 pm
by Tidbe
Apologies, I believe I have - please see SS. The portrait image is assigned to the Quest Journal UI game object, but does not show on play - it seems to get deleted.

Re: Journal Button Not working

Posted: Sun Jan 28, 2024 10:11 pm
by Tony Li
Hi,

Locate your Quest Journal component. (Not the UI.) Assign the Display Name and Portrait Image. In the Demo scene, it looks like this:

questJournal.png
questJournal.png (19.11 KiB) Viewed 732 times

Re: Journal Button Not working

Posted: Sun Jan 28, 2024 10:20 pm
by Tidbe
Wow, I knew it was going to be a simple fix somewhere but yes that worked!

I am rather new to all this and do get put off from potentially asking stupid questions but after hearing how responsive you were I thought I would give it a go. Thank you so much, the positive reviews on your responsiveness are true :D