I'm having an issue with the Overlay not showing up in my own project. In Scene mode I can see all the Overlay stuff for Quest Machine on screen, but when I press play there is no Overlay showing. I have been following the scene set up video and re-tried a number of times up to the part where I need to make a button for the journal. The button doesn't seem to work with the details provided in the video to bring up the journal. I'm pretty lost now on what I can do.
My project runs in 2D and with an isometric view. I am using the latest version of Unity 2020.3.32f1. I'm not using any other system in my project, it is just a scene where I have drew a 2-D map and a player sprite which moves around the map.
I have added an attachment of the game window showing the display, it will not show the display once the game is running. Any ideas where could be going wrong?
Re: Overlay won't display during play.
Posted: Sat Apr 02, 2022 12:17 pm
by Tony Li
Hi,
By overlay, do you mean the Quest Journal UI?
If so, are you trying to open it by clicking the Button in the lower right? If so, add a QuestJournalButton component to the Button. Connect the Button component's OnClick() event to QuestJournalButton.ToggleJournalUI.
Re: Overlay won't display during play.
Posted: Sat Apr 02, 2022 12:39 pm
by GalczAlex
Hello, and thanks for the help there. I completed the tutorial video #1. The NPC I made has no dialogue show up when the player touches the NPC. I also made sure to give the player a player tag which I had followed by watching the video more closely.
Also, here is how my button is set up as shown from the video tutorial one. I have just added the Quest journal component with no luck. I've made a fresh Unity project using the project settings supplied and added a player and NPC and unfortunately the same issue is occurring.
Re: Overlay won't display during play.
Posted: Sat Apr 02, 2022 3:57 pm
by Tony Li
Hi,
The player's Quest Journal component > UI Settings can be blank. If they're blank, the Quest Journal will use the Quest Machine GameObject's default UI settings.
Does Quest Machine's Demo scene work correctly? Have you ticked the Quest Machine Welcome Window's USE_PHYSICS2D checkbox?
Does the player have a collider?
Does the NPC have a trigger collider and a Trigger Event component? If so, make sure the Trigger Event's Tag Mask includes the player's tag, and that the OnTriggerEnter() UnityEvent points to the NPC's QuestGiver.StartDialogueWithPlayer method.
In your Button configuration (which is the last screenshot in your latest reply), why is the OnClick() event configured to call QuestJournal.UnregisterForQuestEvents? If you intend for this Button to open the quest journal UI, please configure it like I described above.
Re: Overlay won't display during play.
Posted: Sat Apr 02, 2022 5:02 pm
by GalczAlex
It's very puzzling so I am sorry. I've been using the tutorial video, it does seem like the video is quite old now. I've just been inputting the settings that the developer stated to use in the tutorial video.
The Quest Machine demo works as intended, I can't notice any difference in settings at the moment.
The 2D Physics box is checked.
My Player and NPC has a sphere collider, Npc also has Quest Giver component, and the NPC is configured to say hello as they don't have a quest.
I've made a video to show the settings and as much as possible that may help isolate the issue. I'm really at a loss and I'm pretty good at figuring stuff out. XD
Re: Overlay won't display during play.
Posted: Sat Apr 02, 2022 5:49 pm
by Tony Li
Hi,
The video tutorials are current. The steps apply to the latest version of Quest Machine.
When you get a chance, would you please answer my questions above? Thank you!
The video tutorials are current. The steps apply to the latest version of Quest Machine.
When you get a chance, would you please answer my questions above? Thank you!
Yes, thanks so much. I've update my previous post with a video and replies to your questions.
Re: Overlay won't display during play.
Posted: Sat Apr 02, 2022 7:38 pm
by Tony Li
There are two things to resolve:
1. The Button in the lower right should toggle the quest journal UI.
2. When the player moves into the NPC's trigger collider, it should start dialogue.
For #1 (Button in lower right): Is this working now? Did you connect the Button component's OnClick to the Button GameObject's QuestJournalButton.ToggleJournalUI?
For #2 (start dialogue): Your scene is in 2D, so you should use 2D colliders. The video tutorial is in 3D. Whenever you watch any tutorial that's in 3D, if you're in 2D you should use the equivalent 2D components.
1. On alexsprite:
Remove the Sphere Collider.
Add a Rigidbody2D. Set it to Kinematic.
Add a Circle Collider 2D. Tick Is Trigger.
You might want to assign a quest to alexsprite's Quest Giver component > Quests list.
2. On Player:
Remove the Sphere Collider.
Add a Rigidbody2D. Set it to Kinematic.
Add a Circle Collider 2D. Do NOT tick Is Trigger.
Re: Overlay won't display during play.
Posted: Sun Apr 03, 2022 9:28 am
by GalczAlex
Thanks so much. I'm going to give this a try. I can say I tried one last effort last night and that I imported my games map to the Quest Machine Demo and ran the game, the overlay from the demo worked perfectly and I could control the player from the QM demo around my map. I was worried in case it was my layering, or a problem with my project map, but that does not seem to be the case thankfully.
Re: Overlay won't display during play.
Posted: Sun Apr 03, 2022 9:51 am
by GalczAlex
I've changed the settings as guided. I'm still unable to resolve the issue with the NPC showing a message when I stand close by. For the moment I am just trying to resolve the text popping up rather than the journal button working. I'll double check the set up again of Quest Manager.
Updated:
I moved my map to the Quest Machine Demo and loaded it up. The HUD display worked as mentioned earlier, but then I found that the NPC's would not talk. I was able to push objects, and couldn't do anything more than that.
I've then loaded the Quest Machine Demo in to a brand new project, everything works as intended. I'm now even more baffled as to what I could have done wrong or might be missing. The only settings I needed to change for my project was in project settings, and that was the transparency sort axis so everything in isometric looked as intended in 2-D.
I've now made fresh project with a 2-D isometric map in the new project with Quest Machine. I've hidden all of the game scene and using the NPC's on the map, I'm also using the Player from the demo, and there are no issues with the HUD and Journal working. I'm trying to root out the problem, I'm now making a back up and importing Gaia which I also had loaded in to the project where Quest Machine was not working. Hopefully I can root out the problem and go back to my old project. I will update shortly.
Also, I'll delete the videos as soon as I have the issue resolved. The videos are unlisted as it was the only way to show what was set and everything.
Updated. I have found what may be the cause of the text not showing up, I thought it was the Z axis, but this doesn't seem to be the case. Loading in the Gaia plug in to see if that is what was causing the issue.
After breaking down the issue further, I have found that the village NPC has a canvas, this didn't seem to be explained in the tutorial video. I now understand that this is how the text box shows up.