Page 1 of 1

Saving with Easy Save 2

Posted: Tue Feb 16, 2016 5:14 pm
by Neecko
I've been using Easy Save 2 (https://www.assetstore.unity3d.com/en/#!/content/768) for all my saving.

I used the built in dialogue saving system and it works just fine, but is there any way to integrate it with this asset?

Thanks!

Re: Saving with Easy Save 2

Posted: Tue Feb 16, 2016 8:48 pm
by Tony Li
Hi,

Yes, there's a FAQ on it. It's short, so I'll paste it here:

How do I save and load using Moodkie's Easy Save 2?

The runtime state of the Dialogue System is stored in Lua tables. To retrieve it as a string, call PersistentDataManager.GetSaveData(). To apply the string back into the Lua tables, call PersistentDataManager.ApplySaveData().

To save using Easy Save 2: (replace key "myFile.txt?tag=dialogueSystem" with your own)

Code: Select all

ES2.Save(PersistentDataManager.GetSaveData(), "myFile.txt?tag=dialogueSystem");
To load using Easy Save 2:

Code: Select all

PersistentDataManager.ApplySaveData(ES2.Load<string>("myFile.txt?tag=dialogueSystem"));
The Dialogue System Extras page contains an example scene that uses Easy Save 2 and PlayMaker.