How to not overwrite player save file in new build?

Discussion and help for Easy Save 3
Post Reply
Le_Clair
Posts: 5
Joined: Tue Oct 13, 2020 9:24 pm

How to not overwrite player save file in new build?

Post by Le_Clair »

Hi,

I am preparing to release a game using ES3. https://store.steampowered.com/app/1697 ... Whisperer/

Now that I am testing and building different versions of the game, I found a (kind of) big issue.

If the player has a save file and I update the game, their savefile will be overwritten. If I build the game after clearing the persistant data path, it will erase the player savefile.

I haven't found any info about this on the forum, so I fell I am missing something...

How can I avoid this?

Thanks!
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: How to not overwrite player save file in new build?

Post by Joel »

Hi there,

We use Unity’s Application.persistentDataPath as the default storage location, and this should not be overwritten between updates unless you change the name or bundle identifier of your project.

If the data is being overwritten and you are not changing the name or bundle identifier, and you’re not using a custom storage location, it indicates that there’s a bug at Unity’s end with their Application.persistentDataPath.

As we’ve had no other reports of this, I would recommend sending a bug report to Unity which replicates it so that they can look into this issue, as this regards their functionality rather than ours.

For more info on Application.persistentDataPath, please see Unity’s documentation:

https://docs.unity3d.com/ScriptReferenc ... aPath.html

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