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"

Incorrect default resolution when starting game despite .ini

I can set these settings in DefaultGameUserSettings.ini within Visual studio or notepad before running the project:


When the project is open and I run the game, it seems to use the window position and fullscreen mode (setting it to windowed or fullscreen on start) BUT it completely ignores any resolution that I set here, and instead it gets the resolution from these lines in DefaultEditorPerProjectUserSettings.ini:



Now every tutorial I've come across mentions nothing of this ini file. And me changing the resolution settings from the settings menu in-editor does not change these values and thus does nothing. I can't seem to find out what the issue is, why its being driven by these numbers instead of the resolution size from DefaultGameUserSettings.ini

I cleared the saved/config folder and the problem still occurs. Any insight into this would be a great help, as I can't seem to control my game's resolution other than with console commands or directly setting that clientWindow size inside of the other ini file.

Edit: I should specify that this issue is occuring for running as Standalone Game. When running PIE New Editor Window, the resolution does obey the size set through the in-editor settings, but the standalone game does not.

Product Version: UE 4.11
more ▼

asked Jul 31 '16 at 08:18 PM in Using UE4

avatar image

160 10 12 19

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

2 answers: sort voted first

I ended up deleting the file DefaultEditorPerProjectUserSettings.ini

More specifically, I left the file intact but deleted the entire [/Script/UnrealEd.LevelEditorPlaySettings] section, the other section remaining being [/Script/UnrealEd.EditorExperimentalSettings])

Without that file there overriding the DefaultGameUserSettings, the resolution and settings you set will be the default

more ▼

answered Aug 09 '16 at 06:23 PM

avatar image

160 10 12 19

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

I have been banging my head into the same bug on 4.12. I finally managed to work around it with.

     auto settings = GEngine->GetGameUserSettings();
     if (settings->IsDirty()) {
         // WTF why is this a thing?

It seems that the engine knows it's in the wrong resolution as the user settings are dirty on load. Just telling it to apply what it loaded seems to fix it.

Note: I have not changed any settings to make them dirty. It just starts that way.

more ▼

answered Aug 09 '16 at 12:49 AM

avatar image

1 2 4 6

avatar image BujakD Aug 09 '16 at 08:34 AM

Additionally You can control game resolution with console commands. For example "r.setRes 1920x1980f" causes game to change resolution to 1920x1080 in fullscreen mode. You also execute console commands from within blueprints by calling "Execute Console Command" from level blueprint. This is how i set resolution in my game and it works always.

avatar image HuntaKiller Aug 09 '16 at 05:02 PM

Console commands do not work in a packaged game, as far as I know. Both of your responses require letting the game open in an improper resolution then adjusting to the correct one from there.

avatar image rjsams Aug 09 '16 at 07:22 PM

I realize that the game opens at the wrong resolution. But until Epic fixes the issue or lets us know a better work around, this is the best I've found.

It's better that people can keep playing your game, even if it flickers a bit on launch vs the alternative.

(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