Question about "Get Game User Settings" node

Hello, so:

  • at first game launch Get Game User Settings > set settings which must be by default > Apply Settings
  • at settings change Get Game User Settings > set changes > Validate Settings > Apply Settings
  • not at first gane launch Get Game User Settings > Load Settings > Validate Settings > Apply Settings

?

Sounds ok, what’s the question?

Did I really need to load and apply settigs with every lauch (I dont really understand Load Settings node, he dont have settings output, why its then not a Load and Apply or something like that)? But with what setting game runs without it? “Applies all current user settings to the game and saves to permanent storage (e.g. file), optionally checking for command line overrides.”, what if user will delete this unknowm file? This nods dont have any boolean output for check.

I just took a look at my code. I have:

317692-screenshot-1.jpg

on startup. It reads the settings from the config file and applies them.

If the user goes rummaging around and deletes the file, tough luck. They could also delete the save game file, it’s up to them. Where else could you store it?

I think the get node more or less makes it redundant, but best to watch this:

Hmm, but what for Load Settings then?

But then:

  • at first game launch - Get Game User Settings > set settings which must be by default > Validate Settings > Apply Settings

  • at settings change - Get Game User Settings > set changes

  • at settings change apply - Get Game User Settings > Validate Settings > Apply Settings

  • at settings change reset - Get Game User Settings > Load Settings

  • not at first gane launch - nothing

Best to watch the guys vids. I never use load settings…

I made test, and you really dont need to do anything with settings at not first game launch, last game settings taken by themselves from ini file.

Yes, if they only move the save file, they will lose settings from the ini file. You can avoid that by writing everything to the save file, and loading from there. It really depends how much you’re prepared to do…

Wait, but where this ini file? :smiley: For example, if someone moves to new PC with .sav file, I must also be sure that changed .ini exist, or player gets random settings,

Found file in “…\AppData\Local\ProjectName\Saved\Config\WindowsNoEditor\GameUserSettings.ini” (not really sure is it fine that folder called WindowsNoEditor). But then looks like that I need to set settings every game launch.

So thats how I think that must looks, where Get Game User Settings let you work with ini file, Apply Settings changes ini file information, Load Settings reset current settings to settings which you apply to ini file at last time.

  • at every game launch - Get Game User Settings > set settings > Apply Settings

  • at in game settings change (we must be sure that new settings dont crash game, so no apply node for now) - Get Game User Settings > set changes

  • upon in game settings change confirmation - Get Game User Settings > Apply Settings

  • at in game settings change reset - Get Game User Settings > Load Settings

I dont using Validate Settings because I checking is saved resolution bigger then desktop resolution at game start.