[notabug] GetAddOnVersion only works with libraries
When an addon declares that it is a library
Code:
## IsLibrary: true Code:
AddOnVersion: If IsLibrary is set to false, then GetAddOnVersion() always returns 0 even when an AddOnVersion is provided. |
Are you sure that's true? I just checked a debug log someone sent me and it actually has the addon version for all addons that specify it. I even checked some older files and it has always shown the version as it should.
You are aware that AddOnVersion has to be an unsigned integer, right? |
Yes, I am aware that addon version is an unsigned integer. I tested it on one of my addons that had
Code:
## Version: 1.26 |
In the recent process of testing my add-on 'Calamath's Addon Diagnosis', I share the same view as siri.
I would recommend that you also pass the argument you passed to GetAddOnVersion() to GetAddOnInfo() to check the add-on name once again and make sure that the index at runtime matches the add-on you expect. |
Quote:
|
did you try something like this?
Lua Code:
|
Quote:
Not sure what you did wrong during your tests, but it was always working. ;) |
All times are GMT -6. The time now is 12:00 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI