# Old save game data being put in packaged build?

**URL:** <https://forums.unrealengine.com/t/old-save-game-data-being-put-in-packaged-build/410375>\
**Category:** Editor Scripting\
**Tags:** savegame, unreal-engine, update, packaging-projects, question, Blueprint\
**Created:** [November 23, 2017, 5:49am UTC](https://forums.unrealengine.com/t/old-save-game-data-being-put-in-packaged-build/410375 "2017-11-23T05:49:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_2ddb408f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2ddb408f](https://forums.unrealengine.com/u/anonymous_user_2ddb408f)\
**Post date:** [November 23, 2017, 5:49am UTC](https://forums.unrealengine.com/t/old-save-game-data-being-put-in-packaged-build/410375/1 "2017-11-23T05:49:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![HighlandScotch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HighlandScotch](https://forums.unrealengine.com/u/HighlandScotch)\
**Post date:** [September 4, 2018, 5:47pm UTC](https://forums.unrealengine.com/t/old-save-game-data-being-put-in-packaged-build/410375/2 "2018-09-04T17:47:27Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![project.gheist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@project.gheist](https://forums.unrealengine.com/u/project.gheist)\
**Post date:** [September 4, 2018, 6:46pm UTC](https://forums.unrealengine.com/t/old-save-game-data-being-put-in-packaged-build/410375/3 "2018-09-04T18:46:31Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![HighlandScotch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HighlandScotch](https://forums.unrealengine.com/u/HighlandScotch)\
**Post date:** [September 4, 2018, 7:53pm UTC](https://forums.unrealengine.com/t/old-save-game-data-being-put-in-packaged-build/410375/4 "2018-09-04T19:53:10Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![Lobotomiac](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lobotomiac](https://forums.unrealengine.com/u/Lobotomiac)\
**Post date:** [January 27, 2021, 11:40pm UTC](https://forums.unrealengine.com/t/old-save-game-data-being-put-in-packaged-build/410375/5 "2021-01-27T23:40:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2ddb408f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2ddb408f](https://forums.unrealengine.com/u/anonymous_user_2ddb408f)\
**Post date:** [January 28, 2021, 12:37am UTC](https://forums.unrealengine.com/t/old-save-game-data-being-put-in-packaged-build/410375/6 "2021-01-28T00:37:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Lobotomiac](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lobotomiac](https://forums.unrealengine.com/u/Lobotomiac)\
**Post date:** [January 28, 2021, 8:18am UTC](https://forums.unrealengine.com/t/old-save-game-data-being-put-in-packaged-build/410375/7 "2021-01-28T08:18:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jacksonnexhip](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacksonnexhip/32/494650_2.png) [@jacksonnexhip](https://forums.unrealengine.com/u/jacksonnexhip)\
**Post date:** [September 15, 2023, 12:02am UTC](https://forums.unrealengine.com/t/old-save-game-data-being-put-in-packaged-build/410375/8 "2023-09-15T00:02:54Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![KillerSneak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/killersneak/32/754802_2.png) [@KillerSneak](https://forums.unrealengine.com/u/KillerSneak)\
**Post date:** [September 15, 2023, 3:43am UTC](https://forums.unrealengine.com/t/old-save-game-data-being-put-in-packaged-build/410375/9 "2023-09-15T03:43:41Z")

</div>

You probably tested your build and created the save data. Simply delete the “saved” folder to get rid of the data that gets saved.
