Getting error when using the LoadAll Action Playmaker

Discussion and help for Easy Save 3
Post Reply
BISLY
Posts: 5
Joined: Wed Oct 16, 2019 10:06 am

Getting error when using the LoadAll Action Playmaker

Post by BISLY »

Hi,
I can save\load just fine untill it comes to array variables. If i use the Load all action, to load all fsm variables, and there is an array of any kind in the fsm which was saved before (with no error), i get this message in console:

ff : FSM : State 3 : Load : System.FormatException: Expected '[' or "null", found '{'.
at ES3Internal.ES3JSONReader.ReadNullOrCharIgnoreWhitespace (System.Char expectedChar) [0x00083] in D:\Unity Projects\FoodCost 16.06.20\Assets\Plugins\Easy Save 3\Scripts\Readers\ES3JSONReader.cs:395
at ES3Internal.ES3JSONReader.StartReadCollection () [0x00001] in D:\Unity Projects\FoodCost 16.06.20\Assets\Plugins\Easy Save 3\Scripts\Readers\ES3JSONReader.cs:161
at ES3Types.ES3CollectionType.ReadICollection[T] (ES3Reader reader, System.Collections.Generic.ICollection`1[T] collection, ES3Types.ES3Type elementType) [0x00001] in D:\Unity Projects\FoodCost 16.06.20\Assets\Plugins\Easy Save 3\Scripts\Types\Collection Types\ES3CollectionType.cs:44
at ES3Types.ES3ArrayType.Read (ES3Reader reader) [0x00007] in D:\Unity Projects\FoodCost 16.06.20\Assets\Plugins\Easy Save 3\Scripts\Types\Collection Types\ES3ArrayType.cs:36
at ES3Types.ES3ArrayType.Read[T] (ES3Reader reader) [0x00001] in D:\Unity Projects\FoodCost 16.06.20\Assets\Plugins\Easy Save 3\Scripts\Types\Collection Types\ES3ArrayType.cs:80
at ES3Types.ES3ObjectType.Read[T] (ES3Reader reader) [0x0001b] in D:\Unity Projects\FoodCost 16.06.20\Assets\Plugins\Easy Save 3\Scripts\Types\ES3ObjectType.cs:47
at ES3Reader.ReadObject[T] (ES3Types.ES3Type type) [0x00017] in D:\Unity Projects\FoodCost 16.06.20\Assets\Plugins\Easy Save 3\Scripts\Readers\ES3Reader.cs:233
at ES3Reader.Read[T] (ES3Types.ES3Type type) [0x0007e] in D:\Unity Projects\FoodCost 16.06.20\Assets\Plugins\Easy Save 3\Scripts\Readers\ES3Reader.cs:262
at ES3Reader.Read[T] (System.String key) [0x00051] in D:\Unity Projects\FoodCost 16.06.20\Assets\Plugins\Easy Save 3\Scripts\Readers\ES3Reader.cs:181
at ES3.Load[T] (System.String key, ES3Settings settings) [0x00048] in D:\Unity Projects\FoodCost 16.06.20\Assets\Plugins\Easy Save 3\Scripts\ES3.cs:371
at ES3PlayMaker.Load.Enter () [0x0005e] in D:\Unity Projects\FoodCost 16.06.20\Assets\Plugins\Easy Save 3\PlayMaker\ES3PlayMaker.cs:357
at ES3PlayMaker.ActionBase.OnEnter () [0x00002] in D:\Unity Projects\FoodCost 16.06.20\Assets\Plugins\Easy Save 3\PlayMaker\ES3PlayMaker.cs:40
UnityEngine.Debug:LogError(Object, Object)
HutongGames.PlayMaker.FsmLog:AddEntry(FsmLogEntry, Boolean) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmLog.cs:172)
HutongGames.PlayMaker.FsmLog:LogAction(FsmLogType, String, Boolean) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmLog.cs:361)
HutongGames.PlayMaker.FsmStateAction:LogError(String) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmStateAction.cs:280)
ES3PlayMaker.ActionBase:HandleError(String) (at Assets/Plugins/Easy Save 3/PlayMaker/ES3PlayMaker.cs:62)
ES3PlayMaker.ActionBase:OnEnter() (at Assets/Plugins/Easy Save 3/PlayMaker/ES3PlayMaker.cs:44)
HutongGames.PlayMaker.FsmState:ActivateActions(Int32) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:205)
HutongGames.PlayMaker.FsmState:OnEnter() (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:175)
HutongGames.PlayMaker.Fsm:EnterState(FsmState) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2771)
HutongGames.PlayMaker.Fsm:SwitchState(FsmState) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2718)
HutongGames.PlayMaker.Fsm:UpdateStateChanges() (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2643)
HutongGames.PlayMaker.Fsm:UpdateState(FsmState) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2787)
HutongGames.PlayMaker.Fsm:Update() (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:1995)
PlayMakerFSM:Update() (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/PlayMakerFSM.cs:594)


After reading a bit here, I suspect I need to add a Wrapper to the the Supported type, but i have no idea how to do that. I have no code experience.

Looking forward to your help
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Getting error when using the LoadAll Action Playmaker

Post by Joel »

Hi there,

Are you using the latest version of Easy Save? We've seen this issue in the previous version but not the latest version.

Also you will need to delete your old save data by going to Window > Easy Save 3 > Tools > Open Persistent Data Path and deleting it from there.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
BISLY
Posts: 5
Joined: Wed Oct 16, 2019 10:06 am

Re: Getting error when using the LoadAll Action Playmaker

Post by BISLY »

Yea,
I just opened up a new clean project. installing only playmaker and easy save from the asset store.Im using unity 2019.3.15f1

I created only 1 fsm on 1 object, using saveall action on it. changed varibles of the array, and saved it. i confirmed the save as SaveData.es3 file was created in the persistent data path. I stopped the run, changed the action to loadall putting the same key name, and run the program again. as it gets to the loadall state the same error is occuring.

Log of the error on clean project:
GameObject : FSM : State 1 : LoadAll : System.FormatException: Expected '[' or "null", found '{'.
at ES3Internal.ES3JSONReader.ReadNullOrCharIgnoreWhitespace (System.Char expectedChar) [0x00083] in D:\Unity Projects\FoodCostNew\Assets\Plugins\Easy Save 3\Scripts\Readers\ES3JSONReader.cs:395
at ES3Internal.ES3JSONReader.StartReadCollection () [0x00001] in D:\Unity Projects\FoodCostNew\Assets\Plugins\Easy Save 3\Scripts\Readers\ES3JSONReader.cs:161
at ES3Types.ES3CollectionType.ReadICollection[T] (ES3Reader reader, System.Collections.Generic.ICollection`1[T] collection, ES3Types.ES3Type elementType) [0x00001] in D:\Unity Projects\FoodCostNew\Assets\Plugins\Easy Save 3\Scripts\Types\Collection Types\ES3CollectionType.cs:44
at ES3Types.ES3ArrayType.Read (ES3Reader reader) [0x00007] in D:\Unity Projects\FoodCostNew\Assets\Plugins\Easy Save 3\Scripts\Types\Collection Types\ES3ArrayType.cs:36
at ES3Types.ES3ArrayType.Read[T] (ES3Reader reader) [0x00001] in D:\Unity Projects\FoodCostNew\Assets\Plugins\Easy Save 3\Scripts\Types\Collection Types\ES3ArrayType.cs:80
at ES3Types.ES3ObjectType.Read[T] (ES3Reader reader) [0x0001b] in D:\Unity Projects\FoodCostNew\Assets\Plugins\Easy Save 3\Scripts\Types\ES3ObjectType.cs:47
at ES3Reader.ReadObject[T] (ES3Types.ES3Type type) [0x00017] in D:\Unity Projects\FoodCostNew\Assets\Plugins\Easy Save 3\Scripts\Readers\ES3Reader.cs:233
at ES3Reader.Read[T] (ES3Types.ES3Type type) [0x0007e] in D:\Unity Projects\FoodCostNew\Assets\Plugins\Easy Save 3\Scripts\Readers\ES3Reader.cs:262
at ES3Types.ES3DictionaryType.Read (ES3Reader reader) [0x00051] in D:\Unity Projects\FoodCostNew\Assets\Plugins\Easy Save 3\Scripts\Types\Collection Types\ES3DictionaryType.cs:99
at ES3Reader.Read[T] (ES3Types.ES3Type type) [0x0006a] in D:\Unity Projects\FoodCostNew\Assets\Plugins\Easy Save 3\Scripts\Readers\ES3Reader.cs:260
at ES3Reader.Read[T] (System.String key) [0x00051] in D:\Unity Projects\FoodCostNew\Assets\Plugins\Easy Save 3\Scripts\Readers\ES3Reader.cs:181
at ES3.Load[T] (System.String key, ES3Settings settings) [0x00048] in D:\Unity Projects\FoodCostNew\Assets\Plugins\Easy Save 3\Scripts\ES3.cs:371
at ES3PlayMaker.LoadAll.Enter () [0x00043] in D:\Unity Projects\FoodCostNew\Assets\Plugins\Easy Save 3\PlayMaker\ES3PlayMaker.cs:415
at ES3PlayMaker.ActionBase.OnEnter () [0x00002] in D:\Unity Projects\FoodCostNew\Assets\Plugins\Easy Save 3\PlayMaker\ES3PlayMaker.cs:40
UnityEngine.Debug:LogError(Object, Object)
HutongGames.PlayMaker.FsmLog:AddEntry(FsmLogEntry, Boolean) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmLog.cs:172)
HutongGames.PlayMaker.FsmLog:LogAction(FsmLogType, String, Boolean) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmLog.cs:361)
HutongGames.PlayMaker.FsmStateAction:LogError(String) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmStateAction.cs:280)
ES3PlayMaker.ActionBase:HandleError(String) (at Assets/Plugins/Easy Save 3/PlayMaker/ES3PlayMaker.cs:62)
ES3PlayMaker.ActionBase:OnEnter() (at Assets/Plugins/Easy Save 3/PlayMaker/ES3PlayMaker.cs:44)
HutongGames.PlayMaker.FsmState:ActivateActions(Int32) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:205)
HutongGames.PlayMaker.FsmState:OnEnter() (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:175)
HutongGames.PlayMaker.Fsm:EnterState(FsmState) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2771)
HutongGames.PlayMaker.Fsm:SwitchState(FsmState) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2718)
HutongGames.PlayMaker.Fsm:UpdateStateChanges() (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2643)
HutongGames.PlayMaker.Fsm:Start() (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:1926)
PlayMakerFSM:Start() (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/PlayMakerFSM.cs:563)
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Getting error when using the LoadAll Action Playmaker

Post by Joel »

Hi there,

I deleted your post containing your link as this would allow anyone to download the Easy Save package, which is against the EULA.

Thanks for sending the project over, it looks like the Asset Store might not be overwriting the old file, which seems to happen sometimes. If you private message me your invoice number I'll send over a package with new GUIDs which will ensure it's overwritten.

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