View Single Post
11-08-20, 03:22 AM   #5
Grungra
A Deviate Faerie Dragon
Join Date: Jan 2010
Posts: 14
Thanks for the input, the difference in line numbers happens because I've added the different reputations that have shown up since the addon was last updated. But to be in the same page, reverted back to the last version, updated ace 3 files, after making the correction to line 578 now the error is:

1x HowMany\Modules\HMLoot.lua:581: attempt to call global 'GetCurrencyListInfo' (a nil value)
[string "@HowMany\Modules\HMLoot.lua"]:581: in function <HowMany\Modules\HMLoot.lua:570>
[string "@HowMany\Modules\HMLoot.lua"]:854: in function <HowMany\Modules\HMLoot.lua:846>
[string "@HowMany\Modules\HMLoot.lua"]:874: 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 = "20"
recipientUnit = "player"
eventType = "currency"
OriginalText = "You receive currency: |cffffffff|Hcurrency:824:0|h[Garrison Resources]|h|r x20."
}
idx = nil
wasCurrency = false
(for index) = 1
(for limit) = 8
(for step) = 1
idx = 1
cname = nil
ccount = nil
citemID = nil
(*temporary) = nil
(*temporary) = 1
(*temporary) = "attempt to call global 'GetCurrencyListInfo' (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:964
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:520
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:948
OnDisable = <function> defined @HowMany\Modules\HMLoot.lua:934
SetEnabledState = <function> defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:424
OnEnable = <function> defined @HowMany\Modules\HMLoot.lua:900
enabledState = true
ItemTimerCallback = <function> defined @HowMany\Modules\HMLoot.lua:461
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:959
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

-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------

After applying the same fix (C_CurrencyInfo.) to the global, the new error is:


1x HowMany\Modules\HMLoot.lua:583: bad argument #2 to 'string_find' (string expected, got table)
[string "=[C]"]: ?
[string "@HowMany\Modules\HMLoot.lua"]:583: in function <HowMany\Modules\HMLoot.lua:570>
[string "@HowMany\Modules\HMLoot.lua"]:854: in function <HowMany\Modules\HMLoot.lua:846>
[string "@HowMany\Modules\HMLoot.lua"]:874: 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:
(*temporary) = "|cffffffff|Hcurrency:824:0|h[Garrison Resources]|h|r"
(*temporary) = <table> {
canEarnPerWeek = false
quantityEarnedThisWeek = 0
isHeaderExpanded = true
isTradeable = false
maxQuantity = 0
maxWeeklyQuantity = 0
isHeader = true
name = "Warlords of Draenor"
isTypeUnused = false
isShowInBackpack = false
discovered = false
quantity = 0
quality = 0
}
(*temporary) = "string expected, got table"

------------------------------------------------------------------------------------------

Any insights on what would be a fix for the latest error? Thanks in advance.

(edit) I should add, the errors only happen if you collect some of the garrison resources, other loot such as items, money etc will parse normal.

Last edited by Grungra : 11-08-20 at 03:25 AM.
  Reply With Quote