Page 1 of 1

Variable Table not saving when Saving to Slot

Posted: Mon Jan 18, 2021 7:06 pm
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?

Re: Variable Table not saving when Saving to Slot

Posted: Mon Jan 18, 2021 7:44 pm
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.).