CraftSim

CraftSim

2M Downloads

recipeinfo

Saijimon opened this issue ยท 3 comments

commented

2x CraftSim/CraftSim.lua:165: attempt to index local 'recipeInfo' (a nil value)
[string "@CraftSim/CraftSim.lua"]:165: in function <CraftSim/CraftSim.lua:160>
[string "=[C]"]: ?
[string "=[C]"]: in function Hide' [string "@FrameXML/UIParent.lua"]:3355: in function <FrameXML/UIParent.lua:3350> [string "=[C]"]: ? [string "=[C]"]: in function securecall'
[string "@FrameXML/UIParent.lua"]:3393: in function <FrameXML/UIParent.lua:3362>
[string "=[C]"]: in function `CloseWindows'
[string "@DeModal/core/DeModalMixin.lua"]:61: in function <DeModal/core/DeModalMixin.lua:58>
[string "=[C]"]: ?

Locals:
professionInfo =

{
skillLevel = 1
professionID = 2592
skillModifier = 0
displayName = "Fishing"
parentProfessionName = "Fishing"
parentProfessionID = 356
profession = 10
isPrimaryProfession = false
professionName = "Classic Fishing"
maxSkillLevel = 300
expansionName = "Classic"
}
profession = "Fishing"
recipeInfo = nil
(*temporary) =
{
}
(*temporary) = nil
(*temporary) = "attempt to index local 'recipeInfo' (a nil value)"

commented

Additional traceback from 1.6.4.2.5:

1x CraftSim/CraftSim.lua:191: attempt to index local 'recipeInfo' (a nil value)
[string "@CraftSim/CraftSim.lua"]:191: in function <CraftSim/CraftSim.lua:186>
[string "=[C]"]: ?
[string "=[C]"]: in function Hide' [string "@FrameXML/UIParent.lua"]:3209: in function <FrameXML/UIParent.lua:3199> [string "=[C]"]: in function HideUIPanel'
[string "@Skillet/Skillet.lua"]:166: in function DisableBlizzardFrame' [string "@Skillet/Skillet.lua"]:1265: in function SkilletShow'
[string "@Skillet/Skillet.lua"]:954: in function ?' [string "@Accountant_Classic/Libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:119: in function <...sic/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:119> [string "=[C]"]: ? [string "@Accountant_Classic/Libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:29: in function <...sic/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:25> [string "@Accountant_Classic/Libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:64: in function Fire'
[string "@Accountant_Classic/Libs/AceEvent-3.0-4/AceEvent-3.0.lua"]:120: in function <...ccountant_Classic/Libs/AceEvent-3.0/AceEvent-3.0.lua:119>
[string "=[C]"]: in function UseAction' [string "@FrameXML/SecureTemplates.lua"]:364: in function handler'
[string "@FrameXML/SecureTemplates.lua"]:690: in function <FrameXML/SecureTemplates.lua:672>
[string "@FrameXML/SecureTemplates.lua"]:704: in function <FrameXML/SecureTemplates.lua:697>
[string "@FrameXML/SecureTemplates.lua"]:746: in function `SecureActionButton_OnClick'
[string "@FrameXML/ActionButton.lua"]:1175: in function <FrameXML/ActionButton.lua:1145>
[string "=[C]"]: ?

Locals:
professionInfo =

{
skillLevel = 85
professionID = 2824
skillModifier = 0
displayName = "Cooking"
parentProfessionName = "Cooking"
parentProfessionID = 185
profession = 5
isPrimaryProfession = false
professionName = "Dragon Isles Cooking"
maxSkillLevel = 100
expansionName = "Dragon Isles"
}
profession = "Cooking"
recipeInfo = nil
(*temporary) =
{
}
(*temporary) = nil
(*temporary) = "attempt to index local 'recipeInfo' (a nil value)"

commented

This may not be the complete fix but it will work for now, add "and recipeInfo" to line 190 in CraftSim.lua

	if profession and recipeInfo then
		CraftSim.OPTIONS.lastOpenRecipeID[profession] = recipeInfo.recipeID
	end
commented

Should be fixed with 1.7.7

If not feel free to create a new Issue :)