Save and load system issue

Hi all,

I’ve followed Gorka Games YouTube video tutorial on a save and load system with variables the only issue that I’m getting is that the games does not load, it only saves.

Gorkas Video: https://www.youtube.com/watch?v=2Jsj3cJnMbk





So, this section is failing

I would say, you do have a save game, but it’s the wrong type.

Try removing the save game from the \Saved\SaveGames and try again.

1 Like

One thing I noticed is in your load game, you are setting saved game variables, where you should, I assume, be setting player character variables

Okay I WAS teleporting to 0,0,0,0 because the function to save happens on Event Begin Play, if I hit save again manually and then load it works as expected, thanks for your help!

1 Like

Yes, there’s also a small logic error here

image

It would be good to create ( and write ) the save game here.

Also wouldn’t be a bad idea to clear the game slot if it returns true otherwise saved data will stack up

1 Like

This should do it?

1 Like

Good idea!

Is this what you had in mind?

Golden

Yes :star_struck:

also needed to add this bunch of code again to initial load/save check otherwise the first time I enter the game and it saves, it didn’t save the location etc so if I hit load immediately I would be outside the map, this fixes it