CraftSim

CraftSim

2M Downloads

LUA error in GetMinBuyoutByItemLink when looking at a craft, clears when changing control panel settings

hwlg opened this issue ยท 1 comments

commented

hello.

i opened my profession book today and noticed i got a LUA error from craftsim regarding the GetMinBuyoutByItemLink function in PriceData.lua

12x CraftSim/Pricing/PriceData.lua:116: table index is nil
[string "@CraftSim/Pricing/PriceData.lua"]:116: in function `GetMinBuyoutByItemLink'
[string "@CraftSim/Classes/PriceData.lua"]:139: in function `Update'
[string "@CraftSim/Classes/RecipeData.lua"]:240: in function `new'
[string "@CraftSim/Libs/classic.lua"]:64: in function `RecipeData'
[string "@CraftSim/Init/Init.lua"]:526: in function `TriggerModulesByRecipeType'
[string "@CraftSim/Init/Init.lua"]:85: in function <CraftSim/Init/Init.lua:83>
[string "@CraftSim/Libs/GUTIL/GUTIL.lua"]:564: in function `checkCondition'
[string "@CraftSim/Libs/GUTIL/GUTIL.lua"]:570: in function `WaitFor'
[string "@CraftSim/Init/Init.lua"]:74: in function `TriggerModuleUpdate'
[string "@CraftSim/Init/Init.lua"]:126: in function <CraftSim/Init/Init.lua:106>
[string "=[C]"]: in function `Init'
[string "@Blizzard_Professions/Blizzard_ProfessionsCrafting.lua"]:380: in function `SelectRecipe'
...
[string "@Blizzard_SharedXMLBase/CallbackRegistry.lua"]:147: in function `TriggerEvent'
[string "@Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeList.lua"]:137: in function <...fessionsTemplates/Blizzard_ProfessionsRecipeList.lua:124>
[string "=[C]"]: ?
[string "@Blizzard_SharedXMLBase/CallbackRegistry.lua"]:144: in function <...eBlizzard_SharedXMLBase/CallbackRegistry.lua:143>
[string "=[C]"]: ?
[string "@Blizzard_SharedXMLBase/CallbackRegistry.lua"]:147: in function `TriggerEvent'
[string "@Blizzard_SharedXML/Shared/Scroll/ScrollUtil.lua"]:515: in function `SetElementDataSelected_Internal'
[string "@Blizzard_SharedXML/Shared/Scroll/ScrollUtil.lua"]:480: in function `SelectElementData'
[string "@Blizzard_SharedXML/Shared/Scroll/ScrollUtil.lua"]:520: in function `Select'
[string "@Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeList.lua"]:58: in function <...fessionsTemplates/Blizzard_ProfessionsRecipeList.lua:46>

Locals:
self = <table> {
 overrideResultProfits = <table> {
 }
 noPriceDataLinks = <table> {
 }
}
itemLink = nil
isReagent = nil
forceAHPrice = nil
considerSubCrafts = nil
ahPrice = nil
priceInfo = <table> {
 ahPrice = 0
 noAHPriceFound = true
 isOverride = false
 noPriceSource = false
 isAHPrice = false
 isExpectedCost = false
}
(*temporary) = <table> {
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "table index is nil"
CraftSim = <table> {
 COOLDOWNS = <table> {
 }
 STATISTICS = <table> {
 }
 OPTIONAL_REAGENT_DATA = <table> {
 }
 NEWS = <table> {
 }
 CraftRecipeData = <table> {
 }
 DEBUG = <table> {
 }
 PRICE_DETAILS = <table> {
 }
 ProfessionGear = <table> {
 }
 CRAFT_BUFFS = Frame {
 }
 NodeData = <table> {
 }
 PRICE_OVERRIDE = <table> {
 }
 NodeRule = <table> {
 }
 LOCAL_MX = <table> {
 }
 ENCHANT_RECIPE_DATA = <table> {
 }
 REAGENT_DATA = <table> {
 }
 COST_OPTIMIZATION = <table> {
 }
 EXPLANATIONS = <table> {
 }
 LibCompress = <table> {
 }
 TopGearResult = <table> {
 }
 ReagentData = <table> {
 }
 LOCAL_DE = <table> {
 }
 SUPPORTERS = <table> {
 }
 OptionalReagentSlot = <table> {
 }
 Reagent = <table> {
 }
 PRICE_APIS = <table> {
 }
 LOCAL_FR = <table> {
 }
 SPECIALIZATION_DATA = <table> {
 }
 LOCAL = <table> {
 }
 UTIL = <table> {
 }
 LOCAL_ES = <table> {
 }
 CraftSimObject = <table> {
 }
 BuffData = <table> {
 }
 ITEM_COUNT = Frame {
 }
 TOPGEAR = <table> {
 }
 PriceData = <table> {
 }
 OptionalReagent = <table> {
 }
 COMM = <table> {
 }
 LOCAL_IT = <table> {
 }
 CONTROL_PANEL = <table> {
 }
 ResultData = <table> {
 }
 CraftQueueItem = <table> {
 }
 RECIPE_SCAN = <table> {
 }
 AVERAGEPROFIT = <table> {
 }
 CraftQueue = <table> {
 }
 Buff = <table> {
 }
 JSONBuilder = <table> {
 }
 SIMULATION_MODE = <table> {
 }
 CraftSessionData = <table> {
 }
 OPTIONS = <table> {
 }
 CraftResultSavedReagent = <table> {
 }
 INIT = Frame {
 }
 CALC = <table> {
 }
 ProfessionGearSet = <table> {
 }
 SpecializationData = <table> {
 }
 ProfessionData = <table> {
 }
 LOCAL_RU = <table> {
 }
 CraftResultItem = <table> {
 }
 CraftResult = <table> {
 }
 PRICEDATA = <table> {
 }
 LOCAL_CN = <table> {
 }
 ReagentOptimizationResult = <table> {
 }
 LOCAL_EN = <table> {
 }
 Statweights = <table> {
 }
 ProfessionStat = <table> {
 }
 LOCAL_PT = <table> {
 }
 CRAFT_RESULTS = Frame {
 }
 SalvageReagentSlot = <table> {
 }
 GUTIL = <table> {
 }
 CUSTOMER_HISTORY = Frame {
 }
 ProfessionStats = <table> {
 }
 LibIcon = <table> {
 }
 ReagentListItem = <table> {
 }
 ReagentItem = <table> {
 }
 IDCategory = <table> {
 }
 FRAME = <table> {
 }
 RecipeData = <table> {
 }
 REAGENT_OPTIMIZATION = <table> {
 }
 GGUI = <table> {
 }
 LOCAL_KO = <table> {
 }
 Object = <table> {
 }
 LOCAL_TW = <table> {
 }
 DB = <table> {
 }
 CooldownData = <table> {
 }
 PRICE_API = <table> {
 }
 SPECIALIZATION_INFO = <table> {
 }
 CONST = <table> {
 }
 CRAFTQ = Frame {
 }
 IDMapping = <table> {
 }
 MEDIA = <table> {
 }
}
GUTIL = <table> {
 COLORS = <table> {
 }
 Object = <table> {
 }
 eventWaitFrame = Frame {
 }
 Formatter = <table> {
 }
}

when this error occurred, TSM and CraftSim were the only two addons enabled other than bugsack/buggrabber. i tried clean installing the addon (deleting craftsim and savedvariables) but the error persisted. the error prevents the profit window from showing:

17f0d90c4e450c326d3fb2f4087d4e0c

TSM is set as the current price source in craftsim options:

bed2df5a79c4e0fc223bcb17b3e20488

i was able to make the profit window come back and the error disappear by checking and then unchecking 'material optimization' in the control panel at the top:

11ce0bf409fc1151adb9feffb72e00da

however, that only seemed to clear the issue for that particular craft. if i opened another craft, i had to repeat the same steps again to get the profit window back and clear the error:

a966aee9e69ea815ad9cd85f9df4e104

testing showed that pretty much any of the control panel options could be checked/unchecked to get rid of the error, although some (like Specialization Info) had to be tried multiple times for it to work.

while i can fix crafts individually it does seem to halt anything that needs a price source (ie. recipe scan) so a lot of functions are unusable right now for me.

commented

source is probably an update to vendor price fetching from tsm / auctionator not compatible with craftsim currently, so needs an update
will be tracking here: #329 same error source