Page 1 of 1

Error with Loading

Posted: Mon May 25, 2020 2:46 pm
by Quantum44
I recently purchase Easy Save 3 and have been trying to implement it within my game; however, I have instantly run into trouble with the load function. I tried one of the most basic functions in the 'Getting Started' guide, however it returned an error.

Here is the code:

Code: Select all

if (ES3.KeyExists("infantryExp"))
        {
            infantryExp = ES3.Load<int>("infantryExp");
        }
This is the error:
The type arguments for method 'ES3.Save<T>(string, object)' cannot be inferred from the usage. Try specifying the type arguments explicitly.
Apologies if this is a silly issue as I am still fairly new to code and don't have a particularly good understanding of how Easy Save 3 exactly works.

Re: Error with Loading

Posted: Mon May 25, 2020 2:56 pm
by Joel
Hi there,

The error you're getting relates to your ES3.Save call, not the ES3.Load call you've pasted below.

All the best,
Joel

Re: Error with Loading

Posted: Mon May 25, 2020 10:38 pm
by Quantum44
Whoops, that's embarrassing. I just took another look this morning and worked out the issue. Thanks for the help!