rUF error in 10.2-- help updating?
Hey guys. I'm having a minor(?) issue with a rUF, which seems abandoned. After 10.2 it can't display Lunar Power and has a fit every time I change druid forms. Could be related to the power bar updates, idk. I'm trying to learn a little about how to update these things myself but I'm not sure where to start. I've looked at the API changes and suspect C_Console.GetColorFromType is the culprit, but am not sure how to follow that up in the actual addon. Probably barking up the wrong tree. Could anyone look at this and give me a hand on the process?
Errors: https://pastebin.com/eEuGsSHw https://pastebin.com/Ur4NVV3k https://pastebin.com/pg3BffiS |
Blizzard added a spark entry for the PowerBarColor.Stagger entry that doesn't have r, g, b entries.
You could try changing line 145 of RuF\Libs\oUF\colors.lua from: Lua Code:
Lua Code:
They also changed the color keys for stagger from numbers to strings ("green", "yellow", "red", [and the new "spark"]) so that may also be problematic but the addon is a bit on the large side to just wander through on the off-chance. |
Oh wonderful, that worked perfectly, thank you!
Is there anywhere I could have gone to find out about this change for myself? |
I just followed the stack trace in the colors.lua error back to line 145 (saying that something had been set to nil that should have (and in previous version of the game did have) a value.
The beginning of the loop that contains line 145 Lua Code:
The current STAGGER table entry is Lua Code:
Lua Code:
The fix just sets a default colour of white if the r, g, b entries don't exist...simples :D |
Quote:
|
All times are GMT -6. The time now is 02:34 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI