Download
(5Kb)
Download
Updated: 07-23-11 06:09 PM
Pictures
File Info
Updated:07-23-11 06:09 PM
Created:10-23-10 01:08 AM
Downloads:5,652
Favorites:29
MD5:

bBuffBars  Popular! (More than 5000 hits)

Version: 1.7
by: Blt [More]

A set of basic buff bars using SecureAuraHeaderTemplates, so it is possible to click off buffs.

This, is something I coded for my own personally use and as such, there are only some very basic configuration options in the lua file. However, most users with very basic lua skills (or who are willing to experiment) should be able to configure this how they please without any issues.

Unfortunately, as Blizzard has been dragging their feet finalizing the template there are a few bugs that are out of my hands. Both sorting, and temporary enchants are buggy. Until Blizzard fixes their typos, and adds better support this is unfortunately what you get.

This includes support for poisons on throwing weapons. Looking through blizzard's code they specifically work with the first two slots, but not the third. So if anyone can find actual proof that it's possible using the SecureTemplate, and that they can be clicked off in combat feel free to pass that along to me.

**As of v1.2 I have added a variable named "updateFrequency" to the options at the top of the lua file which defaults to 0.1. Lowering the value will make the bar empty more smoothly if you are really bothered by the default. Alternatively, you can also raise the value to lower CPU usage at the cost of the bar emptying in chunks if you (like me) don't mind that.**

**v1.6 will throw off the positioning values from previous versions . To be able to use your old values you can type "/script print(GetCVar("uiScale"))" into your chat box and then multiply your old value of barScale by the number outputted by the script. This will make it look exactly like it did before.**

Thanks to sigg for his post. I was being lazy and delaying my dig into Blizzard's code until they had fixed all the bugs, but his post did all the hard work for me in that regard so I decided to update.
Oh and Shadowed, for which I first based my buff bars on a very long time ago.

v1.7
-Added workaround to fix odd behavior with temporary weapon enchants.
-Fixed tool tip for offhand weapon.
-Slight cleanup of code.

Turns out UNIT_AURA acts very strangle when it comes to temporary weapon enchants. The event is fired under 95% of circumstances with shaman, and never for rogues.

v1.6
-Added code to turn off separation of buffs. However, looking at Blizzard's code it still looks broken, and doesn't work for me.
-Rewrote weapon enchant code. Should now support throwing weapon buff as soon as blizzard adds support for it.
-Fixed bars not hiding when alt+z is hit.
-Minor optimizations and restructuring for possible future features.

Blizzard has half fixed being able to click of weapon buffs! You can now click off your mainhand buff. Unfortunately trying to click the offhand buff removes the mainhand buff, and there still isn't any support for throwing weapon buffs.

Still haven't found the time to look into the possibility to abuse consolidated buffs to move buffs with a 0 duration.

v1.5
-Thanks to Ailae for pointing out a super embarrassing error. Performance won't suck in a party or raid now.

v1.4
-Fixed really stupid error caused by the rewrite where I wasn't passing the filter type properly so debuffs were receiving buff timers.

v1.3
-Rewrote how the auras are updated resulting in a 30-50% performance improvement, and 0 CPU usage with no buffs that require animation.

v1.2
-Fixed ghost timers that could ocassionally appear on buffs with no duration
-Fixed counter issue causing performance issue and optimized a bit. New option "updateFrequency" added. Defaulted to 0.1, lower the number for smoother animation, raise it to lower CPU time at the cost of choppy animation.

v1.1
-Added additional variables to let people anchor debuffs to buffs if they want to.
-Fixed texture path from internal location and added border texture to archive.
-Fixed really, really dumb anchoring issue.
Optional Files (0)


Post A Reply Comment Options
Unread 10-23-10, 03:43 AM  
FattyXP
A Defias Bandit
 
FattyXP's Avatar

Forum posts: 2
File comments: 31
Uploads: 0
omg I love you thiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiis much!
I was thinking I was going to have to use buff ICONS for the rest of my wow career after this lame-o move by blizzard. No buffbar addons have been updated since 4.0.1 cause none of them can click off buffs!
__________________
Report comment to moderator  
Reply With Quote
Unread 10-23-10, 08:55 AM  
Dhaern
A Kobold Labourer

Forum posts: 0
File comments: 63
Uploads: 0
mmmm this mod is very nice! But debuff location can be placed down buffs? I don't understand secureheader function yet. Thx for all
Report comment to moderator  
Reply With Quote
Unread 10-23-10, 12:19 PM  
Blt
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 24
Uploads: 1
Originally posted by Dhaern
mmmm this mod is very nice! But debuff location can be placed down buffs? I don't understand secureheader function yet. Thx for all
I have uploaded a version that fixes a small '1am coding' bug, and adds variables for you to be able to do this at the top of the lua file.

You can to this by changing debuffAnchorPoint to "TOP" and debuffAnchorFramePoint to "BOTTOM". Setting debuffY to -10 will create a gap between the two.
Last edited by Blt : 10-23-10 at 12:34 PM.
Report comment to moderator  
Reply With Quote
Unread 10-23-10, 03:39 PM  
Heyday
A Kobold Labourer

Forum posts: 0
File comments: 20
Uploads: 0
Hi, there not much buffbar-addons and Qorey's Buff Bars was best for me...but not supported 1 year... last putch kill this 1. Hope so your job is nice ))) also mb some1 can make update for Qorey's Buff Bars. Thanks.
Report comment to moderator  
Reply With Quote
Unread 10-23-10, 06:37 PM  
Dhaern
A Kobold Labourer

Forum posts: 0
File comments: 63
Uploads: 0
Only one problem, but a BIG problem. I checked in bg and idle cpu performance with addonprofiler and bbuffsbars is VERY cpu intensive (consumes very high and fast cpu cycles). I would like that u know this.I will wait for next versions and cpu improvements if u want I love this mod and it will have very good future. Here you have screenshots on my CPU check:



Report comment to moderator  
Reply With Quote
Unread 10-23-10, 06:57 PM  
Blt
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 24
Uploads: 1
Originally posted by Dhaern
Only one problem, but a BIG problem. I checked in bg and idle cpu performance with addonprofiler and bbuffsbars is VERY cpu intensive (consumes very high and fast cpu cycles). I would like that u know this.I will wait for next versions and cpu improvements if u want I love this mod and it will have very good future. Here you have screenshots on my CPU check:
Yeah, I noticed that myself earlier today when I fixed a small unrelated bug. I also checked against a previous version of my buff bar bars, and against nivBuffs (another addon using sigg's example code). It's more than ten times slower than my addon before it was updated to SecureFrames, but only marginally slower than nivBuff's. That's to be expected though since there is slightly more that needs to be done with bars instead of just icons.

Edit: Oh, after investigating it was simply because I was apparently half asleep when I wrote that part and thus it was all my fault. No idea why nivBuffs uses so much CPU time, but bBuffBars is fixed now. Expect an update fixing both bugs shortly.
Last edited by Blt : 10-23-10 at 07:06 PM.
Report comment to moderator  
Reply With Quote
Unread 10-24-10, 11:28 AM  
Blt
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 24
Uploads: 1
As an aside about performance. The nature of a buff bar means it's going to use much more CPU time than a buff frame with only text timers. You can get away with updating text timers every second if you really want, but you need to 'redraw' a buff bar extremely frequently if you want the animation to be super smooth.

With that said however, I some ideas which i'll play around with to try and reduce the overhead for the redraw process even further. Unfortunately, unlike the previous fix this will take a bunch of profiling to see what works and what doesn't, and as such it might take some time.

Edit: Okay, I rewrote how it's all updated and i'm seeing a 30-50% improvement over the improvement I put in already. Also, having no buffs or only ones without timers means the bars use no CPU time now. There is perhaps a tiny bit more that I could do, but it would be coming up with a faster way to handle aura events, rather than updating the buffs. This is something I think i'll probably put off until Blizzard finishes their templates. Who knows though, I might get bored and do it earlier.
Last edited by Blt : 10-24-10 at 01:44 PM.
Report comment to moderator  
Reply With Quote
Unread 10-24-10, 03:33 PM  
Gevil
A Defias Bandit
 
Gevil's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 2
File comments: 13
Uploads: 1
Debuff bars seem to update very rarely meaning once every 10-15 seconds. tried going over the code myself but couldn't find why it doesn't update debuffs often enough

Great addon btw thnx
__________________
Report comment to moderator  
Reply With Quote
Unread 10-24-10, 04:07 PM  
Blt
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 24
Uploads: 1
Originally posted by Gevil
Debuff bars seem to update very rarely meaning once every 10-15 seconds. tried going over the code myself but couldn't find why it doesn't update debuffs often enough

Great addon btw thnx
Hmm, they are updating often enough for me. Which part of the debuffs aren't updating? The text, the bar itself, or do the debuffs themselves just not show up?

That said, I did make a bonehead error I don't know how I didn't catch when I rewrote it which does break debuffs in a different way. Expect a fix for that as soon as I can get it onto the site.
Report comment to moderator  
Reply With Quote
Unread 10-24-10, 05:13 PM  
Gevil
A Defias Bandit
 
Gevil's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 2
File comments: 13
Uploads: 1
I've tested in BGs for a couple hours now and it seems it's pretty random for example i tried it first with bandaging myself and then the whole bar and the timer aswell only updated every 8-10 seconds.

In Battleground while in combat it was updating fine every seconds or so though i noticed that it was sometimes varying between 1 second and 2-3 second updates. Not sure what might be causing this kind of behaviour O.o
__________________
Report comment to moderator  
Reply With Quote
Unread 10-24-10, 05:33 PM  
Blt
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 24
Uploads: 1
Originally posted by Gevil
I've tested in BGs for a couple hours now and it seems it's pretty random for example i tried it first with bandaging myself and then the whole bar and the timer aswell only updated every 8-10 seconds.

In Battleground while in combat it was updating fine every seconds or so though i noticed that it was sometimes varying between 1 second and 2-3 second updates. Not sure what might be causing this kind of behaviour O.o
Well, i'll keep an eye out for it, but it would be nice if someone else could confirm the issue for me. As you probably saw looking through the code both buffs and debuffs use the same timer update code, so the whole thing is a bit strange. For now I suggest just updating to the latest version (which is less than a few hours old) if you haven't and try that.
Report comment to moderator  
Reply With Quote
Unread 10-24-10, 06:21 PM  
Dhaern
A Kobold Labourer

Forum posts: 0
File comments: 63
Uploads: 0
Very good improve performance compared to 1.1 version but in raid when people buffs cpu/sec grow very fast with sttuter and micro freezings. However, good job u are improve much compared to other versions. Thx
Report comment to moderator  
Reply With Quote
Unread 10-24-10, 06:46 PM  
Tearitup
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Moving the bars?

I love the mod. Is there a way to move the bars? Is there a way to scale them to a different size? Thanks!
Report comment to moderator  
Reply With Quote
Unread 10-24-10, 07:08 PM  
Blt
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 24
Uploads: 1
Originally posted by Dhaern
Very good improve performance compared to 1.1 version but in raid when people buffs cpu/sec grow very fast with sttuter and micro freezings. However, good job u are improve much compared to other versions. Thx
Yeah, that's the bit that I had said I hadn't got around to improving yet because i'll need to look through Blizzard's way of doing things rather than using example code. The way it works now is when you gain a buff it iterates through all the frames and assigns them all the correct value. Not really a problem during normal use, but it gets a little dicey when a lot of buffs are getting tossed around in a very short period of time.

I'm not sure if it's just sigg's implementation or not (I haven't yet looked into it yet), but right now I need to check every single buff each event because buffs shift between children and will screw everything up if I don't (See changelog for v1.2 with reference to the ghost timers). Unfortunately, fixing this is more than just improving my own code, so it will likely take a bit longer than the last one.


Side thought in the direction of Gevil: Thinking about it further what was probably happening is it wasn't updating for you at all, and was only updating because of the aforementioned reassigning of all the bars every time you gain a buff. My best guess to why this would happen was because of the bug I fixed for v1.4. However, if that is truly the case you would have also been getting screwed up times on some of the debuffs too. So it still remains as somewhat of a mystery to me.
Report comment to moderator  
Reply With Quote
Unread 10-24-10, 07:20 PM  
Blt
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 24
Uploads: 1
Re: Moving the bars?

Originally posted by Tearitup
I love the mod. Is there a way to move the bars? Is there a way to scale them to a different size? Thanks!
Right now all the configuration options are at the top of the bBuffBars.lua file. You can open up the file using Notepad, or any other text editor. Changing the value of "buffScale" changes the scale, and variables such as "buffX" and "debuffY" control where they are. A negitive number in buffX will move it left, a positive will move it right. After you are done changing the values save the file, and type "/console reloadui" into WoW, or relog.

It can take a tiny bit of trial and error, but it's not hard to do! You aren't going to break anything by changing those values.

For more in depth information on moving stuff you can go here.

I guess I should probably put all of this into the description too.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: