Go to Page... |
Thread Tools | Display Modes |
08-22-16, 11:58 AM | #1 |
ArenaFrames script - lua error
Hello,
So i have this script from some russian forum. I made it to work to my needs in legion, but I'm getting some error in some situation like killing mobs out of the world. I can't really specify when. It seems like its happens randomly. What I know it is trying to run outside of arena when it is not supposed to. Lua Code:
Lua Code:
Can you guys help me to get this issue solved. Thank you in advance. Last edited by plopek : 08-22-16 at 12:24 PM. |
|
08-22-16, 10:22 PM | #2 |
You can't do things like this:
Code:
ArenaEnemyFrame1.SetPoint = function() end Based on a quick skim of the default UI code, it looks like the default UI doesn't even move the arena frames directly -- it only moves an intermediate parent frame, "ArenaEnemyFrames". You should be able to solve the problem by re-parenting the individual arena frames to the UIParent instead, eg. Code:
ArenaEnemyFrame1:SetParent(UIParent) Also, you probably want to do the same thing with the arena prep frames, which are named ArenaPrepFrame1 through ArenaPrepFrame5, otherwise they will show up in the default location.
__________________
Retired author of too many addons. Message me if you're interested in taking over one of my addons. Don’t message me about addon bugs or programming questions. |
|
08-23-16, 12:11 PM | #3 |
Thank you for reply Phanx,
I've tried the method u mentioned but it didn't work. ArenaPrepFrames moved to desired location without error but ArenaFrames didn't move at all and it pops error as soon as game started. Lua Code:
I hope I did it the way you suggested Lua Code:
|
|
08-24-16, 09:28 PM | #4 |
I don't immediately see anything in your code that should cause that error. The only things I can think of are:
a) You forgot to reload the UI after saving your changes, or you forgot to save the file before reloading the UI. b) You have some other code in the same addon that's doing Bad Things. c) You are somehow already in combat when the Blizzard_ArenaUI loads -- but that should cause a different "action blocked" error whose stack trace doesn't originate within the Blizzard "move all the things" function. Without any further information (b) seems like the most likely problem.
__________________
Retired author of too many addons. Message me if you're interested in taking over one of my addons. Don’t message me about addon bugs or programming questions. |
|
WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » ArenaFrames script pops error when combat start |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|