• 0

    posted a message on Some questions about writing/using libraries
    Ok, thanks :)
    Posted in: AddOn HELP!
  • 0

    posted a message on Some questions about writing/using libraries
    I took a look at LibStub and AceAddon.
    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.

    Is this correct?
    Posted in: AddOn HELP!
  • 0

    posted a message on Some questions about writing/using libraries
    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?
    Posted in: AddOn HELP!
  • 0

    posted a message on Move attempts left / wave spawn text
    Take a look with http://www.wowinterface.com/downloads/info3999-DevTools.html and /dtframestack to find the name of the frame.
    Posted in: AddOn HELP!
  • 0

    posted a message on Some questions about writing/using libraries
    Hello,

    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.
    Posted in: AddOn HELP!
  • 0

    posted a message on PitBull 4.0
    Quote from StijnH
    Quote from StijnH
    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.

    Asking again
    Posted in: Unit Frames
  • 0

    posted a message on PitBull 4.0
    Quote from StijnH
    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.
    Posted in: Unit Frames
  • 0

    posted a message on PitBull 4.0
    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.
    Posted in: Unit Frames
  • 0

    posted a message on .pkgmeta externals
    Hi,

    took over an addon and going trough the code atm.
    The .pkgmeta adds externals like this:
    externals:
      libs/AceLibrary: svn://svn.wowace.com/wow/ace2/mainline/trunk/AceLibrary
    However, the KB says this:
        libs/LibStub:
            url: svn://svn.wowace.com/wow/libstub/mainline/trunk
            tag: latest


    Are both correct? Is there a preferred one?

    Thanks!
    Posted in: Lua Code Discussion
  • 0

    posted a message on Quixote: fix for new qyest type 'player'
    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.
    Posted in: Libraries
  • 0

    posted a message on AutoTurnin
    Just got this addon and saw it was missing the Concerted Efforts turn-in.
    I only had a quick peek at the code, but adding
    -- Honor Marks
    "Concerted Efforts",

    at the end of the first section seems to work :)
    Posted in: General AddOns
  • To post a comment, please or register a new account.