# HG changeset patch # User Zerotorescue # Date 1287255519 -7200 # Node ID 417c3cfb962382544390197b677b8889a3e84ee3 # Parent 10a2244f7ff00555a78d8297edd8e1025039885b GetItemInfo seems to be changed in 4.0.1, but I can?t find proper documentation on the changes done... Well anyway, whenever your items cache has been reset, Inventorium should continue default to itemname and link ?Unknown (#ITEMID)? and white rarity. diff -r 10a2244f7ff0 -r 417c3cfb9623 Inventorium.toc --- a/Inventorium.toc Tue Oct 12 02:11:23 2010 +0200 +++ b/Inventorium.toc Sat Oct 16 20:58:39 2010 +0200 @@ -3,7 +3,7 @@ ## Notes: Keep track of items you wish to keep enough stock on, and refill. ## Author: Zerotorescue ## Version: @project-version@ -## SavedVariables: InventoryDB +## SavedVariables: InventoriumDB ## Dependencies: Altoholic ## OptionalDeps: Auc-Advanced, Auc-ScanData, AdvancedTradeSkillWindow, Skillet, GnomeWorks, Auctionator diff -r 10a2244f7ff0 -r 417c3cfb9623 Summary.lua --- a/Summary.lua Tue Oct 12 02:11:23 2010 +0200 +++ b/Summary.lua Sat Oct 16 20:58:39 2010 +0200 @@ -251,16 +251,22 @@ if not itemsCache[groupName] then itemsCache[groupName] = {}; + local unknownItemName = "Unknown (#%d)"; + -- Sort item list - for itemId in pairs(values.items) do + for itemId, _ in pairs(values.items) do local itemName, itemLink, itemRarity = GetItemInfo(itemId); + if not itemRarity then + print(itemId .. ": " .. itemName .. " - " .. itemLink); + end + table.insert(itemsCache[groupName], { id = itemId, - name = itemName, - link = itemLink, + name = itemName or unknownItemName:format(itemId), + link = itemLink or unknownItemName:format(itemId), value = ((priceThreshold == 0) and 0) or -3,-- if no price threshold is set for this item, then don't look it up either --addon:GetAuctionValue(itemLink), - rarity = itemRarity, + rarity = itemRarity or 1, count = -3,--addon:GetItemCount(itemId), set = {}, });