Why is my save load function not working?

Hi folks,

I am trying to add a feature to my game which I press a key on my keyboard to save game character location, and press another key to load the value stored previously to restore game character location.

I found a video on youtube which shows how he implement the function, I follow step by step as shown in the video (UE4 - Tutorial - Save and Load - YouTube), but it doesn’t work for me.

As a noob in UE4, I am really confused by this now, could anyone help me out by stating the problem, and would be really grateful if could provide a solution.

Thank you in advance.

Here is a picture of what I have copied from the tutorial on youtube. Thank you.

does it create the .sav file in your Save project subfolder? Add a breakpoint at the first node of num1 and num2 and step through the flow

You’re saving the player location in a savegame variable called ‘location save’, but you’re loading it from a variable called ‘player location’…

Also, I don’t know how well creating the savegame works when there already is a savegave.

no, the variable in the save file is both times the same thing.

No it’s not, look again :wink: You have a local variable called ‘Player location’…

maybe I need more coffee :wink: - for me there is both times the variable “LocationSave” he pulls out of the SaveLoad Reference (actual saveGame), on saving AND loading - yes, this goes into a local “Player Location” - but it doesn’t matter? It is unnecessary that he uses this - but shouldn’t make a difference?