How do I set the DEFAULT user settings for my game?

Hello, I have set my project up with a settings menu which works well. It retrieves and sets the user’s desired settings which are saved to disk.

How do I set the DEFAULT user settings? The settings that the user gets when they first install the game, and what is set when you use the “Set to Defaults” node. I can’t find an answer for this anywhere. There are a few nodes that come up with the search for getting the defaults of things like screen resolution (oddly the results do not include all settings), but nothing for setting the defaults. I can’t find anything in project settings either.

Thanks in advance for any help.

2 Likes

It’s also a save game thing. You set the defaults in the save game, and when they press that button, you just load them.

You can also load them for a new game.

Apart from that, I think you’re just stuck with what the engine settings are without modification.

Yes, you can put some things in ini files, but not everything, it seems.

1 Like

But if you don’t change anything, how does the engine know what settings to apply at first launch?
Is there a way to get optimal settings based on the user’s machine?

“Does Save Game Exist”
False> Create Save Game
True> Load saved variables/settings

Settings changed “SaveToSlot”

Is there a way to get optimal settings based on the user’s machine?
Yes

At first launch it either uses normal or what you had your viewport set to, i can’t remember package and see :stuck_out_tongue:

in the exe settings for the packaged project you can also specify -windowed ( also can set a specific resolution etc ) and it’ll initially launch as a window, kinda useful if your making more of a splashUi/GameLauncher thing, then when you click play or start or whatever you just load up the users settings and if they had Fullscreen set it’ll go fullscreen

1 Like

Thanks. By “first launch” I meant the very first time the game is launched on the machine after install.
I know there’s a hardware benchmark node, but how would you run that ONLY the very first time the game is launched after being installed, not any other time after that?

1 Like

You can use the save game to know if you have run the benchmark or not… :slight_smile:

2 Likes

Thanks. But the problem with that is that if the user installs the game on a different machine, from steam for example, and then steam downloads all their saves, than it won’t perform a hardware benchmark since the save says it has already.
Wish there would be a way to save information to a simple text file or something, like GameUserSettings does.

You could use something like

https://www.fab.com/listings/f84001ab-0aed-4a8f-b976-7203fadc338a

or
https://www.fab.com/listings/a5755dc2-fc21-4f4b-b3c4-9d9966baaa8d

or write a node for yourself in CPP ( I don’t think there’s anything in BP ).

You could also look at the average fps over time. If it’s very low, ask the user if they want to profile?

1 Like