Dominos

Dominos

19M Downloads

Error opening achievement window with achievement micro button disabled

Siory opened this issue ยท 5 comments

commented

When I use Dominos to hide the Blizzard achievement micro button from showing in the menu group and open the achievement window via a hotkey I get the following Lua error:

1x Blizzard_AchievementUI\Blizzard_AchievementUI-1.0.lua:801: attempt to call global "AchievementMicroButton_Update" (a nil value)
Blizzard_AchievementUI\Blizzard_AchievementUI-1.0.lua:801: in function <Blizzard_AchievementUI\Blizzard_AchievementUI.lua:750>
<in C code>
FrameXML\UIParent.lua:274: in function "UIParentLoadAddOn"
FrameXML\UIParent.lua:344: in function "AchievementFrame_LoadUI"
FrameXML\UIParent.lua:428: in function "ToggleAchievementFrame"
<string>:"TOGGLEACHIEVEMENT":1: in function <string>:"TOGGLEACHIEVEMENT":1

Locals:
(*temporary) = "Blizzard_AchievementUI"
(*temporary) = "ADDON_LOADED"
(*temporary) = "Blizzard_AchievementUI"
(*temporary) = "ADDON_LOADED"
(*temporary) = "Blizzard_AchievementUI"
(*temporary) = <func> =[C]:-1

The same error will be thrown upon earning a personal or guild achievement (I assume since that causes the micro button's border to flash normally). The error only occurs the first time I open the achievement window or earn an achievement in the session and the error does not prevent the window from coming up so it's not a major issue but would be nice to have it fixed.

commented

Well, I more or less "fixed" this a while ago by implementing the script I listed above in the new menubar.lua

commented

This one is actually a bug on Blizzard's end. I've created a report here:
http://us.battle.net/wow/en/forum/topic/6036615884

commented

Thanks, I appreciate the effort even though you aren't actively playing as much anymore. I figured it was Blizzard's fault seeing as the errors were coming from there but figured I would report it here in case you could find a work around. In the meantime I just stopped hiding that button and structured my UI to work around it.

commented

I believe the function AchievementMicroButton_Update was deleted and then edited out in Blizzard_AchievementUI.lua at line 815 by the use of "not"
Super easy fixable.

http://wow.go-hero.net/framexml/16048/Blizzard_AchievementUI/Blizzard_AchievementUI.lua#815

commented

I think the best way to solve this is a mini addon that does

if not _G['AchievementMicroButton_Update'] then
_G['AchievementMicroButton_Update'] = function() end
end