Attempt to index field 'Concentration1' (a nil value)
b-morgan opened this issue ยท 2 comments
AddOn version
v11.1.5-006
Have you tried to /reload, used /psl clear if it is recipe-related, and checked the issue occurs with only PSL enabled?
Yes
Have you taken a look at the addon's settings yet, to see if it's a feature that can be adjusted or disabled?
Yes
Describe the problem
I got the following lua error. I'm not sure what I did, and it doesn't seem repeatable atm.
2x ProfessionShoppingList/Core.lua:3644: attempt to index field 'Concentration1' (a nil value)
[ProfessionShoppingList/Core.lua]:3644: in function <ProfessionShoppingList/Core.lua:3636>
Locals:
concentration = "1000"
timeLeft = 0
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'Concentration1' (a nil value)"
app = <table> {
IconPSL = "|TInterface\AddOns\ProfessionShoppingList\assets\psl_icon.blp:0|t"
IconReady = "|TInterface\RaidFrame\ReadyCheck-Ready:0|t"
api = <table> {
}
locales = <table> {
}
OrderIcons = <table> {
}
Category = <table> {
}
NameLong = "|cffC69B6DProfession Shopping List|r"
SelectedRecipe = <table> {
}
NameShort = "|cffC69B6DPSL|r"
LockButton = Button {
}
Flag = <table> {
}
TooltipItemID = 212308
IconNotReady = "|TInterface\RaidFrame\ReadyCheck-NotReady:0|t"
Event = Frame {
}
ClearButton = Button {
}
Name = "Profession Shopping List"
IconLMB = "|TInterface\TutorialFrame\UI-Tutorial-Frame:12:12:0:0:512:512:10:65:228:283|t"
UnlockButton = Button {
}
IconRMB = "|TInterface\TutorialFrame\UI-Tutorial-Frame:12:12:0:0:512:512:10:65:330:385|t"
RepeatQuickOrderTooltip = <table> {
}
SimAddOns = <table> {
}
IconProfession = <table> {
}
OrderAdjustments = <table> {
}
QuickOrderErrors = 0
QuickOrderAttempts = 0
QuickOrderRecipeID = 0
Window = Frame {
}
slLegendaryRecipeIDs = <table> {
}
AuctionatorButton = pslOptionAuctionatorButton {
}
Rows = <table> {
}
IconWaiting = "|TInterface\RaidFrame\ReadyCheck-Waiting:0|t"
ReagentQuantities = <table> {
}
Hidden = Frame {
}
ProfessionKnowledge = <table> {
}
nyiRecipes = <table> {
}
IconArrow = "|TInterface\AddOns\ProfessionShoppingList\assets\UI-RaidFrame-Arrow-Cropped:0|t"
SettingsButton = Button {
}
}
L = <table> {
SETTINGS_COOLDOWNSWINDOW_TOOLTIP = "Open the tracking window on login when a cooldown is ready, in addition to the reminder via chat message."
SETTINGS_CATALYSTBUTTON_TITLE = "Show Catalyst Button"
ERROR_WARBANK = "Error: Can't create a Quick Order with items in the Warbank."
TRACK_NEW2 = "visible recipes for"
MILLING_MOP = "Misty Pigment: 25%, 50% from Fool's Cap
Shadow Pigment: 100%"
SETTINGS_REAGENTQUALITY_TITLE = "Minimum Reagent Quality"
SETTINGS_TOOLTIP = "|TInterface\TutorialFrame\UI-Tutorial-Frame:12:12:0:0:512:512:10:65:228:283|t|cffFFFFFF: Toggle the window.
|TInterface\TutorialFrame\UI-Tutorial-Frame:12:12:0:0:512:512:10:65:330:385|t: Open the settings."
RECIPE_UNLEARNED = "recipe not learned"
FALSE = "false"
MILLING_TBC = "Ebon Pigment: 25%
Nether Pigment: 100%"
READY = "Ready"
SETTINGS_CLOSEWHENDONE_TITLE = "Close Window When Done"
REGION = "Region"
SETTINGS_INCLUDE = "Include"
SETTINGS_PERSONALRECIPES_TITLE = "Track Recipes per Character"
MILLING_SL = "Tranquil Pigment: Nightshade
Luminous Pigment: Death Blossom, Rising Glory, Vigil's Torch
Umbral Pigment: Death's Blossom, Marrowroot, Widowbloom"
SETTINGS_PERSONALWINDOWS_TITLE = "Window Position per Character"
SETTINGS_CLEANBAG_TOOLTIP = "Let |cffC69B6DPSL|r enforce cleanup sorting direction.
- Default means |cffC69B6DPSL|r won't touch the game's default behavior.
- The other options let |cffC69B6DPSL|r enforce that particular setting."
DEBUG_ENABLED = "Debug mode enabled."
SETTINGS_PERSONALRECIPES_TOOLTIP = "Track recipes per character, instead of account wide."
SETTINGS_ORIBOSEXCHANGEFIX_TOOLTIP = "Let |cffC69B6DPSL|r simplify and fix the tooltip provided by the Oribos Exchange AddOn:
- Round to the nearest gold.
- Fix recipe prices.
- Fix profession window prices.
- Show battle pet prices inside the existing tooltip."
RECHARGED = "Fully recharged"
SETTINGS_SLASH_TOGGLE = "Toggle the tracking window."
ADDED_RECIPES1 = "Added"
WINDOW_BUTTON_LOCK = "Lock the window."
NOLASTORDER = "No last Quick Order found."
WINDOW_HEADER_REAGENTS = "Reagents"
MILLING_WOD = "Cerulean Pigment: 100%"
BUTTON_LIGHTFORGE = "|TInterface\TutorialFrame\UI-Tutorial-Frame:12:12:0:0:512:512:10:65:228:283|t: Cast"
MINUTES = "m"
RECRAFT_TOOLTIP = "Select an item with a cached recipe to track it.
To cache a recipe, open the profession the recipe belongs to on any character
or view the item as a regular cra
I figured out what caused the error. I crafted a recipe and at the conclusion, I got the lua error.
Yeah I see the issue, I thought that frame would always be loaded under those conditions, but it's not. So my code is trying to make an adjustment to a frame that doesn't exist yet and that causes the error. I'll push a fix later today, in the meantime the error won't do any harm other than be annoying. ๐
Thanks for letting me know!