Config values resetting
I'm currently struggling with an issue regarding config files. I have a config value in my character which is storing in the game config. I have an options setting which can adjust the value and it saves correctly, when I quit the program and check the config, the value has been changed accordingly. However when I re-open the program the value resets, to whatever the value was in the editor before I packaged it into a game.
I've tried checking throughout my code and I don't see anywhere where I am somehow resetting the config value, at some point when opening the program, the value is either resetting, or not getting updated to the value that is currently in the config file.
At what point are config values set to whatever the contents of the config file contains? I've tried checking the documentation but it doesn't state specifically at what point they get loaded.
asked Jan 11 '16 at 02:19 PM in C++ Programming
Are you writing to your own .ini and not directly to one of the engine/project specific ones? If so, you'll need to read that data manually and set it to the variable. It won't be automatically read at any point. This will also allow you to determine when it is read, such as just before the call to use it in HandleMatchHasStarted.
answered Jan 12 '16 at 03:34 PM
Matthew J ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here