Krowi's Achievement Filter

Krowi's Achievement Filter

738k Downloads

Failed to open achievement frame

eleanoryeung opened this issue ยท 7 comments

commented

When trying to open achievement frame with "Y" key, the following error shows and the default achievement opens.
With ToggleAchievementFrame(), the default achievement frame opens without any problem.
( Also is it possible to make addons calling ToggleAchievementFrame() also open your achievement frame? )
This happened after I tweaked many addons so it might be a compatibility problem.

Interface/AddOns/Krowi_AchievementFilter/GUI/GUI.lua:200: attempt to index field '?' (a nil value)
[string "@Interface/AddOns/Krowi_AchievementFilter/GUI/GUI.lua"]:200: in function `SelectTab'
[string "@Interface/AddOns/Krowi_AchievementFilter/GUI/GUI.lua"]:241: in function `ToggleAchievementFrame'
[string "@Interface/AddOns/Krowi_AchievementFilter/API.lua"]:174: in function `KrowiAF_ToggleAchievementFrame'
[string "KrowiAF_OPEN_TAB_Achievements"]:1: in function <[string "KrowiAF_OPEN_TAB_Achievements"]:1>

Locals:
_addonName = "Krowi_AchievementFilter"
tabName = "Achievements"
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field '?' (a nil value)"
addon = <table> {
 ReplaceVarsWithReloadReq = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:520
 WorldMapButtons = <table> {
 }
 ExcludeAchievement = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:208
 Data = <table> {
 }
 UnitTests = <table> {
 }
 GUI = <table> {
 }
 IsShadowlandsRetail = false
 Filters = <table> {
 }
 DelayObjects = <table> {
 }
 GlobalStrings = <table> {
 }
 DelayFunction = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:656
 Options = <table> {
 }
 Objects = <table> {
 }
 Tutorials = <table> {
 }
 TooltipData = <table> {
 }
 EventData = <table> {
 }
 OnAchievementEarned = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:351
 Diagnostics = <table> {
 }
 GetUsableSets = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:570
 Faction = <table> {
 }
 GetCovenantName = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:646
 GetNextAchievement = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:540
 ExtraWrathStrings = <table> {
 }
 Colors = <table> {
 }
 BuildCache = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:317
 Libs = <table> {
 }
 TrackingAchievements = <table> {
 }
 Util = <table> {
 }
 MetaData = <table> {
 }
 GetFirstAchievementId = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:3
 GetInstanceInfoName = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:618
 IsWrathClassic = false
 GetSecondsSince = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:510
 GetAchievementInfo = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:529
 GetAchievementsInZone = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:20
 MakeWindowStatic = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:466
 GetVariantSetIDs = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:582
 GetLFGDungeonInfo = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:642
 ResetCache = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:347
 TabsOrder = <table> {
 }
 Tabs = <table> {
 }
 IncludeAchievement = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:185
 L = <table> {
 }
 Icon = <table> {
 }
 Credits = <table> {
 }
 GetActiveCovenant = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:16
 HookAchievementFrameOnShow = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:438
 GetAchievementNumbers = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:51
 GetMapName = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:650
 FocusAchievement = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:159
 AddToTrackingAchievementsCategories = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:172
 Event = <table> {
 }
 GetCategoryInfoTitle = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:630
 IsDragonflightRetail = true
 ClearFocusAchievement = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:136
 ChangeAchievementMicroButtonOnClick = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:600
 InGuildView = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:12
 Localization = <table> {
 }
 Plugins = <table> {
 }
 MakeWindowMovable = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:503
 OverwriteFunctions = <function> defined @Interface/AddOns/Krowi_AchievementFilter/Globals.lua:366
}
commented

It must be my own fault. I am trying to write a micro menu with WeakAuras and load the achievement ui much earlier than expected. I will try to figure it out myself.

commented

https://github.com/TheKrowi/Krowi_AchievementFilter/releases/tag/46.1should fix the problem rly so it should be fine now to load the achievement ui whenever (I hope).

commented

Yes, it works perfectly now, thank you!

commented

Someone on discord had this issue before too but never found the cause. Which GUI addons do you have like ElvUI, GW2UI, ...? Any addons related to achievements other than KAF?

3x Krowi_AchievementFilter\GUI\GUI.lua:195: attempt to index field '?' (a nil value)
[string "@Krowi_AchievementFilter\GUI\GUI.lua"]:195: in function 'SelectTab'
[string "@Krowi_AchievementFilter\GUI\GUI.lua"]:236: in function 'ToggleAchievementFrame'
[string "@Krowi_AchievementFilter\Globals.lua"]:601: in function <Krowi_AchievementFilter\Globals.lua:600>
commented
( Also is it possible to make addons calling ToggleAchievementFrame() also open your achievement frame? )
This happened after I tweaked many addons so it might be a compatibility problem.

Atm toggling the frame has no changes but every link to an achievement will link to a tab by KAf and not the default blizz ones.

commented

This error is related to Blizzard_AchievementUI loading before KAF is loaded. This is caused by another addon.

commented