wdAMf1517
(wdAMf1517)
September 14, 2023, 7:49pm
1
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.
Ivan3z
(Ivan3z)
September 14, 2023, 9:13pm
2
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
wdAMf1517
(wdAMf1517)
September 15, 2023, 1:05am
3
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
Ivan3z
(Ivan3z)
September 15, 2023, 1:14am
4
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
wdAMf1517
(wdAMf1517)
September 15, 2023, 1:24am
5
Thanks a lot. I will try to change the thinking of the problem and then I will comeback with an update.
Ivan3z
(Ivan3z)
September 15, 2023, 1:33am
6
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
wdAMf1517
(wdAMf1517)
September 15, 2023, 1:37am
7
Ivan3z
(Ivan3z)
September 15, 2023, 1:59am
8
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
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
Ivan3z
(Ivan3z)
September 15, 2023, 2:54am
11
Do like @ Rev0verDrive says.
if you select this you can see the depuration (debugging) in real time.
it is very usefull
1 Like
Ivan3z
(Ivan3z)
September 17, 2023, 12:14am
14
i’m happy you fix it!!
You are wellcome!!
1 Like
system
(system)
Closed
October 17, 2023, 12:14am
15
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.