• 0

    posted a message on Power Auras Classic..???
    Sometimes WoW doesn't load all the textures properly (depending on your graphics card)

    try a /reload and see if this helps
    Posted in: AddOn HELP!
  • 0

    posted a message on Localizing Collections
    Yes, but all the localizing code has to do is remember:

    xxxxx = "some text"

    and just pass though any other lines

    where xxxxx could be anything it shouldn't matter if xxxxx is a simple variable or a complex collection accessor .... /sigh
    Posted in: Need Help?
  • 0

    posted a message on Localizing Collections
    My localization files look like this:

        PowaAuras.Text = {
        welcome = "Type /powa to view the options.",
    
        aucune = "None",
        aucun = "None",
        largeur = "Width",
        hauteur = "Height",
        mainHand = "main",
        offHand = "off",
        bothHands = "both",
    
        DebuffType =
        {
            Magic   = "Magic",
            Disease = "Disease",
            Curse   = "Curse",
            Poison  = "Poison",
        },
    
        DebuffCatType =
        {
            [PowaAuras.DebuffCatType.CC] = "CC",
            [PowaAuras.DebuffCatType.Silence] = "Silence",
            [PowaAuras.DebuffCatType.Snare] = "Snare",
            [PowaAuras.DebuffCatType.Stun] = "Stun",
            [PowaAuras.DebuffCatType.Root] = "Root",
            [PowaAuras.DebuffCatType.Disarm] = "Disarm",
            [PowaAuras.DebuffCatType.PvE] = "PvE",
        },
    }
    but the curseforce localization feature doesn't seem to like collections.... Any way to make this work? I would hate to have to break-out my collections into hardcoded constants.
    Posted in: Need Help?
  • 0

    posted a message on UnitTesting addons and running code out of WoW
    Finally got round to packaging this up on WoWInterface...

    See here:

    http://www.wowinterface.com/downloads/info14863-UnitTestRunner.html
    Posted in: Lua Code Discussion
  • 0

    posted a message on Detecting all Debuff types
    Thanks, guys. looks like I wasn't 100% clear but you have worked-out what I really meant! I know UnitAura doesn't give this information, was looking for debuff type via something else. Great info I'll check-out your suggestions.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Detecting all Debuff types
    Is is possible to detect debuff types other than poison/magic/disease/curse that you get from UnitAura?

    e.g. fear, bleed, stun, snare, silence, sleep etc
    Posted in: Lua Code Discussion
  • 0

    posted a message on UnitTesting addons and running code out of WoW
    Quote from Tekkub
    I use test-driven development at work, and by god it's wonderful, but I have a hard time applying the concept to wow. The problem is that we are heavily dependent on wow's API for, well, basically everything... and there's jack squat in the way of tests for the API. What's the single most common cause of addons breaking? API changes.


    No, for me it is new features and refactoring.

    Quote from Tekkub
    Simulator code is great for making dry-coding a little less dry and avoiding general syntax errors... but I don't see much point in using it all as a unit testing base when the primary breaking-point of addons is something completely out of our control.


    Well I am testing the API to a degree. For the API calls I have implemented (which are all those my addon code uses) I recorded all the outputs from the Blizzard API calls in game. If Blizzard change how the calls work then it rapidly shows me exactly what has changed (e.g. I can compare dumps before and after 3.2 drops). Equally if the arguments have changed this will quickly be apparent as the dump will fail. The big win is the dump tests all the API call at once.

    The biggest thing for me is it allows me to refactor with confidence.
    Posted in: Lua Code Discussion
  • 0

    posted a message on UnitTesting addons and running code out of WoW
    Quote from Xinhuan
    I assure you getting a 2nd monitor (wow on one screen, code on the other) will increase productivity by more than anything else you can do. :D

    Generally speaking though, I still encourage all authors to do their testing in WoW itself as nothing can really simulate WoW, particularly in these 2 areas:

    1. Combat situations (especially in large raids)
    2. Interactions and/or data exchange with other addons


    Ofc this is not supposed to replace in-game testing completely.

    1. is hard in WoW as you are raiding! Also giving users a dump method means you can have a way to recreate situations I can never get to (e.g. Ulduar raids)

    2. Agreed, but that is not what I would use this for
    Posted in: Lua Code Discussion
  • 0

    posted a message on UnitTesting addons and running code out of WoW
    Quote from Elsia
    It's nice to have something like this also when traveling and you cannot actually connect to any WoW server.


    Exactly, I can do lots of development at work with this method :)
    Posted in: Lua Code Discussion
  • 0

    posted a message on UnitTesting addons and running code out of WoW
    I have been using a system for testing addons that allows you to run your code outside of WoW.

    This means I can use luaunit to run unit tests on the addon code and debug things without the constant edit/reloadui/look at debug in Wow cycle

    There are three main parts:
    1. Dump utility to save the current state (run this in game)
    2. WoW Mock, using values from a dump this simulates most of the WoW API
    3. Unit tests with coverage

    (I used this method very successfully on PaladinAssistant/Panza and am now retro fitting it to PowerAuras)

    Is this something that has already been done?
    If not, and there is interest, I will package-up my stuff for general usage


    See here for some examples to check-out the approach

    http://code.google.com/p/wowunittester/downloads/list
    Posted in: Lua Code Discussion
  • 0

    posted a message on AutoBar by Toadkiller (official thread)
    Jason - Alchemy is a special case and is turned off for now. Hopefully will be fixed soon.
    Posted in: General AddOns
  • To post a comment, please or register a new account.