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"

Game User settings dont save

I created a simple blueprint library in C++ so I can access the functions of UGameUserSettings in blueprint. Setting resolution works however nothing gets saved after the initial creation of the ini. I created a quick test setup to call try change resolution then confirm the resolution when another button is pressed.alt text

The problem is, Confirm video mode doesnt save it to the ini. I tried using UpdateVersion() but its protected. Not sure what im doing wrong. Here is an example of one of my functions in my BL library. They all call functions from UGameUserSettings reference.

 void UTestBPLibrary::ConfirmVideoMode()
 {
         UGameUserSettings* userSettings = UTestBPLibrary::GetUserSettings();
         userSettings->ConfirmVideoMode();
 }

Like I said the only time it saves the resolution setting is when its first launched with an empty config. Get user settings looks something like this:

 UGameUserSettings* UTestBPLibrary::GetUserSettings()
 {
         return GEngine->GetGameUserSettings();
 }

Product Version: Not Selected
Tags:
capture.jpg (40.1 kB)
more ▼

asked Oct 15 '14 at 09:53 PM in C++ Programming

avatar image

OpticalShadows
286 23 26 43

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I may have found a solution. Im not sure what the purpose of request resolution change vs setscreenresolution is but when i change my setup to this:alt text

It seems to save. I still have to see if it was just a fluke or if this is the way to do it.

capture.jpg (94.1 kB)
more ▼

answered Oct 15 '14 at 10:05 PM

avatar image

OpticalShadows
286 23 26 43

avatar image OpticalShadows Oct 15 '14 at 10:06 PM

Note I should have SetResolution function before ConfirmVideoMode

avatar image OpticalShadows Oct 15 '14 at 10:12 PM

Using SetScreenResolution seems to fix the problem

avatar image haimat Aug 07 '15 at 08:34 PM

I have exactly the same issue, when I call SaveSettings() the .ini file is empty afterwards. Have you managed to solve that issue (in UE4.8)?

avatar image SuperDuperYeah Jul 16 '16 at 08:33 PM

Okay so just bumping up this thread. The good thing is that now there is blueprint function to do just that. Quite a lot of functions actually the only thing is that it just doesn't save. I tried this in a shipping build and it never seemed to remember that V-Sync was disabled (default enabled). Linked a picture of the blueprint setup. Is there an extra step I need to do ?

alt text

vsyncthing.jpg (178.7 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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