How to change the Saved folder location?
A game packaged in Shipping configuration saves its stuff to How do I change it to, say,
(comments are locked)
|
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:
to:
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!
Is there any official way of doing this I wonder? Any Epic dev care to comment? Bumping this.. Curious about this situation for windows 10.. since My Documents have now changed to just "Documents" Using this method, it wouldn't work if you distributed to a user who isn't using one or the other. I might end up using APPDATA to store save games because of this problem. According to Microsoft's documentation (that's where the CSIDL_MYDOCUMENTS variable comes from), CSIDL_MYDOCUMENTS, among the other variables in that file, will have a different value on different systems. For example, a system that has the "My Documents" folder it will be that, but on a system where it changed to just "Documents" it will be just "Documents." https://docs.microsoft.com/en-us/windows/deployment/usmt/usmt-recognized-environment-variables Bump................. Bump. But how about solution that uses blueprints instead? Please? Why hasn't Epic staff chimed in on this question? Bumping this too. Would love a Blueprint or Packaging option to do this. bump, it's crazy that there is no configuration option to change this! Buuuuump. Can't believe still no Epic staff answering this. And I don't want to build the engine from source. Just ran into this issue when I have a saved game but deleted the packaged folder and remade it to find that same save game still there. Now I'm sure Epic has good reason to place it inside the appdata but being able to change it with blueprints or an options menu would be helpful.
(comments are locked)
|
Follow this question
Once you sign in you will be able to subscribe for any updates here
Bump........
Bump......
I want to know that one too
Waiting for answer....
I also would like to know if there is any proper way to do this.