Es3 Not saving script attached to gameObject

Discussion and help for Easy Save 3
Post Reply
Jen01
Posts: 7
Joined: Thu Apr 26, 2018 12:54 am

Es3 Not saving script attached to gameObject

Post by Jen01 »

I have a player with a script named player attached to it. The string contains basic info such as Name, id etc... It appears in the type tab of easy save and the correct value to be saved are ticked.
But it seems that on loading by player object load without the script!
Tried with other scripts too, help!
Jen01
Posts: 7
Joined: Thu Apr 26, 2018 12:54 am

Re: Es3 Not saving script attached to gameObject

Post by Jen01 »

When i convert the save file to string , it appears the script is here:

Code: Select all

{"__type":"Player,Assembly-CSharp","_ES3Ref":3831171309903071858,"goID":3905550592535159737,"age":5,"spriteType":0,"gamePosition":{"x":0,"y":0},"gameScale":{"x":0,"y":0},"menuScale":{"x":0,"y":0}}]}}}
UnityEngine.Debug:Log(Object)
SaveGameManager:SaveMenu() (at Assets/Scripts/SaveGameManager.cs:18)
UnityEngine.EventSystems.EventSystem:Update()
Why does it not load it ?
( I am using the updated easy save package you sent me, on another project with the older one it was working)
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: Es3 Not saving script attached to gameObject

Post by Joel »

Hi there,

As noted in the docs, it will only save explicitly supported types (i.e. ones which have an ES3Type file associated with it).

If you uncheck and check a variable in the Types window, this should generate an ES3Type, and it should work.

I'll see about adding an indication of whether a type is explicitly-supported or automatically-supported to the Types pane in the next update.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Jen01
Posts: 7
Joined: Thu Apr 26, 2018 12:54 am

Re: Es3 Not saving script attached to gameObject

Post by Jen01 »

already unticked and ticked. Its loading the gameobject without the script.
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: Es3 Not saving script attached to gameObject

Post by Joel »

That's very strange, it could be a bug only affecting the particular version I sent you, as I don't seem to be able to replicate anything like this at my end.

Please could you PM me a basic project so I can see what's happening?

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Jen01
Posts: 7
Joined: Thu Apr 26, 2018 12:54 am

Re: Es3 Not saving script attached to gameObject

Post by Jen01 »

I reverted to the earlier version available on the asset store and it works. I did not change any code , so i guess its the update. Well now the other bug is back :/.. could you provide me another update file ?
Post Reply