Game Saver Component Not Saving Dialog Database?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
jhaddock
Posts: 7
Joined: Mon Sep 13, 2021 2:56 pm

Game Saver Component Not Saving Dialog Database?

Post 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!
User avatar
Tony Li
Posts: 22149
Joined: Thu Jul 18, 2013 1:27 pm

Re: Game Saver Component Not Saving Dialog Database?

Post 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.
jhaddock
Posts: 7
Joined: Mon Sep 13, 2021 2:56 pm

Re: Game Saver Component Not Saving Dialog Database?

Post by jhaddock »

Ah, that was it! Figured it was something simple. Thank you so much!
User avatar
Tony Li
Posts: 22149
Joined: Thu Jul 18, 2013 1:27 pm

Re: Game Saver Component Not Saving Dialog Database?

Post by Tony Li »

Happy to help!
Post Reply