• 0

    posted a message on Thinking of switching unit frame addons
    Quote from Tekkub
    Spartan's not bela's addon... is it?

    And I recommend anything oUF-based :P

    It would seem Beladona is the current dev, although Aesir seems to be a large contributor.

    As you noticed, SUI is indeed oUF based. Bela switched to Ace3 for 2.6.x of the addon.
    http://www.spartanui.com/forum/index.php?topic=1278.0
    For the Beta thread.
    Posted in: General Chat
  • 0

    posted a message on Thinking of switching unit frame addons
    I am liking what Beladonna has done with SpartanUI. The latest Release Candidate can be found in the Beta thread. http://spartanui.com
    Posted in: General Chat
  • 0

    posted a message on i have a question
    Quote from nitchiale
    ok now i have a new question:
    im trying to add sound to this addon but i cant get the sound to trigger what am i doing thats not right?

    TCatsUI = LibStub("AceAddon-3.0"):NewAddon("TCatsUI", "AceConsole-3.0", "AceEvent-3.0")

    function TCatsUI:OnInitialize()
    -- Called when the addon is loaded
    end

    function TCatsUI:OnEnable()
    -- Called when the addon is enabled
    self:RegisterEvent("PLAYER_REGEN_DISABLED")
    end

    function TCatsUI:PLAYER_REGEN_DISABLED()
    PlaySoundFile("Interface\AddOns\TCatsUI\Sounds\HOO.wav")
    end

    function TCatsUI:OnDisable()
    -- Called when the addon is disabled
    end


    p.s. its im using ace3.0 framework


    Shouldn't
    PlaySoundFile("Interface[B]\[/B]AddOns[B]\[/B]TCatsUI[B]\[/B]Sounds[B]\[/B]HOO.wav")

    be
    PlaySoundFile("Interface[B]\\[/B]AddOns[B]\\[/B]TCatsUI[B]\\[/B]Sounds[B]\\[/B]HOO.wav")

    in order to hash the "\"s? And I'm sure someone will correct me, but the ".wav" extension is not strictly necessary, but sometimes nice. Especially if somebody else takes over the addon development at a later date.
    Posted in: AddOn HELP!
  • 0

    posted a message on Canadians unite!
    CR is north of where I was. I grew up in Qualicum Beach and Nanaimo.
    Posted in: General Chat
  • 0

    posted a message on Canadians unite!
    Quote from Morgalm
    Vancouver Island here:)

    Oh, where at? I am heading there in August, visit friends and mom. I grew up on the Island.
    Posted in: General Chat
  • 0

    posted a message on Canadians unite!
    Edmonton here. But you already know that, Ackis. Speaking of which, I may have to drop into one of your haunts and say hello.
    Posted in: General Chat
  • 0

    posted a message on sorting tables redux
    Quote from Lombra
    I'm assuming the list's purpose is to show who to res first, and so he'd want to res other people that can res, as well.

    Yes, exactly. The idea here is to res people who can res first, and I have both class and level as priorities because Blizzard made some classes better ressers than others, and obviously a higher level resser will be better than a lower level resser.

    The reason the non-ressers were in my priority table was because at the end of the function, a character was returned to a button as the person you are ressing. The player does want to res everybody, just in a specific order, even Hunters. :p

    @ArrowMaster: I was guessing that, but just wanted to confirm.
    @lilsparky: If I remove the non-ressers, how would I eventually get to them after ressing the ressers?
    @Slakah: The third arg was the whole question I am asking, and as Arrow said, I can't do what I want in the way I was thinking.

    So, I am still at a loss. Is there a way I can organized self.Dead and return characters in the order I am looking for? Would it help if I posted my whole logic for you guys to analyze and point me in the correct direction?

    ... Or, worst case scenario, just return a random character like the original SmartRes (blah!)? I really don't want math.random to select a character.
    Posted in: Lua Code Discussion
  • 0

    posted a message on sorting tables redux
    Quote from Tekkub
    if a.level == b.level then
    return (b.level < a.level) and ... <--- ALWAYS FALSE!

    Ouch, ok, but that still hurts my head. Should I do one or more of the following?
    • Remove the brackets
    • Change the and to or
    Posted in: Lua Code Discussion
  • 0

    posted a message on sorting tables redux
    OK, I know how to sort a table within itself, but I can't wrap my head around what I'm trying to do here. I have

    priority = {
            PRIEST,
            PALADIN,
            SHAMAN,
            DRUID,
            MAGE,
            WARLOCK,
            HUNTER,
            DEATHKNIGHT,
            ROGUE,
            WARRIOR,
        }

    Which I want to keep in that order. Add the following:

    local function sortDeadByLevelAndClassAndPriority(a, b, c)
            if a.level == b.level then
                return (b.level < a.level) and c.priority-- highest to lowest level. think "b < a" is the same as "80 comes before 79". if equal levels, then doesn't matter
            else
                return (b.level < a.level) and c.priority
            end
        end
        
        table.sort(self.Dead, sortDeadByLevelAndClassAndPriority)


    Where self.Dead is a table containing the class and level of every dead person in the party or raid. What I want to do is keep all the level 80s together, followed by 79s, etc. So the finished, sorted self.Dead might look like the following psuedocode:

    self.Dead = {
        Priest, 80,
        Paladin, 80,
        Priest, 79,
        Druid, 63,
        Shaman, 60, -- because the Shaman is lower level than the Druid
        Mage, 80,
        Warrior, 80,
    }


    Am I on the correct track?
    Posted in: Lua Code Discussion
  • 0

    posted a message on What AddOn is this? I'm not sure if it's Cartographer 2
    Your chat addon is Prat, but I bet you already know that. I noticed you don't have all the subfolders of Prat, enabled or not. Not sure what is causing the text dump, but it wouldn't hurt to make sure you have the newest version of your addons. If you use the Curse Client, I suggest clicking Manage Games, and setting the pulldown menu to Beta, applying to all addons, the seeing what needs updating.
    Posted in: AddOn HELP!
  • 0

    posted a message on Addon Load Time
    Quote from Slakah
    ....
    ...


    All I meant was that if Libs are reusable code, removing the need for duplication, then unless you install Libs separately, and and as devs, we support independent Libs, then it isn't removing duplication.

    Things may have changed, but the last time I checked how WoW loads opt deps was something like

    1. BigWigs (starting with "B") loads first, and comes with Ace2 opt dep, which is loaded
    2. SmartRes (starting with "S") loads second, comes with Ace2 opt dep, which overwrites the version that loaded with BigWigs, even if it is older, just because SR tells it to load... again.

    Of course, if Libs are seperate, then it is more like

    1. Ace2 loads
    2. BigWigs loads
    3. SmartRes loads

    And everything is working as intended. Or did I still not understand something?

    *** Edit ***
    Afterthought: I wasn't talking about speed gains, compute cycles, or even wasted space on today's massive hard drives. I was talking about reducing or eliminating version conflicts with Libs. On that note, remind me to file a ticket for Decursive; the no-lib version doesn't get the correct version of DewDropLib. Strangely, it wants the Alpha.
    Posted in: General Chat
  • 0

    posted a message on replacement for FuBar?
    Quote from StormFX
    CB is OK, just too kiddish with all the "chocolate" references. Docking station does the trick, although it's a little bloat-heavy.

    Ah, bloat. That's what I'm trying to avoid by ditching FB. Shame, I like the look of DockingStation.

    OK, so I want Broker plugins, check. As for the bar itself, bloat is bad, so CB? I'll have to check out what Fortress is.

    Loving the feedback here; very helpful.
    Posted in: AddOn HELP!
  • 0

    posted a message on GatherMate/er and Carbonite
    Already imported its own DB. Just didn't see an obvious GM/G'er option. And yes, I have all three folders. I guess I have already imported everything I can, as I also loaded the other DBs and went through the import process.
    Posted in: AddOn HELP!
  • 0

    posted a message on replacement for FuBar?
    I'm kind of an old dog, but in this case, I am looking for new tricks. Hearing repeatedly that FuBar is bloated, laggy, etc, I am looking for suggestions, and I honestly don't know what to look for.

    In my current FuBar, I have: Friends, Guild, Performance, SmartRes, Factions, Durability, Money, and TopScore.

    Suggestions for a new bar that covers those things?
    Posted in: AddOn HELP!
  • To post a comment, please or register a new account.