Error with Loading

Discussion and help for Easy Save 3
Post Reply
Quantum44
Posts: 2
Joined: Mon May 25, 2020 2:41 pm

Error with Loading

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

Re: Error with Loading

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Quantum44
Posts: 2
Joined: Mon May 25, 2020 2:41 pm

Re: Error with Loading

Post by Quantum44 »

Whoops, that's embarrassing. I just took another look this morning and worked out the issue. Thanks for the help!
Post Reply