
|
If you were logged in you would be able to see more operations.
|
|
|
|
**Jotting down notes for myself so I remember tomorrow
While tracking down why SearchUI would occasionally cease to function. After queuing a selection of buys, searchUI would cease prompting me, even though not all the items had been searched for.
I found that the private.BuyRequests table to have the items queued, and new entries were being added but none processed.
it seems the onUpdate lines were preventing that from running
if (not private.CurAuction["link"]) and (#private.BuyRequests > 0) then
lib.PushSearch()
end
private.CurAuction["link"] would always exists so no new scan was pushed.
it seems the issue lies in function lib.FinishedSearch(query) there is no fallback for what happens if the finished scan does not match up exactly with the private.CurAuction["link"]
function lib.FinishedSearch(query)
if private.CurAuction["link"] then
local _, _, rarity, _, minlevel, _, _, _, equiploc = GetItemInfo(private.CurAuction["link"])
if minlevel == 0 then
minlevel = nil
end
if equiploc == "" then
equiploc = nil
end
if (rarity == query.quality) and (minlevel == query.minUseLevel) and (equiploc == query.invType)
and (private.CurAuction["itemname"] == query.name) then
print("AucAdv: Auction for "..private.CurAuction["link"].." no longer exists")
private.CurAuction = {}
end
end
end
|
|
Description
|
**Jotting down notes for myself so I remember tomorrow
While tracking down why SearchUI would occasionally cease to function. After queuing a selection of buys, searchUI would cease prompting me, even though not all the items had been searched for.
I found that the private.BuyRequests table to have the items queued, and new entries were being added but none processed.
it seems the onUpdate lines were preventing that from running
if (not private.CurAuction["link"]) and (#private.BuyRequests > 0) then
lib.PushSearch()
end
private.CurAuction["link"] would always exists so no new scan was pushed.
it seems the issue lies in function lib.FinishedSearch(query) there is no fallback for what happens if the finished scan does not match up exactly with the private.CurAuction["link"]
function lib.FinishedSearch(query)
if private.CurAuction["link"] then
local _, _, rarity, _, minlevel, _, _, _, equiploc = GetItemInfo(private.CurAuction["link"])
if minlevel == 0 then
minlevel = nil
end
if equiploc == "" then
equiploc = nil
end
if (rarity == query.quality) and (minlevel == query.minUseLevel) and (equiploc == query.invType)
and (private.CurAuction["itemname"] == query.name) then
print("AucAdv: Auction for "..private.CurAuction["link"].." no longer exists")
private.CurAuction = {}
end
end
end |
Show » |
|