• 0

    posted a message on Buffalo2
    @Guardix & Salina:
    There is no option to hide the shortcuts, no option to make the timer yellow and no option to switch formats. And no, as far as I am concerned, there will never be one. Read post #16 in this thread to learn why. But if you tell me what container you want to adjust, I might be able to help you adjust it to your needs.

    Quote from Skyboat »

    From what I can see, the duration will update if a new buff appears and the buff order changes, but the label and the icon don't. Something very strange going on in any case at least.

    I already know where this bug is coming from (premature composting of a table), I just have to find the time to fix it without breaking other things.
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    Quote from Awaa »

    As of yesterday i have some problems with all timers of buffs disappearing at random. I have tried to figure out if its something im doing or if there an npc debuff that does it but nothing so far.

    Also yesterday when i was on mount and did rightclick on the mount icon to demount, it removed an (friendly) buff instead.

    1. Do the timers disappear when the buff list changes (i.e. you gain a buff or lose it), or totally random?
    2. I will look into the mount thing.
    Maybe these two are connected and something messed up the internal buff list of the container. I hope not, as this would be a bitch to track down.

    Quote from gogusrl »

    Nimbal, your suggestion didn`t work. I still get attempting to compare 2 nill values. Again, what i would like is an option to sort buffs by duration.

    Could you attach your container file to a post here?
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    Quote from gogusrl »

    but i get `attemting to compare 2 nill values`.


    Are there only player (de)buffs in this container? Because these are (besides target debuffs as of 2.1) the only ones that have a time, and even some of these don't. Either way, try

    Comparator = function(container, buff1, buff2)
    	if(buff2.timeLeft and buff1.timeLeft and buff2.timeLeft > buff1.timeLeft) then
    		return false
    	else
    		return true
    	end
    end, 

    I hope it works.
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    Quote from leenadr »

    Here is the frFR localization file :)

    Is it possible to show only debuff you can apply ? Or even only certain debuffs ?
    And is this possible to refresh them by click on the icon in the container ? (this last question can be barely far away of the purpose of this addon, i can understand that ;))

    Thanks for the translation. And yes, it is definitely possible to only show certain debuffs. Write down the names of the debuffs and put something like this in a template's ContainsBuff function:
    function ContainsBuff(container, buff)
     if(buff.buffName == "Evil Debuff" or buff.buffName == "Sinister Debuff") then
      return true;
     else
      return false;
    end

    Of course you can add more buff names, just put an "or" between them. If you want to display all debuffs, but want to have your debuffs at the top, you can use the Comparator function. Have a look at the Blizzard template, specifically the Buff / Weaponbuff container on how to do that. It will always have MH buff (if any) first, then OH (if any) and then the rest of the buffs.

    As for the recasting, that's on my wishlist for Buffalo2, but that will be really difficult because of the UI restrictions. If it will some day be possible, then with static buttons, i.e. Curse of Tongues will always be the first button, Corruption the second and so on, regardless of whether you have cast them on the mob.

    Nimbal
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    If you insist, here you go. Also, the stealth abilities shouldn't have charges anymore (can a druid confirm that for Prowl, please?).
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    You know that you wouldn't have ANY means of configuration without Waterfall, do you?
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    Quote from funkydude »

    can you please remove the need for waterfall, i don't use it, and i don't want to use it, it should be optional.

    You mean so that you only use templates for configuration? I will see.

    Anyway, I have made some changes today. The most obvious are debuff coloring and button flashing for low-duration buffs in the Blizzard template. Speaking of templates, i have redone the system a little bit. Since more and more template functions refer specifically to the buttons and not the containers as a whole, there's now a sub-table "Buttons" in a template which contains any functions that refer to the buttons. If you already have custom templates, you'll probably have to modify them a bit by moving certain functions into the sub-table. I will update the wiki page soon.

    Update: You can now add custom containers without having to modify the containers.xml on every update. To do this, copy containers.xml and rename the copy to user_containers.xml. Add your containers to user_containers.xml and they will be loaded. Since the new file is not part of Buffalo2, it won't be overwritten by an update (unless you use an updater that deletes the old addon folder prior to updating).
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    First of all, thanks for the feedback, it's appreciated. :-)

    Quote from Ydrisselle »

    ...and for prowling druids too ;)

    How's the buff called? "Stealth"? "Prowl"?

    Quote from Killariel »

    I would like to be able to configure buff timers to show HH:MM down to 10 minutes, then MM:SS until expiration.

    I recommend copying the template file and then editing the copy (or make a completely new one) so that your customization isn't lost on your next update. Anyway, in your template file look for "GetDurationString". The following code should do it (note the buff.timeLeft > 600):
    	GetDurationString = function(self, buff)
    		if(not buff.timeLeft) then
    			return ""
    		end
    		if(buff.timeLeft > 600) then
    			return Buffalo2.abacus:FormatDurationCondensed(buff.timeLeft, true, true)
    		else
    			return Buffalo2.abacus:FormatDurationCondensed(buff.timeLeft, true, false)
    		end
    	end,


    Quote from speak »

    so buffalo2 is going to replace buffalo? when should we make the switch? will it retain all the previous settings from the original buffalo?

    If you don't need any of the new stuff, stick with Buffalo for the time being. And unfortunately, no, your settings will be lost when you switch, I'm sorry.

    Quote from unke »

    How to display the buffs in DreamLayout?

    You would have to change the button frames. This could be done in the template function OnButtonCreation and then modifying button.frame in LUA.

    Quote from Adeligkrigar »

    I'll be happy once a container for target and ToT buffs/debuffs are added (can't figure out how to code them myself).

    One suggestion/request though, could we have more than 16 dummies spawnable? This may be more of an issue for an eventual target container, but it seems like it'd be more helpful for 40 or 20 buff/debuff dummies to be visible.

    Have a look at the Sandbox template. Change the "ContainsBuff" function to something like this:
    	ContainsBuff = function(self, buff)
    		return buff.unitID == "target"
    	end,

    Now the Sandbox should display the target's buffs. Same procedure for target's target. You should copy the templates so you can use them simultaneously and retain them on an update. Since the target's buffs are a common request, I will include a container for this in one of the next versions.
    As for the dummy buttons - I'm afraid of letting more than 20 buttons spawn per container since some people might be crazy enough to create 25+ containers for a raid setup and that would definetly not be good. But I will see what I can do, maybe clicking once for 16, twice for 32 (maximum number of player buffs, should suffice for the 40 debuffs as well) or some global cap for reference buttons.

    Quote from maia »

    One bug report and one question: a few hours ago buff textures were mixed up: my Inner Fire buff had the Gift of the Wild texture and vice versa. Unfortunately this isn't reproducable.

    Plus, is it Buffalo2 that removed the red border around debuffs that aren't curable, or is this a 2.1 change? I made both switches at once...

    Thanks for the bug report. Maybe I can figure out what happened there. And yes, Buffalo2 currently has no debuff borders, it's not 2.1' fault. They will be added shortly. I hope.
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    Quote from SaberHawke »

    Version r35969 shows a stack count of 1 on the Stealth buff icon for the Rogue. Unfortunately I can only Stealth once. :)

    Only once? Noob, lrn2play. ;-)

    No seriously, I have seen this one too with my rogue. It's what the Blizzard API tells me, that the Stealth buff has one application left. It's probably an internal "trick" to destealth when the player attacks, so they can use the same mechanic for stealth as for, say, Cold Blood. I'll probably hardcode it into one of the next versions to just hide the application label for Stealth.

    Quote from gogusrl »

    can you implement some kind of buff sorting ?

    I will take this question as an occasion to clarify some things about Buffalo2 that I don't think have seeped through to people yet. Don't get me wrong, I'm not annoyed or angry or anything, indeed I am glad you asked.

    At first glance Buffalo2 looks like a slightly polished Buffalo1 with Waterfall configuration menu and a new option to group buffs and weapon buffs together. But if these were all the new features, I wouldn't have called this addon Buffalo2. This grouping of buffs and weapon buffs is namely just a demonstration of what I call the "Template System" of Buffalo2. I dare say this is a really powerful tool for configuring your buffs any way you like (including sorting). You can read a bit more about this on this Wiki page.

    So why aren't you seeing anything of that supposedly powerful tool ingame? Because you actually have to work under the hood of Buffalo2 to make use of it. See, there were so many feature requests (sorting, button layout requests, fancy duration displays are just a few of them) that I couldn't possibly have managed to put them all in and provide you with an easy to use configuration dialog. The sheer number of options would have clogged up the screen and scared new and old users alike. Just try to think of an easy way to configure buff sorting that can handle the many needs and wishes of all users. Some would want to sort by name, others by self-buffs / foreign-buffs or duration. So I simply refrained from trying a stunt like this and just kept in the simplest of options for ingame configuration.

    So if you need some of the advanced features mentioned above, you'll have to tinker with some LUA code. That might seem like an even worse option than a clogged up screen, but this way, I actually could implement more features that are much less faulty.
    Don't be afraid of a bit coding, it's not that hard. Just take the time to read said wiki page and experiment by changing the existing, working templates (there's a container called "Sandbox", hint, hint). You can't break anything. At least, not that I know of. And if you do, please tell me what you did to make something break so the template system can become a bit more robust.

    If you belong to the codeophobics and begin to sweat just by looking at LUA code, you can always ask for help in this thread.

    If you have put together a cool template that is reasonably different from existing ones, tell me and I will probably add it to the standard templates.

    If you can't seem to achieve what you want with the current template-options, tell me what you need and I will see what I can do about it.

    Nimbal
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    Quote from ravagernl »

    Hmm, what about making a plugin for cyCircled :)

    Things like that are what I have made the OnButtonCreation hook in templates for. ;-)

    Quote from Farook »

    Attached you can find deDE-localization, based on r35760.

    Thanks, I appreciate that. But I already added deDE. :-)

    Quote from SaberHawke »

    [2007/05/20 11:49:24-445-x14]: Buffalo2\Buffalo2_Button.lua:48: attempt to call method 'SetInventorItem' (a nil value)
    <string>:"*:OnEnter":2: in function <[string "*:OnEnter"]:1>
    UPDATE: Also, right clicking to cancel buffs does not work at all. No errors.

    First should be fixed, it was a typo. I'll have a look at the buff cancelation.

    EDIT: You should be able to cancel buffs again now.
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    I still find it a bit strange that the error hasn't popped up for me, but I think I fixed it.

    The name change has two main reasons:
    1. Apart from the anchoring code, Buffalo2 works entirely different than the first Buffalo.
    2. Buffalo (1) has a few kinks left (ugly blinking being one of them), but it does it's purpose and nothing more. If figured some people would dislike the new Buffalo as it generally will do more than they need. Or at least it could, depending on the templates they use.
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    Quote from kalirob2k6 »

    I get this error when I try to click (Right or left) the Buffalo2 Fubar icon.

    [2007/05/18 23:40:33-302-x4]: FuBarPlugin-2.0-34599:1080: Dewdrop-2.0: args.containers: "desc" must be a string
    !StopTheSpam\libs\AceLibrary\AceLibrary.lua:100: in function `error'
    Dewdrop-2.0-35237 (FuBar):2858: in function `Register'
    FuBarPlugin-2.0-34599:1080: in function `OpenMenu'
    FuBarPlugin-2.0-34599:951: in function <..._UnitFrames\libs\FuBarPlugin-2.0\FuBarPlugin-2.0.lua:949>
    FuBar-33424\FuBar.lua:1119: in function <Interface\AddOns\FuBar\FuBar.lua:1113>
    Tablet-2.0-33319 (ag_UnitFrames):2498: in function <...\AddOns\ag_UnitFrames\libs\Tablet-2.0\Tablet-2.0.lua:2496>

    ---


    I can't reproduce this. Do you have the latest versions of all your addons?

    Quote from Kenzo »

    1. fubar icon doesnt work
    2. the lock feature doesnt exist

    1. Same error as kalirob2k6 or just nothing happening? If the latter, try double-clicking.
    2. Will be in the next commit as Ctrl+Click on the FuBar icon or so. Hence the double-clicking.
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    You mean an "OnClick" hook for buttons where you could open a Dewdrop from within a template? It's not really a problem, I'll commit it when I've made a few more changes.

    As for doing something when a new buff is added to a container: just use the ContainsBuff function. It's not pretty, but it should work as long as you don't do any heavy lifting there.
    Posted in: General AddOns
  • 0

    posted a message on Buffalo2
    Hello everyone,
    after a very long delay (sorry for that), Buffalo2 is finally in a somewhat unstable, but probably usable state. An Introduction to Buffalo2 containers can be found in the wiki if you want to experiment with the template system.

    Please report bugs here in this thread. I would really appreciate if you could delete your post once the bug is fixed to keep this thread concise. Same goes for feature request. Apropos, most features (that I can think of but haven't had the time to implement yet) can be made possible through the template system. Please use it.

    Known Issues:
    • On activating a new container, weapon buffs are not added to it (if it should contain the weapon buff, that is)
    • On activating a new container, the timers of the conainer don't tick down
    • On switching profiles, an error occurs. Reload your UI if it happens, please.
    • Dummy buttons may look a bit weird or won't appear sometimes
    • May crash WoW when showing dummy buttons

    Nimbal
    Posted in: General AddOns
  • 0

    posted a message on Buffalo


    Many Thanks to Solor for maintaining Buffalo in my absence.

    I'm afraid I have to test your patience a bit longer for the next version. It's done, but I have problems with my SVN-Client and therefore can't upload it. It's a bit late (or early) here, so I'll figure it out tomorrow... yawn.
    Posted in: General AddOns
  • To post a comment, please or register a new account.