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.
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
I have been banging my head into the same bug on 4.12. I finally managed to work around it with.
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.
answered Aug 09 '16 at 12:49 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here