
Legion bug
ceylina opened this issue ยท 3 comments
As I left the message on slack, here is the error I get trying to put something on the sell tab. Looks like a few more tweaks are needed to item classes.
Buy seems to work great and no errors on launch or reload so super impressed you patched something together yesterday.
Auctionator\AuctionatorLocalize.lua:354: attempt to get length of local 'itemClasses' (a nil value)
Auctionator\AuctionatorLocalize.lua:354: in function Atr_ItemType2AuctionClass' Auctionator\AuctionatorLocalize.lua:295: in function
Atr_IsClass'
Auctionator\AuctionatorLocalize.lua:270: in function Atr_IsGlyph' Auctionator\Auctionator-4.0.0.lua:4420: in function
Atr_Special_SP_ByItem'
Auctionator\Auctionator-4.0.0.lua:4374: in function Atr_GetStackingPrefs_ByItem' Auctionator\Auctionator-4.0.0.lua:4453: in function
Atr_GetSellStacking'
Auctionator\Auctionator-4.0.0.lua:3000: in function Atr_OnNewAuctionUpdate' Auctionator\Auctionator-4.0.0.lua:194: in function
Atr_EventHandler'
[string ":OnEvent"]:1: in function <[string ":OnEvent"]:1>
[C]: in function ClickAuctionSellItemButton' Auctionator\Auctionator-4.0.0.lua:1548: in function
Atr_ClickAuctionSellItemButton'
Auctionator\Auctionator-4.0.0.lua:1565: in function `Atr_OnDropItem'
[string ":OnReceiveDrag"]:1: in function <[string ":OnReceiveDrag"]:1>
Locals:
itemType = "Tradeskill"
itemClasses = nil
(_temporary) = nil
(_temporary) = nil
(_temporary) = "Atr_ItemType2AuctionClass"
(_temporary) = nil
(_temporary) = nil
(_temporary) = nil
(_temporary) = nil
(_temporary) = nil
(_temporary) = nil
(_temporary) = "attempt to get length of local 'itemClasses' (a nil value)"
zc =
msg_anm = defined @Auctionator\zcUtils.lua:624
msg = defined @Auctionator\zcUtils.lua:724
GetArrayElemOrFirst = defined @Auctionator\zcUtils.lua:161
NumToBool = defined @Auctionator\zcUtils.lua:549
StringStartsWith = defined @Auctionator\zcUtils.lua:917
StringSame = defined @Auctionator\zcUtils.lua:861
padstring = defined @Auctionator\zcUtils.lua:191
GetArrayElemOrNil = defined @Auctionator\zcUtils.lua:176
BoolToNum = defined @Auctionator\zcUtils.lua:539
periodic = defined @Auctionator\zcUtils.lua:368
pluralizeIf = defined @Auctionator\zcUtils.lua:570
msg_pink = defined @Auctionator\zcUtils.lua:596
SetTextIf = defined @Auctionator\zcUtils.lua:47
HSV2RGB = defined @Auctionator\zcUtils.lua:639
LinkFromItemID = defined @Auctionator\zcUtils.lua:492
IsBattlePetLink = defined @Auctionator\zcUtils.lua:434
printableLink = defined @Auctionator\zcUtils.lua:1030
PrintTable = defined @Auctionator\zcUtils.lua:398
PrintKeysSorted = defined @Auctionator\zcUtils.lua:121
Negate = defined @Auctionator\zcUtils.lua:559
IsTextQuoted = defined @Auctionator\zcUtils.lua:941
CopyDeep = defined @Auctionator\zcUtils.lua:1009
UTF8_Truncate = defined @Auctionator\zcUtils.lua:139
val2gsc = defined @Auctionator\zcUtils.lua:774
words = defined @Auctionator\zcUtils.lua:297
tableIsEmpty = defined @Auctionator\zcUtils.lua:386
Max = defined @Auctionator\zcUtils.lua:95
printstack = defined @Auctionator\zcUtils.lua:1054
pluralize = defined @Auctionator\zcUtils.lua:581
RawItemIDfromLink = defined @Auctionator\zcUtils.lua:462
EnableDisable = defined @Auctionator\zcUtils.lua:25
TrimBrackets = defined @Auctionator\zcUtils.lua:980
ParseBattlePetLink = defined @Auctionator\zcUtils.lua:442
ShowHide = defined @Auctionator\zcUtils.lua:36
QuoteString = defined @Auctionator\zcUtils.lua:948
round = defined @Auctionator\zcUtils.lua:589
StringEndsWith = defined @Auctionator\zcUtils.lua:897
priceToMoneyString = defined @Auctionator\zcUtils.lua:828
tallyPrint = defined @Auctionator\zcUtils.lua:1145
msg_yellow = defined @Auctionator\zcUtils.lua:597
If = defined @Auctionator\zcUtils.lua:110
Min = defined @Auctionator\zcUtils.lua:80
msg_str = defined @Auctionator\zcUtils.lua:614
priceToString = defined @Auctionator\zcUtils.lua:792
enc64 = defined @Auctionator\zcUtils.lua:226
Val = defined @Auctionator\zcUtils.lua:58
PullItemIntoMemory = defined @Auctionator\zcUtils.lua:507
msg_ex = defined @addon
So not sure if this is good lua coding, the right wayto do this, making it primed to explode later or not but it seems that trying to define the length of itemclasses isn't working because there is no table to build something to grab the length of (hopefully my poor explanation skills makes sense - defining itemclasses as a table lets you # it later).
I changed line 352 to this
local itemClasses = { Atr_GetAuctionClasses() };
and low and behold we got what we needed in #itemclasses and no annoying errors and the code seemed to run as intended in the sell window. Not sure if it will break or not but at least that moved it forward.
Just tried every GUI options and no errors. I think you got this working (with the one small fix I just did).