SaveSystem - Quest State loading but variables not
Posted: Tue Dec 03, 2024 10:25 am
Hello,
I am working on saving Dialogue System with Easy Save 3. I am using "Alternate Setup" from this documentation page:
https://www.pixelcrushers.com/dialogue_ ... _save.html
This is the code chunk for saving:
And this for loading:
While Quest states work like a charm, this seem not to load variables. I can see variables with correct values recorded in the save file though.
I tried using this for save:
And this for load:
But no luck.
How can I make this variables work?
Thanks in advance
I am working on saving Dialogue System with Easy Save 3. I am using "Alternate Setup" from this documentation page:
https://www.pixelcrushers.com/dialogue_ ... _save.html
This is the code chunk for saving:
Code: Select all
ES3.Save("DialogueSystem", SaveSystem.Serialize(SaveSystem.RecordSavedGameData()), saveFileName);
Code: Select all
SaveSystem.ApplySavedGameData(SaveSystem.Deserialize<SavedGameData>(ES3.Load<string>("DialogueSystem", savePath)));
I tried using this for save:
Code: Select all
PersistentDataManager.ApplySaveData(ES3.Load<string>("DialogueSystemVariables", savePath));
Code: Select all
ES3.Save("DialogueSystemVariables", PersistentDataManager.GetSaveData(), saveFileName)
How can I make this variables work?
Thanks in advance