Page 1 of 1

I can't find the saved file

Posted: Thu Dec 29, 2022 1:24 pm
by StarNineCat
I saved the file in this path : persistentDataPath + "/Save/SaveGame1.es3"
But I can't find the file under this path,I wonder where they are?

Re: I can't find the saved file

Posted: Thu Dec 29, 2022 2:20 pm
by Joel
Hi there,

You can open the persistent data path by going to Tools > Easy Save 3 > Open Persistent Data Path.

Note that Easy Save stores to the persistent data path by default, so you don't need to prepend Application.persistentDataPath to your path. I.e. this will store to a file called SaveFile.es3 in a folder named SaveGame in the persistent data path:

Code: Select all

ES3.Save("myKey", myValue, "SaveGame/SaveFile.es3");
All the best,
Joel

Re: I can't find the saved file

Posted: Fri Dec 30, 2022 2:06 am
by StarNineCat
Yes , I Did it
This is my Setting
Image
This is my code
Image

Here is my Log , It can read the archive from previous tests.
Image

Re: I can't find the saved file

Posted: Fri Dec 30, 2022 2:08 am
by StarNineCat
But I can't see any files in this folder

I'm pretty sure this is the folder
Image

Re: I can't find the saved file

Posted: Fri Dec 30, 2022 2:11 am
by StarNineCat
I need to add something , string savedGamesPath = "/Save/";

Image

Re: I can't find the saved file

Posted: Fri Dec 30, 2022 7:43 am
by StarNineCat
I still haven't solved this problem. I hope someone can help me

Re: I can't find the saved file

Posted: Fri Dec 30, 2022 9:27 am
by Joel
Hi there,

You are specifying a preceding '/' in your path, which indicates that it's an absolute path. You should remove the preceding slash to indicate that it's a relative path as in the example I posted above. I.e.

Code: Select all

// Correct
ES3.Save("myInt", 1, "Save/SaveGame1.es3");
Not:

Code: Select all

// Incorrect
ES3.Save("myInt", 1, "/Save/SaveGame1.es3");
All the best,
Joel

Re: I can't find the saved file

Posted: Fri Dec 30, 2022 10:02 am
by StarNineCat
Thank you very much
You helped me solve this problem