v3.6.0 - Use data folder for addon configuration (JSON)
BadgerCode
released this
22 Apr 13:06
·
65 commits
to next-version
since this release
To download the update, follow the steps in the Installation Guide.
Note: When updating from a version before 3.6.0, you should backup your Lua configuration file
Otherwise, you may accidentally delete your configuration changes!
Release Notes
The big change in this version is to the addon configuration.
- Previously, configuration was managed in a lua file-
lua/damagelogs/config/config.lua
- This made it impossible for Workshop users to configure the addon
- It made updating the addon risky, as you may accidentally overwrite your configuration changes with the new files
- Now, configuration will be stored in a JSON file, in the server's data folder
gmod_server/garrysmod/data/damagelog/config.json
- The damagelogs will first try to load configuration from the lua file, then load configuration from the JSON file
- Configuration settings in the JSON file will overwrite the settings from the lua file
The wiki has been updated to document how the new system works and what each setting is for.