Im learning and testing how to work with the config files for my game.
After packaging the project, the config files themselves show up fine after first run.
However, if I exit the game and look in GameUserSettings.ini (where I am placing most of my settings) it is completely empty.
If I reload the game and goto the options menu, click my “apply” button and exit, then the GameUserSettings.ini file now has all of the settings. Cool.
But if I once again reload, then immediately exit, the GameUserSettings.ini file once again is completely empty.
Ive check over all my functions for exit and startup and Ive added nothing that messes with the config files.
It only writes to the config files when you click the “apply” button in the options menu.
(In fact, I do not recall writing anything at all that would just completely clean the GameUserSettings.ini)
Is there a step I am missing that could be causing this?
It looks as if the GameUserSettings.ini is emptied at game start, but that doesn’t make sense to me…
Why would it be emptied if it is meant to permanently store data when the game is not running?