Taint from script to move the arena frames (retail)
I got a self made addon (just scripts) to move the default arena frames and do some more stuff (will post down below).
Every time I enter arena I get: "Interface failed because of addon." in the chat (yellow text) (my selfmade addon is called "^Arenaframes"). In my taint log I get this error code: Code:
11/9 05:12:07.005 UnitFrameHealthBar_Update() Heres the script (put into addon) I'm running that causing the problem. Any suggestion what's causing the taint and how to optimize the coding? Code:
LoadAddOn("Blizzard_ArenaUI") |
The last 5 lines of your script taints those Arena Frames. Why do you need to disable that function?
|
Quote:
How would you fix that? I need to lock them in place! |
Find where it gets reset, probably here:
https://github.com/Gethe/wow-ui-sour...rd_ArenaUI.lua https://github.com/Gethe/wow-ui-sour...rent.lua#L3125 Use hooksecurefunc and move it back where you want |
Quote:
I got this for arena numbers on nameplates (arena numbers instead of lvl number), maybe that coding can be similar for moving and keeping the arenaframes in place? It uses the "hooksecurefunc" like you mentioned. Code:
-- Arena1-2-3 on nameplates -- |
Looking at the code, the point where the individual ArenaEnemyFrame items are being modified is when "ArenaEnemyFrame_UpdatePlayer" gets called.
Move the lines that clear and set the points for the ArenaEnemyFrame 1 through 5 into its own function. Have the code run that on load, and then use hooksecurefunc to have that function run when ArenaEnemyFrame_UpdatePlayer" runs. I have not tested this code, but... Code:
|
Quote:
Like everytime someone stealthes the arenaframes keep updating and resetting. And if I use the "ArenaEnemyFrame1.SetPoint = function() end" they get locked in place - but I get taint everytime someone stealthes I think. Btw the arena preparation frames are always top right. Then when the game starts, they get in the position. Maybe theres a way to change the arena preparation frames position(?). (Hard to explain what I mean.) |
You could try
Lua Code:
|
Quote:
It's something with stealthers, invisibility. When the arena frames "update" after it, they reset or give me taint. __ If anyone wanna keep experimenting/trying, can do 3v3 skirmishes and try there, see how it behaves when they update mid game cus of stealth or invisibility. |
Quote:
|
Quote:
I found this old thread, with exactly same problem: https://www.wowinterface.com/forums/...ad.php?t=46675 He found solution in bottom, but I don't understand the post - I think he used MoveAnything addon and changed some code in that addon. Seems like he used "ArenaPrepFrame1" and not "ArenaEnemyFrame1". Maybe it's a solution, to use ArenaPrepFrame instead of ArenaEnemyFrame? __ Btw I know there's an addon called "sArena" that is basically default arenaframes with some options. But it's missing some options that I want. |
|
All times are GMT -6. The time now is 08:15 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI