CraftSim

CraftSim

2M Downloads

LUA Error on Recraft items

fubaWoW opened this issue ยท 3 comments

commented

Describe the bug
see #765

To Reproduce
see #765

Addon Version: latest

Additional context
issues #765 was closed but it's still not fixed!

New Error:

1x CraftSim/Classes/RecipeData.lua:484: attempt to index field 'reagentData' (a nil value)
[string "@CraftSim/Classes/RecipeData.lua"]:484: in function `SetNonQualityReagentsMax'
[string "@CraftSim/Classes/OnCraftData.lua"]:49: in function `CreateRecipeData'
[string "@CraftSim/Init/Init.lua"]:216: in function <CraftSim/Init/Init.lua:201>
[string "@CraftSim/Init/Init.lua"]:270: in function <CraftSim/Init/Init.lua:269>
[string "=[C]"]: in function `RecraftRecipeForOrder'
[string "@Blizzard_Professions/Blizzard_ProfessionsCrafterOrderView.lua"]:1035: in function `RecraftOrder'
[string "@Blizzard_Professions/Blizzard_ProfessionsCrafterOrderView.lua"]:79: in function `callback'
[string "@AnnoyingPopupRemover/module_workorder.lua"]:107: in function <...aceAnnoyingPopupRemover/module_workorder.lua:90>
[string "=[C]"]: in function `StaticPopup_ShowCustomGenericConfirmation'
[string "@Blizzard_Professions/Blizzard_ProfessionsCrafterOrderView.lua"]:105: in function <...Professions/Blizzard_ProfessionsCrafterOrderView.lua:76>

Locals:
self = <table> {
 concentrating = false
 concentrationCost = 0
 specializationDataCached = false
 subRecipeCostsEnabled = false
 professionGearCached = false
 professionInfoCached = false
 subRecipeDepth = 0
 optimizedSubRecipes = <table> {
 }
 parentRecipeInfo = <table> {
 }
 crafterData = <table> {
 }
 operationInfoCached = false
 recipeInfoCached = false
}
(*temporary) = nil
(*temporary) = false
(*temporary) = true
(*temporary) = nil
(*temporary) = <table> {
 UI = <table> {
 }
 registeredDebugIDs = <table> {
 }
 isMute = false
 profilings = <table> {
 }
 frame = <table> {
 }
}
(*temporary) = "SetNonQualityReagentsMax"
(*temporary) = "Classes.RecipeData.SetNonQualityReagentsMax"
(*temporary) = false
(*temporary) = true
(*temporary) = nil
(*temporary) = <table> {
}
(*temporary) = nil
(*temporary) = "DEBUG_IDS"
(*temporary) = "attempt to index field 'reagentData' (a nil value)"
CraftSim = <table> {
 COOLDOWNS = <table> {
 }
 STATISTICS = <table> {
 }
 OPTIONAL_REAGENT_DATA = <table> {
 }
 NEWS = <table> {
 }
 OnCraftData = <table> {
 }
 DEBUG = <table> {
 }
 PRICE_DETAILS = <table> {
 }
 CRAFT_LOG = Frame {
 }
 WIDGETS = <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> {
 }
 CraftRecipeData = <table> {
 }
 INIT = Frame {
 }
 CALC = <table> {
 }
 ProfessionGearSet = <table> {
 }
 SpecializationData = <table> {
 }
 ProfessionData = <table> {
 }
 LOCAL_RU = <table> {
 }
 CraftSessionData = <table> {
 }
 ProfessionStats = <table> {
 }
 CraftResultItem = <table> {
 }
 LOCAL_CN = <table> {
 }
 CraftResult = <table> {
 }
 DB = <table> {
 }
 ReagentOptimizationResult = <table> {
 }
 ProfessionStat = <table> {
 }
 Statweights = <table> {
 }
 SalvageReagentSlot = <table> {
 }
 CraftResultReagent = <table> {
 }
 GUTIL = <table> {
 }
 CUSTOMER_HISTORY = Frame {
 }
 ReagentListItem = <table> {
 }
 REAGENT_OPTIMIZATION = <table> {
 }
 ReagentItem = <table> {
 }
 LOCAL_EN = <table> {
 }
 COMM = <table> {
 }
 FRAME = <table> {
 }
 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> {
 }
}
GUTIL = <table> {
 COLORS = <table> {
 }
 eventWaitFrame = Frame {
 }
 Object = <table> {
 }
 FrameDistributor = <table> {
 }
 Formatter = <table> {
 }
}
commented

This is still happening.

commented

Can confirm, still getting the error.

commented

I believe this is being caused by the recipeID not being found. As the self table at the top of the error shows all other values except recipeID which is set here, and causes an early return as shown here. This causes the recipeData not to be present, leading to the reagentData being empty.