Page 1 of 1

Game Saver Component Not Saving Dialog Database?

Posted: Sat Apr 09, 2022 11:50 am
by jhaddock
I have a very simple save game button set up calling a basic SaveToSlot

Code: Select all

 public void SaveToSlot() {
        PixelCrushers.SaveSystem.SaveToSlot(0);
        PauseMenu.instance.ToggleMenu();
    }
Everything related to the destructible and position savers works great on reload, but it doesn't seem to be saving the state of the Dialog Database itself? Quest States and Variables don't seem to be saved/restored properly using this method. Am I missing a critical step, or is there a more specific method that should be used to make sure to include that data?

Thanks!

Re: Game Saver Component Not Saving Dialog Database?

Posted: Sat Apr 09, 2022 4:18 pm
by Tony Li
Hi,

Add a Dialogue System Saver component to your Dialogue Manager if it doesn't have one. Alternatively, it can be on the Save System GameObject. There should be only one instance of Dialogue System Saver, though.

Re: Game Saver Component Not Saving Dialog Database?

Posted: Mon Apr 11, 2022 4:11 pm
by jhaddock
Ah, that was it! Figured it was something simple. Thank you so much!

Re: Game Saver Component Not Saving Dialog Database?

Posted: Mon Apr 11, 2022 4:21 pm
by Tony Li
Happy to help!