Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in 6.2 #35

Open
Vilkku opened this issue Jun 25, 2015 · 3 comments
Open

Error in 6.2 #35

Vilkku opened this issue Jun 25, 2015 · 3 comments

Comments

@Vilkku
Copy link

Vilkku commented Jun 25, 2015

I get the following error (captured with BugSack) when opening the vendor window for Ravenspeaker Thelnaas:

3x ...dOns\GnomishVendorShrinker\GnomishVendorShrinker-6.0.0.17.lua:253: attempt to index local 'texture' (a nil value)
...dOns\GnomishVendorShrinker\GnomishVendorShrinker-6.0.0.17.lua:253: in function <...dOns\GnomishVendorShrinker\GnomishVendorShrinker.lua:244>
...dOns\GnomishVendorShrinker\GnomishVendorShrinker-6.0.0.17.lua:307: in function <...dOns\GnomishVendorShrinker\GnomishVendorShrinker.lua:300>
...dOns\GnomishVendorShrinker\GnomishVendorShrinker-6.0.0.17.lua:402: in function <...dOns\GnomishVendorShrinker\GnomishVendorShrinker.lua:398>
[C]: in function `Show'
FrameXML\UIParent.lua:2165: in function `SetUIPanel'
FrameXML\UIParent.lua:2009: in function `ShowUIPanel'
FrameXML\UIParent.lua:1880: in function <FrameXML\UIParent.lua:1876>
[C]: in function `SetAttribute'
FrameXML\UIParent.lua:2630: in function `ShowUIPanel'
FrameXML\MerchantFrame.lua:31: in function <FrameXML\MerchantFrame.lua:24>

Locals:
n = 15
row = 2
n_searchmatch = 1
(for index) = 2
(for limit) = 15
(for step) = 1
i = 2
link = "|cffffffff|Hcurrency:994|h[Seal of Tempered Fate]|h|r"
ItemSearch = <table> {
 RegisterTypedSearch = <function> defined @GnomishVendorShrinker\LibItemSearch-1.0.lua:110
 GetTypedSearches = <function> defined @GnomishVendorShrinker\LibItemSearch-1.0.lua:114
 FindUnionSearch = <function> defined @GnomishVendorShrinker\LibItemSearch-1.0.lua:46
 Find = <function> defined @GnomishVendorShrinker\LibItemSearch-1.0.lua:27
 FindNegatableSearch = <function> defined @GnomishVendorShrinker\LibItemSearch-1.0.lua:82
 FindTypedSearch = <function> defined @GnomishVendorShrinker\LibItemSearch-1.0.lua:122
 FindIntersectSearch = <function> defined @GnomishVendorShrinker\LibItemSearch-1.0.lua:67
 Compare = <function> defined @GnomishVendorShrinker\LibItemSearch-1.0.lua:142
 GetTypedSearch = <function> defined @GnomishVendorShrinker\LibItemSearch-1.0.lua:118
}
searchstring = nil
offset = 0
NUMROWS = 14
ShowMerchantItem = <function> defined @GnomishVendorShrinker\GnomishVendorShrinker.lua:244
rows = <table> {
 1 = <unnamed> {
 }
 2 = <unnamed> {
 }
 3 = <unnamed> {
 }
 4 = <unnamed> {
 }
 5 = <unnamed> {
 }
 6 = <unnamed> {
 }
 7 = <unnamed> {
 }
 8 = <unnamed> {
 }
 9 = <unnamed> {
 }
 10 = <unnamed> {
 }
 11 = <unnamed> {
 }
 12 = <unnamed> {
 }
 13 = <unnamed> {
 }
 14 = <unnamed> {
 }
}
scrollbar = <unnamed> {
 0 = <userdata>
}

It doesn't seem to hinder functionality (i.e. the vendor window still gets the Gnomish "treatment").

@MeatyChunks
Copy link

Getting this too. The items are a bit scrambled though, highlighting Gemcutter Module: Multistrike will purchase a Baleful Hood when clicked.

If you reload and click that vendor first instead of the one next to him it will only show the first item in the list instead with loads of whitespace below it and display these errors:

Message: ...dOns\GnomishVendorShrinker\GnomishVendorShrinker.lua:261: attempt to index local 'texture' (a nil value)
Time: 06/26/15 19:50:50
Count: 1
Stack: ...dOns\GnomishVendorShrinker\GnomishVendorShrinker.lua:261: in function <...dOns\GnomishVendorShrinker\GnomishVendorShrinker.lua:244>
...dOns\GnomishVendorShrinker\GnomishVendorShrinker.lua:311: in function <...dOns\GnomishVendorShrinker\GnomishVendorShrinker.lua:304>
...dOns\GnomishVendorShrinker\GnomishVendorShrinker.lua:397: in function <...dOns\GnomishVendorShrinker\GnomishVendorShrinker.lua:395>
[C]: in function `SetValue'
...dOns\GnomishVendorShrinker\GnomishVendorShrinker.lua:408: in function <...dOns\GnomishVendorShrinker\GnomishVendorShrinker.lua:405>
[C]: in function `Show'
...dOns\GnomishVendorShrinker\GnomishVendorShrinker.lua:430: in function <...dOns\GnomishVendorShrinker\GnomishVendorShrinker.lua:428>
[C]: in function `MerchantFrame_UpdateMerchantInfo'
Interface\FrameXML\MerchantFrame.lua:97: in function `MerchantFrame_Update'
Interface\FrameXML\MerchantFrame.lua:62: in function <Interface\FrameXML\MerchantFrame.lua:52>
[C]: in function `Show'
Interface\FrameXML\UIParent.lua:2165: in function `SetUIPanel'
Interface\FrameXML\UIParent.lua:2009: in function `ShowUIPanel'
Interface\FrameXML\UIParent.lua:1880: in function <Interface\FrameXML\UIParent.lua:1876>
[C]: in function `SetAttribute'
Interface\FrameXML\UIParent.lua:2630: in function `ShowUIPanel'
Interface\FrameXML\MerchantFrame.lua:31: in function <Interface\FrameXML\MerchantFrame.lua:24>

Locals: row = <unnamed> {
 0 = <userdata>
 ItemName = <unnamed> {
 }
 GetAltCurrencyFrame = <function> defined @Interface\AddOns\GnomishVendorShrinker\GnomishVendorShrinker.lua:115
 ItemPrice = <unnamed> {
 }
 backdrop = <unnamed> {
 }
 BuyItem = <function> defined @Interface\AddOns\GnomishVendorShrinker\GnomishVendorShrinker.lua:65
 altframes = <table> {
 }
 popout = <unnamed> {
 }
 icon = <unnamed> {
 }
 AddAltCurrency = <function> defined @Interface\AddOns\GnomishVendorShrinker\GnomishVendorShrinker.lua:141
}
i = 2
name = "Seal of Tempered Fate"
itemTexture = "Interface\Icons\ability_animusorbs"
itemPrice = 2850000
itemStackCount = 1
numAvailable = -1
isUsable = true
extendedCost = true
link = "[Seal of Tempered Fate]"
color = ""
name = nil
link2 = nil
quality = nil
iLevel = nil
reqLevel = nil
class = nil
subclass = nil
maxStack = nil
equipSlot = nil
texture = nil
vendorPrice = nil
id = nil
is_heirloom = false
(*temporary) = "Recipe"
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'texture' (a nil value)"
quality_colors = <table> {
 1 = ""
 2 = ""
 3 = ""
 4 = ""
 5 = ""
 6 = ""
 7 = ""
 0 = ""
}
grads = <table> {
 2 = <table> {
 }
 3 = <table> {
 }
 1 = <table> {
 }
 4 = <table> {
 }
 7 = <table> {
 }
 red = <table> {
 }
}
ns = <table> {
 is_six_one = false
 knowns = <table> {
 }
 GSC = <function> defined @Interface\AddOns\GnomishVendorShrinker\tekFunks\gsc.lua:4
 ids = <table> {
 }
}
RECIPE = "Recipe"
GARRISON_ICON = "inv_garrison_blueprints%d%.blp"
GAP = 4

@MedianAura
Copy link

I have fixed this problem on my copy by changing line 250 with this

local name, quality, texture

if string.find(link, "currency") == nil then
name, _, quality, _, _, class, _, _, _, texture = GetItemInfo(link)
else
name, _, texture, _, _, _, _, quality = GetCurrencyInfo(link)
end

I am just checking the link text to see if it's a currency or item and then I grab the info depending on weather it's a currency or item.

@Talyrius
Copy link
Contributor

Talyrius commented Sep 7, 2016

This can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants