when I reload same scene, after that,autosave is not working

Discussion and help for Easy Save 3
Post Reply
sejongdw
Posts: 3
Joined: Tue Mar 05, 2019 9:15 am

when I reload same scene, after that,autosave is not working

Post by sejongdw »

hello.

When I reload same scene to make a new game for user (it's a restart button),

Everything looks fine. but after Reloading scene, AutoSave don't work anymore.

even if I played game I shut down the game. (EasySave make a savefile)

but when I start the game again, It a new game without saving information.

It's my code.


var es3File = new ES3File("SaveData.es3");
es3File.Clear();
es3File.Save<Transform>("myTransform", this.transform);
es3File.Sync();
SceneController.Instance.MainLoader(1);

** Scene 1 -> Scene1

After Reload scene, Auto-Saving function is not working.
Is any idea to make clear scene properly? ( ex) not using autosavefile when I touch a restart button )
plz help me T.T
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: when I reload same scene, after that,autosave is not wor

Post by Joel »

Hi there,

Sorry, I don't fully understand. Are you using Auto Save, or are you using code? You seem to have pasted code. Are you using Auto Save as well?

If you're using Auto Save and code, you should save to a different file. In your case, you are clearing the file when you're using your ES3File code, so it will delete all Auto Save data from that file.

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