ES3.Load<string> Exception

Discussion and help for Easy Save 3
Post Reply
HoshinoArika
Posts: 5
Joined: Mon Aug 14, 2023 2:30 pm

ES3.Load<string> Exception

Post 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!
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: ES3.Load<string> Exception

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply