Page 1 of 1

ES3 File Reference

Posted: Mon May 18, 2020 1:37 am
by mdeim
Hi Joel,

Is it possible to save a reference to ES3 the way I can with an ES3File?

Currently, I can do this with a cache file ie:

Code: Select all

ES3File Cache = new ES3File();
I want to be able to do that with the storage file too for the purpose of it saving the save file I'm pointing to, so I can just call:

Code: Select all

MyStorageFile.Save("itemIwantToSave", "Item Value")
Currently, since I have multiple save files in my game, I need to pass the save path so every time I have to do

Code: Select all

ES3.Save("ItemIwantToSave", "ItemValue", SavePathFile)
Please let me know if I'm missing something, thank you!

Thanks! ^_ ^

Re: ES3 File Reference

Posted: Mon May 18, 2020 7:11 am
by Joel
Hi there,

You can change the default save path at runtime using the following:

Code: Select all

ES3Settings.defaultSettings.path = NewSavePath;
Otherwise it's not possible because ES3.Save/Load is static.

All the best,
Joel

Re: ES3 File Reference

Posted: Mon May 18, 2020 7:12 pm
by mdeim
Ah ok, thank you.

Then in my case, since I have my multiple save files, unless I change the default path each time I guess it's not possible. Thank you!