Hydra-Mods / Gathering

Display per-hour gathering rates of items in a clean tooltip
3 stars 4 forks source link

Error at Login With 11.0.2 #10

Open swotam opened 1 month ago

swotam commented 1 month ago

Experiencing the following errors at login with no other addons loaded (other than BugSack):

7x Gathering/Elements/Version.lua:4: attempt to call global 'GetAddOnMetadata' (a nil value) [string "@Gathering/Elements/Version.lua"]:4: in main chunk

Locals: Name = "Gathering" AddOn =

{ Locale = "enUS" L =
{ } Gathering = Gathering_Header { } } Gathering = Gathering_Header { SessionStats =
{ } SentGroup = false SharedMedia =
{ } GameVersion = 110002 DefaultSettings =
{ } ExPatrons =
{ } LastYell = 0 BlankTexture = "Interface\AddOns\Gathering\Assets\HydraUIBlank.tga" Int = 1 Fonts =
{ } Donors =
{ } Patrons =
{ } Textures =
{ } Me = "Tashme" SentInstance = false TrackedItemTypes =
{ } BarTexture = "Interface\AddOns\Gathering\Assets\HydraUI4.tga" } CT =
{ avail = 0 securelyHookedBNGameData = true securelyHookedLogged = true MSG_OVERHEAD = 40 BlockedQueuesDelay = 0 BURST = 4000 MIN_FPS = 20 securelyHooked = true MAX_CPS = 800 LastAvailUpdate = 230454.013000 OnUpdateDelay = 0 nBypass = 0 Prio =
{ } version = 29 nTotalSent = 0 Frame = Frame { } HardThrottlingBeginTime = 230454.013000 } (temporary) = nil (temporary) = "Gathering" (temporary) = "Version" (temporary) = "attempt to call global 'GetAddOnMetadata' (a nil value)"


2x Gathering/Elements/Interface.lua:1964: attempt to call global 'IsAddOnLoaded' (a nil value) [string "@Gathering/Elements/Interface.lua"]:1964: in function `?' [string "@Gathering/Elements/Initialize.lua"]:31: in function <Gathering/Elements/Initialize.lua:29>

Locals: self = Gathering_Header { Ignored =

{ } SessionStats =
{ } SentGroup = false SharedMedia =
{ } GameVersion = 110002 DefaultSettings =
{ } ExPatrons =
{ } LastYell = 0 BlankTexture = "Interface\AddOns\Gathering\Assets\HydraUIBlank.tga" Int = 1 Fonts =
{ } Donors =
{ } Patrons =
{ } Textures =
{ } Me = "Tashme" SentInstance = false TrackedItemTypes =
{ } BarTexture = "Interface\AddOns\Gathering\Assets\HydraUI4.tga" } (temporary) = nil (temporary) = "TradeSkillMaster" (*temporary) = "attempt to call global 'IsAddOnLoaded' (a nil value)"


I believe these errors can be fixed by changing GetAddOnMetadata to _CAddOns.GetAddOnMetadata, and IsAddOnLoaded to _CAddOns.IsAddOnLoaded

swotam commented 1 month ago

Additionally, typing /gather causes the following error:

3x Gathering/Elements/Interface.lua:1871: attempt to index field 'Settings' (a nil value) [string "@Gathering/Elements/Interface.lua"]:1871: in function CreateGUI' [string "@Gathering/Elements/Commands.lua"]:9: in function?' [string "@Blizzard_ChatFrameBase/Mainline/ChatFrame.lua"]:5468: in function <Blizzard_ChatFrameBase/Mainline/ChatFrame.lua:5414> [string "=[C]"]: in function ChatEdit_ParseText' [string "@Blizzard_ChatFrameBase/Mainline/ChatFrame.lua"]:5120: in functionChatEdit_SendText' [string "@Blizzard_ChatFrameBase/Mainline/ChatFrame.lua"]:5156: in function <Blizzard_ChatFrameBase/Mainline/ChatFrame.lua:5152> [string "=[C]"]: in function `ChatEdit_OnEnterPressed'

Locals: self = Gathering_Header { Ignored =

{ } SessionStats =
{ } SentGroup = false SharedMedia =
{ } Tabs =
{ } GameVersion = 110002 DefaultSettings =
{ } ExPatrons =
{ } LastYell = 0 BlankTexture = "Interface\AddOns\Gathering\Assets\HydraUIBlank.tga" Int = 1 GUI = Gathering Settings { } Windows =
{ } Fonts =
{ } Donors =
{ } Patrons =
{ } Textures =
{ } Me = "Tashme" SentInstance = false TrackedItemTypes =
{ } BarTexture = "Interface\AddOns\Gathering\Assets\HydraUI4.tga" } (temporary) = FontString { } (temporary) =
{ OverrideMedia =
{ } callbacks =
{ } LOCALE_BIT_zhTW = 8 LOCALE_BIT_ruRU = 2 MediaType =
{ } LOCALE_BIT_western = 128 MediaTable =
{ } LOCALE_BIT_zhCN = 4 DefaultMedia =
{ } MediaList =
{ } LOCALE_BIT_koKR = 1 } (temporary) = "font" (temporary) = nil (temporary) = nil (temporary) = Texture { PixelSnapDisabled = true } (temporary) = true (temporary) = Texture { PixelSnapDisabled = true } (temporary) = false (temporary) = nil (*temporary) = "attempt to index field 'Settings' (a nil value)" Outline =
{ bgFile = "Interface\AddOns\Gathering\Assets\HydraUIBlank.tga" } SharedMedia =
{ OverrideMedia =
{ } callbacks =
{ } LOCALE_BIT_zhTW = 8 LOCALE_BIT_ruRU = 2 MediaType =
{ } LOCALE_BIT_western = 128 MediaTable =
{ } LOCALE_BIT_zhCN = 4 DefaultMedia =
{ } MediaList =
{ } LOCALE_BIT_koKR = 1 }

swotam commented 1 month ago

After manually fixing the various errors experienced, the addon works properly again, however the following error is seen when clicking on Stats in the Gather UI:

3x Gathering/Elements/Tools.lua:56: attempt to perform arithmetic on local 'copper' (a nil value) [string "@Gathering/Elements/Tools.lua"]:56: in function CopperToGold' [string "@Gathering/Elements/Interface.lua"]:1839: in functionUpdateMoneyStat' [string "@Gathering/Elements/Interface.lua"]:1695: in function <Gathering/Elements/Interface.lua:1692> [string "=[C]"]: in function Show' [string "@Gathering/Elements/Interface.lua"]:1225: in functionShowPage' [string "@Gathering/Elements/Interface.lua"]:1249: in function <Gathering/Elements/Interface.lua:1248>

Locals: self = Gathering_Header { Ignored =

{ } RightEdge = Texture { } GoldGained = 0 SessionStats =
{ } SentGroup = false Seconds = 0 SharedMedia =
{ } Tabs =
{ } LastMax = 8490 Gathered =
{ } GameVersion = 110002 DefaultSettings =
{ } Initial = true ExPatrons =
{ } Tooltip = Gathering Tooltip { } BottomEdge = Texture { } DonorButtons =
{ } GUI = Gathering Settings { } Windows =
{ } XPStartTime = 286397.654000 XPGained = 0 LastXP = 0 Center = Texture { } GoldValue = 10000 Elapsed = 0 ExPatronButtons =
{ } LastYell = 0 GoldTimer = 0 LeftEdge = Texture { } PatronButtons =
{ } TopEdge = Texture { } BottomLeftCorner = Texture { } BottomRightCorner = Texture { } TopRightCorner = Texture { } TopLeftCorner = Texture { } BlankTexture = "Interface\AddOns\Gathering\Assets\HydraUIBlank.tga" backdropInfo =
{ } Settings =
{ } Int = 1 Fonts =
{ } Donors =
{ } Patrons =
{ } TotalGathered = 0 Textures =
{ } Me = "Brastiria" Text = FontString { } SentInstance = false TrackedItemTypes =
{ } BarTexture = "Interface\AddOns\Gathering\Assets\HydraUI4.tga" } copper = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (*temporary) = "attempt to perform arithmetic on local 'copper' (a nil value)"