Quantcast
Download
(29 Kb)
Download
Updated: 09-25-19 03:39 PM
Compatibility:
WoW Classic (1.13.2)
Updated:09-25-19 03:39 PM
Created:05-19-19 08:09 PM
Downloads:365,717
Favorites:253
MD5:

Real Mob Health  Popular! (More than 5000 hits)

Version: 2.13
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.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 10-02-19, 01:52 PM  
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1836
File comments: 128
Uploads: 23
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: 1836
File comments: 128
Uploads: 23
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: 1836
File comments: 128
Uploads: 23
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: 1836
File comments: 128
Uploads: 23
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
Unread 09-15-19, 11:12 AM  
Diszarmed
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Re: Health Problem

Originally Posted by Don0Mario
I have some problem.
What are the commands for the target Health?
It Always shows me 100 HP as their max Health. When i have ME, or some party member as target, it shows me the correct max Health.
My Command now is:
[Health:current-max-percent]
I'm actually having this same issue with an ElvUI edit. I came here to see if installing RMH might help me out. I already commented on the UI to see if I could get an answer. This just started last night when I installed the UI.
Report comment to moderator  
Reply With Quote
Unread 09-14-19, 02:29 PM  
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1836
File comments: 128
Uploads: 23
Re: Health Problem

Originally Posted by Don0Mario
I have some problem.
What are the commands for the target Health?
It Always shows me 100 HP as their max Health. When i have ME, or some party member as target, it shows me the correct max Health.
My Command now is:
[Health:current-max-percent]
This addon doesn't have anything to do with UnitFrame tags. You might want to ask the author of your UI addon.
__________________
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-14-19, 07:42 AM  
Don0Mario
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Health Problem

I have some problem.
What are the commands for the target Health?
It Always shows me 100 HP as their max Health. When i have ME, or some party member as target, it shows me the correct max Health.
My Command now is:
[Health:current-max-percent]
Last edited by Don0Mario : 09-14-19 at 07:44 AM.
Report comment to moderator  
Reply With Quote
Unread 09-13-19, 04:36 AM  
fluegu
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Originally Posted by SDPhantom
Originally Posted by fluegu
Been having issues with UnitFramesImproved
It creates some overlapping text after playing for a few minutes.
Even if I disable all RealMobHealth options except Modify UnitFrame Health.



And thank you for this addon. I love it
Haven't been able to recreate this issue, however I have noticed the health text pop up when looting a corpse. This happens even without RealMobHealth loaded, so that specific issue is a UnitFramesImproved problem.

Edit: I finally got this to happen during an instance run and it's happening without RealMobHealth loaded. It's definitely a UnitFramesImproved bug.
OK thank you. Yeah I opened a ticket in both addons just to be sure. Thank you for your help and the addon
Report comment to moderator  
Reply With Quote
Unread 09-12-19, 03:02 PM  
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1836
File comments: 128
Uploads: 23
Originally Posted by fluegu
Been having issues with UnitFramesImproved
It creates some overlapping text after playing for a few minutes.
Even if I disable all RealMobHealth options except Modify UnitFrame Health.



And thank you for this addon. I love it
Haven't been able to recreate this issue, however I have noticed the health text pop up when looting a corpse. This happens even without RealMobHealth loaded, so that specific issue is a UnitFramesImproved problem.

Edit: I finally got this to happen during an instance run and it's happening without RealMobHealth loaded. It's definitely a UnitFramesImproved bug.
__________________
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-12-19 at 11:40 PM.
Report comment to moderator  
Reply With Quote
Unread 09-12-19, 12:43 PM  
fluegu
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Been having issues with UnitFramesImproved
It creates some overlapping text after playing for a few minutes.
Even if I disable all RealMobHealth options except Modify UnitFrame Health.



And thank you for this addon. I love it
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: