b-morgan / Skillet-Classic

World of Warcraft Classic addon
GNU General Public License v3.0
6 stars 6 forks source link

attempt to call field 'GetTradeSkillListLink' (a nil value) #182

Closed Alessandro-Barbieri closed 3 months ago

Alessandro-Barbieri commented 3 months ago

I got this error after opening skillet and clicking on the profession icon above the blue skill bar

1x Skillet-Classic/UI/MainFrame.lua:683: attempt to call field 'GetTradeSkillListLink' (a nil value)
[string "@Skillet-Classic/UI/MainFrame.lua"]:683: in function `TradeButton_OnEnter'
[string "*MainFrame.xml:61_OnEnter"]:1: in function <[string "*MainFrame.xml:61_OnEnter"]:1>

Locals:
self = <table> {
 DeleteIgnoreEntry = <function> defined @Skillet-Classic/UI/IgnoreList.lua:166
 VendorItemAvailable = <function> defined @Skillet-Classic/Inventory.lua:251
 SkillButton_NewGroup = <function> defined @Skillet-Classic/UI/MainFrame.lua:2365
 modules = <table> {
 }
 ClearQueue = <function> defined @Skillet-Classic/SkilletQueue.lua:272
 RecipeGroupInitFlatten = <function> defined @Skillet-Classic/RecipeGroups.lua:436
 MERCHANT_UPDATE = <function> defined @Skillet-Classic/UI/MerchantWindow.lua:197
 SkilletShow = <function> defined @Skillet-Classic/Skillet.lua:1233
 DisplayShoppingList = <function> defined @Skillet-Classic/UI/ShoppingList.lua:1311
 ShowQueueView = <function> defined @Skillet-Classic/UI/MainFrame.lua:3621
 TRADE_POTENTIAL_BIND_ENCHANT = <function> defined @Skillet-Classic/Skillet.lua:1398
 SKILL_LINES_CHANGED = <function> defined @Skillet-Classic/Skillet.lua:987
 ScheduleTimer = <function> defined @ElvUI_Libraries/Core/Ace3/AceTimer-3.0/AceTimer-3.0.lua:94
 FilterDropDown_OnShow = <function> defined @Skillet-Classic/UI/Filtering.lua:83
 castSpellName = "Armure du mage"
 hideTrivialRecipes = false
 RecipeGroupSort = <function> defined @Skillet-Classic/RecipeGroups.lua:410
 EnableResize = <function> defined @Skillet-Classic/UI/Utils.lua:130
 EnchantSpellToItem = <table> {
 }
 db = <table> {
 }
 bankBusy = false
 UpdateNotesWindow = <function> defined @Skillet-Classic/UI/RecipeNotes.lua:123
 interface = 11503
 SetEnabledState = <function> defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:420
 SkilletShowWindow = <function> defined @Skillet-Classic/Skillet.lua:1308
 AdditionalButtonsList = <table> {
 }
 CHAT = <function> defined @Skillet-Classic/DebugAids.lua:83
 IgnoreList_OnScroll = <function> defined @Skillet-Classic/UI/IgnoreList.lua:286
 SortDropdown_OnLoad = <function> defined @Skillet-Classic/UI/Sorting.lua:551
 pluginsOptions = <table> {
 }
 UnregisterAllEvents = <function> defined @Accountant_Classic/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:164
 RecipeGroupFlatten = <function> defined @Skillet-Classic/RecipeGroups.lua:457
 RecipeGroupMoveEntry = <function> defined @Skillet-Classic/RecipeGroups.lua:291
 EnablePauseButton = <function> defined @Skillet-Classic/UI/MainFrame.lua:204
 ReagentButtonSkillSelect = <function> defined @Skillet-Classic/UI/MainFrame.lua:2675
 ShowReagentDetails = <function> defined @Skillet-Classic/UI/MainFrame.lua:3512
 GetTradeSkillTools = <function> defined @Skillet-Classic/TradeskillInfo.lua:237
 bopCheck = <function> defined @Skillet-Classic/UI/MainFrame.lua:1733
 RecipeGroupClearEntries = <function> defined @Skillet-Classic/RecipeGroups.lua:128
 Disable = <function> defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:310
 TABLE = <function> defined @Skillet-Classic/DebugAids.lua:352
 FixBugs = true
 Unhook = <function> defined @Accountant_Classic/Libs/AceHook-3.0/AceHook-3.0.lua:417
 InventoryFilterButton_OnShow = <function> defined @Skillet-Classic/UI/MainFrame.lua:3059
 SetTradeSkillToolTip = <function> defined @Skillet-Classic/UI/MainFrame.lua:1622
 LEARNED_SPELL_IN_TAB = <function> defined @Skillet-Classic/Skillet.lua:929
 ToggleTradeSkillOption = <function> defined @Skillet-Classic/Skillet.lua:1732
 tradeUpdate = 0
 L = <table> {
 }
 button_count = 27
 RemoveFromQueue = <function> defined @Skillet-Classic/SkilletQueue.lua:248
 UNIT_SPELLCAST_INTERRUPTED = <function> defined @S
b-morgan commented 3 months ago

Replace ...\Addons\Skillet-Classic\UI\MainFrame.lua with the contents of the attached zip file and let me know if that fixes it.

MainFrame.zip

Note: The lua error should no longer happen but the link could still be invalid. If that happens, then we are looking at a different problem and I'll need more information including what profession. A screenshot could be helpful.

Alessandro-Barbieri commented 3 months ago

Looks like it's working now