Download
(7Kb)
Download
Updated: 08-04-09 06:40 PM
Pictures
File Info
Updated:08-04-09 06:40 PM
Created:07-23-09 09:42 AM
Downloads:2,334
Favorites:15
MD5:

PaperDollFrame Stats

Version: 1.1.0
by: Lombra [More]


Wish you wouldn't have to display the "Defenses" stats only to see resilience? Ever wanted to see total avoidance? Want to see effective increased chance to hit rather than rating? Look no further! PaperDollFrame Stats lets you do this and more!

With this addon you can create your own stat categories (a la "Base stats", "Ranged", "Defenses" etc) and choose which stats you want to display. You can choose from just about any stat there is, from base attributes to ratings. In addition, ratings can be displayed as their respective effective value, eg increased % chance to hit from hit rating, rather than the actual hit rating. It also features some "new" stats, including block value, mana regen while casting and avoidance. (avoidance is combined dodge, parry, block chance and reduced chance to be hit from defense)

Type '/pdf' or '/stats' to bring up the main window.

1.1.0
- Added a new avoidance stat that does not include block chance.
- Non alpha numeric characters are now allowed in category names.
- ToC bump.
Post A Reply Comment Options
Unread 11-12-09, 10:05 AM  
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view AddOns

Forum posts: 554
File comments: 271
Uploads: 24
All the relevant events are handled by Blizzard's UI. I merely hook some of the functions called in the event handler.

The only events I use are ADDON_LOADED and PLAYER_LOGIN.

I did Onyxia-25 yesterday but didn't notice any curious CPU usage. I'll add some debugs to see how often my hooks are called next time I end up in some combat event heavy situation.
__________________
Grab your sword and fight the Horde!
Report comment to moderator  
Reply With Quote
Unread 11-11-09, 05:53 AM  
AnrDaemon
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 156
File comments: 2231
Uploads: 5
No, i have not had char sheet open at that time.
The solution could be to update stats once per second if character is in combat.
It will still be reasonable resposible and should dramatically reduce impact on perfomance.

And, if you use more than one event handler, this could be an issue too, as I've heard.
If you noticed, XPerl is very low in the table, but it used to care about displaying whole raid... it use single frame o watch for events and route them to respective visible components, instead of hooking separate handler to each unit frame.
Last edited by AnrDaemon : 11-11-09 at 05:56 AM.
Report comment to moderator  
Reply With Quote
Unread 11-10-09, 06:06 AM  
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view AddOns

Forum posts: 554
File comments: 271
Uploads: 24
No need to apologise.

To be honest I'm not too versed in the performance department, yet, but as far as I can tell this could've been due to all the events (basically all events that makes your stats change) registered on the paper doll frame, if not for the fact that very little code should actually execute unless the character frame is open. Did you have it open during these boss tried by any chance?

Anyway, I'm gonna try some myself. Unfortunately a raid isn't the ideal test environment.
__________________
Grab your sword and fight the Horde!
Report comment to moderator  
Reply With Quote
Unread 11-09-09, 07:16 PM  
AnrDaemon
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 156
File comments: 2231
Uploads: 5
Sorry, it's me again. This time, with a screenshot.


If i'm to believe my eyes, they tell me there's not everything going right.
This is data from just 2 fights in Ulduar 10. Razorscale and Deconstructor.
I can imagine HealBot, XPerl and IceHUD taking the top places, but it's not the case, XPerl has so tiny overhead, it's impact almost irrelevant. HealBot could have been at the same point, but it's not. Still, it's fairly low on CPU usage. IceHUD... could be as good as XPerl, i suppose.

But PDFStats and Tankadin_CS - two addons that plays with PaperDoll frame... what could be issue of them taking such high places in CPU usage?
Last edited by AnrDaemon : 11-09-09 at 07:17 PM.
Report comment to moderator  
Reply With Quote
Unread 10-22-09, 07:06 AM  
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view AddOns

Forum posts: 554
File comments: 271
Uploads: 24
Right you are, thanks for the heads up!
__________________
Grab your sword and fight the Horde!
Report comment to moderator  
Reply With Quote
Unread 10-22-09, 06:36 AM  
Headhuntress
A Defias Bandit
 
Headhuntress's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 26
Uploads: 4
There is a tiny mistake with the avoidance and avoidance with block calculation. If you pick Avoidance (without block)the percentage will include block chance in the frame number but the tooltip shows the correct number. I fixed this by removing " + GetBlockChance() " from
Code:
this is your combined dodge, parry chance and chance to be missed
function PaperDollFrame_SetAvoidance(statFrame)
	local avoidance = GetDodgeChance() + GetBlockChance() + GetParryChance() + GetDodgeBlockParryChanceFromDefense()
Report comment to moderator  
Reply With Quote
Unread 09-05-09, 06:38 PM  
Lonny
Guest

Join Date: Not Yet
Forum posts: 0
File comments: 0
Uploads: 0
Originally posted by AnrDaemon (Honestly, tainting by itself is a bad thing, it tells you that you're doing something wrong, which could blow up in your face if you ever take a step further without addressing the issue) [/b]
Hooking is not a bad thing, sometimes you can't even prevent it, or predict it, it's a thing that can happen during code execution, and it's not always the addon to blame.
Report comment to moderator  
Edit/Delete Message Reply With Quote
Unread 08-12-09, 06:12 PM  
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view AddOns

Forum posts: 554
File comments: 271
Uploads: 24
I have taint logging enabled all the time, but I have yet to see any mention of PDFStats in it. Unless it breaks anything, I don't see a reason to "fix" the taint. "Don't fix what isn't broken."
__________________
Grab your sword and fight the Horde!
Report comment to moderator  
Reply With Quote
Unread 08-12-09, 10:47 AM  
AnrDaemon
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 156
File comments: 2231
Uploads: 5
Originally posted by Lombra
I haven't noticed this myself, I must say. Does it cause any disfunction? Otherwise I wouldn't worry about it. (I know I wouldn't) Do you get this with only this addon enabled? And do you know how to reproduce it?
I only noticed it by falling into logs directory and taking a spottin taint.Log in there... yet again.

/console taintLog 1

To enable, and it is persistemt to your options (it's option in the main config.wtf)

I could only imagine it's inerferring with PreformAV.
Will post complete log entry next time I spot it.

(Honestly, tainting by itself is a bad thing, it tells you that you're doing something wrong, which could blow up in your face if you ever take a step further without addressing the issue)
Report comment to moderator  
Reply With Quote
Unread 08-12-09, 10:19 AM  
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view AddOns

Forum posts: 554
File comments: 271
Uploads: 24
I haven't noticed this myself, I must say. Does it cause any disfunction? Otherwise I wouldn't worry about it. (I know I wouldn't) Do you get this with only this addon enabled? And do you know how to reproduce it?
__________________
Grab your sword and fight the Horde!
Report comment to moderator  
Reply With Quote
Unread 08-11-09, 04:21 PM  
AnrDaemon
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 156
File comments: 2231
Uploads: 5
Just a friendly chime in: PDF_Stats tainting LFM frame.
Enable taintlog and see for yourself.
Report comment to moderator  
Reply With Quote
Unread 08-03-09, 08:57 PM  
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view AddOns

Forum posts: 554
File comments: 271
Uploads: 24
Hmm, I'm not aware of any such library. Then again, I'm not familiar with most libraries to begin with.

I realised I can allow for apostrophes (etc) in the label, though. It just means that non alphanumeric characters will be considered the same in terms of name uniqueness. Ie, you won't be able to have one category called "Melee stats" and another "Melee-stats". Hopefully that's not a big deal.
__________________
Grab your sword and fight the Horde!
Report comment to moderator  
Reply With Quote
Unread 08-03-09, 06:36 PM  
AnrDaemon
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 156
File comments: 2231
Uploads: 5
Well, that's not a big issue to discuss, but still...
Isn't there any libs that could do this scan/match in transparent fashion and just yield the numbers on demand? I think I can remember discussion about something similar... my poor memory can't give me clear look, tho... >.>
Report comment to moderator  
Reply With Quote
Unread 08-03-09, 04:28 PM  
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view AddOns

Forum posts: 554
File comments: 271
Uploads: 24
The problem is that I have access to no other information than what is available in the default stat frame, if in a different format. There are function to find out the amount of any specific rating, and also how much effective bonus that amount of rating yields, but there's nothing to get total haste, hit etc. For that I'd have to scan all of the player's talents, and find out if their tooltip implies an increase in haste or hit or whatever.
__________________
Grab your sword and fight the Horde!
Report comment to moderator  
Reply With Quote
Unread 08-03-09, 07:17 AM  
AnrDaemon
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 156
File comments: 2231
Uploads: 5
Uhm, well, i was about to ask the same question...
In many stats, i'm interesting in percentages only (in real ones, not the item bonuses), rating is a waste of screen space.
Last edited by AnrDaemon : 08-03-09 at 07:43 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: