CraftSim

CraftSim

2M Downloads

Lua error in ProfitCalculation:30

artazika opened this issue · 1 comments

commented

6x CraftSim/ProfitCalculation.lua:30: attempt to perform arithmetic on field '?' (a nil value)
[string "@CraftSim/ProfitCalculation.lua"]:30: in function handleInspiration' [string "@CraftSim/ProfitCalculation.lua"]:244: in function getMeanProfit'
[string "@CraftSim/StatweightCalculation.lua"]:65: in function CalculateStatWeights' [string "@CraftSim/StatweightCalculation.lua"]:81: in function getProfessionStatWeightsForCurrentRecipe'
[string "@CraftSim/CraftSim.lua"]:350: in function TriggerModulesByRecipeType' [string "@CraftSim/CraftSim.lua"]:87: in function <CraftSim/CraftSim.lua:83> [string "=[C]"]: in function Init'
[string "@Blizzard_Professions/Blizzard_ProfessionsCrafting.lua"]:273: in function SelectRecipe' [string "@Blizzard_Professions/Blizzard_ProfessionsCrafting.lua"]:262: in function <...lizzard_Professions/Blizzard_ProfessionsCrafting.lua:253> [string "=[C]"]: ? [string "@SharedXML/CallbackRegistry.lua"]:143: in function <SharedXML/CallbackRegistry.lua:142> [string "=[C]"]: ? ... [string "@SharedXML/Scroll/ScrollUtil.lua"]:322: in function SelectElementDataByPredicate'
[string "@Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeList.lua"]:162: in function SelectRecipe' [string "@Blizzard_Professions/Blizzard_ProfessionsCrafting.lua"]:692: in function Init'
[string "@Blizzard_Professions/Blizzard_ProfessionsCrafting.lua"]:242: in function <...lizzard_Professions/Blizzard_ProfessionsCrafting.lua:241>
[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_Professions/Blizzard_ProfessionsFrame.lua"]:133: in function SetProfessionInfo'
[string "@Blizzard_Professions/Blizzard_ProfessionsFrame.lua"]:88: in function <...s/Blizzard_Professions/Blizzard_ProfessionsFrame.lua:59>

Locals:
self =

{
handleMulticraft = defined @CraftSim/ProfitCalculation.lua:34
getMeanProfit = defined @CraftSim/ProfitCalculation.lua:228
getResourcefulnessSavedCostsV2 = defined @CraftSim/ProfitCalculation.lua:73
handleInspiration = defined @CraftSim/ProfitCalculation.lua:5
getResourcefulnessSavedCostsV1 = defined @CraftSim/ProfitCalculation.lua:185
}
recipeData =
{
hasReagentsWithQuality = true
stats =
{
}
baseDifficulty = 350
maxQuality = 5
recipeID = 383545
extraItemFactors =
{
}
currentTransaction =
{
}
profession = "Начертание"
result =
{
}
recipeDifficulty = 350
professionID = 13
recipeType = 0
hasSingleItemOutput = true
expectedQuality = 1
baseItemAmount = 1
categoryID = 1758
reagents =
{
}
}
priceData =
{
craftingCostPerCraft = 145946100
minBuyoutPerQuality =
{
}
reagentsPriceByQuality =
{
}
minimumCostPerCraft = 145946100
}
crafts =
{
baseQuality = 1
nextQuality = 0
}
craftedItems =
{
baseQuality = 1
nextQuality = 0
}
calculationData =
{
inspiration =
{
}
}
inspirationCanUpgrade = false
(*temporary) =
{
averageInspirationItemsHigher = 0
averageInspirationItemsCurrent = 1
}
(*temporary) = 1
(*temporary) = nil
(*temporary) = 1
(*temporary) = "attempt to perform arithmetic on field '?' (a nil value)"

commented

thx for the report, are there any more infos, like in what situation it occured?