Download
(47 Kb)
Download
Updated: 03/29/17 03:31 PM
Pictures
File Info
Compatibility:
Homestead (2.7)
Dark Brotherhood (2.4)
Updated:03/29/17 03:31 PM
Created:03/21/15 08:44 AM
Monthly downloads:58
Total downloads:46,482
Favorites:76
MD5:
Categories:Discontinued & Outdated, Character Advancement, Combat Mods, ToolTip
MitigationPercent (with working penetration stat)  Popular! (More than 5000 hits)
Version: 1.6
by: coolmodi [More]
Update for DB:
I'm not playing ESO anymore, but thanks to the comments from mudcrabs and MK32 this was a very quick fix, don't expect any other updates in the future though.

  • Fixed UI errors caused by API changes
  • Fixed calculation errors caused by DB changes:
    General: Level used now works with champion points
    Penetration: Nirnhoned removed, Sharpened now only adds flat penetration and no longer percent ignored
  • In addition the percent ignored only shows if there is any (mace equiped with points in passive, no other source I'm aware of anymore)

Features:
  • Display damage mitigation from resistances in percent
  • Display a fixed and working penetration stat
  • Works in character (both PC and gamepad UI) and inventory view
  • Spell and physical mitigation can also be shown in a configurable UI panel
  • Shows resistance needed for the 50% hardcap in the addon's settings screen

Description:
This addon can display the mitigation that your resistances provide in percent in the character screen, inventory and/or as a movable panel. It also has a completely fixed penetration stat!

The used formulas:
  • Physical/Spell mitigation*: (resistance-100)/(level*10)
  • Physical/Spell hardcap(50%)*: 500*level + 100
  • Critical mitigation: resistance/level, derived from 50*level = 50%, taken from elderscrollsonline.wiki.fextralife.com
where level is your level+Veteran Rank (66 on V16).
*Everything seems to have 100 penetration by default, this makes the hardcap effectively 100 higher in every situation, hence the 100.

Penetration is a more complex matter:
The amount reported by the game (and used by other addons I know that show it) is absolute crap, it adds various wrong values for many sources, and also handles "percent ignored" wrong and doesn't show it. This addon attempts to fix it by using the combined research done by the author of this thread and myself. Head over there and read if you want to know more

The addon displays it in the format A + B.
A = percent of target's resistance ignored (e.g. mace passives)
B = flat amount of target's resistance ignored (e.g. light armor passive)

Known bugs:
  • If two 1H-Sharpened/Nirnhoned weapons are in the currently active weapon set and one of them is moved into the other set it will break flat penetration. Switching sets fixes that!

Credits:
Garkin for originally showing me a way to change the char screen!
Sounomi for finding out why a game patch broke that!
Asayre on Tamriel Foundry for helping with the math behind penetration!
update 1.6
- Removed gamepad support (I won't fix this) to get rid of the error it produces
- Bumped API version

update 1.52
- API-Version bumped to DB
- Fixed UI errors caused by API changes
- Fixed calculation errors caused by DB changes (thx to mudcrabs and MK32 for mentioning this in comments):
Penetration: Nirnhoned removed, Sharpened now only adds flat penetration and no longer percent ignored General: Level calculation now works with champion points
- In addition the percent ignored only shows if there is any (mace equiped with points in passive, no other source I'm aware of anymore)

update 1.51
- Fixes for TG and API version push
- Added options to show more stats in panel because it was requested
- Panel now uses scene manager to hide in menus

Update 1.5
- Added gamepad UI support
- Added penetration stat display
- Completely changed how the penetration stat is calculated and displayed
- Critical mitigation now shows correctly how much percent is removed additively from the critical modifier instead of by how much percent it's reduced multiplicatively (didn't make all that much sense)
- "Resistant" perk now adds to the displayed critical mitigation
- Added battlelevel and dungeon scaling support
- Redone settings menu, now working reset to defaults function
- Added localisation support

Update 1.4
- Changed the way the hardcap is calculated, it now inlcudes a flat +100 to offset the 100 penetration everything in the game has.
- Removed the not working % display for penetration until I actually make that work, if possible at all.

Update 1.3b
- Fix .zip not having correct folder structure

Update 1.3
-Fixed char screen display
-Added display in inventory screen
-Added percentage for critical resistance
-A lot of code changes
-WIP: Option to see blocking mitigation for panel
-WIP: Option to use nord passive for mitigation calculation
-WIP: Option to show penetration

Update 1.2
-API version changed
-Some wording and grammer changes
-Now gives me all your gold and your soul

Update 1.1:
-Panel is now only clickable if it's visible, no more blocked lockpicking etc.
-Events for updating the panel (stat change/autohide) are now only active if the respective options are on, may cost less performance now, maybe not, who knows.
-Clickable area is now smaller and more in line with the normal text size.
-Hardcap is now calculated without the -100 armor, I have no way of testing it, but i think this makes more sense at least.
-Autohide setting in the menu is now also deactivated when panel is set to off.
-Hardcap display in panel removed, it's now shown in the addon settings. This should be a better solution.

Update 1.0:
-Movable panel now has variable size, can be recolored and set to hide whenever the target reticle is hidden!
-Display in character screen now works correctly, can be displayed in brackets behind the resistance values or as individual stats
-Mitigation calculation in veteran ranks was a level off, sorry for that, it's fixed now.
-Other stuff i can't remember

Update 0.95:
-Toggling the movable panel on or off now has immediate effect.
-You can now show mitigation values in char screen too, this works with Harven's Extended Stats.
Optional Files (0)


Archived Files (6)
File Name
Version
Size
Uploader
Date
1.52
45kB
coolmodi
06/22/16 11:02 PM
1.51
45kB
coolmodi
03/08/16 03:20 AM
1.5
133kB
coolmodi
12/09/15 11:33 AM
1.4
95kB
coolmodi
11/28/15 10:01 AM
1.3b
95kB
coolmodi
11/12/15 04:29 PM
1.2
33kB
coolmodi
10/18/15 03:37 PM


Post A Reply Comment Options
Unread 07/03/20, 02:38 PM  
adjutant
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 8
Uploads: 2
It doesn't show % values at all. Someone pls confirm that this is really broken and I'm not seeing things.
Report comment to moderator  
Reply With Quote
Unread 06/21/20, 11:01 AM  
amuridee
 
amuridee's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 57
Uploads: 7
Update version

Originally Posted by MarkusFox
Hoping someone steps up to update this addon. The calculations and math I'd have to do makes my head hurt.
I update API for this AddsOn, you can download it here MitigationPercent (with working penetration stat) - Updated
Last edited by amuridee : 06/21/20 at 11:01 AM.
Report comment to moderator  
Reply With Quote
Unread 03/10/19, 05:32 AM  
MarkusFox

Forum posts: 4
File comments: 165
Uploads: 0
Hoping someone steps up to update this addon. The calculations and math I'd have to do makes my head hurt.
Report comment to moderator  
Reply With Quote
Unread 07/15/18, 07:14 PM  
Atavus

Forum posts: 2
File comments: 128
Uploads: 0
error on login:
Code:
user:/AddOns/MitigationPercent/MitigationPercent.lua:226: attempt to index a nil value
stack traceback:
	user:/AddOns/MitigationPercent/MitigationPercent.lua:226: in function 'showInStatScreens'
	user:/AddOns/MitigationPercent/MitigationPercent.lua:403: in function 'MitigationPercent:RestoreData'
	user:/AddOns/MitigationPercent/MitigationPercent.lua:370: in function 'MitigationPercent:Initialize'
	user:/AddOns/MitigationPercent/MitigationPercent.lua:366: in function 'MitigationPercent.OnAddOnLoaded'
Last edited by Atavus : 07/15/18 at 07:36 PM.
Report comment to moderator  
Reply With Quote
Unread 02/18/18, 08:29 AM  
Nighn_9
 
Nighn_9's Avatar

Forum posts: 10
File comments: 50
Uploads: 0
update, please?
Report comment to moderator  
Reply With Quote
Unread 03/29/17, 04:11 PM  
coolmodi
AddOn Author - Click to view AddOns

Forum posts: 47
File comments: 55
Uploads: 3
Fixed the reported error by removing (all?) gamepad UI support. I won't fix that.
Report comment to moderator  
Reply With Quote
Unread 12/23/16, 12:07 PM  
Circuitous
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 49
Uploads: 3
Getting this error on login/reloadui:

Code:
user:/AddOns/MitigationPercent/MitigationPercent.lua:307: attempt to index a nil value
stack traceback:
	user:/AddOns/MitigationPercent/MitigationPercent.lua:307: in function 'showInStatScreens'
	user:/AddOns/MitigationPercent/MitigationPercent.lua:403: in function 'MitigationPercent:RestoreData'
	user:/AddOns/MitigationPercent/MitigationPercent.lua:370: in function 'MitigationPercent:Initialize'
	user:/AddOns/MitigationPercent/MitigationPercent.lua:366: in function 'MitigationPercent.OnAddOnLoaded'
No idea what's causing it as I'm utterly helpless when it comes to Lua.
Report comment to moderator  
Reply With Quote
Unread 08/01/16, 06:44 AM  
Scootworks
 
Scootworks's Avatar
AddOn Author - Click to view AddOns

Forum posts: 312
File comments: 64
Uploads: 28
Originally Posted by Phinix
Getting some debug spam on login with latest version:



Also, it would be nice to have an option to show penetration on the stat sheet but not the character gear /paper doll screen. Showing penetration currently looks good on the stat sheet but sort of crowds the area on the character gear screen and covers a common dock position for other addons like Poison Master.

coolmodi is not playing anymore

here are some german loc strings:

Code:
ZO_CreateStringId("SI_DERIVEDSTATS34", 								"Magiedurchdringung")
ZO_CreateStringId("SI_DERIVEDSTATS33", 								"Rüstungsdurchdringung")

ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_CAT_STATSCREEN",		"Charakterfenster Einstellung")

ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_NAME_SHOWINSTATS",		"Resistenzen anzeigen")
ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_TOOLTIP_SHOWINSTATS",	"Zeige die Resistenzen in Prozent hinter den Resistenzen in Zahlen im Inventar und Charakterfenster an.")

ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_NAME_SHOWPEN",			"Durchdringung anzeigen")
ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_TOOLTIP_SHOWPEN",		"Zeigt die Durchdringung als A + B, A=Prozent der ignorierten Resistenz, B=Wert der ignorierten Resistenz")

ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_CAT_PANEL",			"Live Anzeige Einstellungen")
ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_TOOLTIP_SHOWPANEL",	"Eine verschiebbare Live Anzeige die deine Durchdringung anzeigt wird eingeblendet. Andere Anzeigen können auch eingestellt werden!")
ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_NAME_SHOWPANEL",		"Zeige Live Anzeige")	
ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_NAME_FONTCOLOR",		"Schriftfarbe")
ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_NAME_SIZE",			"Schriftgrösse")
ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_NAME_BOLD",			"Schrift Fett")
ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_NAME_AUTOHIDELOCK",	"Sperren")
ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_TOOLTIP_AUTOHIDELOCK",	"Sperrt das Fenster und verbirgt das Menü.")
ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_NAME_SHOWRES", 		"Zeige Resistenzen")
ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_NAME_SHOWPWR", 		"Zeige Magie- & Waffenschaden")
ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_NAME_SHOWCRIT", 		"Zeige Chance auf kritische Treffer")
ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_NAME_SHOWPENPAN", 		"Zeige Durchdringung")

ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_CAT_HARDCAP",			"HardCap Information")
ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_TOOLTIP_HARDCAP",		"Informationen über das HardCap von Resistenzen.")	
ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_NAME_HARDCAP",			"Physische-/Magiedurchdringung HardCap:")		
ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_TEXT_HARDCAPDESC",		"Mit diesem Wert erreichst du das Maximum von 50% Durchdringung. Dieser Wert ist nur für dein \"aktuelles Level\"! Höhere Level benötigen einen grösseren Wert um die 50% zu erreichen, kleinere Level weniger.")

ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_WARNING_RELOADUI",		"ReloadUI um die Änderungen anzuzeigen!")
ZO_CreateStringId("SI_MITIGATIONPERCENT_MENU_BUTTON_RELOAD",		"ReloadUI")
Report comment to moderator  
Reply With Quote
Unread 07/05/16, 06:47 AM  
Phinix
 
Phinix's Avatar
AddOn Author - Click to view AddOns

Forum posts: 186
File comments: 1779
Uploads: 32
Getting some debug spam on login with latest version:



Also, it would be nice to have an option to show penetration on the stat sheet but not the character gear /paper doll screen. Showing penetration currently looks good on the stat sheet but sort of crowds the area on the character gear screen and covers a common dock position for other addons like Poison Master.

Report comment to moderator  
Reply With Quote
Unread 06/24/16, 07:38 AM  
Malnutrition

Forum posts: 0
File comments: 14
Uploads: 0
Originally Posted by coolmodi
Originally Posted by kermudgen
maybe he doesn't play anymore. too bad. was a nice addon.
Hi, I quit ESO quite some time ago now, and I don't think I'll get back to it any time soon, but if the fix is as easy as it sounds in the comments I'll upload a fixed version as soon as my client is done updating

Edit: Done
Thank you for the update! It is appreciated.
Report comment to moderator  
Reply With Quote
Unread 06/22/16, 09:49 PM  
coolmodi
AddOn Author - Click to view AddOns

Forum posts: 47
File comments: 55
Uploads: 3
Originally Posted by kermudgen
maybe he doesn't play anymore. too bad. was a nice addon.
Hi, I quit ESO quite some time ago now, and I don't think I'll get back to it any time soon, but if the fix is as easy as it sounds in the comments I'll upload a fixed version as soon as my client is done updating

Edit: Done
Last edited by coolmodi : 06/22/16 at 11:04 PM.
Report comment to moderator  
Reply With Quote
Unread 06/20/16, 01:05 PM  
kermudgen

Forum posts: 2
File comments: 40
Uploads: 0
maybe he doesn't play anymore. too bad. was a nice addon.
Report comment to moderator  
Reply With Quote
Unread 06/13/16, 03:34 PM  
MK32

Forum posts: 0
File comments: 120
Uploads: 0
Originally Posted by tQsti
Originally Posted by MK32
Don't forget to comment out the nirncrux lines because it does not increase mitigation any more.
It might be helpfull (for us ppl who aren't that experienced in lua-editing) to explain ur fix with the same kind of example that was given in the previous post, or mentioning the exact line-numbers..

Now I'm just roughly guessing what to comment out, did u mean the whole 'block' going from line 76 to 145, or the seperate 'blocks' like 81 to 85, 86 to 90, etc.?

Thanks regardless for the help ofc!
____________

EDIT: Ehm btw, did u realize that the nirncrux for armor (fortified) actually does affect mitigation, since it increases resistances?

Yeah. Actually the weapon version for penetration. Specifically it is the lines 60-68 for the ActiveWeaponPair. Leave the sharpened piece in there and delete the nirn piece. Comment out all lines 80-88 and 102-109.

btw I just quickly edited this to get it working. If the author doesn't do the fixes soon, I'll try to clean my version up and post here in the thread. Unless Mudcrabs wants to do it.
Last edited by MK32 : 06/13/16 at 03:40 PM.
Report comment to moderator  
Reply With Quote
Unread 06/12/16, 06:49 PM  
tQsti
 
tQsti's Avatar

Forum posts: 0
File comments: 25
Uploads: 0
Originally Posted by MK32
Don't forget to comment out the nirncrux lines because it does not increase mitigation any more.
It might be helpfull (for us ppl who aren't that experienced in lua-editing) to explain ur fix with the same kind of example that was given in the previous post, or mentioning the exact line-numbers..

Now I'm just roughly guessing what to comment out, did u mean the whole 'block' going from line 76 to 145, or the seperate 'blocks' like 81 to 85, 86 to 90, etc.?

Thanks regardless for the help ofc!
____________

EDIT: Ehm btw, did u realize that the nirncrux for armor (fortified) actually does affect mitigation, since it increases resistances?
Last edited by tQsti : 06/13/16 at 09:32 AM.
Report comment to moderator  
Reply With Quote
Unread 06/12/16, 04:00 PM  
MK32

Forum posts: 0
File comments: 120
Uploads: 0
Originally Posted by mudcrabs
Adding this near the top of MitigationPercent.lua, and replacing all instances of ZO_GamepadStatsTopLevelRightPaneInfoPanelCharacterStatsPanel with ZO_GamepadStatsTopLevelRightPaneInfoPanelAttributesPanel seemed to do it for me:
Code:
local function ChampionToVet(champ)
	return math.min(math.max(math.floor(champ/10), 1), 16)
end

local function GetUnitVetBattleLevel(unit)
	return ChampionToVet(GetUnitChampionBattleLevel(unit))
end

local function GetUnitVeteranRank(unit)
	return ChampionToVet(GetUnitChampionPoints(unit))
end

local function IsUnitVetBattleLeveled(unit)
	return IsUnitChampionBattleLeveled(unit)
end
Don't forget to comment out the nirncrux lines because it does not increase mitigation any more.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: