Boss Frame Error
Eveytime im in a instance i get this error when ever a boss is engaged.
Code:
15x [ADDON_ACTION_BLOCKED] AddOn 'BasicUI' tried to call the protected function 'Boss2TargetFrame:Hide()'. Code:
--[[ Unit Font Style ]]-- Could it be do to the MAX_BOSS_FRAMES? If so what would be a better call? Thanks in advance for any help. |
The secure part of the UI is very sensitive. If you do anything that involves or even touches any part that is clickable, such as moving and sizing, it taints the entire thing. Even messing with the aura icons taint the boss frames, since the auras are in the chain of anchored frames around the minimap.
|
When it comes to the buff frames spreading taint, that's likely through the UIParent's Frame Position Manager. It's secure code in charge of shuffling frames around based on what's shown, including ActionBars too. However, I don't think that's the angle this taint error is coming from.
My suspicion is pointing at the replacement of Target_Spellbar_AdjustPosition(). I don't see anywhere in the execution path to suggest it, but in my experience, the taint system itself is horribly bugged and that's the only line I see that would even generate taint. |
Quote:
Lua Code:
I noticed this Target_Spellbar_AdjustPosition(self) and mine was Target_Spellbar_AdjustPosition() so i added the self and now I'm going to see if this stops the taint. Thanks for the suggestion. EDIT: No go still got the taint so i guess its something ill have to just ignore. |
The arguments the new function takes is irrelevant to the taint system. It's merely the fact you're replacing the old one.
Instead of overwriting the function, I would secure hook it. Lua Code:
|
Hi,
I have tried the SDPhantom code to fix an issue I got since long time very similar to the one is having cokedrivers. I had this code in my addon: Lua Code:
The position of the target casting bar is correct but I got one error often when I start a (multi)boss . If I remove this code and I use this: Lua Code:
When castbar appear for the first time it is in the wrong place but in the middle of the cast it goes in center position as I wanted. The next castbars are put in the right position always. If I use this: Lua Code:
No castbar appears (probably because wow doesn't show any un-anchored frame). Here is a demo: https://streamable.com/2vi6su Any idea ? Thanks for any help. |
Looks like it's also running from the OnShow handler on the template. You'll have to update the pointer after you hook the function. Since the hook is made to only apply to that one castbar, you only need to update the function pointer on that one.
Code:
TargetFrameSpellBar:SetScript("OnShow",Target_Spellbar_AdjustPosition); |
Hi SDPhantom,
thanks so much for your help. It seems that it works nicely. I have also moved the code out of the reposition function as you suggest. Lua Code:
Thanks again so much ... :) |
Quote:
Here is the code that works for me: Lua Code:
|
1 Attachment(s)
Hi all,
today I go in a m+ and suddendly I got this error: Lua Code:
The only part of the code where I touch the BossX settings is this: Lua Code:
But it should not taint I think. Any idea ? I attach the whole addon code (core.lua) to help. Thanks. |
All times are GMT -6. The time now is 03:30 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI