CraftSim

CraftSim

2M Downloads

Attempt to perform arithmetic on field 'multicraftExtraItems'

Skullcan opened this issue · 1 comments

commented

Error when multicraft procced from Inscription recipe.

2x ...faceCraftSim/Modules/CraftResults/Frames.lua:128: attempt to perform arithmetic on field 'multicraftExtraItems' (a nil value)
[string "@CraftSim/Modules/CraftResults/Frames.lua"]:128: in function UpdateRecipeData'
[string "@CraftSim/Modules/CraftResults/CraftResults.lua"]:166: in function AddResult'
[string "@CraftSim/Modules/CraftResults/CraftResults.lua"]:221: in function callback'
[string "@CraftSim/Util/Util.lua"]:80: in function ContinueOnAllItemsLoaded'
[string "@CraftSim/Modules/CraftResults/CraftResults.lua"]:220: in function processCraftResults'
[string "@CraftSim/Modules/CraftResults/CraftResults.lua"]:42: in function <...ddOns/CraftSim/Modules/CraftResults/CraftResults.lua:41>

Locals:
self =

{
UpdateRecipeData = defined @CraftSim/Modules/CraftResults/Frames.lua:62
UpdateItemList = defined @CraftSim/Modules/CraftResults/Frames.lua:163
Init = defined @CraftSim/Modules/CraftResults/Frames.lua:7
}
recipeID = 383786
print = defined @CraftSim/Util/Util.lua:11
craftResultFrame = CraftSimCraftResultsFrame {
BottomLeftCorner = Texture {
}
OnBackdropLoaded = defined @SharedXML/Backdrop.lua:152
GetBackdropColor = defined @SharedXML/Backdrop.lua:390
SetTransparency = defined @CraftSim/Util/Frames.lua:457
TopLeftCorner = Texture {
}
RightEdge = Texture {
}
decollapse = defined @CraftSim/Util/Frames.lua:342
ApplyBackdrop = defined @SharedXML/Backdrop.lua:294
SetBackdrop = defined @SharedXML/Backdrop.lua:329
ClearBackdrop = defined @SharedXML/Backdrop.lua:282
GetBackdropBorderColor = defined @SharedXML/Backdrop.lua:409
title = FontString {
}
collapsed = false
SetBorderBlendMode = defined @SharedXML/Backdrop.lua:266
originalX = 700
hookFrame = Frame {
}
resetPosition = defined @CraftSim/Util/Frames.lua:436
backdropInfo =
{
}
OnBackdropSizeChanged = defined @SharedXML/Backdrop.lua:182
TopRightCorner = Texture {
}
content = Frame {
}
collapse = defined @CraftSim/Util/Frames.lua:330
originalY = 450
BottomRightCorner = Texture {
}
GetEdgeSize = defined @SharedXML/Backdrop.lua:188
0 =
closeButton = Button {
}
TopEdge = Texture {
}
Center = Texture {
}
BottomEdge = Texture {
}
enabledLinks = true
SetupTextureCoordinates = defined @SharedXML/Backdrop.lua:214
HasBackdropInfo = defined @SharedXML/Backdrop.lua:278
SetBackdropBorderColor = defined @SharedXML/Backdrop.lua:422
collapseButton = Button {
}
SetupPieceVisuals = defined @SharedXML/Backdrop.lua:246
SetBackdropColor = defined @SharedXML/Backdrop.lua:399
LeftEdge = Texture {
}
GetBackdrop = defined @SharedXML/Backdrop.lua:347
}
craftSessionData =
{
craftResults =
{
}
totalProfit = 16751280
numCrafts = 6
totalSavedReagents =
{
}
craftRecipeData =
{
}
totalItems =
{
}
}
craftRecipeData =
{
craftResults =
{
}
numMulticraftExtraItems = 3
numMulticraft = 1
totalSavedCosts = 39100
totalExpectedProfit = -60686.991000
totalSavedReagents =
{
}
totalProfit = 165550
numResourcefulness = 1
totalExpectedSavedCosts = 45170.784000
totalItems =
{
}
numCrafts = 3
numInspiration = 0
recipeID = 383786
}
statisticsText = "Crafts: 3

Expected Ø Profit: |cffFF0000-2|TInterface\MoneyFrame\UI-GoldIcon:10:10:2:0|t 2|TInterface\MoneyFrame\UI-SilverIcon:10:10:2:0|t 28|TInterface\MoneyFrame\UI-CopperIcon:10:10:2:0|t|r
Real Ø Profit: |cff00FF005|TInterface\MoneyFrame\UI-GoldIcon:10:10:2:0|t 51|TInterface\MoneyFrame\UI-SilverIcon:10:10:2:0|t 83|TInterface\MoneyFrame\UI-CopperIcon:10:10:2:0|t|r
Real Profit: |cff00FF0016|TInterface\MoneyFrame\UI-GoldIcon:10:10:2:0|t 55|TInterface\MoneyFrame\UI-SilverIcon:10:10:2:0|t 50|TInterface\MoneyFrame\UI-CopperIcon:10:10:2:0|t|r

Procs - Real / Expected:

Inspiration: |cffFF00000|r / 0.5
Multicraft: |cff00FF001|r / 0.4
"
expectedAverageProfit = "|cffFF0000-2|TInterface\MoneyFrame\UI-GoldIcon:10:10:2:0|t 2|TInterface\MoneyFrame\UI-SilverIcon:10:10:2:0|t 28|TInterface\MoneyFrame\UI-CopperIcon:10:10:2:0|t|r"
actualAverageProfit = "|cff00FF005|TInterface\MoneyFrame\UI-GoldIcon:10:10:2:0|t 51|TInterface\MoneyFrame\UI-SilverIcon:10:10:2:0|t 83|TInterface\MoneyFrame\UI-CopperIcon:10:10:2:0|t|r"
actualProfit = "|cff00FF0016|TInterface\MoneyFrame\UI-GoldIcon:10:

commented

Thx for the report :) This is already fixed in 7.2.2+ very recently