Quantcast
Download
(30 Kb)
Download
Updated: 01-11-20 06:35 AM
Compatibility:
WoW Classic Patch (1.13.3)
Updated:01-11-20 06:35 AM
Created:05-19-19 08:09 PM
Downloads:423,399
Favorites:277
MD5:

Real Mob Health  Popular! (More than 5000 hits)

Version: 2.18
by: SDPhantom [More]

RealMobHealth records damage taken by a mob. This is used to estimate its max health when in combat and stores it for better accuracy in the future. RealMobHealth also broadcasts discovered health to others using the addon and can query them for unknown mobs.



Commands:

/RMHDel [UnitID]
Removes selected UnitID from stored health values. This defaults to target if not specified. (Does not effect received peer data)

/RMHWipe
Clears all recorded health data. (Does not effect received peer data)


Known issues:
  • Drunkenness lowers the perceived level of a mob, this will confuse the addon if used while your character is drunk.
  • Recorded damage may not clear if an untargeted mob in CombatLog range resets and is re-engaged.
  • Due to the impreciseness of UnitHealth(), damage recording only starts once a hit brings a mob down to 99% or below.
    To mitigate this, there are a few seconds between when damage recording starts and when reset detection is allowed to run.
  • Race conditions exist in the CombatLog which may cause the addon to occasionally miss damage events at the beginning or end of a fight.
    Examples: CombatLog events firing after a UNIT_DEATH occurs and UnitHealth() not updating in time when a fight starts.
  • Mobs killed by NPCs like faction guards sometimes don't send overkill data in the CombatLog. This causes unusually high health to be recorded.


Localizations:
  • enUS - Native locale by SDPhantom
  • esES - Lynk_One
  • deDE - Figlmueller
  • frFr - Pgmbru
  • koKR - chkid
  • ruRU - vAlshebnik
  • zhCN - EKE00372
  • zhTW - HopeASD
If you wish to help localize RealMobHealth, send me a PasteBin or Gist link to a modified Localization.lua.

Developers:
See the included APIDoc.txt if you wish to add support to your addon or UI.
Due to technical limitations with SavedVars, RealMobHealth cannot be made embeddable.
Be sure to add RealMobHealth in the OptionalDeps tag of your ToC.

If you wish to advertise RealMobHealth support in your addon or UI, include a link pointing to this page (also available on CurseForge) for download. Attempting to include it in your own download may cause versioning issues. LibStub only fixes this for embedded addons. Again, RealMobHealth isn't embeddable and can't be made so.


Contact:
I'm open to questions and suggestions. Feel free to message me here or post in the comments.
I'm also available for support on the WoWUIDev Discord, @mention me (SDPhantom) or send a DM.

2.18 (2020-01-11)
-Modified death detection to hold onto data a little longer to prevent mobs with reincarnation mechanics from spamming messages
-Internal timers now use C_Timer instead of OnUpdate to try to combat "No player named <Player> is currently playing." spam after being minimized

2.17 (2019-12-13)
-Added usage of INSTANCE_CHAT as a fallback for BATTLEGROUND. (Reports are saying BATTLEGROUND is defunct)

2.16 (2019-12-12)
-Added usage of BATTLEGROUND addon channel
-RAID/PARTY addon channels now check specifically for the home group category instead of all

2.15 (2019-12-11)
-Implemented an anti-spam measure to help mitigate Blizzard's throttle bug of the YELL channel
-TextStatusBar_UpdateTextString() code moved to a secure hook to mitigate Blizzard taint bug

2.14 (2019-12-10)
-The YELL addon channel has been added to the list of broadcast channels
-Some internal functions are now metatable-aware (opens possibilities for future features?)

2.13 (2019-09-25)
-Removed lingering debug message that was hiding in the aura scanner

2.12 (2019-09-23)
-Now detects health from a Hunter's Beast Lore
-Added ruRU localization (courtesy of vAlshebnik)

2.11 (2019-09-15)
-Localization.lua now uncludes Unicode BOM for easier UTF-8 editing
-Revised deDE localization (courtesy of Dathwada)
-Added esES localization (courtesy of Lynk_One)

2.10 (2019-09-11)
-Added koKR localization (courtesy of chkid)

2.9 (2019-09-10)
-Added deDE localization (courtesy of Figlmueller)
-Fixed zhCN, zhTW, and koKR numeric abbreviations

2.8 (2019-09-09)
-Added zhCN and zhTW localizations (courtesy of EKE00372 and HopeASD)

2.7 (2019-09-08)
-Fixed Localization loader not loading the default locale for some people

2.6 (2019-09-08)
-Added frFR localization (courtesy of Pgmbru)

2.5 (2019-09-06)
-GameTooltip health text is now offloaded to the same on-use generation code that TargetFrame uses

2.4 (2019-09-05) APIVersion: 3.2
-Fixed TargetFrame text not checking options on creation
-Added health text to the GameTooltip's StatusBar
-"Show Tooltip Info" in options has been renamed "Show Tooltip Feedback" to avoid ambiguity with the new health text
-Added API version info to API
Note: APIVersion is noted in this log for continuity, however it's only available starting now
-Added RealMobHealth.OverrideOption() and RealMobHealth.UITweaksSetEnabled() to API (See APIDoc.txt)

2.3 (2019-08-11) APIVersion: 3.1
-Improved UITweaks' integration with layout addons
-Tooltip lines have been added to the localization table
-Tooltip now shows if a creature's health is overridden
-Added RealMobHealth.HasHealthOverride() to API (See APIDoc.txt)

2.2 (2019-08-09)
-Fixed newly created nameplates not checking options

2.1 (2019-08-08)
-Implemented GetNormalizedRealmName() fallback if UnitFullName("player") fails to return realm name
-Fixed stack overflow in UITweaks

2.0 (2019-07-14) APIVersion: 3.0
-Complete restructure
-Supporting code is split into different modules
-Peer system broadcasts discovered health values and makes queries through the AddOn comm channels
-Health recording can now happen when targeting a corpse after witnessing a fight
-New cache timeout system purges damage data from mobs that have not been seen in a while
-Cache timeout varies based on what data exists for the mob and if the addon is aware the mob is dead
-BlizzardUI Tweaks is reintegrated to streamline the new options system
-Lots of API additions/tweaks/changes (See APIDoc.txt)
-Callbacks are now handled by the new event system
-RealMobHealth.GetUnitHealth() speculative mode is now force-enabled. The argument to control it has been removed.

1.1 (2019-06-05) APIVersion: 2.0
-Streamlined the core code
-Fixed issue with Shaman totems getting recorded
-World/Raid bosses are now supported
-Damage reflection is now properly tallied
-More API functions (See APIDoc.txt)
-RealMobHealth.GetHealth() had been renamed RealMobHealth.GetUnitHealth()
-RealMobHealth.GetUnitHealth() now falls back to native values if not enough data present
-GameTooltip hook now only runs if the unit is attackable

1.0 (2019-05-19) APIVersion: 1.0
-Classic release
-Records damage taken of nearby mobs from the CombatLog
-Obtains mob level using mouseover/target/partytarget/raidtarget and if enabled, nameplates
-TargetFrame and Nameplates show text values for health, TargetFrame also shows mana/rage/energy
-Gametooltip shows which mobs have had their health recorded
Post A Reply Comment Options
Unread 01-03-20, 02:58 AM  
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1862
File comments: 133
Uploads: 24
Originally Posted by Lemming2K
Yes addon channels are throttled and used to disconnect players according to
https://www.wowinterface.com/downloa...rottleLib.html

This could also be of help
The problem is we're dealing with a different throttle than previously. It's configured incorrectly to spam the user and the limit makes it really easy to do so inadvertently.
__________________
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
Last edited by SDPhantom : 01-03-20 at 03:19 AM.
Report comment to moderator  
Reply With Quote
Unread 12-31-19, 05:16 PM  
Lemming2K
A Kobold Labourer
 
Lemming2K's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 1
Uploads: 2
Yes addon channels are throttled and used to disconnect players according to
https://www.wowinterface.com/downloa...rottleLib.html

This could also be of help
Report comment to moderator  
Reply With Quote
Unread 12-11-19, 01:53 PM  
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1862
File comments: 133
Uploads: 24
Originally Posted by fusionpit
I am using RealMobHealth 2.14. In DM:E I kill lashers 2 packs at a time, so 20 mobs. When I am about to finish killing them, I get spammed with 3-6 lines of "The number of messages that can be sent is limited, please wait to send another message". I did not get this message when I only killed 4 at a time. Will check killing just a single pack soon.

EDIT: The message did not appear when killing only 1 pack at a time.
Sounds like a Blizzard bug with the new addon YELL channel. Addon channels aren't supposed to be throttled.
I'll work on a way to mitigate this, but it won't completely get rid of the problem.
A bug report has been filed on the WoW Classic Forums.


Meanwhile, around line 43 in Comms.lua, you'll find this line.
Code:
SendMessage(pre,msg,"YELL");--	New channel in 1.13.3
Comment that out by putting two dashes in front of it like this.
Code:
--SendMessage(pre,msg,"YELL");--	New channel in 1.13.3
__________________
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
Last edited by SDPhantom : 12-11-19 at 03:47 PM.
Report comment to moderator  
Reply With Quote
Unread 12-11-19, 09:33 AM  
fusionpit
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 28
Uploads: 8
I am using RealMobHealth 2.14. In DM:E I kill lashers 2 packs at a time, so 20 mobs. When I am about to finish killing them, I get spammed with 3-6 lines of "The number of messages that can be sent is limited, please wait to send another message". I did not get this message when I only killed 4 at a time. Will check killing just a single pack soon.

EDIT: The message did not appear when killing only 1 pack at a time.
Last edited by fusionpit : 12-11-19 at 09:53 AM.
Report comment to moderator  
Reply With Quote
Unread 12-11-19, 01:55 AM  
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1862
File comments: 133
Uploads: 24
Originally Posted by bsmorgan
Is there anything that can be done about this (and similar) errors?

1x [ADDON_ACTION_BLOCKED] AddOn 'RealMobHealth' tried to call the protected function 'PartyMemberFrame1:Show()'.
!BugGrabber\BugGrabber.lua:519: in function <!BugGrabber\BugGrabber.lua:519>
[C]: in function `Show'
FrameXML\PartyMemberFrame.lua:150: in function `PartyMemberFrame_UpdateMember'
FrameXML\PartyMemberFrame.lua:337: in function `PartyMemberFrame_OnEvent'
[string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>

Locals:
InCombatSkipped
This specific issue is on Blizzard's end. As mentioned in the post immediately before yours, it's complaining about a function being tainted that it hasn't even run yet at the time the error occurs. It is "possible" to secure hook it, but that would come at a performance impact. It would be running the code and everything else hooked into it twice.

I have been contemplating for a long time about removing the UITweaks module because of this and compatibility issues with other addons.
__________________
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
Report comment to moderator  
Reply With Quote
Unread 12-08-19, 06:02 PM  
bsmorgan
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 187
File comments: 140
Uploads: 3
Is there anything that can be done about this (and similar) errors?

1x [ADDON_ACTION_BLOCKED] AddOn 'RealMobHealth' tried to call the protected function 'PartyMemberFrame1:Show()'.
!BugGrabber\BugGrabber.lua:519: in function <!BugGrabber\BugGrabber.lua:519>
[C]: in function `Show'
FrameXML\PartyMemberFrame.lua:150: in function `PartyMemberFrame_UpdateMember'
FrameXML\PartyMemberFrame.lua:337: in function `PartyMemberFrame_OnEvent'
[string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>

Locals:
InCombatSkipped
Report comment to moderator  
Reply With Quote
Unread 10-02-19, 01:52 PM  
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1862
File comments: 133
Uploads: 24
Originally Posted by incarceron
Code:
2x [ADDON_ACTION_BLOCKED] AddOn 'RealMobHealth' tried to call the protected function 'PartyMemberFrame1PetFrame:Hide()'.
!BugGrabber\BugGrabber.lua:519: in function <!BugGrabber\BugGrabber.lua:519>
[C]: in function `Hide'
FrameXML\PartyMemberFrame.lua:187: in function `PartyMemberFrame_UpdatePet'
FrameXML\PartyMemberFrame.lua:165: in function `PartyMemberFrame_UpdateMember'
FrameXML\PartyMemberFrame.lua:337: in function `PartyMemberFrame_OnEvent'
[string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>

Locals:
InCombatSkipped
It's a well-known taint system bug that Blizzard has given up on fixing. It's complaining about a function it hasn't even accessed yet.
__________________
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
Report comment to moderator  
Reply With Quote
Unread 10-02-19, 11:08 AM  
incarceron
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Code:
2x [ADDON_ACTION_BLOCKED] AddOn 'RealMobHealth' tried to call the protected function 'PartyMemberFrame1PetFrame:Hide()'.
!BugGrabber\BugGrabber.lua:519: in function <!BugGrabber\BugGrabber.lua:519>
[C]: in function `Hide'
FrameXML\PartyMemberFrame.lua:187: in function `PartyMemberFrame_UpdatePet'
FrameXML\PartyMemberFrame.lua:165: in function `PartyMemberFrame_UpdateMember'
FrameXML\PartyMemberFrame.lua:337: in function `PartyMemberFrame_OnEvent'
[string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>

Locals:
InCombatSkipped
Report comment to moderator  
Reply With Quote
Unread 09-29-19, 03:28 PM  
pagep
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
[quote=SDPhantom]
Originally Posted by pagep
RealMobHealth doesn't do anything with portraits or buff timers. I suspect there may be a Lua error being thrown that isn't showing.

You can turn them on running this command.
Code:
/console scriptErrors 1
You are right! It's not caused by Real Mob Health. It's some kind of different addon combination. I updated the addon when I noticed it so I suspected it to be the culprit but after more testing it's not!

Sorry about that

Thanks!
Report comment to moderator  
Reply With Quote
Unread 09-29-19, 02:18 PM  
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1862
File comments: 133
Uploads: 24
Originally Posted by pagep
Hi

It seems that there is conflic with WeakAuras2

When I stun someone I used to see their stun duration on the faceplate. But now, it's empty.


If I disable either WeakAuras or Real Mob Health - it works.

I have version 2.13 Updated: 09-25-19 03:39 PM
WeakAuaras 2.15.1

Thanks
RealMobHealth doesn't do anything with portraits or buff timers. I suspect there may be a Lua error being thrown that isn't showing.

You can turn them on running this command.
Code:
/console scriptErrors 1
__________________
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
Report comment to moderator  
Reply With Quote
Unread 09-29-19, 02:22 AM  
pagep
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Hi

It seems that there is conflic with WeakAuras2

When I stun someone I used to see their stun duration on the faceplate. But now, it's empty.


If I disable either WeakAuras or Real Mob Health - it works.

I have version 2.13 Updated: 09-25-19 03:39 PM
WeakAuaras 2.15.1

Thanks
Report comment to moderator  
Reply With Quote
Unread 09-19-19, 07:57 PM  
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1862
File comments: 133
Uploads: 24
Originally Posted by Voxxel
Hi!

Is there a way to switch off tooltip text: "Recorded health Data" and Health Data Unknown ?

What to comment out in the lua, if no ingame option provided.
Interface Options > AddOns tab > RealMobHealth > Show Tooltip Feedback
Uncheck that.
__________________
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
Report comment to moderator  
Reply With Quote
Unread 09-19-19, 08:22 AM  
Voxxel
A Chromatic Dragonspawn

Forum posts: 173
File comments: 36
Uploads: 0
Hi!

Is there a way to switch off tooltip text: "Recorded health Data" and Health Data Unknown ?

What to comment out in the lua, if no ingame option provided.
Report comment to moderator  
Reply With Quote
Unread 09-17-19, 01:39 PM  
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1862
File comments: 133
Uploads: 24
Originally Posted by pagep
This addon is amazing but in PvP it still shows 100/100 for other players HP and their mana pool which is nice. But would it be possible to disable that 100/100 HP text for other players? Or change it to 100% ? It's super distracting seeing mana like 1500/3000 a than 80/100.

If u have your code on GitHub or something I could even help. Thanks!
This requires rewriting Blizzard's format function, which breaks other addons. The UITweaks module just adds the text fields back in that Blizzard removed. They still left the format function running on the bars, so no further modification was needed other than to feed health data into the format function when possible,
__________________
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
Last edited by SDPhantom : 09-17-19 at 01:46 PM.
Report comment to moderator  
Reply With Quote
Unread 09-16-19, 03:42 PM  
pagep
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
This addon is amazing but in PvP it still shows 100/100 for other players HP and their mana pool which is nice. But would it be possible to disable that 100/100 HP text for other players? Or change it to 100% ? It's super distracting seeing mana like 1500/3000 a than 80/100.

If u have your code on GitHub or something I could even help. Thanks!
Last edited by pagep : 09-16-19 at 03:44 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: