local MAJOR, MINOR = "AceAddon-3.0", 5
local AceAddon, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
if not AceAddon then return end -- No Upgrade needed.
If the same or newer version of a library is already loaded, NewLibrary will return nil.
If AceAddon is nil, WoW will stop processing the file and remove it from memory.
I didn't know that Ace3 offered this functionality, I'll look into it. Thanks :) Recently had problems with AddOns using different versions of WhoLib, I guess that is written for Ace2 then?
I've been writing a few AddOns for personal use, and would like to make some available to the public.
I want to make libraries of reusable code. There are a few possibilities.
1) One AddOn containing all libraries. Drawback: unneeded code is loaded.
2) An AddOn for every library. Drawback: clutters the AddOn selection window. PitBull has this problem with all the different modules, I'm sure they'd do it differently if they could.
3) Include the used libraries in the AddOns. Drawback: different versions can cause issues. As an author I can update all AddOns at once, but the user has to do the same.
Does anyone have other suggestions? Or can anyone advise which way to go?
I would like to use different combo point images.
Is there way to do it besides overwriting the default.tga file? Custom files will be overwritten when updating Pitbull.
Anyone? I've tried playing around with Lua a bit, but I don't really understand the AddOn. Got nil values constantly, found how to access a module's .db by trying over and over again but changing the texture value doesn't seem to change the image.
I would like to use different combo point images.
Is there way to do it besides overwriting the default.tga file? Custom files will be overwritten when updating Pitbull.
Anyone? I've tried playing around with Lua a bit, but I don't really understand the AddOn. Got nil values constantly, found how to access a module's .db by trying over and over again but changing the texture value doesn't seem to change the image.
I would like to use different combo point images.
Is there way to do it besides overwriting the default.tga file? Custom files will be overwritten when updating Pitbull.
This library is used in nQuestlog and maybe others.
In WotLK a new quest type was added to GetQuestLogLeaderBoard, which is 'player'.
I've quickly updated http://www.wowwiki.com/API_GetQuestLogLeaderBoard and got this fix for the library (quoted from the nQuestlog page on WowAce).
Open nQuestlog\libs\Quixote-1.0\Quixote-1.0.lua
Go to line 305 or search for the following line
if qtype == 'item' or qtype == 'object' then --'object' for the leaderboard in Dousing the Flames of Protection; maybe others.
Replace by
if qtype == 'item' or qtype == 'player' or qtype == 'object' then --'object' for the leaderboard in Dousing the Flames of Protection; maybe others.
--'player' was added in WotLK.
0
0
If the same or newer version of a library is already loaded, NewLibrary will return nil.
If AceAddon is nil, WoW will stop processing the file and remove it from memory.
Is this correct?
0
0
0
I've been writing a few AddOns for personal use, and would like to make some available to the public.
I want to make libraries of reusable code. There are a few possibilities.
1) One AddOn containing all libraries. Drawback: unneeded code is loaded.
2) An AddOn for every library. Drawback: clutters the AddOn selection window. PitBull has this problem with all the different modules, I'm sure they'd do it differently if they could.
3) Include the used libraries in the AddOns. Drawback: different versions can cause issues. As an author I can update all AddOns at once, but the user has to do the same.
Does anyone have other suggestions? Or can anyone advise which way to go?
Thanks in advance.
0
Asking again
0
Anyone? I've tried playing around with Lua a bit, but I don't really understand the AddOn. Got nil values constantly, found how to access a module's .db by trying over and over again but changing the texture value doesn't seem to change the image.
0
Is there way to do it besides overwriting the default.tga file? Custom files will be overwritten when updating Pitbull.
0
took over an addon and going trough the code atm.
The .pkgmeta adds externals like this:
However, the KB says this:
Are both correct? Is there a preferred one?
Thanks!
0
In WotLK a new quest type was added to GetQuestLogLeaderBoard, which is 'player'.
I've quickly updated http://www.wowwiki.com/API_GetQuestLogLeaderBoard and got this fix for the library (quoted from the nQuestlog page on WowAce).
0
I only had a quick peek at the code, but adding
at the end of the first section seems to work :)