Easy Auto Save - when applied to several gameobjects

Discussion and help for Easy Save 3
Post Reply
Bloxfan
Posts: 8
Joined: Tue May 01, 2018 2:47 pm

Easy Auto Save - when applied to several gameobjects

Post by Bloxfan »

Hi again Joe,

After doing some more testing, I realize that if several gameobjects have auto save component, only 1 gameobject will have its values saved

- 2 Gameobjects A and B in hierarchy. Both have autosave. Both have same script with some variables
- When saving/loading, only gameobject A will have its variables saved
- But if I remove and re-add autosave component in gameobject B -> values for gameobject B will be saved, but not A anymore

Getting this error message, doesnt know if it can help to identify issue? Thks, Have a great day!

ssets/Plugins/Easy Save 3/Scripts/Types/Unity Types/ES3Type_GameObject.cs:117)
ES3Reader.ReadObject<object> (ES3Types.ES3Type) (at Assets/Plugins/Easy Save 3/Scripts/Readers/ES3Reader.cs:215)
ES3Reader.Read<object> (ES3Types.ES3Type) (at Assets/Plugins/Easy Save 3/Scripts/Readers/ES3Reader.cs:245)
ES3Types.ES3ArrayType.Read (ES3Reader) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3ArrayType.cs:57)
ES3Reader.Read<UnityEngine.GameObject[]> (ES3Types.ES3Type) <0x002f8>
ES3Reader.Read<UnityEngine.GameObject[]> (string,UnityEngine.GameObject[]) <0x00204>
ES3.Load<UnityEngine.GameObject[]> (string,UnityEngine.GameObject[],ES3Settings) <0x001a7>
ES3AutoSaveMgr.Load () (at Assets/Plugins/Easy Save 3/Scripts/Auto Save/ES3AutoSaveMgr.cs:39)
(wrapper dynamic-method) ES3AutoSaveMgr.invoke (object,object[]) <IL 0x00006, 0x0008e>
BloxEngine.BloxMemberInfo.Invoke (object,object[]) (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/BloxMemberInfo.cs:226)
BloxEngine.BloxBlock.RunBlock () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/BloxBlock.cs:122)
BloxEngine.BloxBlock.Run () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/BloxBlock.cs:484)
BloxEngine.BloxBlock._RunChildBlocks () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/BloxBlock.cs:523)
BloxEngine.BloxBlock.RunChildBlocks () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/BloxBlock.cs:501)
BloxEngine.IF_Block.RunBlock () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/Blocks/Flow/IF_Block.cs:34)
BloxEngine.BloxBlock.Run () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/BloxBlock.cs:484)
BloxEngine.BloxBlock._RunChildBlocks () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/BloxBlock.cs:523)
BloxEngine.BloxBlock.RunChildBlocks () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/BloxBlock.cs:501)
BloxEngine.IF_Block.RunBlock () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/Blocks/Flow/IF_Block.cs:34)
BloxEngine.BloxBlock.Run () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/BloxBlock.cs:484)
BloxEngine.BloxEvent.Run () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/BloxEvent.cs:172)
BloxEngine.BloxEventHandler.RunEvent (BloxEngine.BloxEvent,BloxEngine.BloxEventArg[]) (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/EventHandlers/BloxEventHandler.cs:29)
BloxEngine.BloxEventHandler.RunEvents (System.Collections.Generic.List`1<BloxEngine.BloxEvent>,BloxEngine.BloxEventArg[]) (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/EventHandlers/BloxEventHandler.cs:18)
BloxEngine.Update_BloxEventHandler.Update () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/EventHandlers/Update_BloxEventHandler.cs:16)
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Easy Auto Save - when applied to several gameobjects

Post by Joel »

Hi there,

This is likely because the error message occurs before the other GameObjects are saved, stopping them from being saved.

Unfortunately it looks like you've missed out the beginning of the error message, so it's not possible for me to tell why this is occurring. Would you be able to post the complete error message?

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Bloxfan
Posts: 8
Joined: Tue May 01, 2018 2:47 pm

Re: Easy Auto Save - when applied to several gameobjects

Post by Bloxfan »

Hi again,

- Below full message :)
- Tried with a clean project, and it works normally.


ArgumentNullException: Argument cannot be null.
Parameter name: s
long.Parse (string) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Int64.cs:458)
ES3Internal.ES3JSONReader.Read_long () (at Assets/Plugins/Easy Save 3/Scripts/Readers/ES3JSONReader.cs:576)
ES3Types.ES3Type_long.Read<long> (ES3Reader) (at Assets/Plugins/Easy Save 3/Scripts/Types/Primitive Types/ES3Type_long.cs:23)
ES3Reader.Read<long> (ES3Types.ES3Type) (at Assets/Plugins/Easy Save 3/Scripts/Readers/ES3Reader.cs:239)
ES3Reader.ReadProperty<long> (ES3Types.ES3Type) (at Assets/Plugins/Easy Save 3/Scripts/Readers/ES3Reader.cs:119)
ES3Types.ES3Type_GameObject.Read<UnityEngine.GameObject> (ES3Reader) <0x00a51>
ES3Reader.ReadObject<UnityEngine.GameObject> (ES3Types.ES3Type) <0x0017f>
ES3Reader.Read<UnityEngine.GameObject> (ES3Types.ES3Type) <0x004d6>
ES3Types.ES3Type_Values0General.ReadComponent<object> (ES3Reader,object) (at Assets/Easy Save 3/Types/ES3Type_Values0General.cs:96)
ES3Types.ES3ComponentType.ReadObject<object> (ES3Reader) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3ComponentType.cs:92)
ES3Types.ES3ObjectType.Read<object> (ES3Reader) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3ObjectType.cs:40)
ES3Types.ES3ObjectType.Read<object> (ES3Reader) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3ObjectType.cs:34)
ES3Reader.ReadObject<object> (ES3Types.ES3Type) (at Assets/Plugins/Easy Save 3/Scripts/Readers/ES3Reader.cs:215)
ES3Reader.Read<object> (ES3Types.ES3Type) (at Assets/Plugins/Easy Save 3/Scripts/Readers/ES3Reader.cs:245)
ES3Types.ES3ArrayType.Read (ES3Reader) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3ArrayType.cs:57)
ES3Reader.Read<UnityEngine.Component[]> (ES3Types.ES3Type) <0x002f8>
ES3Reader.Read<UnityEngine.Component[]> () <0x00111>
ES3Types.ES3Type_GameObject.ReadInto<object> (ES3Reader,object) (at Assets/Plugins/Easy Save 3/Scripts/Types/Unity Types/ES3Type_GameObject.cs:147)
ES3Types.ES3Type_GameObject.Read<object> (ES3Reader) (at Assets/Plugins/Easy Save 3/Scripts/Types/Unity Types/ES3Type_GameObject.cs:117)
ES3Reader.ReadObject<object> (ES3Types.ES3Type) (at Assets/Plugins/Easy Save 3/Scripts/Readers/ES3Reader.cs:215)
ES3Reader.Read<object> (ES3Types.ES3Type) (at Assets/Plugins/Easy Save 3/Scripts/Readers/ES3Reader.cs:245)
ES3Types.ES3ArrayType.Read (ES3Reader) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3ArrayType.cs:57)
ES3Reader.Read<UnityEngine.GameObject[]> (ES3Types.ES3Type) <0x002f8>
ES3Reader.Read<UnityEngine.GameObject[]> (string,UnityEngine.GameObject[]) <0x00204>
ES3.Load<UnityEngine.GameObject[]> (string,UnityEngine.GameObject[],ES3Settings) <0x001a7>
ES3AutoSaveMgr.Load () (at Assets/Plugins/Easy Save 3/Scripts/Auto Save/ES3AutoSaveMgr.cs:39)
(wrapper dynamic-method) ES3AutoSaveMgr.invoke (object,object[]) <IL 0x00006, 0x0008e>
BloxEngine.BloxMemberInfo.Invoke (object,object[]) (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/BloxMemberInfo.cs:226)
BloxEngine.BloxBlock.RunBlock () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/BloxBlock.cs:122)
BloxEngine.BloxBlock.Run () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/BloxBlock.cs:484)
BloxEngine.BloxBlock._RunChildBlocks () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/BloxBlock.cs:523)
BloxEngine.BloxBlock.RunChildBlocks () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/BloxBlock.cs:501)
BloxEngine.IF_Block.RunBlock () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/Blocks/Flow/IF_Block.cs:34)
BloxEngine.BloxBlock.Run () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/BloxBlock.cs:484)
BloxEngine.BloxBlock._RunChildBlocks () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/BloxBlock.cs:523)
BloxEngine.BloxBlock.RunChildBlocks () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/BloxBlock.cs:501)
BloxEngine.IF_Block.RunBlock () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/Blocks/Flow/IF_Block.cs:34)
BloxEngine.BloxBlock.Run () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/BloxBlock.cs:484)
BloxEngine.BloxEvent.Run () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/BloxEvent.cs:172)
BloxEngine.BloxEventHandler.RunEvent (BloxEngine.BloxEvent,BloxEngine.BloxEventArg[]) (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/EventHandlers/BloxEventHandler.cs:29)
BloxEngine.BloxEventHandler.RunEvents (System.Collections.Generic.List`1<BloxEngine.BloxEvent>,BloxEngine.BloxEventArg[]) (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/EventHandlers/BloxEventHandler.cs:18)
BloxEngine.Update_BloxEventHandler.Update () (at D:/DevUnity/_SOURCE/Blox/BloxEngine/Blox/EventHandlers/Update_BloxEventHandler.cs:16)
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Easy Auto Save - when applied to several gameobjects

Post by Joel »

Hi there,

Could you confirm that the project is using the latest version of Easy Save from the Asset Store?

If not, could you PM me a project which replicates it? You might also want to try deleting your old save data incase the error is caused by data saved after a previous error. You can do this by going to Window > Easy Save 3 > Tools > Open Persistent Data Path.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Bloxfan
Posts: 8
Joined: Tue May 01, 2018 2:47 pm

Re: Easy Auto Save - when applied to several gameobjects

Post by Bloxfan »

Hi Joe,

- Im currently using ES v3.0 from asset store
- I did delete old save, as well as refresh references
- just PM. When running game in Unity Editor, you will get the error message right away

Thks!
Post Reply