Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run plugin due to trying to assign value of type 'Nil' to a variable of type 'Dictionary'. #13

Open
alexanderconstancio opened this issue Dec 10, 2024 · 2 comments

Comments

@alexanderconstancio
Copy link

Im not sure what happened but somehow I'm in a state where I cannot run my game with SaveMadeEasy active. The error I see is
Trying to assign value of type 'Nil' to a variable of type 'Dictionary'.

I've tried
#SaveSystem.delete_all()
#SaveSystem.clear_all_data = true
#SaveSystem.clear_save_data_on_start = true
#SaveSystem.save()

No luck.

I've uninstalled and reinstalled and the same error still appears.

Can someone tell me how to get this back into a working state? I would really like to use this add on!
Thank you

@AdamKormos
Copy link
Owner

Hello, sorry for the late response. This error message refers to trying to set Nil (null = invalid) data as a Dictionary, from what I can tell. This might come up due to the code not finding the save file. But if you send me your project, I'm happy to investigate.

@S1lentic
Copy link

Hi, I had exactly the same issue. What helped me:
I changed the variable "@export var clear_save_data_on_start : bool = false" in the "save_system.gd" script once to "true" and restarted my project. Then the error was gone.
Maybe this helps. Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants