Recently I packaged my game for its newest update on Gamejolt, I clicked the exe to play it just to make sure that everything not through the editor and I noticed that there was game data already in it, right after being packaged. For example, the in-game settings were already adjusted and the in game currency was not at the default 0 that the custom save game has. If I delete the game, repackage it, and play it again the same thing happens. It’s also not the save game data as the editor. I think it may be data from updating from ue4.16 to ue4.17 (4.17 to 4.18 made no difference in this effect and I only updated to 4.18 to see if the problem would go away). Does anyone have any clue how I could purge the old save game from being packaged with the project? Thank you in advance.
I’m having this same issue. Packaged builds are including the Saved/SaveGames folder where I store user-selected preferences. What solution did you use for this?
Shipping games save their save game data in C:\Users\{UserName}\AppData\Local\{ProjectName}\Saved\
. You need to clear that folder if you want to remove your save game data. I hope that helps. Cheers,
My issue was slightly different. I’ve fixed it, here’s the summary of what was going on:
- I was packaging my game with “File > Package Project” for Windows 32-bit
- I was then testing the packaged project in the “WindowsNoEditor” folder, which created the “Saved” directory in it
- I was then running my Steam upload script which uploads everything in WindowsNoEditor and was including the Saved directory
- I fixed this by not testing the newly packaged game before running my Steam upload script (could also add exclude files/directories)
my issue was that I didn’t understand how saving works. When you package a build and run it, it is accessing the computer’s save games. If you were to zip up your packaged product, and send it to a friend, they wouldn’t have the save game files. They’re stored and accessed from appdata I believe. You should be able to look around in the windowsnoeditor file and see no .sav files.
I’m having the same issue on 4.19; Have you found a solution? I’m just testing it on my pc and it has some old save file, even tho I delete the .sav in my project before packaging
I was literally about to update how I figured it out as well hah. For the first read I somehow skipped project.gheists reply. But yea I was testing the game and just deleted the.sav file from my user files under c/… But what got me is that I presumed that uninstalling the game also removed those files as well but oh well
Is there any way to do this intentionally? i.e. deliberately INCLUDE a save game file in a packaged build which players cannot modify or delete?
You probably tested your build and created the save data. Simply delete the “saved” folder to get rid of the data that gets saved.