I'm getting the following errors as soon as the scene loads. Tried clearing the persistent data path already. My settings are: File/Persistent Data Path. Any ideas?
This error most commonly occurs because the password you're using to load the data does not match that used to save it, or the data is being loaded with encryption enabled but is not encrypted.
Please could you show me the code you're using to save and load so I can try to understand what is happening?
It could also be that no password has been set. Please could you go to Window > Easy Save 3 > Settings and check that the password isn't blank.
FormatException: File is not valid JSON. Expected '{' at beginning of file, but found 's'.
ES3Internal.ES3JSONReader..ctor (System.IO.Stream stream, ES3Settings settings, System.Boolean readHeaderAndFooter) (at Assets/Plugins/Easy Save 3/Scripts/Readers/ES3JSONReader.cs:39)
ES3Reader.Create (ES3Settings settings) (at Assets/Plugins/Easy Save 3/Scripts/Readers/ES3Reader.cs:314)
ES3.Load[T] (System.String key, T defaultValue, ES3Settings settings) (at Assets/Plugins/Easy Save 3/Scripts/ES3.cs:306)
ES3.Load[T] (System.String key, T defaultValue) (at Assets/Plugins/Easy Save 3/Scripts/ES3.cs:278)
Splash.Start () (at Assets/Scripts/Splash.cs:14)
int currentUser = ES3.Load<int>("currentUser", 0);
if (currentUser != 0) {
SceneManager.LoadScene("01 MainMenu");
} else {
SceneManager.LoadScene("00a NewUser");
}
I have set the encryption and password settings in the Easy Save 3 settings menu and cleared both the persistent data path and player prefs. After clearing I can go through all the scenes in the game and save and load data without issue. Once I press stop and then restart the game is when the errors start up. Also I'm on Unity 2018.4.0f1. If you want any more information from me just let me know.
As an FYI to others, if you have a password set in the AutoSave tab, under Advanced Settings, but you do not have a password or encryption setup in the Settings tab, you will get that error message.
To resolve, make sure encryption and password are the same in both the settings tab and Auto Save tab as joel recommends.