Profession Shopping List

Profession Shopping List

421k Downloads

Attempt to index field '?' (a nil value)

b-morgan opened this issue ยท 3 comments

commented

AddOn version
v11.0.5-004

Have you tried to /reload, used /psl clear if it is recipe-related, and checked the issue occurs with only PSL enabled?
No

Have you taken a look at the addon's settings yet, to see if it's a feature that can be adjusted or disabled?
No

Describe the problem
The following error occurred while doing Dragon Isles Alchemy, Basic Phial and Basic Potion Experimentation. I'm at 98/100, the recipes are green, and the error occurred when I went from 98 to 99. I have been using Liquid Courage to reset the cooldown.

I don't know if this is reproducable.

1x ProfessionShoppingList/Core.lua:817: attempt to index field '?' (a nil value)
[string "@ProfessionShoppingList/Core.lua"]:817: in function `UpdateCooldowns'
[string "@ProfessionShoppingList/Core.lua"]:255: in function <ProfessionShoppingList/Core.lua:254>

Locals:
(for state) = <table> {
 1 = Button {
 }
 2 = Button {
 }
}
(for control) = 2
i = 2
row = Button {
 text2 = ARTWORK {
 }
 icon = ARTWORK {
 }
 text1 = ARTWORK {
 }
}
rowID = 2
(*temporary) = nil
(*temporary) = 2
(*temporary) = 17
(*temporary) = 26
(*temporary) = <table> {
 Recipe = <table> {
 }
 Reagent = <table> {
 }
 ReagentWidth = 0
 CooldownWidth = 109.625301
 Cooldown = <table> {
 }
}
(*temporary) = 109.625301
(*temporary) = 109.625301
(*temporary) = 0
(*temporary) = 109.625301
(*temporary) = 56.992699
(*temporary) = "m"
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field '?' (a nil value)"
app = <table> {
 ThermalAnvilCharges = ARTWORK {
 }
 IconReady = "|TInterface\RaidFrame\ReadyCheck-Ready:0|t"
 api = <table> {
 }
 locales = <table> {
 }
 ChefsHatButton = ChefsHatButton {
 }
 Category = <table> {
 }
 Rows = <table> {
 }
 RecipeHeader = ARTWORK {
 }
 NameLong = "|cffC69B6DProfession Shopping List|r"
 MillingWrathOfTheLichKing = ARTWORK {
 }
 MillingLegion = ARTWORK {
 }
 SelectedRecipe = <table> {
 }
 KnowledgePointTracker = KnowledgePointTracker {
 }
 NameShort = "|cffC69B6DPSL|r"
 Concentration2 = ARTWORK {
 }
 MillingDragonflight = ARTWORK {
 }
 TrackMakeOrderButton = Button {
 }
 LockButton = Button {
 }
 ThaumaturgyTheWarWithin = ARTWORK {
 }
 MillingTheWarWithin = ARTWORK {
 }
 MillingShadowlands = ARTWORK {
 }
 Flag = <table> {
 }
 TooltipItemID = 214561
 IconNotReady = "|TInterface\RaidFrame\ReadyCheck-NotReady:0|t"
 MillingWarlordsOfDraenor = ARTWORK {
 }
 TrackProfessionButton = Button {
 }
 MillingCataclysm = ARTWORK {
 }
 MillingTheBurningCrusade = ARTWORK {
 }
 LightforgeButton = LightforgeButton {
 }
 LightforgeCooldown = LightforgeCooldown {
 }
 PierreCooldown = PierreCooldown {
 }
 PierreButton = PierreButton {
 }
 RagnarosCooldown = RagnarosCooldown {
 }
 Event = Frame {
 }
 ClearButton = Button {
 }
 AlvinCooldown = AlvinCooldown {
 }
 Name = "Profession Shopping List"
 AlvinButton = AlvinButton {
 }
 IconLMB = "|TInterface\TutorialFrame\UI-Tutorial-Frame:12:12:0:0:512:512:10:65:228:283|t"
 ThermalAnvilCooldown = ThermalAnvilCooldown {
 }
 nyiRecipes = <table> {
 }
 ChefsHatCooldown = ChefsHatCooldown {
 }
 UnlockButton = Button {
 }
 CookingFireCooldown = CookingFireCooldown {
 }
 IconRMB = "|TInterface\TutorialFrame\UI-Tutorial-Frame:12:12:0:0:512:512:10:65:330:385|t"
 CookingFireButton = CookingFireButton {
 }
 RepeatQuickOrderTooltip = <table> {
 }
 TrackNewMogsButton = Button {
 }
 SimAddOns = <table> {
 }
 ShadowlandsRankText = ARTWORK {
 }
 IconProfession = <table> {
 }
 ShadowlandsRankBox = EditBox {
 }
 QuickOrderRecipeID = 0
 RecipeQuantityBox = EditBox {
 }
 UntrackProfessionButton = Button {
 }
 QuickOrderAttempts = 0
 QuickOrderErrors = 0
 slLegendaryRecipeIDs = <table> {
 }
 AuctionatorButton = pslOptionAuctionatorButton {
 }
 Window = Frame {
 }
 IconWaiting = "|TInterface\RaidFrame\ReadyCheck-Waiting:0|t"
 ReagentHeader = ARTWORK {
 }
 ReagentQuantities = <table> {
 }
 Hidden = Frame {
 }
 IconPSL = "|TInterface\AddOns\ProfessionShoppingList\assets\psl_icon.blp:0|t"
 Concentration1 = ARTWORK {
 }
 RagnarosButton = RagnarosButton {
 }
 ProfessionKnowledge = <table> {
 }
 MillingClassic = ARTWORK {
 }
 MillingBattleForAzeroth = ARTWORK {
 }
 IconArrow = "|TInterface\AddOns\ProfessionShoppingList\assets\UI-RaidFrame-Arrow-Cropped:0|t"
 ThermalAnvilButton = ThermalAnvilButton {
 }
 SettingsButton = Button {
 }
 MillingMistsOfPandaria = ARTWORK {
 }
}
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.
|TIn
commented

This seems to be an issue with reading out the cooldown information PSL stores.
Can you send me a copy of your World of Warcraft\_retail_\WTF\Account\(YourAccount)\SavedVariables\ProfessionShoppingList.lua file? That way I can check what info is stored and why the addon is having trouble reading it out.

In the meantime I'll attempt to reproduce the issue.

commented
commented

Okay, I think I see the issue. It didn't have anything to do with your data, but in some rare cases it mismatches the cooldown info from the window with the data saved. I should have fixed this with the next release. :)