Go to Page... |
|
Thread Tools | Display Modes |
11-07-20, 04:06 AM | #1 |
Addon Howmany with error since new patch
Greets, having a problem with addon that got hit with the new api from patch. It's called howmany and you can find it in curseforge at:
https://www.curseforge.com/wow/addons/howmany it gives the following error now when you collect any of the garrison resources in WoD or the resources for legion. 4x HowMany\Modules\HMLoot.lua:592: attempt to call global 'GetCurrencyListSize' (a nil value) [string "@HowMany\Modules\HMLoot.lua"]:592: in function <HowMany\Modules\HMLoot.lua:584> [string "@HowMany\Modules\HMLoot.lua"]:879: in function <HowMany\Modules\HMLoot.lua:871> [string "@HowMany\Modules\HMLoot.lua"]:899: in function `filterFunc' [string "@Prat-3.0-3.9.0\services\chatsections.lua"]:49: in function <Prat-3.0\services\chatsections.lua:41> [string "@Prat-3.0-3.9.0\services\chatsections.lua"]:340: in function `SplitChatMessage' [string "@Prat-3.0-3.9.0\addon\addon.lua"]:639: in function <Prat-3.0\addon\addon.lua:613> [string "=(tail call)"]: ? [string "@FrameXML\ChatFrame.lua"]:3031: in function `ChatFrame_OnEvent' [string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1> Locals: parserEvent = <table> { moneyString = "|cffffffff|Hcurrency:824:0|h[Garrison Resources]|h|r" isMoney = false amount = "16" recipientUnit = "player" eventType = "currency" OriginalText = "You receive currency: |cffffffff|Hcurrency:824:0|h[Garrison Resources]|h|r x16." } idx = nil wasCurrency = false (*temporary) = 1 (*temporary) = nil (*temporary) = "attempt to call global 'GetCurrencyListSize' (a nil value)" mod = <table> { SetDefaultModuleLibraries = <function> defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:367 Enable = <function> defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:294 NewModule = <function> defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:235 EnableModule = <function> defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:332 modules = <table> { } CancelTimer = <function> defined @Ace3\AceTimer-3.0\AceTimer-3.0.lua:147 IterateEmbeds = <function> defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:442 defaultModuleLibraries = <table> { } TimeLeft = <function> defined @Ace3\AceTimer-3.0\AceTimer-3.0.lua:172 ScheduleRepeatingTimer = <function> defined @Ace3\AceTimer-3.0\AceTimer-3.0.lua:129 CancelAllTimers = <function> defined @Ace3\AceTimer-3.0\AceTimer-3.0.lua:160 SetDefaultModulePrototype = <function> defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:409 GetOptions = <function> defined @HowMany\Modules\HMLoot.lua:989 name = "HowMany_HMLoot" IsEnabled = <function> defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:451 orderedModules = <table> { } ScheduleTimer = <function> defined @Ace3\AceTimer-3.0\AceTimer-3.0.lua:94 DisableModule = <function> defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:350 RegisterMessage = <function> defined @Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:90 UnregisterMessage = <function> defined @Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:153 defaultModuleState = true canBeDisabled = true baseName = "HowMany" BAG_UPDATE_DELAYED = <function> defined @HowMany\Modules\HMLoot.lua:534 IsModule = <function> defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:217 db = <table> { } SetDefaultModuleState = <function> defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:387 OnInitialize = <function> defined @HowMany\Modules\HMLoot.lua:973 OnDisable = <function> defined @HowMany\Modules\HMLoot.lua:959 SetEnabledState = <function> defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:424 OnEnable = <function> defined @HowMany\Modules\HMLoot.lua:925 enabledState = true ItemTimerCallback = <function> defined @HowMany\Modules\HMLoot.lua:475 RegisterEvent = <function> defined @Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:90 UnregisterAllMessages = <function> defined @Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:174 Disable = <function> defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:314 UnregisterAllEvents = <function> defined @Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:174 SendMessage = <function> defined @Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:59 IterateModules = <function> defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:437 Info = <function> defined @HowMany\Modules\HMLoot.lua:984 GetModule = <function> defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:210 GetName = <function> defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:279 moduleName = "HMLoot" UnregisterEvent = <function> defined @Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:153 modName = "HMLoot" } string_find = <function> defined =[C]:-1 ItemHash = <table> { } L = <table> { Show Bags Total = "Show Bags Total" Combine Similar Loot Messages = "Combine Similar Loot Message The function that fails is this: -------------------------------------------------------------------------------------------- local function HandleCurrency(parserEvent) if ( not mod.db.profile.trackCurrency ) then return end local idx, wasCurrency wasCurrency = false -- Debug -- DEFAULT_CHAT_FRAME:AddMessage( parserEvent.moneyString ); for idx = 1, GetCurrencyListSize() do local cname, ccount, citemID cname, _, _, _, _, ccount, _, _, citemID = GetCurrencyListInfo(idx) if cname ~= "Legion" and ccount ~= 0 then local matchEnd = string_find(parserEvent.moneyString, cname) -- Debug -- DEFAULT_CHAT_FRAME:AddMessage( cname .. " " .. tostring(ccount) ); -- Check if a match was found. if (matchEnd) then ItemHash[parserEvent.moneyString] = nil -- We don't have to worry about the timer any more, so just forget it. parserEven*****ssageDelayed = false -- we're not combining this message. Just let it go through parserEvent.resultString = " " .. L["You now have"] .. " " .. ccount .. "." wasCurrency = true -- don't bother to search any more break end end end -------------------------------------------------------------------------- Maybe someone with the know how, can fix the function to fix the error. Thanks. |
|
WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Addon Howmany with error since new patch |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Switch to Linear Mode |
Switch to Hybrid Mode |
Threaded Mode |
|
|