Save Game / Load Game (What is not working)

Buttons in widget Savegame


Buttons in widget Load Game

Save / Load events in GameInstance
Save/Load posted by anonymous | blueprintUE | PasteBin For Unreal Engine
Save/Load called in Master_Widget
SAVE/LOAD Widget posted by anonymous | blueprintUE | PasteBin For Unreal Engine
The SaveGame file is populated ok
Still i get no save file

Please help me to fix this. I don’t know why it’s not saving. I try to fix this thing for a long while but it’s not working for me. Tried to do with 1000 tutorials but not a success yet … Please help me.

The code looks nice.

Check if the cast is failing…

if not, maybe the error could be in other place becouse the code looks really nice.

Maybe the program has not permission to write to the disk.

1 Like

If i do the save from my_character it is working(calling the function savegame when pressing a button, the same with loading). When I try to do it in widget blueprint it does not work. I have checked the casting - it is not failing. I don’t know what to do :frowning:

Tray to put the code in the controller blueprint…

look this:

Unreal was desing for multiplayer games. The witgeds has not authority… So maybe that is the problem (I’m not sure)…

So the character can do it, the controller too. But the widget can not…

1 Like

Thanks a lot. I will try to change the thinking of the problem and then I will comeback with an update.

If my theory is correct you only need to put the code that writes/reads from the hard drive in the controller (Save_Game, Load_Game) the rest can be left in the widget

1 Like

I did it by this tutorial:
(71) Unreal Engine Save Game Tutorial - YouTube

i think your cast is wrong

your GameInstance is called Salvare? Nope… Right?
Because Salvare is your SaveGame… that’s Right?

Do not move the code to The controller… just fix the cast!!

1 Like

Sadly no.
image
image

Debug each step.

Does exist → Branch [True/False]: Print String

Load game from slot → Is Valid (return value) [Valid/not valid]: Print String


Also You should be saving a reference to the Save Game. It’ll make life easier and code cleaner.

2 Likes

Do like @ Rev0verDrive says.

if you select this you can see the depuration (debugging) in real time.

00
it is very usefull

1 Like

Thank you! :slight_smile:

That was it. Thank you! :slight_smile:

i’m happy you fix it!!
You are wellcome!!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.