Variable Table not saving when Saving to Slot

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Drakeem
Posts: 3
Joined: Mon Jan 18, 2021 6:56 pm

Variable Table not saving when Saving to Slot

Post by Drakeem »

I am trying to have persistent variables so when I load the game, the initial values are no longer being used and whatever I had assigned as a value to the variable is loaded as well.

I am using the SaveSystemMethods.SaveSlot method, and it seems to do everything but keep my Variable table up to date when I decide to load from that same slot. Is this intended? I was under the impression that the entire Dialogue Database saved within the save slot. If not, is there a way to get around this?

EDIT: If not, is there another way to have persistent variables across each save slot?
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Variable Table not saving when Saving to Slot

Post by Tony Li »

Hi,

Have you set up the save system? Make sure to add a Dialogue System Saver component to it. That's the component that saves variables.

The Dialogue System Extras page has a SaveSystemPrefabs unitypackage that contains a preconfigured Save System prefab and others (Scene Portal, loading screen, etc.).
Post Reply