Overlay won't display during play.
Overlay won't display during play.
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?
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?
- Attachments
-
- How it looks in game window. Disappears when I run the game.
- CaptureShowsInSceneWinow.JPG (91.79 KiB) Viewed 917 times
Re: Overlay won't display during play.
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.
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.
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.
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.
- Attachments
-
- Camera set up
- Capturecamera settings.JPG (48.89 KiB) Viewed 904 times
-
- Project Settings
- CaptureProjectSettings2.JPG (95.68 KiB) Viewed 905 times
-
- Is the quest journal UI supposed to be empty?
- questmachnewquest.JPG (23.93 KiB) Viewed 907 times
-
- When the game is running there is no display and the NPC won't talk when I stand near them.
- gamerunning.JPG (120.06 KiB) Viewed 911 times
-
- When the game is not running it will show the display.
- gamenotrunning.JPG (138.45 KiB) Viewed 911 times
-
- Button configuration.
- buttonhelp.JPG (54.94 KiB) Viewed 913 times
Re: Overlay won't display during play.
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.
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.
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
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
Last edited by GalczAlex on Sat Apr 02, 2022 5:51 pm, edited 1 time in total.
Re: Overlay won't display during play.
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!
Re: Overlay won't display during play.
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.
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:
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.
- 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.
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.
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.
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.
- Attachments
-
- Got something done before work on Monday >.<
- CaptureCanvas.JPG (118 KiB) Viewed 881 times
-
- Canvasfound.JPG (149.05 KiB) Viewed 882 times
Last edited by GalczAlex on Sun Apr 03, 2022 2:11 pm, edited 9 times in total.