Page 1 of 1

Auto Save Error in Easy Save 3

Posted: Mon Dec 28, 2020 2:57 pm
by Fabian
Hello, I am currently working on on saving instaniated prefabs (Unity). I am using the Auto Save Manager and also set up all the steps which go ahead with the Auto Save Guide on the website. But when I am using ES3AutoSaveMgr.Current.Load(); and ES3AutoSaveMgr.Current.Save(); I get the following eroor message: NotSupportedException: Generic type "ES3Internal.ES3SerializableDictionary`2[System.Int64,UnityEngine.Object]" is not supported by Easy Save. I kind of tried to fix it with changing my own code, but I think there is something wrong wit the Easy Save 3 Manager in Scene. Maybe you could help with this problem! Thank you! Fabian

Re: Auto Save Error in Easy Save 3

Posted: Mon Dec 28, 2020 3:30 pm
by Joel
Hi there,

I've replied to your email.

Re: Auto Save Error in Easy Save 3

Posted: Mon Dec 28, 2020 4:57 pm
by Fabian
Hey,

so I got to fix that problem. I tried to save the Save Manager in Scene. But right now, I am getting other errors.

I am using Astar Pathfinder and I want to save the people who were unlocked by the player.

NotSupportedException: Type of UnityEngine.Motion is not supported as it does not have a parameterless constructor. Only value types, Components or ScriptableObjects are supportable without a parameterless constructor. However, you may be able to create an ES3Type script to add support for it.

this is the error that occurs, when I try to load the game and an error with Pathfinding occures when I try to save the game...

--> NotSupportedException: Type of Pathfinding.GridNode is not supported as it does not have a parameterless constructor. Only value types, Components or ScriptableObjects are supportable without a parameterless constructor. However, you may be able to create an ES3Type script to add support for it.

I think I need a bit more knowledge about how auto save works...I am kinda lost at the moment.

Maybe you have an answer to that problem!

Re: Auto Save Error in Easy Save 3

Posted: Mon Dec 28, 2020 5:46 pm
by Joel
Hi there,

This error is occurring because these types are not serializable. You may be able to add support for them by creating an ES3Type script for them and modifying it. This is documented here:

https://docs.moodkie.com/easy-save-3/es ... g-es3types

All the best,
Joel

Re: Auto Save Error in Easy Save 3

Posted: Mon Dec 28, 2020 7:46 pm
by Fabian
Thats what I searched for!

Thank you very much for you time Joel!

Re: Auto Save Error in Easy Save 3

Posted: Thu Feb 04, 2021 12:19 pm
by VIMAGE
Hey, how did you achieve saving unityengine.Motion? I followed the steps provided in the document, but I am completly lost on how to apply that to the type "Motion".

I am trying to save an AnimationClip and it looks like you achieved that...

Re: Auto Save Error in Easy Save 3

Posted: Sat Jul 24, 2021 9:40 am
by Fabian
Hey,

I think what I did was to go in the Auto Save settings and tick the animation component to be auto saved by ES3.

Hopefully, this can help you!

Fabian