GetNumAddOns
Bisonpasfute opened this issue · 4 comments
Hi,
I really like this addon but with the latest update I noticed that /ap load profileXXX isn't working anymore.
It might have to do with the definition of some variables that you did :
local GetNumAddOns = GetNumAddOns; => local GetNumAddOns = C_AddOns.GetNumAddOns;
Here is the error I had :
10x AddonProfiles/AddonProfiles.lua:119: attempt to call upvalue 'GetNumAddOns' (a nil value)
[string "@AddonProfiles/AddonProfiles.lua"]:119: in function <AddonProfiles/AddonProfiles.lua:118>
[string "@AddonProfiles/AddonProfiles.lua"]:150: in function `?'
[string "@AddonProfiles/AddonProfiles.lua"]:78: in function `?'
[string "@FrameXML/ChatFrame.lua"]:4975: in function <FrameXML/ChatFrame.lua:4921>
[string "=[C]"]: in function `ChatEdit_ParseText'
[string "@FrameXML/ChatFrame.lua"]:4638: in function <FrameXML/ChatFrame.lua:4637>
[string "=[C]"]: in function `ChatEdit_SendText'
[string "@FrameXML/ChatFrame.lua"]:4674: in function `ChatEdit_OnEnterPressed'
[string "*ChatFrame.xml:121_OnEnterPressed"]:1: in function <[string "*ChatFrame.xml:121_OnEnterPressed"]:1>
Locals:
profile = <table> {
MikScrollingBattleText = true
SpellAlerterClassic = false
BagBrother = true
RXPGuides = false
NeatPlates_Quatre = true
AtlasLootClassic_Data = true
ItemRack = true
OmniCC = true
!BugGrabber = true
Gargul = false
RatingBuster = false
GladiatorlosSA2 = false
DBM-Raids-BC = false
NeatPlates_Renaitre = true
AddonUsage = false
DBM-Raids-WoTLK = false
NeatPlates_Neon = true
Details_TinyThreat = true
WhatsTraining = false
TomTom = false
Details_Compare2 = true
NeatPlates = true
DBM-WorldEvents = false
Bagnon = true
Spellrank = false
NeatPlates_Slim_Vertical = true
Details_DataStorage = true
NeatPlates_Grey = true
NeatPlates_Alvara = true
NeatPlates_Roth = true
DBM-Raids-Vanilla = false
DBM-Outlands = false
NeatPlatesWidgets = true
Details = true
Talented_SpecTabs = false
SwedgeTimer = false
Talented_GlyphFrame = false
AtlasLootClassic = true
BugSack = true
RCLootCouncil_Classic = true
AtlasLootClassic_Crafting = true
NeatPlates_ClassicPlates = true
DBM-PvP = false
NeatPlates_BlizzardPlates = true
SpellActivationOverlay = true
Bagnon_GuildBank = true
ArenaNumberAsName = false
ArenaAnalytics = false
GTFO = true
AddonProfiles = true
NovaWorldBuffs = false
Myslot = true
NeatPlates_Graphite = true
HandyNotes = false
MoveAnything = false
Details_EncounterDetails = true
AdvancedInterfaceOptions = true
OmniCC_Config = true
MSBTOptions = true
Groupie = false
Prat-3.0_Libraries = true
GatherMate2_GasClouds = false
ProfessionsExporter = false
WeakAurasModelPaths = true
LFG_AllMembers = false
Details_Vanguard = true
SpeedyAutoLoot = true
GatherMate2_Data = false
idTip_CommunityFork = true
PallyPower = true
ArenaStats = false
OmniBar = false
MRT = true
LFGBulletinBoard = false
NeatPlates_Simple = true
ItemRackOptions = true
Attune = false
AtlasLootClassic_DungeonsAndRaids = true
DBM-StatusBarTimers = false
DBM-Azeroth = false
Diminish_Options = true
BigDebuffs = false
Details_Streamer = true
DropTheCheapestThing = false
OmniCD = true
Questie = false
HandyNotes_WrathOfTheLichKing = false
Leatrix_Maps = true
BattleGroundEnemies = false
AtlasLootClassic_PvP = true
MinimapButtonButton = true
Diminish = true
WeakAurasTemplates = true
TacoTip = false
WeakAurasOptions = true
Gladdy = false
Bagnon_Config = true
WeakAurasCompanion = true
BuffOwner = true
Details_RaidCheck = true
SpellNotifications = true
RankSentinel = true
NeatPlatesHub = true
ThreatClassic2 = true
Prat-3.0 = true
DBM-Core = false
GatherMate2 = false
eAlignWrath = false
DBM-GUI = false
DBM-VPVEM = false
FojjiCore = true
AutoCombatLogger = true
Leatrix_Plus = true
AtlasLootClassic_Factions = true
SimpleItemLevel = true
SafeQueue = false
Talented = false
DruidMacroHelper = true
Auctionator = false
NeatPlates_Slim_Horizontal = true
WowSimsExporter = false
WeakAuras = true
WeakAurasArchive = true
AtlasLootClassic_Collections = true
NovaRaidCompanion = false
Doom_CooldownPulse = true
AtlasLootClassic_Options = true
NovaInstanceTracker = false
LoCA = true
}
characterOrAll = "Bisonpasfuté"
(*temporary) = 1
(*temporary) = nil
(*temporary) = "attempt to call upvalue 'GetNumAddOns' (a nil value)"
GetNumAddOns = nil
GetAddOnInfo = nil
EnableAddOn = nil
DisableAddOn = nil
Hope it helps :)
I went back on the last working version while you fix this issue.
I assume you're playing on Classic? I completely forgot that Blizzard might have only updated the API for Retail and not for Classic, I'll fix it asap.
Also shoutouts for using my other addon MinimapButtonButton :D
The new API actually exists in Classic, but not in Wrath Classic. Talk about consistency :D