Using Dialogue System for Settings values
Posted: Sat Jul 16, 2022 11:26 am
Hi Tony,
One thing I'm trying to figure out in the transition to Dialogue System is how we should handle our settings values. It would be ideal to be able to access these values via Lua, Below I've attached a photo of part of our configuration file for our game, one of the big features is the ability to have variables that are created at launch but never saved, useful for stuff like checking platform, if the build is a demo, controller type, etc.
My big questions are the following.
- Could I exclude a variable group from being saved?
- Are variables created at runtime saved?
I assume I'll need to write some of my own code to make sure it (the settings file) is serialized and saved to disk as its own file, so the values aren't saved in each slot when using the SaveSlot method but wanted to make sure I'm not missing something you already implemented!
One thing I'm trying to figure out in the transition to Dialogue System is how we should handle our settings values. It would be ideal to be able to access these values via Lua, Below I've attached a photo of part of our configuration file for our game, one of the big features is the ability to have variables that are created at launch but never saved, useful for stuff like checking platform, if the build is a demo, controller type, etc.
My big questions are the following.
- Could I exclude a variable group from being saved?
- Are variables created at runtime saved?
I assume I'll need to write some of my own code to make sure it (the settings file) is serialized and saved to disk as its own file, so the values aren't saved in each slot when using the SaveSlot method but wanted to make sure I'm not missing something you already implemented!