[SOLVED] Quest Journal not showing anything

Announcements, support questions, and discussion for Quest Machine.
Post Reply
mschoenhals
Posts: 118
Joined: Thu Dec 19, 2019 7:38 am

[SOLVED] Quest Journal not showing anything

Post by mschoenhals »

Hi,
My quest machine journal was showing quests beyond the scrollable viewport. While trying to fix that, I've somehow changed something so that no quests show up on the journal now. In my Quest Machine Configuration, it still shows Quest Journal UI for the field Quest Journal UI. What else should I check to ensure the journal get's updated?

I believe my initial issue of scrolling was related to the Mask being turned off on the Scroll Rect but now I have no way of confirming that because Quests no long show up.

Thank you for your help in advance.
Last edited by mschoenhals on Sun Dec 13, 2020 10:20 pm, edited 1 time in total.
mschoenhals
Posts: 118
Joined: Thu Dec 19, 2019 7:38 am

Re: [HELP] Quest Journal not showing anything

Post by mschoenhals »

Ok, the quest data came back if I turned the Mask off on the Scroll Rect. So now my issue is, when enough quests are logged, it shows the list beyond the Scroll Rect. The scroll bar still works, but it just moves the list up and down beyond the Scroll Rect of the journal window.
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: [HELP] Quest Journal not showing anything

Post by Tony Li »

Hi,

If you play in the editor and open the quest journal UI, does Quest Machine put UI content inside the quest journal UI? (For example, in the Hierarchy under Quest Journal UI > Main Panel > Quest Selection Panel > Scroll Rect > Quest Selection Scroll Rect Content.)

If it's putting content inside Quest Selection Scroll Rect Content, then it's some sort of masking issue or rect transform issue.

If it's not putting content inside Quest Selection Scroll Rect Content, then the quest journal UI isn't getting the message to refresh/repaint itself.
mschoenhals
Posts: 118
Joined: Thu Dec 19, 2019 7:38 am

Re: [HELP] Quest Journal not showing anything

Post by mschoenhals »

Yes, Quest Machine is putting UI content inside of the quest journal UI. When I test the game and hit pause, I can see the updated journal info in the Scroll Rect Content area.
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: [HELP] Quest Journal not showing anything

Post by Tony Li »

The scroll rect should have a Mask component that is enabled. Temporarily tick Show Mask Graphic to check the size and position of the masked area (i.e., the area of the Scroll Content that will be visible).

During play, open the quest journal. Try to identify what's prevent the content from being visible. Maybe the Scroll Content is being sized wrong. Check its Rect Transform > Height. This will typically be set automatically by the Vertical Layout Group and Content Size Fitter.

If you get stuck, please feel free to send a reproduction project to tony (at) pixelcrushers.com with instructions on how to reproduce the issue.
mschoenhals
Posts: 118
Joined: Thu Dec 19, 2019 7:38 am

Re: [HELP] Quest Journal not showing anything

Post by mschoenhals »

Ok, I have sent you the email with the repro link.
Thank you.
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: [HELP] Quest Journal not showing anything

Post by Tony Li »

Hi Mike,

Thanks! I'm downloading it now. I'll reply back by the end of the day.
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: [HELP] Quest Journal not showing anything

Post by Tony Li »

Hi Mike,

The mask image's alpha value was zero (transparent), which makes the masked content invisible. Set the alpha value to 255:

maskAlpha.png
maskAlpha.png (72.94 KiB) Viewed 824 times
mschoenhals
Posts: 118
Joined: Thu Dec 19, 2019 7:38 am

Re: [SOLVED] Quest Journal not showing anything

Post by mschoenhals »

Thanks Tony! It's working great. Much appreciated.
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: [SOLVED] Quest Journal not showing anything

Post by Tony Li »

Happy to help!
Post Reply