Page 1 of 1

ES3.Load<string> Exception

Posted: Thu Mar 28, 2024 1:31 am
by HoshinoArika
Image

Code: Select all

    private bool TryGetSavedFileApplicationVersion(ES3Settings es3Settings, out string applicationVersion)
    {
        applicationVersion = string.Empty;
        try
        {
            if (!ES3.KeyExists(SaveKeyApplicationVersion, es3Settings))
                return false;
        }
        catch (Exception e)
        {
            HandleException($"{LocalizedHints.LoadErrorHint}_{Application.version}", e.Message, e);
            return false;
        }

        try
        {
            applicationVersion = ES3.Load<string>(SaveKeyApplicationVersion, es3Settings);
            return true;
        }
        catch (Exception e)
        {
            HandleException($"{LocalizedHints.LoadErrorHint}_{Application.version}", e.Message, e);
        }

        return false;
    }
The save files are not encrypted.
This issue cannot be reproduced reliably (happens randomly).

Unity Version: 2021.3.5f1
ES3: 3.5.6

Please help!

Re: ES3.Load<string> Exception

Posted: Thu Mar 28, 2024 9:07 am
by Joel
Hi there,

Firstly I recommend updating to the latest version of Easy Save.

If this doesn't resolve the issue, please see the section of the Error Handling guide regarding this error:
https://docs.moodkie.com/easy-save-3/es ... -handling/

All the best,
Joel