Journalator

Journalator

145k Downloads

Lua error when purchasing cooking recipes in Dalaran

b-morgan opened this issue ยท 5 comments

commented

Please include as much of the following information as possible to help me fix the bug:

Brief Description of Bug

I get the following Lua error when purchasing cooking recipes in Dalaran. Journalator version is 1.37.

Steps to Reproduce

Purchase a recipe from the cooking supplies vendor in Dalaran.

Loaded Addons

Lots of them. Perhaps you could provide instructions on how to generate this list.

Back Trace (LUA Error Output)

2x Journalator/Source/Utilities.lua:149: attempt to call field 'GetCurrencyListSize' (a nil value)
[string "@Journalator/Source/Utilities.lua"]:149: in function GetCurrencyID' [string "@Journalator/Source/Monitor/VendorItems.lua"]:430: in function <...ceJournalator/Source/Monitor/VendorItems.lua:415> [string "=[C]"]: in function BuyMerchantItem'
[string "@FrameXML/StaticPopup.lua"]:280: in function OnAccept' [string "@FrameXML/StaticPopup.lua"]:5235: in function StaticPopup_OnClick'
[string "*StaticPopup.xml:24_OnClick"]:1: in function <[string "*StaticPopup.xml:24_OnClick"]:1>

Locals:
currencyName = "Epicurean's Award"
index = 0
(*temporary) = nil
(*temporary) = "attempt to call field 'GetCurrencyListSize' (a nil value)"
currencyMap =

{
}

commented

Same error with 1.38:

1x Journalator/Source/Utilities.lua:68: attempt to call field 'GetCurrencyListSize' (a nil value)
[string "@Journalator/Source/Utilities.lua"]:68: in function GetCurrencyID' [string "@Journalator/Source/Monitor/VendorItems.lua"]:432: in function <...ceJournalator/Source/Monitor/VendorItems.lua:417> [string "=[C]"]: in function BuyMerchantItem'
[string "@FrameXML/StaticPopup.lua"]:280: in function OnAccept' [string "@FrameXML/StaticPopup.lua"]:5235: in function StaticPopup_OnClick'
[string "*StaticPopup.xml:24_OnClick"]:1: in function <[string "*StaticPopup.xml:24_OnClick"]:1>

Locals:
currencyName = "Epicurean's Award"
index = 0
(*temporary) = nil
(*temporary) = "attempt to call field 'GetCurrencyListSize' (a nil value)"
currencyMap =

{
}

commented

Dump: C_CurrencyInfo
C_CurrencyInfo={
GetCurrencyInfo=,
GetCurrencyInfoFromLink=,
GetCurrencyContainerInfo=,
GetCurrencyListLink=,
GetBasicCurrencyInfo=
}

Dump: value=GetCurrencyListSize()
[1]=14

commented

I've added a fix that is now in the next release (1.39) available from Curseforge/Wago when it finishes processing, or here:
Journalator-1.39.zip

commented

I saw there was an alpha so I downloaded that. Switching to 1.39 now. I'm running out of "Epicurean's Award" currency. Might have enough for one more recipe! ๐Ÿ˜‹

commented

1.39: ๐Ÿ™„
1x Journalator/Source/Utilities.lua:89: table index is nil
[string "@Journalator/Source/Utilities.lua"]:89: in function GetCurrencyID' [string "@Journalator/Source/Monitor/VendorItems.lua"]:432: in function <...ceJournalator/Source/Monitor/VendorItems.lua:417> [string "=[C]"]: in function BuyMerchantItem'
[string "@FrameXML/StaticPopup.lua"]:280: in function OnAccept' [string "@FrameXML/StaticPopup.lua"]:5235: in function StaticPopup_OnClick'
[string "*StaticPopup.xml:24_OnClick"]:1: in function <[string "*StaticPopup.xml:24_OnClick"]:1>

Locals:
currencyName = "Epicurean's Award"
index = 2
info = "Emblem of Heroism"
link = "|cffa335ee|Hcurrency:101:0|h[Emblem of Heroism]|h|r"
(*temporary) =

{
}
(*temporary) = nil
(*temporary) = 101
(*temporary) = "|cffa335ee|Hcurrency:101:0|h[Emblem of Heroism]|h|r"
(*temporary) = "table index is nil"
currencyMap =
{
}
GetCurrencyListSize = defined =[C]:-1
GetCurrencyListInfo = defined =[C]:-1
ExpandCurrencyList = defined =[C]:-1
GetCurrencyListLink = defined =[C]:-1
GetCurrencyIDFromLink = defined @Journalator/Source/Utilities.lua:62