CraftSim

CraftSim

2M Downloads

Bug: Cost Details lua error related to Craft Data

domi1294 opened this issue ยท 1 comments

commented

Thought I would open a new issue for this because I'm getting this error again and not quite sure why.

This time it happened whenever I opened the Cost Details window for or a recipe with an embellishment slot or switched to one with the Cost Details window already open. I fixed it by removing Craft Data for "Magazine of Healing Darts".
I played around with it a bit more trying to reproduce the issue and then noticed that I get the same error when I add Craft Data for Illustrious Insight with all professions for recipes that can use Illustrious Insight, removing this Craft Data immediately stops the error from happening. Disabling TSM also stops the error from happening and enabling it causes it to happen again.
Hope this helps with reproducing the error, if you need any more info let me know.

54x ...rfaceCraftSim/Modules/CostDetails/Frames.lua:224: attempt to call method 'SetCraftData' (a nil value)
[string "@CraftSim/Modules/CostDetails/Frames.lua"]:224: in function `fillFunc'
[string "@CraftSim/Libs/GGUI-1.0/GGUI.lua"]:2058: in function `Add'
[string "@CraftSim/Modules/CostDetails/Frames.lua"]:199: in function `UpdateDisplay'
[string "@CraftSim/Main/CraftSim.lua"]:598: in function `TriggerModulesByRecipeType'
[string "@CraftSim/Main/CraftSim.lua"]:189: in function `TriggerModulesErrorSafe'
[string "@CraftSim/Main/CraftSim.lua"]:234: in function <CraftSim/Main/CraftSim.lua:207>
[string "=[C]"]: ?
[string "=[C]"]: in function `Init'
[string "@Blizzard_Professions/Blizzard_ProfessionsCrafting.lua"]:287: in function `SelectRecipe'
[string "@Blizzard_Professions/Blizzard_ProfessionsCrafting.lua"]:276: in function <...lizzard_Professions/Blizzard_ProfessionsCrafting.lua:267>
[string "=[C]"]: ?
[string "@SharedXML/CallbackRegistry.lua"]:143: in function <SharedXML/CallbackRegistry.lua:142>
[string "=[C]"]: ?
[string "@SharedXML/CallbackRegistry.lua"]:146: in function `TriggerEvent'
[string "@Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeList.lua"]:125: in function <...fessionsTemplates/Blizzard_ProfessionsRecipeList.lua:112>
[string "=[C]"]: ?
[string "@SharedXML/CallbackRegistry.lua"]:143: in function <SharedXML/CallbackRegistry.lua:142>
[string "=[C]"]: ?
[string "@SharedXML/CallbackRegistry.lua"]:146: in function `TriggerEvent'
[string "@SharedXML/Scroll/ScrollUtil.lua"]:383: in function `SetElementDataSelected_Internal'
[string "@SharedXML/Scroll/ScrollUtil.lua"]:348: in function `SelectElementData'
[string "@SharedXML/Scroll/ScrollUtil.lua"]:388: in function `Select'
[string "@Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeList.lua"]:58: in function <...fessionsTemplates/Blizzard_ProfessionsRecipeList.lua:46>

Locals:
row = <table> {
 active = false
 frame = Frame {
 }
 columns = <table> {
 }
 isGGUI = true
}
price = 200000000
priceInfo = <table> {
 craftData = <table> {
 }
 isCraftData = true
 noAHPriceFound = true
 craftDataExpectedCosts = 200000000
 ahPrice = 0
}
(*temporary) = nil
(*temporary) = Frame {
 0 = <userdata>
 SetAH = <function> defined @CraftSim/Modules/CostDetails/Frames.lua:122
 SetUnknown = <function> defined @CraftSim/Modules/CostDetails/Frames.lua:132
 text = <table> {
 }
 SetOverride = <function> defined @CraftSim/Modules/CostDetails/Frames.lua:125
 SetCrafter = <function> defined @CraftSim/Modules/CostDetails/Frames.lua:129
}
(*temporary) = "attempt to call method 'SetCraftData' (a nil value)"
optionalReagent = <table> {
 professionStats = <table> {
 }
 item = <table> {
 }
}
commented

Found the bug! Will be fixed in 8.4.0+