CraftSim

CraftSim

2M Downloads

Bug when Recipe scan for Tailor

philburtenshaw opened this issue ยท 1 comments

commented

Observed in game, with "Optimise Sub Reagents" on.

2x .../Modules/ReagentOptimization/ReagentOptimization.lua:439: attempt to perform arithmetic on field '?' (a nil value)
[string "@CraftSim/Modules/ReagentOptimization/ReagentOptimization.lua"]:439: in function `calculateArrayBP'
[string "@CraftSim/Modules/ReagentOptimization/ReagentOptimization.lua"]:469: in function `OptimizeReagentAllocation'
[string "@CraftSim/Classes/RecipeData.lua"]:712: in function `OptimizeReagents'
[string "@CraftSim/Classes/RecipeData.lua"]:1153: in function `OptimizeProfit'
[string "@CraftSim/Classes/RecipeData.lua"]:1752: in function `OptimizeSubRecipes'
[string "@CraftSim/Classes/RecipeData.lua"]:1746: in function `OptimizeSubRecipes'
[string "@CraftSim/Modules/RecipeScan/RecipeScan.lua"]:391: in function `continue'
[string "@CraftSim/Libs/GUTIL/GUTIL.lua"]:1185: in function <CraftSim/Libs/GUTIL/GUTIL.lua:1184>

Locals:
playerSkill = 199
arrayBP = <table> {
}
(for index) = 0
(for limit) = 0
(for step) = 1
i = 0
extraSkillPoint = 0
(*temporary) = nil
(*temporary) = 450
(*temporary) = false
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to perform arithmetic on field '?' (a nil value)"
numBP = 1
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> {
 }
 ConcentrationData = <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> {
 }
 CONCENTRATION_TRACKER = <table> {
 }
 SUPPORTERS = <table> {
 }
 LibGraph = <table> {
 }
 OptionalReagentSlot = <table> {
 }
 Reagent = <table> {
 }
 PRICE_APIS = <table> {
 }
 LOCAL_FR = <table> {
 }
 SPECIALIZATION_DATA = <table> {
 }
 PRICE_SOURCE = <table> {
 }
 UTIL = <table> {
 }
 LOCAL_ES = <table> {
 }
 CraftSimObject = <table> {
 }
 PerkData = <table> {
 }
 ITEM_COUNT = Frame {
 }
 TOPGEAR = <table> {
 }
 PriceData = <table> {
 }
 OptionalReagent = <table> {
 }
 CONCENTRATION_CURVE_DATA = <table> {
 }
 LOCAL_IT = <table> {
 }
 CONTROL_PANEL = <table> {
 }
 CraftQueueItem = <table> {
 }
 ResultData = <table> {
 }
 CraftQueue = <table> {
 }
 RECIPE_SCAN = <table> {
 }
 AVERAGEPROFIT = <table> {
 }
 BagBuff = <table> {
 }
 Buff = <table> {
 }
 BuffData = <table> {
 }
 SIMULATION_MODE = <table> {
 }
 JSONBuilder = <table> {
 }
 OPTIONS = <table> {
 }
 CraftSessionData = <table> {
 }
 INIT = Frame {
 }
 CALC = <table> {
 }
 ProfessionGearSet = <table> {
 }
 SpecializationData = <table> {
 }
 ProfessionData = <table> {
 }
 LOCAL_RU = <table> {
 }
 CraftResultSavedReagent = <table> {
 }
 CraftResultItem = <table> {
 }
 CraftResult = <table> {
 }
 LOCAL_CN = <table> {
 }
 ReagentOptimizationResult = <table> {
 }
 DB = <table> {
 }
 Statweights = <table> {
 }
 ProfessionStat = <table> {
 }
 SalvageReagentSlot = <table> {
 }
 ProfessionStats = <table> {
 }
 ReagentListItem = <table> {
 }
 GUTIL = <table> {
 }
 CUSTOMER_HISTORY = Frame {
 }
 ReagentItem = <table> {
 }
 REAGENT_OPTIMIZATION = <table> {
 }
 COMM = <table> {
 }
 LOCAL_EN = <table> {
 }
 FRAME = <table> {
 }
 CRAFT_RESULTS = Frame {
 }
 RecipeData = <table> {
 }
 LOCAL_KO = <table> {
 }
 LOCAL_TW = <table> {
 }
 Object = <table> {
 }
 LOCAL_PT = <table> {
 }
 LibIcon = <table> {
 }
 LOCAL = <table> {
 }
 CooldownData = <table> {
 }
 PRICE_API = <table> {
 }
 SPECIALIZATION_INFO = <table> {
 }
 CONST = <table> {
 }
 CRAFTQ = Frame {
 }
 GGUI = <table> {
 }
 MEDIA = <table> {
 }
}
craftingDifficultyBP = <table> {
}
recipeData = <table> {
 supportsQualities = true
 reagentData = <table> {
 }
 specializationDataCached = false
 recipeIcon = 4549246
 supportsCraftingStats = true
 supportsCraftingspeed = true
 isBaseRecraftRecipe = false
 learned = true
 priceData = <table> {
 }
 recipeInfoCached = false
 maxQuality = 3
 concentrationCurveData = <table> {
 }
 recipeInfo = <table> {
 }
 concentrationCost = 74
 baseOperationInfo = <table> {
 }
 isAlchemicalExperimentation = false
 maxItemAmount = 1
 professionStatModifiers = <table> {
 }
 supportsMulticraft = true
 expansionID = 10
 cooldownData = <table> {
 }
 subRecipeDepth = 2
 isOldWorldRecipe = false
 parentRecipeInfo = <table> {
 }
 professionStats = <table> {
 }
 supportsSpecializations = true
 baseProfessionStats = <table> {
 }
 concentrating = false
 isEnchantingRecipe = false
 crafterData = <table> {
 }
 isCrafterInfoCached = true
 isCooking = false
 isSoulbound = false
 recipeID = 446929
 specializationData = <table> {
 }
 buffData = <table> {
 }
 minItemAmount = 1
 categoryID = 2098
 baseItemAmount = 1
 isRecraft = false
 resultData = <table> {
 }
 hasQualityReagents = true
 isQuestRecipe = false
 rec
commented

I had trouble scanning tailoring too, it stopped when it reached the bags.
Disabling the "Optimize Sub Recipes (experimental)" option fixed it.