Download

Save Game not working

Could someone pls help me figure out why my game dosent save.
The print string is firing. But when i close and reopen my game
the variables havent been saved.

Hi, Thank you for the reply. Ive zoomed in and created better pictures.
Here is the zoomed in game instance. On event init wich as i unerstand it runs as soon as the game is created, i make
sure there is a save slot, if not i create one.Im using the same file name and index as the game only needs one save slot.
So one is only created the first time the game is started. Ive checked that the file is there and it is. And there is only one file
'so i dont think the problem is that the game is reading from the wrong slot.

https://forums.unrealengine.com/filedata/fetch?filedataid=131542&type=thumb

The SaveGame event is called when exiting the widget where the player customizes their avatar. It looks like this:

https://forums.unrealengine.com/filedata/fetch?filedataid=131544&type=thumb

This is where the variables are loaded in from game instance to the PlayerCharacter pawn (Its a pawn as it will not be moved around in the level)
I have checked the loading process by printing out some variable values from the save fileto make sure the problem isnt in loading them. But they
are reset nothing has been saved.

https://forums.unrealengine.com/filedata/fetch?filedataid=131543&type=thumb

The chagnes the player makes to the character are remain until the game is turned off.
I think i am doing what you are recommending doing on point 1 and 2. Im a beginner at UE th,
this is the first time im working with save game. Am doing what you are describing or have
i missed something?