AeonsOfTime
Chieftain
- Joined
- Mar 4, 2017
- Messages
- 10
Hi all, I have a small mod with some configuration settings in a lua script. I would like to move these configuration settings to a separate file, so they can be easily edited without opening the main script. It can be another lua file, an xml file, or whatever other format that can be used.
For the last two days I have tried finding examples, and looked at a bunch of modding guides, but was unable to find this particular topic. I would love to hear how you go about it (I assume it is possible), and what you think would be the best practices to do this.
The specificities of my project:
- The lua script has its default settings, the configuration file should be used only if it exists.
- It has to be a file, so players can easily modify the file.
I'd appreciate any help!
Cheers,
Aeon.
For the last two days I have tried finding examples, and looked at a bunch of modding guides, but was unable to find this particular topic. I would love to hear how you go about it (I assume it is possible), and what you think would be the best practices to do this.
The specificities of my project:
- The lua script has its default settings, the configuration file should be used only if it exists.
- It has to be a file, so players can easily modify the file.
I'd appreciate any help!
Cheers,
Aeon.