Auto save - load from file issue

Discussion and help for Easy Save 3
Post Reply
Paweł Spionkowski
Posts: 2
Joined: Tue Jan 19, 2021 5:36 pm

Auto save - load from file issue

Post by Paweł Spionkowski »

Hi,

I try integrate my project witch Easy Save,

I have a problem with the functionality of loading a save from a file.

While loading, I gets the following error:

Code: Select all

FormatException: Expected ',' separating properties or '"' before property name, found '{'.
Stack trace:

Code: Select all

FormatException: Expected ',' separating properties or '"' before property name, found '{'.
ES3Internal.ES3JSONReader.ReadPropertyName () (at Assets/Plugins/Easy Save 3/Scripts/Readers/ES3JSONReader.cs:62)
ES3Reader.ReadRefProperty () (at Assets/Plugins/Easy Save 3/Scripts/Readers/ES3Reader.cs:153)
ES3Types.ES3Type_GameObject.ReadObject[T] (ES3Reader reader) (at Assets/Plugins/Easy Save 3/Scripts/Types/Unity Types/ES3Type_GameObject.cs:102)
ES3Types.ES3ObjectType.Read[T] (ES3Reader reader) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3ObjectType.cs:54)
ES3Reader.ReadObject[T] (ES3Types.ES3Type type) (at Assets/Plugins/Easy Save 3/Scripts/Readers/ES3Reader.cs:249)
ES3Reader.Read[T] (ES3Types.ES3Type type) (at Assets/Plugins/Easy Save 3/Scripts/Readers/ES3Reader.cs:278)
ES3Types.ES3CollectionType.ReadICollection[T] (ES3Reader reader, System.Collections.Generic.ICollection`1[T] collection, ES3Types.ES3Type elementType) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3CollectionType.cs:52)
ES3Types.ES3ArrayType.Read (ES3Reader reader) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3ArrayType.cs:36)
ES3Reader.Read[T] (ES3Types.ES3Type type) (at Assets/Plugins/Easy Save 3/Scripts/Readers/ES3Reader.cs:274)
ES3Reader.Read[T] (System.String key, T defaultValue) (at Assets/Plugins/Easy Save 3/Scripts/Readers/ES3Reader.cs:212)
ES3.Load[T] (System.String key, T defaultValue, ES3Settings settings) (at Assets/Plugins/Easy Save 3/Scripts/ES3.cs:419)
ES3AutoSaveMgr.Load () (at Assets/Plugins/Easy Save 3/Scripts/Auto Save/ES3AutoSaveMgr.cs:81)
ES3AutoSaveMgr.Start () (at Assets/Plugins/Easy Save 3/Scripts/Auto Save/ES3AutoSaveMgr.cs:87)
If you have questions, I will answer more information.

Can anyone explain what this error message means?

Thanks in advance.
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Auto save - load from file issue

Post by Joel »

Hi there,

This means that the data in the file is not in the expected format.

First I recommend deleting any existing save data by going to Tools > Easy Save 3 > Clear Persistent Data Path.

if this doesn't resolve the issue, please could you create a new project with a basic scene which replicates this and private message it to me?

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Paweł Spionkowski
Posts: 2
Joined: Tue Jan 19, 2021 5:36 pm

Re: Auto save - load from file issue

Post by Paweł Spionkowski »

Hi,

thank you for fast response.

Clear Persistent Data Path not helps with and this prefab is too big to move it to another scene, but problem is currentyly sloved
Component has 2 x Auto save component and this was causing an error.
Currently problem has been fixed.

From my experience I can see that I could use this asset from the beginning of the project implementation, now the topic has become very complicated :-)


Thanks for the help,
Paweł
Post Reply