Download
(4 Kb)
Download
Updated: 07-14-10 02:32 AM
Pictures
File Info
Updated:07-14-10 02:32 AM
Created:12-10-09 09:38 AM
Downloads:3,340
Favorites:51
MD5:
Custom Consolidate Buffs
Version: 1.05
by: Vladinator [More]
Important announcement

Version 1.04 introduced new database system once again but this time it will be final. You have two ways to fix the errors while playing (because of the old database data):

Method A:
  1. Exit the game, install the latest addon version, start the game and enter the world.
  2. Paste this into the chat:
    Code:
    /run customConsolidate={}
  3. Add the auras you wish to force hide/show once again using /ccb commands.
Method B:
  1. Exit the game and install latest addon version.
  2. Go to ..\WoW\WTF\Account\<ACCNAME>\SavedVariables
  3. Delete "CustomConsolidateBuffs.lua"
  4. Start the game and play, add the auras using /ccb once more.

Custom Consolidate Buffs

A lightweight addon that allows you to specifically add or remove buffs that are being grouped in the "Consolidate Buffs" option.

Have you felt like you would prefer to see a specific buff rather than it being automatically consolidated? Have you felt that there is a buff you would preferably not see and would like to group it up with the rest of the consolidated buffs? Fear no more!

This is the addon you need. It's pretty simple to use, all based on slash commands too. The commands are as follows:

Code:
/ccb show <name>
/ccb hide <name>
/ccb delete <name>
/ccb print
Examples for hiding buffs that are not consolidated by default:
/ccb hide Haunted
This would make "Haunted" group up in the consolidation box.

/ccb delete Haunted
This would remove (undo what we did above) Haunted from preferences to keep it hidden. Thus it will rely on the default behavior for that buff.

Examples for showing buffs that are consolidated by default:
/ccb show Essence of Wintergrasp
This would show the "Essence of Wintergrasp" buff (by default it's "hidden")

/ccb delete Essence of Wintergrasp
This would undo what we did above, removing the buff from our custom "force visible" list so it will rely on the default behavior Blizzard implemented for that buff.

Short command versions:
Code:
/ccb s <name>
/ccb h <name>
/ccb d <name>
/ccb p
Same as above, only shorter command names.

Alternative for /ccb is /consolidatebuffs.
1.05:
+ Updated UnitAura to include rank parameter (added in 3.3.5 I believe).

1.04:
+ Improved performance even more. This should take much less CPU cycles in raids!
+ Removed old database check, this means you must delete the old SV file or reset the table to an empty one manually. Simply check front page for instructions, there are two ways of doing it. :)

1.03:
+ Added French and German but have not done a spell-check. Anyway the possibility to translate is there. :)
+ Added a microscopical "fix" that prevents errors if someone tries to add a empty buff name.

1.02:
+ No longer case sensitive.

1.01:
+ Changed how preferences are saved. This may cause instability (and it will for some people) thus the addon will try to load old data into the new style of storage. If it fails and you get errors from the addon, then simply (1) exit the game (2) go to ...\WoW\WTF\Account\<ACCNAME>\SavedVariables (3) delete the file "CustomConsolidateBuffs.lua" and there should be no more errors the next time you play.
+ Added localization support if people want to translate it to their own language.
+ Overall improved slash commands and how you show and hide buffs, much easier and faster to use!

1.00:
+ Initial release.
Optional Files (0)


Archived Files (5)
File Name
Version
Size
Author
Date
1.04
4kB
Vladinator
01-06-10 08:32 AM
1.03
4kB
Vladinator
12-17-09 12:30 PM
1.02
4kB
Vladinator
12-15-09 04:18 AM
1.01
3kB
Vladinator
12-12-09 05:17 AM
1.00
2kB
Vladinator
12-10-09 09:38 AM


Post A Reply Comment Options
Old 03-03-11, 08:47 PM  
Cybeloras
A Deviate Faerie Dragon
 
Cybeloras's Avatar
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 253
Uploads: 8
A few things

I was looking at your code and noticed a few things:

(line 85)
Code:
if not unit or not unit == "player" then
should be
Code:
if not unit or not (unit == "player") then
or
Code:
if not unit or unit ~= "player" then
This is because you are evaluating (if (not unit) == "player"), which is the same as (if false == "player") as long as unit is defined. This can be demonstrated by comparing print(not 1 == nil) to print(not (1 == nil)).

Also, the way that you hook UnitAura isn't optimal, because any other args past the 4th will not pass through. (I remember that this was breaking a few addons I use back when you only had 3 args in 1.04) Ideally, it would look something like:

Code:
UnitAura = function(...)
  local unit = ...
  -- unit is not "player"? return aura information as-is
  if unit ~= "player" then -- this covers unit being nil or false too
    return addon.unitaura(...)
  end
  -- this part is only accessible when unit == "player"
  local name, rank, texture, count, auraType, auraDur, expires, casterUnit, isStealable, shouldConsolidate, spellID = addon.unitaura(...)
  local status = addon:exists(name) or -1
  if status == 0 then
    shouldConsolidate = 1
  elseif status == 1 then
    shouldConsolidate = nil
  end
  return name, rank, texture, count, auraType, auraDur, expires, casterUnit, isStealable, shouldConsolidate, spellID
end
Hope this was useful, sorry if it wasn't.
Last edited by Cybeloras : 03-03-11 at 08:54 PM.
Cybeloras is offline Report comment to moderator  
Reply With Quote
Old 10-14-10, 04:15 PM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 751
File comments: 382
Uploads: 39
Re: 4.0.1 and Cata?

I am, just that there were some things with new protections and how canceling buffs is handled so taint caused you to be unable to cancel any buffs, need to look into this soon and add a update for 4.0.

I just hope they implement the functions necessary, otherwise no buff addons will work at all and that's even worse than just loosing this addon.

Originally posted by burndtdan
Any chance you're going to update this to work in 4.0? I love this addon and would absolutely hate to lose it, but right now it's not consolidating the buffs.
Vlad is offline Report comment to moderator  
Reply With Quote
Old 10-14-10, 04:11 PM  
burndtdan
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
4.0.1 and Cata?

Any chance you're going to update this to work in 4.0? I love this addon and would absolutely hate to lose it, but right now it's not consolidating the buffs.
burndtdan is offline Report comment to moderator  
Reply With Quote
Old 09-25-10, 04:42 AM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 751
File comments: 382
Uploads: 39
Originally posted by Lunyra
I noticed that the changes you make is for all characters. Any chance it's possible to make it profiled for each character?
Profiles are easy to implement.
Vlad is offline Report comment to moderator  
Reply With Quote
Old 09-25-10, 01:54 AM  
Lunyra
A Deviate Faerie Dragon

Forum posts: 11
File comments: 49
Uploads: 0
I noticed that the changes you make is for all characters. Any chance it's possible to make it profiled for each character?
Lunyra is offline Report comment to moderator  
Reply With Quote
Old 09-25-10, 01:35 AM  
Lunyra
A Deviate Faerie Dragon

Forum posts: 11
File comments: 49
Uploads: 0
Originally posted by Vladinator
I am on Cataclysm beta but at the moment it's impossible to alter the default frames without tainting so bad that you can't even cancel the buffs. I feel they will implement secure templates but they are missing at the moment. I just hope it will still be easy to alter the default addon instead having to write a totally new one tough, we'll see... worst case I'll just write a whole addons.
Well, it's all Beta. Let's just pray they sort it out so addon makers don't have to rewrite a complete addon.
Lunyra is offline Report comment to moderator  
Reply With Quote
Old 09-24-10, 03:31 PM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 751
File comments: 382
Uploads: 39
I am on Cataclysm beta but at the moment it's impossible to alter the default frames without tainting so bad that you can't even cancel the buffs. I feel they will implement secure templates but they are missing at the moment. I just hope it will still be easy to alter the default addon instead having to write a totally new one tough, we'll see... worst case I'll just write a whole addons.
Vlad is offline Report comment to moderator  
Reply With Quote
Old 09-24-10, 03:16 PM  
Lunyra
A Deviate Faerie Dragon

Forum posts: 11
File comments: 49
Uploads: 0
Awesome addon!

Goodbye Satrina Buff Frames wich never gets updated anymore
Lunyra is offline Report comment to moderator  
Reply With Quote
Old 07-29-10, 01:22 PM  
lduvall
A Murloc Raider

Forum posts: 8
File comments: 42
Uploads: 0
Easier Addition / Removal

Would be really great if the addition and removal of buffs could be done through keyboard shortcuts and clicks on the buff buttons themselves. For example, if I wanted to send a buff to the consolidate window I would just shift click it, and if I wanted to send a buff back to the main window I would shift click it in the consolidate popup. Having to type a slash command for each buff and debuff that I want to show or hide for every character can get time consuming. Otherwise, great simple addon; lot of bang for your buck.
lduvall is offline Report comment to moderator  
Reply With Quote
Old 03-16-10, 02:43 PM  
Noggog
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
I've been looking for a mod like this for ages! Problem is it's not doing it's job... 8\

I added some buffs to my hidden list, did /ccb p and it showed that they were in fact in the CCB database as hidden, and still no results. I disabled all my addons but CCB, and the hidden buffs still acted as normal with no consolidation. HALP!
__________________


www.PeachyKeenGuild.com
Noggog is offline Report comment to moderator  
Reply With Quote
Old 02-07-10, 05:48 AM  
Mikari
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 111
Uploads: 3
Was doing the love is in the air quests today, gaining lucky charms by using the horse vehicle and trampling the skeletons near ICC, my horse got killed in combat and I was dismounted, the vehicle interface wasn't removed from my screen so I had no access to my bars. I got an interface blocked message and here's my taintlog.

http://pastey.net/132624

So yeah quite a serious issue really. No idea if it's fixable though.

Disabling Custom Consolidate Buffs fixes the problem entirely.
Mikari is offline Report comment to moderator  
Reply With Quote
Old 01-10-10, 06:38 AM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 751
File comments: 382
Uploads: 39
Originally posted by Mikari There's another addon that does a similar job here http://www.wowace.com/addons/simpleaurafilter/ from looking at the code briefly I think that is what they have done, though I don't understand it all personally. I'm quite new at coding. [/b]
That is correct, vaeyl copied the original code from BuffFrame.lua and rewrote the functions related to consolidation.

I myself would like to dodge that as it requires you to update the addon each time blizzards changes their BuffFrame.lua file otherwise it will break sooner or later without updates. While taiting UnitAura directly overwriting the value of the consolidate argument is much easier and requires no updates in future patches unless they change what UnitAura returns -less likely than they updating BuffFrame.lua.

On the other hand tainting UnitAura like this is maybe not a good thing but a little taint is good for the soul.
Ok I just made that up, anyway I have tested the mod a lot and I have not received warnings for now and it's odd. I myself would not worry about it too much, I assume you get the warning quite rarely and I myself get it sometimes but as long nothing breaks then there is no real problem.
(Gonna look a bit more into vehicle entering/exiting in combat but if nothing errors for me then I don't see a problem. Kind of pointless to try fix something if it almost never happens but we'll see.)

Anyway if it does generate a lot of errors for you then you could use simpleaurafilter as it is less likely to generate taint errors, but the taint warnings you won't get rid of when you taintLog=2 unfortunately. I even think some of blizzards internal addons taint themselves -funny ^^

But I really appreciate you sharing your concerns with me, it's very nice and motivating!
Last edited by Vlad : 01-10-10 at 06:42 AM.
Vlad is offline Report comment to moderator  
Reply With Quote
Old 01-09-10, 04:22 PM  
Mikari
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 111
Uploads: 3
Originally posted by Vladinator
I am looking into it right now, hope I can fix this in a painless matter. Otherwise I might as well just rewrite the whole blizzard buff frames and basically make my own buff mod -kind of pointless
From posting elsewhere someone made the following comment.

He would have to hook the actual consolidation function and likely rewrite the entire thing.
There's another addon that does a similar job here http://www.wowace.com/addons/simpleaurafilter/ from looking at the code briefly I think that is what they have done, though I don't understand it all personally. I'm quite new at coding.
Mikari is offline Report comment to moderator  
Reply With Quote
Old 01-09-10, 01:53 PM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 751
File comments: 382
Uploads: 39
Originally posted by Mikari
I use taintlog at level 1, I don't get the addon blocked errors in normal combat, it's something to do with switching in/out of vehicles when in combat like what happens fairly often in the Oculus.

I'm not using any other addons that touches player buffs.
I am looking into it right now, hope I can fix this in a painless matter. Otherwise I might as well just rewrite the whole blizzard buff frames and basically make my own buff mod -kind of pointless
Vlad is offline Report comment to moderator  
Reply With Quote
Old 01-09-10, 01:24 PM  
Mikari
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 111
Uploads: 3
Originally posted by Vladinator
Odd because when I use I don't get any "Interface action failed because of an AddOn" because of CCB, tried just now to taintlog and nothing happened (in combat). Do you use taintlog level 2 or 1? Level 2 logs all sort of taint, even when addon taints itself (funny :P)

UnitAura is probably returning more taint message in the log when you taintlog level 2, but even if I hook the AuraButton_Update func instead it would still generate entries in the taint.log file that the other func is tainted but still no "Interface action failed because of an AddOn" here.

I suggest if you could reproduce that error only using the CCB addon and describe how you can reproduce the error so I can try it and fix it.

(I tried to reproduce it myself by running more mods than CCB and I couldn't get it to happen. I assume you run a buff mod that use UnitAura and assume it's secure then try to do a secure action -bam it returns that message.)

Can't do much about that, /sadface.
I use taintlog at level 1, I don't get the addon blocked errors in normal combat, it's something to do with switching in/out of vehicles when in combat like what happens fairly often in the Oculus.

I'm not using any other addons that touches player buffs.
Mikari is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: