I can't find the saved file

Discussion and help for Easy Save 3
Post Reply
StarNineCat
Posts: 6
Joined: Thu Dec 29, 2022 1:12 pm

I can't find the saved file

Post 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?
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: I can't find the saved file

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
StarNineCat
Posts: 6
Joined: Thu Dec 29, 2022 1:12 pm

Re: I can't find the saved file

Post 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
Attachments
2022-12-30 10_00_03-MilkTeaShopSimulator - TestUI - PC, Mac & Linux Standalone - Unity 2020.3.33f1c2.png
2022-12-30 10_00_03-MilkTeaShopSimulator - TestUI - PC, Mac & Linux Standalone - Unity 2020.3.33f1c2.png (40.13 KiB) Viewed 1097 times
2022-12-30 09_54_28-MilkTeaShopSimulator - TestUI - PC, Mac & Linux Standalone - Unity 2020.3.33f1c2.png
2022-12-30 09_54_28-MilkTeaShopSimulator - TestUI - PC, Mac & Linux Standalone - Unity 2020.3.33f1c2.png (37.64 KiB) Viewed 1097 times
2022-12-30 09_57_17-MilkTeaShopSimulator - Microsoft Visual Studio.png
2022-12-30 09_57_17-MilkTeaShopSimulator - Microsoft Visual Studio.png (13.77 KiB) Viewed 1097 times
StarNineCat
Posts: 6
Joined: Thu Dec 29, 2022 1:12 pm

Re: I can't find the saved file

Post by StarNineCat »

But I can't see any files in this folder

I'm pretty sure this is the folder
Image
Attachments
2022-12-30 10_05_29-MilkTeaShopSimulator - Clover.png
2022-12-30 10_05_29-MilkTeaShopSimulator - Clover.png (9.51 KiB) Viewed 1097 times
StarNineCat
Posts: 6
Joined: Thu Dec 29, 2022 1:12 pm

Re: I can't find the saved file

Post by StarNineCat »

I need to add something , string savedGamesPath = "/Save/";

Image
Attachments
2022-12-30 10_10_35-MilkTeaShopSimulator - Microsoft Visual Studio.png
2022-12-30 10_10_35-MilkTeaShopSimulator - Microsoft Visual Studio.png (14.64 KiB) Viewed 1096 times
StarNineCat
Posts: 6
Joined: Thu Dec 29, 2022 1:12 pm

Re: I can't find the saved file

Post by StarNineCat »

I still haven't solved this problem. I hope someone can help me
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: I can't find the saved file

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
StarNineCat
Posts: 6
Joined: Thu Dec 29, 2022 1:12 pm

Re: I can't find the saved file

Post by StarNineCat »

Thank you very much
You helped me solve this problem
Post Reply