Covenant Mission Success Estimates

Covenant Mission Success Estimates

841k Downloads

Lua error when the mission board is open

Ellypse opened this issue ยท 1 comments

commented

Hello.

Since the latest version (0.2.1) I am getting the following error when I open the mission board and nothing from the add-on is shown.

3x KayrCovenantMissions\KayrCovenantMissions-0.2.1.lua:207: attempt to index field '?' (a nil value)
[string "@KayrCovenantMissions\KayrCovenantMissions-0.2.1.lua"]:207: in function <KayrCovenantMissions\KayrCovenantMissions.lua:191>
[string "=[C]"]: in function `SetupTabs'
[string "@Blizzard_GarrisonUI\Blizzard_CovenantMissionUI.lua"]:187: in function <...s\Blizzard_GarrisonUI\Blizzard_CovenantMissionUI.lua:173>
[string "=[C]"]: in function `Show'
[string "@FrameXML\UIParent.lua"]:2910: in function `SetUIPanel'
[string "@FrameXML\UIParent.lua"]:2716: in function `ShowUIPanel'
[string "@FrameXML\UIParent.lua"]:2623: in function <FrameXML\UIParent.lua:2619>
[string "=[C]"]: in function `SetAttribute'
[string "@FrameXML\UIParent.lua"]:3468: in function `ShowUIPanel'
[string "@FrameXML\UIParent.lua"]:1958: in function <FrameXML\UIParent.lua:1269>
[string "=[C]"]: ?

Locals:
_i = <table> {
 stringTable = <table> {
 }
 GetLocalization = <function> defined @KayrCovenantMissions\i18n.lua:32
 currentLocale = "frFR"
}
adviceFrame = KayrCovenantMissionsAdvice {
 BottomLeftCorner = KayrCovenantMissionsAdviceBottomLeftCorner {
 }
 TopBorder = KayrCovenantMissionsAdviceTopBorder {
 }
 RightBorder = KayrCovenantMissionsAdviceRightBorder {
 }
 LeftBorder = KayrCovenantMissionsAdviceLeftBorder {
 }
 BottomBorder = KayrCovenantMissionsAdviceBottomBorder {
 }
 0 = <userdata>
 TopRightCorner = KayrCovenantMissionsAdviceTopRightCorner {
 }
 TopLeftCorner = KayrCovenantMissionsAdviceTopLeftCorner {
 }
 Bg = KayrCovenantMissionsAdviceBg {
 }
 BottomRightCorner = KayrCovenantMissionsAdviceBottomRightCorner {
 }
}
frameWidth = 600
frameHeight = 90
(*temporary) = nil
(*temporary) = "frFR"
(*temporary) = KayrCovenantMissionsAdvice {
 BottomLeftCorner = KayrCovenantMissionsAdviceBottomLeftCorner {
 }
 TopBorder = KayrCovenantMissionsAdviceTopBorder {
 }
 RightBorder = KayrCovenantMissionsAdviceRightBorder {
 }
 LeftBorder = KayrCovenantMissionsAdviceLeftBorder {
 }
 BottomBorder = KayrCovenantMissionsAdviceBottomBorder {
 }
 0 = <userdata>
 TopRightCorner = KayrCovenantMissionsAdviceTopRightCorner {
 }
 TopLeftCorner = KayrCovenantMissionsAdviceTopLeftCorner {
 }
 Bg = KayrCovenantMissionsAdviceBg {
 }
 BottomRightCorner = KayrCovenantMissionsAdviceBottomRightCorner {
 }
}
(*temporary) = "RightBorder"
(*temporary) = KayrCovenantMissionsAdviceRightBorder {
 0 = <userdata>
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field '?' (a nil value)"
KLib = <table> {
 Con = <function> defined @KayrCovenantMissions\KayrCovenantMissions.lua:15
}
hooksecurefunc = <function> defined =[C]:-1
CreateFrame = <function> defined =[C]:-1

Looking at the code, it seems to be related to internationalization, my client is running in French (GetLocale() returns "frFR").

I have changed i18n.lua at line 9 to be KayrCovenantMissions.i18n.currentLocale = "enUS" instead of using the game's locale in the meantime as a workaround.

commented

Thanks for the report. This issue should be fixed as of 0.2.2.