• 0

    posted a message on Buffalo2
    I've uploaded a new version to branches. I don't have the time to test it thoroughly in a group and raid environment at the moment, so don't expect wonders. If you would be kind enough to try it out and report any bugs (please do me a favour and try and find a way to reproduce the bug), I would appreciate it.

    Back to work now,
    Nimbal
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    Hm, apparently the email notification for new posts went AWOL. Anyway, I'm sorry, but I won't have time to work on any addons for another 2-3 months (final paper). I don't recommend using Buffalo2 right now, stick to Buffalo1.

    As for the wiki pages, I don't have any backups unfortunately, but I will write them again when Buffalo2 works. Note the use of "when", not "if", I definitely want to make it usable. I already have an idea how to tame the buffs, but <Blizzard-style-comment> I can't tell you when it's gonna happen </Blizzard-style-comment>.

    Well, back to simulating robots for my degree.
    Posted in: General AddOns
  • 0

    posted a message on Buffalo
    Read the tooltips for the rows / cols options. There is no option to limit the number of buffs in Buffalo.
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    The juggled buffs shouldn't happen anymore. But since the fix is quite ugly (curse you Blizzard for your index system!), there could still be glitches, so keep reporting broken things. Preferably with a way to reproduce it.

    Quote from Nimbal »

    Hm, I could add an explicit limit option for templates

    Done. You can now limit the maximum number of icons displayed in a container by using the maxIcons attribute.

    Quote from qicheng »

    Do I have to stick setJustifyH("LEFT") somewhere?
    Also, is there anyway I can increase the font size of the labels?

    1. I will add a template option for that
    2. See 1

    Quote from maia »

    Dragging Buffalo2 frames in combat causes headaches: the mouseclick_up is not processed, so you're stuck with a frame next to your cursor and need to reloadui.
    [me=Nimbal]goes find a poor mob for testing[/me]
    Edit: Can't reproduce this. At least not with a little wolf and my custom container. Any specifics as to how this happened?
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    I thought I had the wrong tooltip / time fixed, but some buffs don't behave like I expected so the fix backfired. I know where the error is. I have an idea how to fix it. But I have to do some University things first. For the moment, most of you will want to revert to revision 38302. As long as you don't display the same buff in several containers (i.e. one container for all your player buffs and one container for the player buffs you can cast yourself), you should be fine.

    Sorry for the inconvenience.
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    Thanks. At least they shouldn't be filtered out because Buffalo thinks they are lying about their applications. Unfortunately, I'm not participating in my guild's raids because of a bug in the reality realm that let's the day have only 24 hours. So I can't see what's going haywire myself.
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    Quote from Newsens »

    I am trying to limit the number debuffs above my target to 12. I tried using 1 row and 12 columns to accomplish this but looks like its not intended to limit debuffs there. I've spent time trying to figure it out but I am stumped. Thanks in advance, great addon!


    Hm, I could add an explicit limit option for templates, but for the time being, you can modify the Contains function of the template you are using like this:
    function Contains(container, buff)
     if(#container.buffs >= 12) then
      return false
     end
     -- anything else that already was in this function comes here
    end

    BUT this will have a probably undesired side-effect: If a debuff expires when there are more than 12 debuffs on the target, the container will show 11 debuffs until the next debuff is added. As said, I will add a limit option.

    Quote from muppenz »

    Err, you might want to try using this addon together with cooldown count. It shows the cooldown on the icon for debuffs on target, and often tends to bug and show cooldown on the icon for your own buffs. Sometimes it even shows wrong cooldown. Aside from that, it would be greatly appriciated if we could remove the timers and the shortcut on buffs. When we raid, and have mobs with 40 debuffs, its not good to have shortcuts or having timers on some debuffs on the target.

    Actually I do use it with Cooldown Count (if by that you mean OmniCC). You have a similar problem (or feature, if you like it) with the standard Blizzard debuffs below the target frame. The author of Cooldown Count has included an ignore list for frames. Look for the file Interface/Addons/OmniCC/blacklist.lua and add the line
    OmniCC:Blacklist("Buffalo2")

    That should disable cooldown countdowns on Buffalo2 frames.
    EDIT: Oops, forgot your other question. You should read Post #16 in this thread. In short: without wanting to sound harsh, do it yourself. That's what the template system is there for. In particular, look at the functions GetLabelString and GetDurationString in the template you are using and let them return an empty string, like this:
    function GetLabelString(button, buff)
     return ""
    end


    Quote from Killariel »

    Err I meant Netherspite and for clarity it's the number of stacks from the beam debuff that isn't showing up. Any plans for a fix on the way?

    1. What are the names of the debuffs?
    2. Does anybody know of other debuffs that should stack, preferrably from a non-lethal mob in the outside world? Maybe it's not a problem specific to Netherspite.
    Posted in: General AddOns
  • 0

    posted a message on Buffalo
    It sounds like you are using Buffalo2. There's another thread about it here.

    Anyway, update to the latest revision (I think I have fixed this bug already) and see if the problem persists. If yes, post in the other thread about it. :-)
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    Hmm... I could have sworn auras have a nil buff time. But actually, they have 0 seconds left. Well, then try this:
    Comparator = function(container, buff1, buff2)
     local t1 = buff1.timeLeft
     local t2 = buff2.timeLeft
    
     if(not t1 or t1 == 0) then
      return true
     elseif(not t2 or t2 == 0) then
      return false
     else
      return t1 > t2
     end
    end

    I use t1 and t2 here to cut down on those table accesses.
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    To detect weapon buffs, I use the "COMBAT_TEXT_UPDATE" event. Unfortunately, the return values of GetWeaponEnchantInfo are updated sometime later, so i have to wait a while before calling it. Currently, this waiting is set to half a second, which worked fine for me, but obviously isn't for everyone (probably depending on latency). That's one of the reasons why I (still) would like someone with an american WoW account to ask Slouken in the official forums for an appropriate event when GetWeaponEnchantInfo has been updated.

    Anyway, I will tweak the wait time a bit more when I have time.
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    *sigh* Blizzard, why are you doing this?

    Anyway, I'm hesitant to just do it like the standard UI (as explained by Skyboat) since there are some buffs where it seems ogical (to me) to display one charge. Elemental Mastery, Presence of Mind, poisons with one charge left, and so on. But it looks like there are as many of these as there are buffs like Stealth, Drain Soul (btw Skyboat, it wasn't your fault your edit didn't work, it was mine) or Touch of Weakness that shouldn't display 1 application left. For the moment, I will add the latter to an "Ignore List", so keep reporting them.

    And thanks for the continuing bug reports. I can't play much these days, so I have to rely on you to find the quirks in Buffalo2. Keep the bugs coming.... errr.... but not for too long... please? ;-)
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    Quote from Metacortex »

    When I have a 10sec buff up and someone buffs me arcane intellect in the default-settings, the new longer lasting buff, is shown after the short buff. I want it to be the other way round. How can I realize this, which functions / templates do I have to use?

    Look at the Comparator function. It receives two buffs, and when they are in the wrong order, Comparator should return false. To sort by time, you would need something like this:
    Comparator = function(container, buff1, buff2)
     return buff1.timeLeft > buff2.timeLeft
    end

    BUT you will probably run into trouble with this, as not all buffs have a time and Lua doesn't like comparing two things that don't exist. So to be safe (and have auras at the first position), do this:
    Comparator = function(container, buff1, buff2)
     if(not buff1.timeLeft)
      return true
     elseif(not buff2.timeLeft)
      return false
     else
      return buff1.timeLeft > buff2.timeLeft
     end
    end

    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    Metatables can be so much fun. The resetting to center shouldn't occur anymore.

    Edit:
    Quote from Fiskrens »

    One feature I particularly like there is the possibility to display the full(?) name of the buff

    You can change the Buttons.GetLabelString method in a template:
    GetLabelString = function(button, buff)
     return buff.buffName
    end,

    Although you might want to move the label then, most buff names will be wider than the button so the labels will overlap. You can do this by changing the anchor of the label:
    GetLabelAnchor = function(button)
    	local anchor = {point = "LEFT",
    			relativePoint = "RIGHT",
    			xOffs = 0,
    			yOffs = 2
    	}
    	return anchor
    end,

    This will attach the label to the right of the button, so you could make the debuffs a single vertical column of icons and move them to the left of your screen. If you prefer it the other way around (text to the right of the button), swap LEFT and RIGHT in the code above and maybe adjust the yOffs.
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    Fixed. I hope.
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    I've been busy the last few hours. See changelogs for additions and fixes and let me know if I have broken something else (or didn't fix something I thought I fixed).

    @gogusrl:
    Do you still have the same problem? If so, could you post the output of BugSack, please?

    Edit: Sorry, I just noticed I indeed broke something: Sorting. I'm figuring it out now. At least I hope so.
    Edit2: Fixed sorting
    Posted in: General AddOns
  • To post a comment, please or register a new account.