Auction House - Custom Categories

Auction House - Custom Categories

6.6k Downloads

Lua Error

Jaidy88 opened this issue ยท 3 comments

commented

I just get a Lua Error an see nothing:

1x AuctionHouseCustomCategories/sort.lua:14: attempt to compare string with nil
[string "@AuctionHouseCustomCategories/sort.lua"]:14: in function <AuctionHouseCustomCategories/sort.lua:14>
[string "=[C]"]: in function sort' [string "@AuctionHouseCustomCategories/sort.lua"]:65: in function sortResult'
[string "@AuctionHouseCustomCategories/AHCC.lua"]:72: in function <AuctionHouseCustomCategories/AHCC.lua:49>

Locals:
k1 =

{
itemKey =
{
}
stat2 = 0
name = "Gyroskopisches Kaleidoskop"
stat1 = 11
containsOwnerItem = false
minPrice = 1
totalQuantity = 1
quality = 3
}
k2 =
{
itemKey =
{
}
stat2 = 0
totalQuantity = 1
stat1 = 1
minPrice = 1
containsOwnerItem = false
quality = 3
}
(*temporary) = "Gyroskopisches Kaleidoskop"
(*temporary) = nil
(*temporary) = "attempt to compare string with nil"
key = "name"

commented

2x AuctionHouseCustomCategories/sort.lua:14: attempt to compare two nil values
[string "@AuctionHouseCustomCategories/sort.lua"]:14: in function <AuctionHouseCustomCategories/sort.lua:14>
[string "=[C]"]: in function sort' [string "@AuctionHouseCustomCategories/sort.lua"]:65: in function sortResult'
[string "@AuctionHouseCustomCategories/AHCC.lua"]:72: in function <AuctionHouseCustomCategories/AHCC.lua:49>

Locals:
k1 =

{
itemKey =
{
}
stat2 = 0
totalQuantity = 1
stat1 = 7
minPrice = 1
containsOwnerItem = false
quality = 3
}
k2 =
{
itemKey =
{
}
stat2 = 0
totalQuantity = 1
stat1 = 7
minPrice = 1
containsOwnerItem = false
quality = 3
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to compare two nil values"
key = "name"

commented

Hi @Jaidy88, thank you for reporting that issue.
Took me a bit to find the problem, but i think i fixed that now.

commented

Amazing :) works