CraftSim

CraftSim

2M Downloads

Enabling Material Optimization causes error.

Ookami313 opened this issue ยท 1 comments

commented

I opened up my crafting UI and checked the box to enable Material Optimization and received the following error. Disabling and then re-enabling causes the error to re-occur. Thanks.

3x .../Modules/ReagentOptimization/ReagentOptimization.lua:310: attempt to index field '?' (a nil value)
[string "@CraftSim/Modules/ReagentOptimization/ReagentOptimization.lua"]:310: in function optimizeKnapsack' [string "@CraftSim/Modules/ReagentOptimization/ReagentOptimization.lua"]:178: in function OptimizeReagentAllocation'
[string "@CraftSim/Main/CraftSim.lua"]:588: in function TriggerModulesByRecipeType' [string "@CraftSim/Main/CraftSim.lua"]:181: in function TriggerModulesErrorSafe'
[string "@CraftSim/Modules/ControlPanel/Frames.lua"]:33: in function <...faceCraftSim/Modules/ControlPanel/Frames.lua:32>
[string "=[C]"]: ?

Locals:
self =

{
CreateCrumbs = defined @CraftSim/Modules/ReagentOptimization/ReagentOptimization.lua:210
GetCurrentReagentAllocationSkillIncreaseOLD = defined @CraftSim/Modules/ReagentOptimization/ReagentOptimization.lua:547
GetReagentWeightByID = defined @CraftSim/Modules/ReagentOptimization/ReagentOptimization.lua:250
GetMaxReagentIncreaseFactor = defined @CraftSim/Modules/ReagentOptimization/ReagentOptimization.lua:444
OptimizeReagentsForScannedRecipeData = defined @CraftSim/Modules/ReagentOptimization/ReagentOptimization.lua:655
AssignBestAllocation = defined @CraftSim/Modules/ReagentOptimization/ReagentOptimization.lua:596
GetGCD = defined @CraftSim/Modules/ReagentOptimization/ReagentOptimization.lua:259
IsCurrentAllocation = defined @CraftSim/Modules/ReagentOptimization/ReagentOptimization.lua:632
OptimizeReagentAllocation = defined @CraftSim/Modules/ReagentOptimization/ReagentOptimization.lua:14
FRAMES =
{
}
GetCurrentReagentAllocationSkillIncrease = defined @CraftSim/Modules/ReagentOptimization/ReagentOptimization.lua:506
optimizeKnapsack = defined @CraftSim/Modules/ReagentOptimization/ReagentOptimization.lua:268
}
ks =
{
0 =
{
}
}
BPs =
{
1 = 0.240000
2 = 0
0 = 0.490000
}
numMaterials = 0
i = nil
j = nil
k = nil
maxWeight = Infinite
inf = Infinite
b =
{
}
c =
{
}
i = 0
(for index) = 0
(for limit) = 6
(for step) = 1
k = 0
(*temporary) = nil
(*temporary) = Infinite
(*temporary) = 0
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field '?' (a nil value)"
print = defined @CraftSim/Modules/ReagentOptimization/ReagentOptimization.lua:5

commented

Probably fixed with 7.0 (upcoming)