Should I refresh references before each build?

Discussion and help for Easy Save 3, The Complete Save Game & Data Serializer System for the Unity Engine
Post Reply
epicmcdude
Posts: 4
Joined: Sat Aug 03, 2024 4:05 pm

Should I refresh references before each build?

Post by epicmcdude »

Im having reports of players not having their settings loaded in correctly and I'm just using 1 PM action Load Multiple with 28 values for the settings.
However, I click on "refresh references on all scenes" before doing a build whenever I need to update the game. Should I be doing that? is that affecting getting the correct values from the settings file?
User avatar
Joel
Moodkie Staff
Posts: 4990
Joined: Wed Nov 07, 2012 10:32 pm

Re: Should I refresh references before each build?

Post by Joel »

Hi there,

Doing that should not affect things being loaded. You should check error logs to see what is causing the issue as Easy Save will throw an exception if it has any issues loading.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
epicmcdude
Posts: 4
Joined: Sat Aug 03, 2024 4:05 pm

Re: Should I refresh references before each build?

Post by epicmcdude »

Joel wrote: Sun Sep 08, 2024 5:27 am Hi there,

Doing that should not affect things being loaded. You should check error logs to see what is causing the issue as Easy Save will throw an exception if it has any issues loading.

All the best,
Joel
Uh, there are no errors, just 2 references missing for a 2D texture/sprite (crosshair probably). I have a lot of reports of players not being able to move their mouse right at the start of the game because the mouse sensitivity/anything else doesn't get loaded correctly. this has been happening since I implemented saving settings and I've never found a fix for it.
I don't even know for certain what causes this, sometimes it happens, sometimes it doesn't.
The most ES3 throws is a missing reference for a 2D texture that I save, but I load that separately before hand twice, which if I remember correctly was in the documentation that is something I should do, but doesn't fix it.
User avatar
Joel
Moodkie Staff
Posts: 4990
Joined: Wed Nov 07, 2012 10:32 pm

Re: Should I refresh references before each build?

Post by Joel »

There isn't any randomness to Easy Save, so intermittent issues almost always indicate an issue with logic. For example, saving an object in one script's Start() method, but also modifying or destroying that object in another Start() method, meaning which Start() method is called first won't always be the same.

Aside from that, I would need to see a new project with a basic scene which reliably replicates this and isolates the issue to Easy Save to be able to understand any more about what is happening.

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