Skip to content

v3.6.0 - Use data folder for addon configuration (JSON)

Compare
Choose a tag to compare
@BadgerCode 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!

Read more



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.


Features

  • #79 - Stores addon configuration in the data folder, using JSON
    • Thanks wgaylord
    • This will allow people using the workshop version of this addon to configure it
  • #80 - Localization update- Add missing phrases, update Russian translations