Differences between these...?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Abelius
Posts: 318
Joined: Fri Jul 21, 2017 12:45 pm

Differences between these...?

Post by Abelius »

Hi there,

I'm implementing a save system with EasySave3, PlayMaker, Adv. Creator and, of course, Dialogue System.

My intention is to use PlayMaker actions to use EasySave3 saving system.

Now, I've found these PlayMaker actions...:

Image
... for saving, and these...:

Image
... for loading.

But I'm afraid I don't understand the difference between them.

I'm guessing some of those must save/load just the variables, dialogue entries and quest states, while others must deal with the "saver" scripts included with DS or PixelCrushersCommon, right? But could you elaborate a bit on the differences?

At any rate, my main objective is to centralize all of that in one or two strings that I can "send" to ES3 for saving, not using DS or AC for any actual saving.

Thanks.
Unity 2019.4.9f1
Dialogue System 2.2.15
User avatar
Tony Li
Posts: 21984
Joined: Thu Jul 18, 2013 1:27 pm

Re: Differences between these...?

Post by Tony Li »

Hi,

Wow, those really aren't clear, are they. I'll fix the documentation in the next release.

Record & Apply Persistent Data are "old." They tell all Persistent Data components to record their states into the Dialogue System's Lua environment.

Record & Apply Savegame Data do the same thing as Record & Apply Persistent Data, but Record Savegame Data also returns a string containing a serialized version of the Lua environment that you can send to Easy Save. Apply Savegame Data deserializes a string (e.g., from Easy Save) into the Lua environment.

If the scene has a Save System GameObject, Record & Apply Savegame Data's serialized string represents the entire Dialogue System save system data accumulated from all Saver components such as DialogueSystemSaver, ActiveSaver components, PositionSaver components, etc.
User avatar
Abelius
Posts: 318
Joined: Fri Jul 21, 2017 12:45 pm

Re: Differences between these...?

Post by Abelius »

Thanks for the reply.

So, what about save/load game? I guess those will be the ones that ignore saver components?
Unity 2019.4.9f1
Dialogue System 2.2.15
User avatar
Tony Li
Posts: 21984
Joined: Thu Jul 18, 2013 1:27 pm

Re: Differences between these...?

Post by Tony Li »

Save Game and Load Game are the same as Record & Apply Savegame Data with a Save System component except they also write the save data to permanent storage based on whatever saved game data storer component is on the Save System GameObject (e.g., PlayerPrefsSavedGameDataStorer, DiskSavedGameDataStorer, ESSaverGameDataStorer, etc.).
User avatar
Abelius
Posts: 318
Joined: Fri Jul 21, 2017 12:45 pm

Re: Differences between these...?

Post by Abelius »

Ah, right.

So for ES3 I'll want to use Record & Apply Savegame Data.

Alright, now it's clear. Thank you!
Unity 2019.4.9f1
Dialogue System 2.2.15
User avatar
Tony Li
Posts: 21984
Joined: Thu Jul 18, 2013 1:27 pm

Re: Differences between these...?

Post by Tony Li »

Yes, you got it. I'll clarify all that in the next version's docs.
Post Reply