WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   nPlates taint (https://www.wowinterface.com/forums/showthread.php?t=55319)

rakkarage 04-10-17 10:45 AM

nPlates taint
 
Hi,
I am using nPlates:
http://www.wowinterface.com/download...Plates2.0.html
https://github.com/Grimsbain/nPlates

But I get taint errors when showing friendly players plates. Friendly plates seem to work fine in dalaran or world. But in an instance or garrison when I target a player or npc to show nameplate (or instantly if always show plates is on)

Quote:

Message: Interface\AddOns\nPlates\core.lua:395: Attempt to access forbidden object from code tainted by an AddOn
Time: 04/07/17 10:09:26
Count: 4
Stack: [C]: in function SetHeight' Interface\AddOns\nPlates\core.lua:395: in function <Interface\AddOns\nPlates\core.lua:394> [C]: in functionDefaultCompactNamePlateFrameSetupInternal'
Interface\FrameXML\CompactUnitFrame.lua:1750: in function <Interface\FrameXML\CompactUnitFrame.lua:1732>
[C]: in function DefaultCompactNamePlateFrameSetup' Interface\FrameXML\CompactUnitFrame.lua:1754: in functionfunc'
Interface\FrameXML\CompactUnitFrame.lua:201: in function CompactUnitFrame_SetUpFrame' ...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:108: in functionApplyFrameOptions'
...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:84: in function `OnNamePlateAdded'
...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:44: in function <...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:35>
Locals: (*temporary) = {
otherHealPrediction = {
}
overAbsorbGlow = {
}
myHealAbsorbLeftShadow = {
}
border = {
}
barTexture = {
}
totalAbsorb = {
}
myHealAbsorb = {
}
myHealPrediction = {
}
myHealAbsorbRightShadow = {
}
0 =
background = {
}
overHealAbsorbGlow = {
}
totalAbsorbOverlay = {
}
}
(*temporary) = 12
it seems to work fine for everyone else!?

Here is /console taintLog 2
https://gist.github.com/rakkarage/b1...9bc5ca7bf65b66

Please help!?

Ketho 04-10-17 10:54 AM

Friendly nameplates in dungeons/raids were made protected by Blizzard in 7.2,
nPlates apparently has to be updated to not work in dungeons for friendly nameplates

https://us.battle.net/forums/en/wow/topic/20753425442

rakkarage 04-10-17 11:21 AM

thanks!
could anyone elaborate on what that means?
addons cannot modify existing plates but they can create their own?
how do other nameplate addons get around this?
why would blizzard do this?
thanks

rakkarage 04-10-17 11:27 AM

http://www.wowhead.com/news=260801/a...s-in-patch-7-2

With Patch 7.2, we’re disabling the ability for addons to modify the appearance of friendly nameplates while inside dungeon and raid instances.

While, for the most part, we’re impressed with -- and encourage -- the creativity that addon authors bring to the game using the addon API, occasionally an addon goes too far in terms of automating or trivializing elements of gameplay that are meant to be highly challenging. Recently, we’ve become aware of a couple addons that were using visual adjustments to friendly nameplates as a method to automatically coordinate complex positioning requirements. This caused what was intended to be a difficult test of a group’s ability to identify positioning requirements on the fly to instead become a simple matter of following a visual marker.

In order to prevent this from continuing, we’ve had to disable the ability for addons to modify how friendly nameplates appear while inside of dungeon and raid instances. Nothing has changed outside of dungeons and raids – addons will still be able to customize the appearance of friendly nameplates everywhere else (most notably in PvP, where they’re most commonly used in ways we don’t consider problematic).

We also don’t anticipate that addon authors will need to update their code to accommodate this change; customizations should simply stop working once a player zones into a raid, and start working again once they’ve left. However, if you’d like to double-check, this change should now be active in the current 7.2 PTR environment.


Just to reiterate since I'm seeing some confusion:
Nothing whatsoever is changed while you are outside of a raid or dungeon
When you zone into a raid or dungeon, only your friendly nameplates (if enabled) will be forced to use the standard Blizzard appearance
Enemy nameplates can still be modified and customized by addons while in a raid or dungeon
Once you zone out of the raid or dungeon, any changes made by an addon will once again apply


All times are GMT -6. The time now is 08:09 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI