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?
Journal UI Suddenly Not Opening, With Errors
Journal UI Suddenly Not Opening, With Errors
- Attachments
-
- quest journal not opening 1.JPG (545.08 KiB) Viewed 754 times
-
- quest journal not opening 2.JPG (451.19 KiB) Viewed 754 times
-
- quest journal not opening 3.JPG (514.21 KiB) Viewed 754 times
-
- quest journal not opening 4.JPG (761.61 KiB) Viewed 754 times
-
- quest journal not opening 5.JPG (781.81 KiB) Viewed 754 times
Re: Journal UI Suddenly Not Opening, With Errors
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.
Re: Journal UI Suddenly Not Opening, With Errors
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?
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 (478.93 KiB) Viewed 753 times
-
- looping error quest machine 2.JPG (105.62 KiB) Viewed 753 times
-
- not saving quest machine.JPG (303.78 KiB) Viewed 753 times
-
- not saving quest machine 2.JPG (438.56 KiB) Viewed 753 times
Re: Journal UI Suddenly Not Opening, With Errors
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.
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.