My game isn't saving and I'm getting "NotImplementedException"

Discussion and help for Easy Save 3
Post Reply
SterbenWarStorm
Posts: 4
Joined: Mon Jul 24, 2023 3:20 am

My game isn't saving and I'm getting "NotImplementedException"

Post by SterbenWarStorm »

This is the code I'm using to load data

Code: Select all

public class SaveScript : MonoBehaviour
{
    public GameObject logicManager;

    public void save()
    {
        LogicManagerScript logscr = logicManager.GetComponent<LogicManagerScript>();
        ES3.Save(logscr.playerScore, "Score");
    }
}
When I click the save button, it throws the error
"NotImplementedException: The method or operation is not implemented.", along with the location of the code given above.
What exactly am I doing wrong?
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: My game isn't saving and I'm getting "NotImplementedException"

Post by Joel »

Hi there,

Please could you show me the full stack trace of the error so I can see what line numbers it's happening on?

Also your code is incorrect. You have the parameters of the ES3.Save method the wrong way around. See the documentation for more info:

https://docs.moodkie.com/easy-save-3/getting-started/

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
SterbenWarStorm
Posts: 4
Joined: Mon Jul 24, 2023 3:20 am

Re: My game isn't saving and I'm getting "NotImplementedException"

Post by SterbenWarStorm »

Yeah sure!

Here is what the entire thing says:

NotImplementedException: The method or operation is not implemented.
SaveScript.save () (at Assets/SaveScript.cs:13)
UnityEngine.Events.InvokableCall.Invoke () (at <17484a9af6b944dea5cd9be4dbb0da2c>:0)
UnityEngine.Events.UnityEvent.Invoke () (at <17484a9af6b944dea5cd9be4dbb0da2c>:0)
UnityEngine.UI.Button.Press () (at ./Library/PackageCache/com.unity.ugui@1.0.0/Runtime/UI/Core/Button.cs:70)

Edit: cs:13 is this line:

Code: Select all

  ES3.Save(logscr.playerScore, "Score");
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: My game isn't saving and I'm getting "NotImplementedException"

Post by Joel »

Do you still get the error if you fix your ES3.Save call as described in my previous post?

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
SterbenWarStorm
Posts: 4
Joined: Mon Jul 24, 2023 3:20 am

Re: My game isn't saving and I'm getting "NotImplementedException"

Post by SterbenWarStorm »

Sorry, I haven't had the time to fix it until just now.
I just added it and yes, that fixed the issue. Thank you for your help!
Post Reply