When making an addon, be sure to set the "addon_version" field in your init.lua file. This field is useful for tracking whether the player has the latest version of your addon. When using the non-Steam client, ToME will attempt to download updates for addons, but only if addon_version is set! (It may be necessary to open the Addon menu from the ToME main menu to trigger the addon update, but I'm not entirely sure on that.)
If addon_version is not set, it can be very frustrating for players to figure out whether their addons are up to date.
You can set addon_version to {1,0,0} for your initial release and increment the value (e.g., {1,0,1} ... {1,0,2} ... {1,2,0} etc.) in later addon updates to allow version tracking.
The "version" field in init.lua is for the module (i.e., ToME) version required by the addon. Generally you should just set this to the current ToME version when you initially release the addon, and when releasing updates change the required version only if your code changes depend on game updates from a more recent ToME version.
PSA: Set addon_version in your init.lua file!
Moderator: Moderator