Save Data error
Save Data error
Hey Tony. I have a problem regarding loading Dialogue System Data. When I'm trying to load the data after the scene loads I'm getting an NullReferenceException error on the line where I'm calling PersistentDataManager.GetSaveData(); can you elaborate what is going wrong here? I'm attaching a screen shot of error message.
- Attachments
-
- Capture.PNG (17.46 KiB) Viewed 768 times
Re: Save Data error
Hi,
What version of the Dialogue System are you using? Can you update to version 2.0.5 and let me know if the problem still exists? (When updating anything or importing any package, it's always a good idea to make a backup first, just to be safe.)
What version of the Dialogue System are you using? Can you update to version 2.0.5 and let me know if the problem still exists? (When updating anything or importing any package, it's always a good idea to make a backup first, just to be safe.)
Re: Save Data error
Yeah I'm using 2.0.1, will update it and let you know how it went.
Re: Save Data error
Yeah the problem is still there but the errors are on different code lines, it may help you figure it out.
- Attachments
-
- Capture.PNG (17.4 KiB) Viewed 761 times
Re: Save Data error
Is there a Dialogue Manager in the scene?
How are your Dialogue Manager GameObjects set up? Are the Allow Only One Instance and Don't Destroy On Load checkboxes ticked?
How are your Dialogue Manager GameObjects set up? Are the Allow Only One Instance and Don't Destroy On Load checkboxes ticked?
Re: Save Data error
Yeah you were right Tony that one particular scene was missing the Dialogue Manager... It's set on both Allow Only One Instance and Don't Destroy On Load, but at the moment there is no dialogues at that scene so I forgot to put Dialogue Manager in it. Normally when you play the game and reach that scene Dialogue Manager will be present in that scene because it gets transferred there, but in this particular case I was loading the game directly on that scene and there was no Dialogue Manager in it by default, such a weird mistake on my end, thanks for helping me figure it out
Re: Save Data error
No worries; I'm glad it's working now.