CraftSim

CraftSim

2M Downloads

Lua error when crafting a smithing work order: "CraftSim/Modules/CraftResults/Frames.lua:198: attempt to concatenate a nil value"

KyrosKrane opened this issue ยท 2 comments

commented

I've done a lot of work orders, and this is the first time I see this error. This was on upgrading a 412 Unstable Frostfire Belt; my guaranteed result was 415 with inspire to 418. It did inspire. Not sure what about this order caused the error message.

1x ...faceCraftSim/Modules/CraftResults/Frames.lua:198: attempt to concatenate a nil value
[string "@CraftSim/Modules/CraftResults/Frames.lua"]:198: in function `UpdateItemList'
[string "@CraftSim/Modules/CraftResults/CraftResults.lua"]:110: in function `AddCraftData'
[string "@CraftSim/Modules/CraftResults/CraftResults.lua"]:165: in function `AddResult'
[string "@CraftSim/Modules/CraftResults/CraftResults.lua"]:225: in function `callback'
[string "@CraftSim/Libs/GUTIL-1.0/GUTIL.lua"]:332: in function `ContinueOnAllItemsLoaded'
[string "@CraftSim/Modules/CraftResults/CraftResults.lua"]:224: in function `processCraftResults'
[string "@CraftSim/Modules/CraftResults/CraftResults.lua"]:42: in function <...ddOns/CraftSim/Modules/CraftResults/CraftResults.lua:41>

Locals:
self = <table> {
 UpdateRecipeData = <function> defined @CraftSim/Modules/CraftResults/Frames.lua:77
 UpdateItemList = <function> defined @CraftSim/Modules/CraftResults/Frames.lua:178
 Init = <function> defined @CraftSim/Modules/CraftResults/Frames.lua:7
}
craftResultFrame = <table> {
 statusList = <table> {
 }
 collapseable = true
 originalAnchorB = "TOPLEFT"
 isGGUI = true
 originalOffsetX = 0
 frameID = "CRAFT_RESULTS"
 content = Frame {
 }
 title = <table> {
 }
 moveable = true
 originalOffsetY = 10
 originalAnchorParent = Frame {
 }
 closeable = true
 frame = Frame {
 }
 scrollableContent = false
 originalY = 450
 originalX = 700
 originalAnchorA = "TOPLEFT"
 collapsed = false
 frameStrata = "FULLSCREEN"
}
craftResultItems = <table> {
 1 = <table> {
 }
 2 = <table> {
 }
 3 = <table> {
 }
}
craftedItemsText = "1 x |cffa335ee|Hitem:190523::::::::70:70::13:6:8836:8840:8902:8960:8801:8845:4:28:2164:38:7:40:157:44:197921:::::|h[Frostfire Legguards of Preparation |A:Professions-ChatIcon-Quality-Tier4:17:17::1|a]|h|r
1 x |cffa335ee|Hitem:190523::::::::70:70::13:6:8836:8840:8902:8960:8802:8845:4:28:2164:38:8:40:157:44:197921:::::|h[Frostfire Legguards of Preparation |A:Professions-ChatIcon-Quality-Tier5:17:17::1|a]|h|r
1 x |cffa335ee|Hitem:190501::::::::70:66::13:7:8836:8840:8902:7936:8802:8846:8794:7:28:2164:29:40:30:49:38:8:40:173:44:198046:45:194575:::::|h[Primal Molten Greatbelt |A:Professions-ChatIcon-Quality-Tier5:17:17::1|a]|h|r
"
savedReagentsText = "
Saved Reagents:
"
(for generator) = <function> defined =[C]:-1
(for state) = <table> {
 1 = <table> {
 }
}
(for control) = 1
_ = 1
savedReagent = <table> {
 savedCosts = 2340000
 quantity = 3
 item = <table> {
 }
 qualityID = 2
}
(*temporary) = "
Saved Reagents:
"
(*temporary) = 3
(*temporary) = " x "
(*temporary) = nil
(*temporary) = "
"
(*temporary) = "attempt to concatenate a nil value"
commented

I added a nil check there, lets see if this still occurs

commented

This hasn't happened in quite some time. Closing this issue; will create a new one if it happens again.