Not saving ScriptableObjects correctly, losing prefab ref

Discussion and help for Easy Save 3
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: Not saving ScriptableObjects correctly, losing prefab ref

Post by Joel »

Hi there,
I confirmed that ES3 was adding it's own unique ID without explicitly inputting one as a parameter, so inputting a parameter seems redundant- unless I'm missing something.
If you don't explicitly input one as a parameter, it will assign a random ID each time you change the scene. This means that the ID in the file will not be the same as the random one which is assigned to it. By assigning your own ID which isn't random, it ensures that the ID is the same between loads. This should resolve your issue.

If this doesn't resolve your issue, please could you make a new project with minimal content which replicates your issue and private message it to me with instructions?

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
steve18624
Posts: 5
Joined: Tue Jul 28, 2020 1:58 am

Re: Not saving ScriptableObjects correctly, losing prefab ref

Post by steve18624 »

Hi Joel,

I couldn't get it to work. I'm DM you.
Timbo
Posts: 4
Joined: Wed Aug 12, 2020 3:25 pm

Re: Not saving ScriptableObjects correctly, losing prefab ref

Post by Timbo »

Hi Joel,

I'm having also issues with SO. When I save a SO runtime, and afterwards load that SO in the same session (in the editor) it works fine. But when I close the application, then start again and then load the SO, it will give a NullReferenceException..

In the 'ES3' file the reference looks like this :

"_ES3Ref" : "7612383362755844415"

Hope that you can help. There is no reference in the scene to the SO. Only via a prefab which is loaded with addressables.
Timbo
Posts: 4
Joined: Wed Aug 12, 2020 3:25 pm

Re: Not saving ScriptableObjects correctly, losing prefab ref

Post by Timbo »

Never mind, I needed to add the SO manually by right clicking and adding the references to the Easy Save Manager.

Another question, performance wise, can I only add the references to the Ease Save Manager that I need? Right now all the object in the scene are added automatically.
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: Not saving ScriptableObjects correctly, losing prefab ref

Post by Joel »

Hi there,

You can go to Window > Easy Save 3 > Settings, and uncheck 'Automatically add references to manager'.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Timbo
Posts: 4
Joined: Wed Aug 12, 2020 3:25 pm

Re: Not saving ScriptableObjects correctly, losing prefab ref

Post by Timbo »

Is that the checkbox under 'Editor Settings' which is called 'Auto Update References'?

Otherwise I can't find it..
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: Not saving ScriptableObjects correctly, losing prefab ref

Post by Joel »

That's correct. Apologies, I forgot we renamed that.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Timbo
Posts: 4
Joined: Wed Aug 12, 2020 3:25 pm

Re: Not saving ScriptableObjects correctly, losing prefab ref

Post by Timbo »

Aah okay thanks, but that doesn't work for me. I even cleared everything and added the ease save manager again.

It still keeps adding all the scene objects to the reference list. I would expect it start with an empty reference list.
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: Not saving ScriptableObjects correctly, losing prefab ref

Post by Joel »

Hi there,

It may be that the change in settings isn't being recognised. If you private message me your invoice number I can send over an update which will ensure that the change is recognised and should hopefully resolve your issue.

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