CraftSim

CraftSim

2M Downloads

No simulation for some crafts - Lua error related?

idmortal opened this issue ยท 1 comments

commented

Hello,
BugSack is displaying some errors for a call (x60), I believe this lead to my issue : I don't have the simulation checkbox on some recipes (I had not that issue before the lua errors).

**54x CraftSim/Classes/PriceData.lua:225: attempt to index field 'item' (a nil value)**
[string "@CraftSim/Classes/PriceData.lua"]:225: in function `UpdateReagentPriceInfos'
[string "@CraftSim/Classes/PriceData.lua"]:57: in function `Update'
[string "@CraftSim/Classes/RecipeData.lua"]:252: in function `new'
[string "@CraftSim/Libs/classic.lua"]:64: in function `RecipeData'
[string "@CraftSim/Init/Init.lua"]:572: in function `TriggerModulesByRecipeType'
[string "@CraftSim/Init/Init.lua"]:85: in function <CraftSim/Init/Init.lua:83>
[string "@CraftSim/Libs/GUTIL/GUTIL.lua"]:605: in function `checkCondition'
[string "@CraftSim/Libs/GUTIL/GUTIL.lua"]:611: in function `WaitFor'
[string "@CraftSim/Init/Init.lua"]:74: in function `TriggerModuleUpdate'
[string "@CraftSim/Init/Init.lua"]:126: in function <CraftSim/Init/Init.lua:106>
[string "=[C]"]: ?
[string "=[C]"]: in function `Init'
[string "@Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeSchematicForm.lua"]:192: in function <...emplates/Blizzard_ProfessionsRecipeSchematicForm.lua:186>
[string "=[C]"]: in function `Show'
[string "@Blizzard_Professions/Blizzard_ProfessionsCrafterOrderPage.lua"]:759: in function `ViewOrder'
[string "@Blizzard_Professions/Blizzard_ProfessionsCrafterOrderPage.lua"]:64: in function <...Professions/Blizzard_ProfessionsCrafterOrderPage.lua:59>

Locals:
self = <table> {
 resourcefulnessSavedCosts = 0
 qualityPriceList = <table> {
 }
 craftingCostsFixed = 0
 selfCraftedReagents = <table> {
 }
 craftingCosts = 0
 craftingCostsRequired = 0
 expectedCostsPerItem = 0
 reagentPriceInfos = <table> {
 }
 resourcefulnessSavedCostsAverage = 0
 recipeData = <table> {
 }
}
useSubRecipes = false
reagentData = <table> {
 optionalReagentSlots = <table> {
 }
 recipeData = <table> {
 }
 requiredReagents = <table> {
 }
 sparkReagentSlot = <table> {
 }
 finishingReagentSlots = <table> {
 }
 salvageReagentSlot = <table> {
 }
}
possibleOptionals = <table> {
 1 = <table> {
 }
 2 = <table> {
 }
 3 = <table> {
 }
 4 = <table> {
 }
 5 = <table> {
 }
 6 = <table> {
 }
 7 = <table> {
 }
 8 = <table> {
 }
 9 = <table> {
 }
 10 = <table> {
 }
 11 = <table> {
 }
 12 = <table> {
 }
 13 = <table> {
 }
 14 = <table> {
 }
 15 = <table> {
 }
 16 = <table> {
 }
 17 = <table> {
 }
 18 = <table> {
 }
 19 = <table> {
 }
 20 = <table> {
 }
 21 = <table> {
 }
 22 = <table> {
 }
 23 = <table> {
 }
 24 = <table> {
 }
 25 = <table> {
 }
 26 = <table> {
 }
 27 = <table> {
 }
 28 = <table> {
 }
 29 = <table> {
 }
 30 = <table> {
 }
 31 = <table> {
 }
 32 = <table> {
 }
 33 = <table> {
 }
 34 = <table> {
 }
 35 = <table> {
 }
 36 = <table> {
 }
 37 = <table> {
 }
 38 = <table> {
 }
 39 = <table> {
 }
 40 = <table> {
 }
 41 = <table> {
 }
 42 = <table> {
 }
 43 = <table> {
 }
 44 = <table> {
 }
 45 = <table> {
 }
 46 = <table> {
 }
 47 = <table> {
 }
 48 = <table> {
 }
 49 = <table> {
 }
 50 = <table> {
 }
 51 = <table> {
 }
 52 = <table> {
 }
 53 = <table> {
 }
 54 = <table> {
 }
 55 = <table> {
 }
 56 = <table> {
 }
 57 = <table> {
 }
 58 = <table> {
 }
 59 = <table> {
 }
 60 = <table> {
 }
 61 = <table> {
 }
 62 = <table> {
 }
 63 = <table> {
 }
 64 = <table> {
 }
 65 = <table> {
 }
}
(for state) = <table> {
 1 = <table> {
 }
 2 = <table> {
 }
 3 = <table> {
 }
 4 = <table> {
 }
 5 = <table> {
 }
 6 = <table> {
 }
 7 = <table> {
 }
 8 = <table> {
 }
 9 = <table> {
 }
 10 = <table> {
 }
 11 = <table> {
 }
 12 = <table> {
 }
 13 = <table> {
 }
 14 = <table> {
 }
 15 = <table> {
 }
 16 = <table> {
 }
 17 = <table> {
 }
 18 = <table> {
 }
 19 = <table> {
 }
 20 = <table> {
 }
 21 = <table> {
 }
 22 = <table> {
 }
 23 = <table> {
 }
 24 = <table> {
 }
 25 = <table> {
 }
 26 = <table> {
 }
 27 = <table> {
 }
 28 = <table> {
 }
 29 = <table> {
 }
 30 = <table> {
 }
 31 = <table> {
 }
 32 = <table> {
 }
 33 = <table> {
 }
 34 = <table> {
 }
 35 = <table> {
 }
 36 = <table> {
 }
 37 = <table> {
 }
 38 = <table> {
 }
 39 = <table> {
 }
 40 = <table> {
 }
 41 = <table> {
 }
 42 = <table> {
 }
 43 = <table> {
 }
 44 = <table> {
 }
 45 = <table> {
 }
 46 = <table> {
 }
 47 = <table> {
 }
 48 = <table> {
 }
 49 = <table> {
 }
 50 = <table> {
 }
 51 = <table> {
 }
 52 = <table> {
 }
 53 = <table> {
 }
 54 = <table> {
 }
 55 = <table> {
 }
 56 = <table> {
 }
 57 = <table> {
 }
 58 = <table> {
 }
 59 = <table> {
 }
 60 = <table> {
 }
 61 = <table> {
 }
 62 = <table> {
 }
 63 = <table> {
 }
 64 = <table> {
 }
 65 = <table> {
 }
}
(for control) = 1
_ = 1
optionalReagent = <table> {
 lockedReason = ""
 required = true
 possibleReagents = <table> {
 }
 slotText = "Spark"
 craftingReagentSlotSchematic = <table> {
 }
 mcrSlotID = 256
 dataSlotIndex = 3
 locked = false
 maxQuantity = 2
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = <table> {
 lockedReason = ""
 required = true
 possibleReagents = <table> {
 }
 slotText = "Spark"
 craftingReagentSlotSchematic = <table> {
 }
 mcrSlotID = 256
 dataSlotIndex = 3
 locked = false
 maxQuantity = 2
}
(*temporary) = <table> {
 1 = <table> {
 }
 2 = <table> {
 }
 3 = <table> {
 }
 4 = <table> {
 }
}
(*temporary) = 4
(*temporary) = nil
(*temporary) = nil
(*temporary) = 4
(*temporary) = 5
(*temporary) = nil
(*temporary) = "attempt to index field 'item' (a nil value)"
CraftSim = <table> {
 COOLDOWNS = <table> {
 }
 STATISTICS = <table> {
 }
 OPTIONAL_REAGENT_DATA = <table> {
 }
 NEWS = <table> {
 }
 CraftRecipeData = <table> {
 }
 DEBUG = <table> {
 }
 PRICE_DETAILS = <table> {
 }
 Professio

Thanks!

commented

hotfixed