How to change the Saved folder location?
A game packaged in Shipping configuration saves its stuff to
How do I change it to, say,
asked Sep 16 '14 at 12:15 PM in Packaging & Deployment
Having the same issue with Windows Shipping Builds, but figured it out.
I followed it back to the function where the UserSettingsDir is set for shipping games.
On Windows, it calls UserSettingsDir() in WindowsPlatformProcess.cpp.
If you change the following at around line 785:
and add a 'My Games' folder to the final string at around line 789:
It will create the Saved folder in My Documents/My Games/GameName/Saved/, which is similar behaviour to a number of UE titles. In there right now alongside our game on my machine is /SpecOps-TheLine/ and /The Vanishing of Ethan Carter/.
What's weird is this comment above the line that sets the user folder in appdata, which says to me this is either an oversight or a change of plan:
You can also look into Paths.cpp, in the functions ShouldSaveToUserDir() and GameUserDir() if you don't want to modify the WindowsPlatformProcess.cpp, but modifying just the windows one will stop anything weird happening with other platforms.
Hope this helps!
answered Jul 22 '15 at 04:33 PM
I also would like to here is there any proper way to do this.
answered Aug 25 '16 at 02:32 PM
bump... is there a way to change where the savedgame files are stored in a "shipping" packaged game?
I was doing an early access build for a while using a debug build and now switched over to a shipping build and its going to be a hassle to tell everyone to move their saved games to the new directory otherwise.
answered Apr 03 '19 at 04:26 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here