AutoGear

AutoGear

189k Downloads

Bug Sack: InterfaceOptions_AddCategory

Starlynk1 opened this issue ยท 5 comments

commented

Blizz API recently changed for this call. It is no longer using the InterfaceOptions_AddCategory.

Here is the link for the deprecated API call.
https://github.com/Gethe/wow-ui-source/blob/6454953db99468d576438ddeb72c812268a0d145/Interface/SharedXML/Settings/Blizzard_Deprecated.lua#L4

Also, Something I found out with my own addon, Ace3 (if used) will need to be updated as well. They pushed an update at the end of July for the API change as well.

1x AutoGear/AutoGear.lua:1876: attempt to call global 'InterfaceOptions_AddCategory' (a nil value)
[string "@AutoGear/AutoGear.lua"]:1876: in main chunk

Locals:
_ = "AutoGear"
T = <table> {
 Localization = <table> {
 }
}
TOC_VERSION_CURRENT = 110000
TOC_VERSION_TBC = 20000
TOC_VERSION_WOTLK = 30000
TOC_VERSION_CATA = 40000
TOC_VERSION_MOP = 50000
TOC_VERSION_WOD = 60000
TOC_VERSION_LEGION = 70000
TOC_VERSION_BFA = 80000
TOC_VERSION_SL = 90000
TOC_VERSION_DF = 100000
_ = nil
weapons = nil
tUpdate = 0
shouldPrintHelp = false
maxPlayerLevel = 80
L = <table> {
}
verbosityNames = <table> {
 1 = "info"
 2 = "details"
 3 = "debug"
 0 = "errors"
}
playerIsFemale = true
tooltipFrame = AutoGearTooltip {
 updateTooltipTimer = 0.200000
 StatusBar = AutoGearTooltipStatusBar {
 }
 TextRight1 = AutoGearTooltipTextRight1 {
 }
 supportsDataRefresh = true
 textRight1Font = "GameTooltipHeaderText"
 BottomOverlay = Texture {
 }
 NineSlice = Frame {
 }
 textLeft1Font = "GameTooltipHeaderText"
 textRight2Font = "GameTooltipText"
 TopOverlay = Texture {
 }
 layoutType = "TooltipDefaultLayout"
 TextLeft1 = AutoGearTooltipTextLeft1 {
 }
 textLeft2Font = "GameTooltipText"
 TextRight2 = AutoGearTooltipTextRight2 {
 }
 TextLeft2 = AutoGearTooltipTextLeft2 {
 }
}
E = 0.000001
optionsMenu = AutoGearOptionsPanel {
 name = "AutoGear"
}
(*temporary) = nil
(*temporary) = AutoGearOptionsPanel {
 name = "AutoGear"
}
(*temporary) = "attempt to call global 'InterfaceOptions_AddCategory' (a nil value)"
commented

Which edition did you see this in? I've committed a change which may address this. Thanks for the report. Would you mind trying my change in the edition of WoW you're using?

commented

I am using Retail. Reinstalled today and have the error.

2024-07-29-Release

commented

Downloaded recent code from git, got 2 errors now.

3x GameTooltip:HookScript(): Doesn't have a "OnTooltipSetItem" script
[string "=[C]"]: in function `?'
[string "@AutoGear/AutoGear.lua"]:4250: in main chunk

Locals:
(*temporary) = GameTooltip {
 0 = <userdata>
 SetATTReferenceForTexture = <function> defined @AllTheThings/src/UI/Game Tooltip.lua:279
 SetQuestPartyProgress = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 SetBuybackItem = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 ProcessLineData = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:410
 shoppingTooltips = <table> {
 }
 updateTooltipTimer = 0.200000
 ItemTooltip = Frame {
 }
 SetPvpTalent = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 SetRuneforgeResultItem = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 SetHyperlink = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 SetUnit = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 SetAzeriteEssence = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 StatusBar = GameTooltipStatusBar {
 }
 SetVoidDepositItem = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 SetVoidWithdrawalItem = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 ClearATTReferenceTexture = <function> defined @AllTheThings/src/UI/Game Tooltip.lua:272
 SetItemInteractionItem = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 TextRight1 = GameTooltipTextRight1 {
 }
 SetInfoBackdropStyle = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:492
 SetExistingSocketGem = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 SetItemKey = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 SetSocketGem = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 SetPossession = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 SetLootCurrency = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 supportsItemComparison = true
 SetPetAction = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 SetSlottedKeystone = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 SetWorldCursor = <function> defined @Blizzard_GameTooltip/Mainline/GameTooltip.lua:1055
 SetLootItem = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 supportsDataRefresh = true
 GetUnit = <function> defined @Blizzard_GameTooltip/Mainline/GameTooltip.lua:1097
 SetOwnedItemByID = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 textRight1Font = "GameTooltipHeaderText"
 SetQuestLogSpecialItem = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 SetTransmogrifyItem = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 OnLoad = <function> defined @Blizzard_GameTooltip/Mainline/GameTooltip.lua:1030
 SetRecipeReagentItem = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 SetQuestCurrency = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 GetSpell = <function> defined @Blizzard_GameTooltip/Mainline/GameTooltip.lua:1093
 SetWeeklyReward = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 SetMerchantItem = <function> defined @Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:539
 SetPvpBrawl = <function> defined @Bli
1x AutoGear/AutoGear.lua:2203: attempt to call global 'AutoGearQueueLocalUpdate' (a nil value)
[string "@AutoGear/AutoGear.lua"]:2203: in function <AutoGear/AutoGear.lua:1897>

Locals:
self = AutoGearOptionsPanel {
 name = "AutoGear"
}
event = "PLAYER_ENTERING_WORLD"
arg1 = false
arg2 = true
(*temporary) = nil
(*temporary) = "attempt to call global 'AutoGearQueueLocalUpdate' (a nil value)"
optionsMenu = AutoGearOptionsPanel {
 name = "AutoGear"
}
TOC_VERSION_CURRENT = 110000
TOC_VERSION_MOP = 50000
TOC_VERSION_CATA = 40000
commented

That's not related. That's the issue with the addon not working on version 10.0.2 or later. It sounds like this issue is resolved. The other issue you're looking for is the pinned issue, #38.

commented

Sounds good, thanks. Hopefully the other issues can be resolved to get it working in Retail again.