I just packaged my game and have noticed that it will not load any of my save files when i exit and reopen the game! even though there is a save1.sav file being created
it works normal before i packaged!
![]()
Are you sure that save file was saved with the compiled game?
It could happen that you packaged shipping build (which you should do). It cannot read save files of the Debug builds. Just make sure game is saved with the build you packaged.
Thank you for fast reply Bojan! yes So I deleted any save games in my editor folder before packing for shipping and then i packaged for shipping played two levels in my game and then saved and exited it is making a save file in the folder but when i re open the game it is as if there is no save!
Itās not easy to answer, at least not for me, what could cause this isuse. Do you load them asynchronously, or in the main thread (e.g. which node are you using)?
Is there a way you can add debug commands or print screen to make sure savegames exist, and the game sa recognized them. Could be some UI issue. I would start with that.
Add either logs (if debug build), or print screen if shipping build, and print the values if savegames exist, and if there is any data in them.
Then you can start eliminating stuff, and getting to the core of the issue.
I am using a game mode. And in the event begin play I got this

And if a save does exist i load everything and it works before package if A save does not exist i create one and promote it to a variable I just added the print string so i will package and see if it shows me or no
Yes so I have a main menu widget that i create in my main menu level and when the player clicks āLoad gameā I have a ādoes save game existā node and i have it to print string the result true or false It prints true when i exit/reload the game but it will not load the next level but it works in the editor
![]()

Does this one print that savegame exists?
Yes this one prints true
It just wonāt load my level I guess when i hit load game!? hmm i tried to add a boolean but it donāt work.

When i go to my level I set this boolean in my save game to true by casting to game mode getting my save game obj and setting that boolean mt1 to true and then on my main menu in my load game button i check if save game exist (this prints true) and if it does it checks if MT1 bool is true and if it is it loads the level
But for some reason when I go to the main menu that bool is false (MT1), even though i set it to true in the level before I saved and exited? so it wont load the level it just reloads main menu Am i doing it wrong?
This problem only exist in a packaged project. Everything works 100% in editor. ![]()
Hm yeah for some reason in a packaged game this boolean will not get set to true, it prints false on both print stringsā¦
But when i play in editor it prints false and then true.
The log for the packaged game says āAccessed None trying to read property SaveGameObjā for my main menu map, and every other level I play. I dont understand why it works in editor but not packaged. did i miss something?
All of my items transfer from one level to the next so im confused. why is it accessing none for the save game obj in the packaged game but not in the editor version?
Yeah idk itās almost like my save game obj is not valid when i package the game, The logs for the package project shows āAccessed none trying to read property savegameobjā for every map i go to. even though a save game does exist. no clue why it works in editor as it should but breaks when i package the game.
So my save game obj ref, upon further print strings, seems to always go back to not valid whenever im at my main menu? though my main menu is set to the proper game mode. and the level blueprint is blank? this only happens in a packaged game
you mentioned game mode are you doing your save/load in a game mode or game instance
I am doing it in the game mode off of the begin play
I believe game mode isnāt loading in your main menu Iād recommend doing saving and loading in a game instance they are super easy to setup and they exist then entire time the game is open no matter the level
If I already got it all set up in the game mode is it a whole big thing to change!? I will try to do a little in the game instance for test and see if this works!
![]()
It shouldnāt be too hard to shift over but itāll save you loads of headache later on
I will check it out and see if it works! Appreciate it!!
![]()
You are my hero SpaceMarine! oddly enough that stopped my save game obj variable from returning null in my main menu level
glad to hear it!

