x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to change the Saved folder location?

A game packaged in Shipping configuration saves its stuff to C:\Users\UserName\AppData\Local\GameName.

How do I change it to, say, Documents\My Games\GameName?

Product Version: Not Selected
Tags:
more ▼

asked Sep 16 '14 at 12:15 PM in Packaging & Deployment

avatar image

Ixiguis
1.1k 57 57 251

avatar image Ixiguis Sep 23 '14 at 06:39 PM

Bump........

avatar image alperenakyuz Mar 02 '15 at 09:26 AM

Bump......

avatar image gustavorios2 Mar 10 '15 at 01:15 PM

I want to know that one too

avatar image LitStudio May 18 '15 at 12:44 PM

Waiting for answer....

avatar image BujakD Aug 25 '16 at 02:33 PM

I also would like to know if there is any proper way to do this.

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

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:

 HRESULT Ret = SHGetFolderPath(NULL, CSIDL_LOCAL_APPDATA, NULL, SHGFP_TYPE_CURRENT, UserPath);

to:

 HRESULT Ret = SHGetFolderPath(NULL, CSIDL_MYDOCUMENTS, NULL, SHGFP_TYPE_CURRENT, UserPath);

and add a 'My Games' folder to the final string at around line 789:

 WindowsUserSettingsDir = FString(UserPath).Replace(TEXT("\\"), TEXT("/")) + TEXT("/") + TEXT("My Games/");

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:

 // get the My Documents directory

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!

  • aguycalleddave

more ▼

answered Jul 22 '15 at 04:33 PM

avatar image

aguycalleddave
106 1 5 9

avatar image Gigantoad Aug 15 '15 at 05:36 PM

Is there any official way of doing this I wonder? Any Epic dev care to comment?

avatar image H_C_C Oct 20 '15 at 01:41 AM

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.

avatar image Gurgadurgen Jul 26 '18 at 12:31 AM

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

avatar image Sasuke Jan 25 '16 at 08:02 PM

Bump.................

avatar image Avelworldcreator Mar 10 '16 at 02:17 PM

Bump. But how about solution that uses blueprints instead? Please? Why hasn't Epic staff chimed in on this question?

avatar image Kibblesticks Sep 07 '17 at 10:42 AM

Bumping this too. Would love a Blueprint or Packaging option to do this.

avatar image Orange23 Sep 12 '17 at 09:50 AM

bumping .............................................

avatar image Maggese Oct 05 '17 at 10:42 AM

bump, it's crazy that there is no configuration option to change this!

avatar image OmicronNEGA Nov 14 '17 at 06:19 AM

Buuuuump. Can't believe still no Epic staff answering this. And I don't want to build the engine from source.

avatar image Roshondas Jan 16 '18 at 01:27 PM

Bump.......

avatar image Theck Jan 20 '18 at 11:41 AM

Bump! Bump! Bump! Config option please.

avatar image jimd667 Apr 19 '18 at 08:37 PM

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)
10|2000 characters needed characters left

I also would like to here is there any proper way to do this.

more ▼

answered Aug 25 '16 at 02:32 PM

avatar image

BujakD
207 13 23 31

avatar image lennysunreal Mar 07 '17 at 12:27 AM

Yup yup, would love to see a blue print node or console command that lets us set this.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question