alarofrunetotem / OrderHallCommander

7 stars 4 forks source link

Error - cache.lua #32

Open Wraithlord2015 opened 3 months ago

Wraithlord2015 commented 3 months ago

Most recent update to OrderHallCommander still throwing errors:

1x OrderHallCommander/cache.lua:717: attempt to call global 'LoadAddOn' (a nil value) [string "@OrderHallCommander/cache.lua"]:717: in function <OrderHallCommander/cache.lua:716>

[string "@AspectOfTheHunter/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:66: in function <...AspectOfTheHunter/Libs/AceAddon-3.0/AceAddon-3.0.lua:61> [string "@AspectOfTheHunter/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:494: in function `InitializeAddon' [string "@AspectOfTheHunter/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:619: in function <...AspectOfTheHunter/Libs/AceAddon-3.0/AceAddon-3.0.lua:611>

string "=[C]": in function LoadAddOn' [string "@Blizzard_UIParent/Mainline/UIParent.lua"]:422: in functionUIParentLoadAddOn' [string "@Blizzard_UIParent/Mainline/UIParent.lua"]:619: in function `Garrison_LoadUI' [string "@Blizzard_GarrisonBase/GarrisonBaseUtils.lua"]:378: in function <...eBlizzard_GarrisonBase/GarrisonBaseUtils.lua:364>

string "=[C]": in function ShowGarrisonLandingPage' [string "@MasterPlan/PlanA/PlanA.lua"]:109: in functionfunc' [string "@Blizzard_SharedXML/Mainline/UIDropDownMenu.lua"]:1034: in function `UIDropDownMenuButton_OnClick'

Locals: self =

{ baseName = "OrderHallCommander" modules =
{ } defaultModuleLibraries =
{ } defaultModuleState = true hooks =
{ } name = "OrderHallCommander_Cache" orderedModules =
{ } enabledState = true moduleName = "Cache" } (temporary) = nil (temporary) = "BlizzardOrderHallUI" (*temporary) = "attempt to call global 'LoadAddOn' (a nil value)" currency = nil = nil garrisonType = 3 currencyName = nil resources = 0 currencyTexture = nil addon =
{ modules =
{ } allEquipments =
{ } hooks =
{ } db =
{ } revision = "4f5f46c" name = "OrderHallCommander" defaultModuleState = true CfgRel = 125 ProfileOpts =
{ } lastsection = "Release Notes" help =
{ } prettyversion = "2.4.1 (Revision: 4f5f46c)" version = "2.4.1" ItemOrder =
{ } enabledState = true allReputationGain =
{ } DbDefaults =
{ } OptionsTable =
{ } numericversion = 0 _Apply =
{ } baseName = "OrderHallCommander" MenuLevels =
{ } allArtifactPower =
{ } wowhead_update = 1512310641 CfgDlg = "OrderHallCommander" defaultModuleLibraries =
{ } die = false orderedModules =
{ } lastChange = 261542.541000 }

Wraithlord2015 commented 3 months ago

In cache.lua change line 717:

From LoadAddOn("Blizzard_OrderHallUI")

To C_AddOns.LoadAddOn("Blizzard_OrderHallUI")

Should resolve all errors (not getting anything else at the moment, after making the change).

raysmith59 commented 3 months ago

Good fix, thanks!