oUF Style already registered..
I can't figure out for the life of me how to fix that error.
oUF: Error: Style [LiteUI_Boss] already registered. Code:
local addon, ns = ... |
Are you sure that that's the only place w/:
Lua Code:
Might be a copypasta elsewhere :p |
Yep, that's the only instance of that line.
|
Hm, that's weird because that's the only reason why this could happen o_O
It means that a style w/ the same name was registered elsewhere. |
Yeah I know. I even looked at ouf.lua to see if I looked over something and was actually doing something wrong which I wasn't so I was stumped and posted here. The style for the boss frames do work 100% but, that error message annoys me and I wanted to see if there was some other solution. I may just go and edit the ouf file and comment out the error line, lol.
|
TBF, if I were you I'd add a bunch of prints w/ debugstacks to see what and where is registering styles :p
-- edit #1 I mean add the following code here: Lua Code:
This way you'll be able to see from where RegisterStyle was called. |
I had added prints in the for loop earlier and did notice it was basically looping through it twice. Perhaps that could be the cause of it?
|
Hm, given that your for loop isn't inside of any function, it means that your file is read more than once.
Are you sure that it isn't referred in an xml file or somewhere else more than once? Code:
<Ui xmlns="http://www.blizzard.com/wow/ui/"> |
LOL, that was it.. geeze I feel retarded, haha. ty <3
|
LOL :D YW :banana:
|
All times are GMT -6. The time now is 12:47 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI