Access none trying to read property Save Game Ref'

I am getting the error Access none trying to read property Save Game Ref. Any Ideas on how to fix this?

Hey @darknyssrises!

Where are you setting “Save Game Ref”? It’s an object reference so it likely needs to be set at runtime. Basically it’s saying “Save Game Ref is just an empty variable, you need to put something here”.

Hope that helps!

1 Like

sidenote, if you load a save, usually it’s async. so you need to pay attention to that.

I am trying to create a save game BP for my game. Here I attached my BP for saving the game. The BPInterface saveable has been implemented on my character.

This is a confusing concept compared to what most people have dealt with before when creating save games, but you don’t have an actor in the level that you call on. What it looks like you’re doing is you’re telling it to go get your BP_SaveGame actor, but you don’t actually have one IN the game- you’ve only created the class!

You have to check if there is a savegame file, then use that as the target on all of these. Your “SaveAllData” function seems like that’s what you’re tryingn to do, but if that function isn’t called it won’t work.

Maybe start over in a different project for learning purposes and follow this tutorial, then bring that knowledge back with you! :slight_smile:

1 Like