Journal UI Suddenly Not Opening, With Errors

Announcements, support questions, and discussion for Quest Machine.
Post Reply
rnally01
Posts: 14
Joined: Tue Mar 01, 2022 11:22 am

Journal UI Suddenly Not Opening, With Errors

Post by rnally01 »

Hey,

I had my journal UI setup and working for about 2 weeks and after trying to arrange some things it's suddenly stopped opening. I don't think I changed anything that should have caused it to no longer open. I'm getting a Missing Reference Exception Error, but I have the journal referenced in components. I know it should be able to find the components itself, but neither method is working anymore. Error messages attached.

Any idea what the issue could be?
Attachments
quest journal not opening 1.JPG
quest journal not opening 1.JPG (545.08 KiB) Viewed 785 times
quest journal not opening 2.JPG
quest journal not opening 2.JPG (451.19 KiB) Viewed 785 times
quest journal not opening 3.JPG
quest journal not opening 3.JPG (514.21 KiB) Viewed 785 times
quest journal not opening 4.JPG
quest journal not opening 4.JPG (761.61 KiB) Viewed 785 times
quest journal not opening 5.JPG
quest journal not opening 5.JPG (781.81 KiB) Viewed 785 times
rnally01
Posts: 14
Joined: Tue Mar 01, 2022 11:22 am

Re: Journal UI Suddenly Not Opening, With Errors

Post by rnally01 »

The controller and journal opening is working fine in other scenes. I'm not sure why it is giving me this error just in this one scene. Because the game is a rogue-like I can even die and come back to the scene it wasn't working in and it will work so it's just not working when I start in my home base scene.
rnally01
Posts: 14
Joined: Tue Mar 01, 2022 11:22 am

Re: Journal UI Suddenly Not Opening, With Errors

Post by rnally01 »

I figured it out. I had a SaveSystem component on a trigger to call SaveToGameSlot() OnTriggerExit of the trigger. Not sure why that caused the missing reference exception. I guess I'll try writing my own script to call SaveToSlot(). I'm just trying to save the quest after the player gets it and leaves the quest giver area.

I ran into another save issue last week where the game kept reloading a scene that the game had crashed on even though that wasn't the scene that was supposed to start up. Essentially I was loading a home base scene and the game kept trying to load (but kept failing) the scene it had crashed on earlier. Error message attached for that error. After that I figured I would just load and save only through my scripts and not through the Auto Save Load component. Perhaps the game saved on crash because it was like it was minimized or quitting? Have you seen something like this before?
Attachments
looping error quest machine.JPG
looping error quest machine.JPG (478.93 KiB) Viewed 784 times
looping error quest machine 2.JPG
looping error quest machine 2.JPG (105.62 KiB) Viewed 784 times
not saving quest machine.JPG
not saving quest machine.JPG (303.78 KiB) Viewed 784 times
not saving quest machine 2.JPG
not saving quest machine 2.JPG (438.56 KiB) Viewed 784 times
User avatar
Tony Li
Posts: 22099
Joined: Thu Jul 18, 2013 1:27 pm

Re: Journal UI Suddenly Not Opening, With Errors

Post by Tony Li »

Hi,

Regarding the save issue and Auto Save Load, yes, that's what happened. When the game quit (by crashing), Auto Save Load probably saved the game there.

For the journal UI issue, which I understand you have working now, the root cause is probably the Save System component. The game can have only one Save System component. The first Save System component to exist will stick around and destroy any other GameObjects that have Save System components. That extra Save System component in your scene was probably causing the journal UI's GameObject to disappear.
Post Reply