Is it a way to store multiple save?

Easy Save 2 has been replaced by Easy Save 3, so is no longer supported.
Locked
dulimong
Posts: 3
Joined: Thu Dec 21, 2017 3:27 am

Is it a way to store multiple save?

Post by dulimong »

Hi
It is a playmaker user using Easy Save.
I need to store lots of float data.
1. So I want to save it all at once.
Here is what I used before:
Image
Do I have to save one by one?
Image

2. And the password is the same every time, where can I change it?
Image

3. And If I do not have a file when I first load it, I get an error. What should I do?
I can not create a file first.
I can not pre-create the file because the save file is not in the first place.
Image


I am short of English, so please give an easy explanation.
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Is it a way to store multiple save?

Post by Joel »

Hi there,

If you want to save multiple values at once, you should put it into an array and save that.

You can change the default password in Assets > Easy Save 2 > Settings > Default Settings.

If you're not sure a file or tag is going to exist, you should use the Exists action to check whether it exists before loading from it.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
dulimong
Posts: 3
Joined: Thu Dec 21, 2017 3:27 am

Re: Is it a way to store multiple save?

Post by dulimong »

Hi, I tried but.. it's not working.

The password is not changed.
https://youtu.be/1SBBDu0bzPI

And is there any sample arrary data?
I do not know what to do.
Image
How can I put variables in data.
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Is it a way to store multiple save?

Post by Joel »

Very strange that the password isn't changing for you, as it appears to be working at our end.

In this case the easiest way would be to open Assets/PlayMaker/Actions/ES2PlayMaker.cs and find this line on line 23 and line 32:
public FsmString encryptionPassword = ES2GlobalSettings.defaultEncryptionPassword;
And replace it with this (using your own password):
public FsmString encryptionPassword = "myPassword";
With regards to what you require, it looks like you require a Dictionary rather than an array, which PlayMaker does not support.

Instead you might want to use the Save All and Load All, which attempt to save and load all variables in the variable list of your FSM.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
dulimong
Posts: 3
Joined: Thu Dec 21, 2017 3:27 am

Re: Is it a way to store multiple save?

Post by dulimong »

Thank you. Joel.

But, I can't use Save All...
because I must seperate my save data 4 groubs... It's out of my rule.

I think I must save it one by one...
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Is it a way to store multiple save?

Post by Joel »

Hi there,

In that case it will indeed be necessary to save them one by one.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Locked