Download
(55Kb)
Download
Updated: 08-21-11 02:29 PM
Pictures
File Info
Updated:08-21-11 02:29 PM
Created:09-30-10 09:14 AM
Downloads:9,711
Favorites:25
MD5:

Show My DPS  Popular! (More than 5000 hits)

Version: 0.4.4
by: ZergRael [More]

What does Show my DPS do ?
If your old computer can't handle the cpu-ogre recount in raid or you don't need that much functionalities, you may need a simple dps meter to show only what you're doing in the combat.

Show my DPS is here for you !
Tracks HPS too

It will simply show you your own dps, the combat length and your own total damage over the combat.
It has built-in recount-like damage handle and should say the same dps as recount.
Absolutely no data saving except the position of the frame.

It means ultra light-weight addon and nearly no cpu consumption

Important notes
Some of you may underline the fact that without comparison, the DPS means nearly northing. It's true, but I like to know my average DPS on each fight in order to keep in mind if I do my job well in the raid. There's lots of raiders with Recount or Skada who will tell you your DPS rank

Usage

  • Left click : toggle HPS / DPS
  • Right click : open options pannel

Incoming improvements
  • Maybe Absorbs
  • Overall dps

Thanks to Brandho, reminding me to update this addon

>> 0.4.4 >> 08/21/2011

* Easier display configuration
* Performance improvements

>> 0.4.3 >> 07/30/2011

* TOC update for 4.2
* Combatlog event update

>> 0.4.2 >> 04/27/2011

* TOC update for 4.1
* Combatlog event update

>> 0.4.1 >> 03/26/2011

* Libs update
* Adding AceAddon lib (ahem.. yea)

>> 0.4.0 >> 03/04/2011

* Added combat duration toggle
* Libs update
* Added compatibility with 4.1 combatlog
* Known issue : Recount ignores inactive time in dps calculation. SMD doesn't.
SMD dps may be lower than the recount one.

>> 0.3.3 >> 10/28/2010

* BugFix : Not conting after combat damages
* Bug : Last hit messes dps

>> 0.3.2 >> 10/28/2010

* BugFix : One hit fights
* BugFix : Combat start detection
* Heal meter is back
* No absorb detection

>> 0.3.1 >> 10/27/2010

* BugFix : 1.000k dmg fix

>> 0.3.0 >> 10/26/2010

* Back to DPS meter only
* Improved Damage detection
* Nearly perfect Recount imitation

>> 0.2.5 >> 10/26/2010

* BugFix : Empty frame

>> 0.2.4 >> 10/25/2010

* Toc bump for 4.0.1

>> 0.2.3 >> 10/01/2010

* BugFix : just a stupid '=' Damn..

>> 0.2.2 >> 09/30/2010

* Added : Frame position reset command

>> 0.2.2 >> 08/30/2010

* BugFix : Out of combat heals / damages

* Added : Damage / heals toggle notification
* Added : Out of combat hide option
* Added : Needed libs (Ace3)

>> 0.2 >> 08/30/2010

* First beta
* Need some reports

* BugFix : Great accuracy with damage
* BugFix : Improved handle of pets and exterior sources of DPS

* Healing is still buggy
* KnowBug : Out of combat heals makes the HPSmeter fool
* BugFix : Handle of pets heals (yup, licking wounds is sort of heal)

>> 0.1b >> 08/03/2010

* Multiples minor bugfixes because I developped this addon only on lvl 6 pigs in durotar ;o

* BugFix : Handle of environnemental damage
* BugFix : Handle of pets
* BugFix : Refresh frame when switching between heal and damage

>> 0.1a >> 08/01/2010

* First alpha of ShowMyDPS
* Awesome idea huh ?
Optional Files (0)


Post A Reply Comment Options
Unread 08-29-12, 10:38 PM  
Brandho
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 7
Uploads: 1
Fix for 5.0.4

Looks like Blizzard changed something in 5.0.4 that broke Show My DPS again, so I took another shot at fixing it. Since they seem to like changing the order/number/type of the parameters describing a given combat log event, I went ahead and renamed all of the local variables in ShowMyDPS:AddAmount because I got tired of counting them. That means you need to replace that entire function with this one if you want to use the fix I came up with:

Code:
function ShowMyDPS:AddAmount(event, ...)
  local timestamp, eventName, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, meleeAmt, spellName, spellSchool, spellAmt, overhealing = ...
  
  -- 0x1111 is COMBATLOG_OBJECT_TYPE_PET | COMBATLOG_OBJECT_CONTROL_PLAYER | 
  --           COMBATLOG_OBJECT_REACTION_FRIENDLY | COMBATLOG_OBJECT_AFFILIATION_MINE
  -- 0x0511 is COMBATLOG_OBJECT_TYPE_PLAYER | COMBATLOG_OBJECT_CONTROL_PLAYER | 
  --           COMBATLOG_OBJECT_REACTION_FRIENDLY | COMBATLOG_OBJECT_AFFILIATION_MINE
  -- i.e. if the source was either my pet or myself, this counts
  if bit.band(sourceFlags, 0x1111) == 0x1111 or bit.band(sourceFlags, 0x511) == 0x511 then -- Checking source
    if eventName and string.find(eventName, "_DAMAGE") then
      -- Get recount-like feature
      if InCombatLockdown() then
        cbtDmgAmount = cbtDmgAmount or 0
        cbtStart = cbtStart or GetTime() - 3.5
      else
        cbtDmgAmount = 0
        cbtStart = GetTime() - 3.5
      end
      
      -- DPS crap
      if string.find( eventName, "SWING" ) then -- Checking dps type
        cbtDmgAmount = cbtDmgAmount + meleeAmt -- Melee swing only has one parameter (amount)
      else
        cbtDmgAmount = cbtDmgAmount + spellAmt -- Anything else (except ENVIRONMENTAL) has amount in the 15th slot
      end

      -- Calc
      self:CalculateDmg()
      
      -- Show
      if InCombatLockdown() then
        self:RefreshFrame()
      end
    end
    
    -- Heal crap
    if eventName and string.find(eventName, "_HEAL") then
      if InCombatLockdown() then
        cbtHealAmount = cbtHealAmount or 0
        cbtStart = cbtStart or GetTime() - 3.5
      else
        cbtHealAmount = 0
        cbtStart = GetTime() - 3.5
      end
      
      cbtHealAmount = cbtHealAmount + ( spellAmt - overhealing ) -- Only effective healing
      
      -- Calc
      self:CalculateHeal()
      
      -- Show
      if InCombatLockdown() then
        self:RefreshFrame()
      end
    end
  end
end

As ever, huge thanks to ZergRael for giving us this wonderfully lightweight alternative to Recount for those of us who measure our epeen against ourselves and not against the rest of the party.
Report comment to moderator  
Reply With Quote
Unread 08-22-11, 09:37 AM  
peewee_sweden
A Kobold Labourer

Forum posts: 1
File comments: 79
Uploads: 0
Also remember, it's not necessarily the highest DPS that counts, but the most damage done.
Report comment to moderator  
Reply With Quote
Unread 08-22-11, 04:55 AM  
ZergRael
A Kobold Labourer
 
ZergRael's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 18
Uploads: 5
Originally posted by zoktar
please add, decimal, short and coloring config! =).
Don't worry, I'm still following your ideas. Decimal and short numbers configuration are in the last alpha, need to test some more.
Font and font size are in lua (in the first lines) while coloring/background stuff will probably come in next beta
Report comment to moderator  
Reply With Quote
Unread 08-21-11, 08:21 PM  
zoktar
A Cliff Giant
AddOn Compiler - Click to view compilations

Forum posts: 72
File comments: 262
Uploads: 1
please add, decimal, short and coloring config! =).
Last edited by zoktar : 08-21-11 at 08:21 PM.
Report comment to moderator  
Reply With Quote
Unread 07-31-11, 03:02 AM  
zoktar
A Cliff Giant
AddOn Compiler - Click to view compilations

Forum posts: 72
File comments: 262
Uploads: 1
small enhancements

"short" for both dps and dmg done, 100k instead of 100000.00, 1k instead of 1000 <------- help please!
click-through
remove decimal in DPS and dmg done<----- help please!

dmg done toggle - solved
dps toggle - solved
font - probably solved
font size - probably solved
framestuff - height width strata etc solved.
background & border - solved.

edit: as im looking through showmydps.lua tryin to edit above values, if you know any of these already, please let me know .

edit: solves.

dps only when time is off
line 188
replace with
ShowMyDPSFrameText:SetText(format("%s dps",cbtDPS))

for only damage done, go with
line 188
replace with ShowMyDPSFrameText:SetText(format("%s",cbtDmgShown))

font

line 47
smdFrame.text = smdFrame:CreateFontString("$parentText", "ARTWORK", "GameFontNormalSmall")

you want to change stuff betwen the ( and ), you would have to look at another addon with this type of string to see what is acceptable.

$parentText is my guess the location/frame/object where its attached.

ARTWORK, im not sure but compairing to other addons this should be the font name. kinda weird.

GameFontNormalSmall , a standard value i guess. should be able to be replaced with medium high, or a font value followed by shade or whatever

smdFrame.text = smdFrame:CreateFontString("$parentText", "ARTWORK", "12", "THINOUTLINE")

something like that might work or

smdFrame.text = smdFrame:CreateFontString("$parentText", "ARIALN", "12", "THINOUTLINE")

I havnt tried this cause iv replace my default font anyway.

Frame stuff between line 25 and 37
line 32, STRATA aka depth of visability, check wowwiki, for the different frame levels.

line 33, fixed width of the frame, default 220, im only going to show my dps, so i dont need that big of a width.

line 34, height, default 25.

Backround & border.
line 39 and 40
delete the stuff between "" for no background (keep the "" tho)
delete the stuff between "" for no border (keep the "" tho)

or insert your own border or background, notice the format with double backslashes, it is necessary!, also your background or border needs to be within your world of warcraft folder.
Last edited by zoktar : 07-31-11 at 04:08 AM.
Report comment to moderator  
Reply With Quote
Unread 07-30-11, 03:25 PM  
Kendian
A Molten Giant
 
Kendian's Avatar
AddOn Author - Click to view AddOns

Forum posts: 614
File comments: 167
Uploads: 11
GREAT addon! One thing, if I may, where would I adjust lua to insert my own font string? This is perfect, except for that.
__________________
Report comment to moderator  
Reply With Quote
Unread 07-30-11, 02:23 PM  
ZergRael
A Kobold Labourer
 
ZergRael's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 18
Uploads: 5
Re: Fix for error introduced with WoW 4.2

Originally posted by Brandho
(...)
Thanks a lot, easier update for me

Originally posted by bdlt
Might you consider for tanks a "Damage Taken Per Second?"
Could be an idea, my new computer is being ordered, I may resume work on addons.
Report comment to moderator  
Reply With Quote
Unread 07-12-11, 10:47 AM  
Brandho
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 7
Uploads: 1
Fix for error introduced with WoW 4.2

Since 4.2 was released I've been having errors similar to this each time I enter combat:

Code:
Date: 2011-07-08 10:11:02
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\ShowMyDPS\ShowMyDPS.lua line 133:
   attempt to perform arithmetic on local 'arg13' (a string value)
Debug:
   (tail call): ?
   ShowMyDPS\ShowMyDPS.lua:133: ?()
   ...let\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:147:
      ...let\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:147
   [string "safecall Dispatcher[24]"]:4:
      [string "safecall Dispatcher[24]"]:4
   [C]: ?
   [string "safecall Dispatcher[24]"]:13: ?()
   ...let\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:92: Fire()
   ...ce\AddOns\Skillet\Libs\AceEvent-3.0\AceEvent-3.0.lua:120:
      ...ce\AddOns\Skillet\Libs\AceEvent-3.0\AceEvent-3.0.lua:119
It turns out that the reason for this is a change Blizzard made to the API for COMBAT_LOG_EVENT_UNFILTERED in Patch 4.2, adding two new flag fields right in the middle. The change is documented on this page: http://www.wowpedia.org/COMBAT_LOG_EVENT_UNFILTERED

The simple solution that I put in place to get Show My DPS working again was to open showmydps.lua and make the following change to line 116:

Code:
Change:

	local timestamp, event, hideCaster, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags, arg10, arg11, arg12, arg13, arg14 = ...

Into:

	local timestamp, event, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, arg10, arg11, arg12, arg13, arg14 = ...
This is kind of a hack-y fix, since now arg10, arg11, etc. are all mis-numbered, but it works and gets this, one of my favorite addons, back in working order. And thank goodness for that, I really did NOT want to have to go back to Recount.

Thanks, ZergRael, for all your hard work on this! It's appreciated!
Report comment to moderator  
Reply With Quote
Unread 04-08-11, 12:57 AM  
bdlt
A Kobold Labourer

Forum posts: 1
File comments: 2
Uploads: 0
Might you consider for tanks a "Damage Taken Per Second?"
Report comment to moderator  
Reply With Quote
Unread 03-26-11, 12:32 PM  
ZergRael
A Kobold Labourer
 
ZergRael's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 18
Uploads: 5
Originally posted by Nobgul
I would be interested in seeing your "waaaaaaaaaaaaaay better" memory usage numbers.
I just added a screenshot of blizz memory usage with SMD after 10min hitting a dummy. With Ace3 loaded by itself, it goes up to 15kb.

I think 100kb is a little better than recount memory usage

I'll add a real comparison with Recount later.
Report comment to moderator  
Reply With Quote
Unread 03-26-11, 04:59 AM  
jlrm365
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 113
File comments: 113
Uploads: 1
Ok. Great so far. As the mod just said, a comparison of usage would be interesting too.
Keep up the good work.

Originally posted by ZergRael
I'm afraid this is not possible to add your position in raid dps. SMD does only count your dps, it doesn't care about group/raid dps. That's why it will never be added.

Anyway, I'm following Recount evolution (even if it's already mature), and I try to make SMD match as much as possible Recount DPS.
Report comment to moderator  
Reply With Quote
Unread 03-26-11, 04:51 AM  
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view AddOns

Forum posts: 693
File comments: 65
Uploads: 13
I would be interested in seeing your "waaaaaaaaaaaaaay better" memory usage numbers.
__________________
[SIGPIC][/SIGPIC]
Report comment to moderator  
Reply With Quote
Unread 03-26-11, 04:39 AM  
ZergRael
A Kobold Labourer
 
ZergRael's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 18
Uploads: 5
Originally posted by jlrm365
This looks great.

While it only shows your damage / dps, does it show your position in the raid (ie "5", if 5th in the table)?

Do you plan on updating it as / when recount gets tweaked?
I'm afraid this is not possible to add your position in raid dps. SMD does only count your dps, it doesn't care about group/raid dps. That's why it will never be added.

Anyway, I'm following Recount evolution (even if it's already mature), and I try to make SMD match as much as possible Recount DPS.
Report comment to moderator  
Reply With Quote
Unread 03-04-11, 01:25 PM  
jlrm365
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 113
File comments: 113
Uploads: 1
This looks great.

While it only shows your damage / dps, does it show your position in the raid (ie "5", if 5th in the table)?

Do you plan on updating it as / when recount gets tweaked?
Report comment to moderator  
Reply With Quote
Unread 11-02-10, 01:28 PM  
ZergRael
A Kobold Labourer
 
ZergRael's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 18
Uploads: 5
Originally posted by TehFurbolg
is this addon a lot better than Recount in terms of CPU usage?

Greets
Well, I won't say it's a lot better, but it's waaaaaaaaaaaaaay better.

Due to the calculations needed by Recount, there's a little delay (~100ms) between the combat log event and the recount dps frame refresh.

This delay is not here is SMD because there's nearly no calculation (2 additions and damage/time). That's it.

I'm currently trying to find out if removing the libs of SMD makes the addon less CPU consumming, but it's really hard to figure out, because SMD is already really light
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: