My Loot History

My Loot History

663 Downloads

Error on load in WoW Season of Discovery

vky opened this issue ยท 0 comments

commented

Running into the following error with this add-on when loading the game:

Date: 2024-03-03 23:26:27
ID: 1
Error occured in: Global
Count: 1
Message: ...erface/AddOns/MyLootHistory/MyLootHistoryMinimap.lua line 43:
   attempt to index global 'AddonCompartmentFrame' (a nil value)
Debug:
   [string "@Interface/AddOns/MyLootHistory/MyLootHistoryMinimap.lua"]:43: initMinimap()
   [string "@Interface/AddOns/MyLootHistory/MyLootHistory.lua"]:16:
      Interface/AddOns/MyLootHistory/MyLootHistory.lua:13
   [string "=[C]"]: ?
   [string "@Interface/AddOns/ArkInventory/Externals/Ace3/AceAddon/AceAddon-3.0.lua"]:66:
      ...rkInventory/Externals/Ace3/AceAddon/AceAddon-3.0.lua:61
   [string "@Interface/AddOns/ArkInventory/Externals/Ace3/AceAddon/AceAddon-3.0.lua"]:494: InitializeAddon()
   [string "@Interface/AddOns/ArkInventory/Externals/Ace3/AceAddon/AceAddon-3.0.lua"]:619:
      ...rkInventory/Externals/Ace3/AceAddon/AceAddon-3.0.lua:611
Locals:
self = <table> {
 SetDefaultModuleLibraries = <function> defined @Interface/AddOns/ArkInventory/Externals/Ace3/AceAddon/AceAddon-3.0.lua:363
 CHAT_MSG_LOOT = <function> defined @Interface/AddOns/MyLootHistory/MyLootHistory.lua:31
 Enable = <function> defined @Interface/AddOns/ArkInventory/Externals/Ace3/AceAddon/AceAddon-3.0.lua:290
 RegisterChatCommand = <function> defined @Interface/AddOns/WeakAuras/Libs/AceConsole-3.0/AceConsole-3.0.lua:81
 EnableModule = <function> defined @Interface/AddOns/ArkInventory/Externals/Ace3/AceAddon/AceAddon-3.0.lua:328
 modules = <table> {
 }
 GetModule = <function> defined @Interface/AddOns/ArkInventory/Externals/Ace3/AceAddon/AceAddon-3.0.lua:206
 IterateEmbeds = <function> defined @Interface/AddOns/ArkInventory/Externals/Ace3/AceAddon/AceAddon-3.0.lua:438
 initConfig = <function> defined @Interface/AddOns/MyLootHistory/MyLootHistoryConfig.lua:252
 defaultModuleLibraries = <table> {
 }
 UnregisterChatCommand = <function> defined @Interface/AddOns/WeakAuras/Libs/AceConsole-3.0/AceConsole-3.0.lua:107
 Printf = <function> defined @Interface/AddOns/WeakAuras/Libs/AceConsole-3.0/AceConsole-3.0.lua:65
 SetDefaultModulePrototype = <function> defined @Interface/AddOns/ArkInventory/Externals/Ace3/AceAddon/AceAddon-3.0.lua:405
 updateStatisticsTextData = <function> defined @Interface/AddOns/MyLootHistory/MyLootHistoryConfig.lua:261
 addItem = <function> defined @Interface/AddOns/MyLootHistory/MyLootHistoryDB.lua:60
 SlashCommandListener = <function> defined @Interface/AddOns/MyLootHistory/MyLootHistory.lua:115
 name = "MyLootHistory"
 getZoneID = <function> defined @Interface/AddOns/MyLootHistory/MyLootHistory.lua:108
 IsEnabled = <function> defined @Interface/AddOns/ArkInventory/Externals/Ace3/AceAddon/AceAddon-3.0.lua:447
 orderedModules = <table> {
 }
 baseName = "MyLootHistory"
 DisableModule = <function> defined @Interface/AddOns/ArkInventory/Externals/Ace3/AceAddon/AceAddon-3.0.lua:346
 Disable = <function> defined @Interface/AddOns/MyLootHistory/MyLootHistory.lua:28
 initMinimap = <function> defined @Interface/AddOns/MyLootHistory/MyLootHistoryMinimap.lua:33
 getLootDetails = <function> defined @Interface/AddOns/MyLootHistory/MyLootHistory.lua:96
 UnregisterAllEvents = <function> defined @Interface/AddOns/DBM-Core/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:164
 RegisterMessage = <function> defined @Interface/AddOns/DBM-Core/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:80
 GetArgs = <function> defined @Interface/AddOns/WeakAuras/Libs/AceConsole-3.0/AceConsole-3.0.lua:140
 Print = <function> defined @Interface/AddOns/WeakAuras/Libs/AceConsole-3.0/AceConsole-3.0.lua:50
 groupFaq = <table> {
 }
 resetData = <function> defined @Interface/AddOns/MyLootHistory/MyLootHistoryDB.lua:106
 addGold = <function> defined @Interface/AddOns/MyLootHistory/MyLootHistoryDB.lua:52
 initDatabase = <function> defined @Interface/AddOns/MyLootHistory/MyLootHistoryDB.lua:48
 IsModule = <function> defined @Interface/AddOns/ArkInventory/Externals/Ace3/AceAddon/AceAddon-3.0.lua:464
 db = <table> {
 }
 SetDefaultModuleState = <function> defined @Interface/AddOns/ArkInventory/Externals/Ace3/AceAddon/AceAddon-3.0.lua:383
 isQuestItem = <function> defined @Interface/AddOns/MyLootHistory/MyLootHistory.lua:86
 isMyLoot = <function> defined @Interface/AddOns/MyLootHistory/MyLootHistory.lua:76
 SetEnabledState = <function> defined @Interface/AddOns/ArkInventory/Externals/Ace3/AceAddon/AceAddon-3.0.lua:420
 OnEnable = <function> defined @Interface/AddOns/MyLootHistory/MyLootHistory.lua:23
 enabledState = true
 CHAT_MSG_MONEY = <function> defined @Interface/AddOns/MyLootHistory/MyLootHistory.lua:67
 RegisterEvent = <function> defined @Interface/AddOns/DBM-Core/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:80
 UnregisterAllMessages = <function> defined @Interface/AddOns/DBM-Core/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:164
 OnInitialize = <function> defined @Interface/AddOns/MyLootHistory/MyLootHistory.lua:13
 groupStatistics = <table> {
 }
 SendMessage = <function> defined @Interface/AddOns/DBM-Core/Libs/C
AddOns:
  Swatter, v9.1.BETA.5.13 (OneMawTime)
  ArkInventory, v31024
  ArkInventoryRules, v31024
  ArkInventorySearch, v31024
  Auctionator, v10.2.23
  DBMCore, v7206b51
  DBMStatusBarTimers, v7206b51
  DBMVPVEM, v9705bdd
  Details, v#Details.20240219.12330.155
  DetailsCompare2, v
  DetailsEncounterDetails, v
  DetailsRaidCheck, v
  DetailsStreamer, v
  DetailsTinyThreat, v
  DetailsVanguard, v
  DewbCritz, v1.0.0
  GatherMate2, v1.47.2-classic
  GearQuipperTBC, v54
  MageBookTracker, v1.1.0
  MinimapButtonButton, v1.17.9
  MyLootHistory, v1.0.2
  WeakAuras, v5.10.0
  WeakAurasArchive, v5.10.0
  BlizRuntimeLib v1.15.1.53495(US) <enUS>
  (ck=27d)

I'm able to get around the error by commenting out this section of code in MyLootHistoryMinimap.lua

    AddonCompartmentFrame:RegisterAddon({
        text = "MyLootHistory",
        icon = "Interface\\Icons\\inv_misc_map09",
        notCheckable = true,
        func = function()
            MLH:gui()
        end,
    })

Read this page https://wowpedia.fandom.com/wiki/Addon_compartment and figured that this Frame thing isn't usable for WoW Classic. Hope this is of use.