WQAchievements

WQAchievements

250k Downloads

Error lua

Machou opened this issue ยท 3 comments

commented

Hello

I have this error with WQAchievements

WoW : 10.2.6 (latest)
WQ : v10.2.6-1
Date : 18 april 2024 (latest)

Date: 2024-04-27 14:42:03
ID: 1
Error occured in: Global
Count: 1
Message: Interface/AddOns/WQAchievements/WQAchievements.lua line 1736:
   attempt to index field '?' (a nil value)
Debug:
   [string "@Interface/AddOns/WQAchievements/WQAchievements.lua"]:1736: CheckReward()
   [string "@Interface/AddOns/WQAchievements/WQAchievements.lua"]:1425: CheckItems()
   [string "@Interface/AddOns/WQAchievements/WQAchievements.lua"]:1314: ?()
   [string "@Interface/AddOns/Details/Libs/AceTimer-3.0/AceTimer-3.0.lua"]:55:
      ...ce/AddOns/Details/Libs/AceTimer-3.0/AceTimer-3.0.lua:50
Locals:
self = <table> {
 watched = <table> {
 }
 IsQuestFlaggedCompleted = <function> defined @Interface/AddOns/WQAchievements/WQAchievements.lua:2794
 UpdateCustomRewards = <function> defined @Interface/AddOns/WQAchievements/Options.lua:1481
 SetRewardLinkByID = <function> defined @Interface/AddOns/WQAchievements/WQAchievements.lua:2356
 EnableModule = <function> defined @Interface/AddOns/CanIMogIt/Libs/AceAddon-3.0/AceAddon-3.0.lua:328
 modules = <table> {
 }
 GetRewardForID = <function> defined @Interface/AddOns/WQAchievements/WQAchievements.lua:973
 IterateEmbeds = <function> defined @Interface/AddOns/CanIMogIt/Libs/AceAddon-3.0/AceAddon-3.0.lua:438
 ToggleGet = <function> defined @Interface/AddOns/WQAchievements/Options.lua:1264
 CreateCustomQuest = <function> defined @Interface/AddOns/WQAchievements/Options.lua:1351
 debug = false
 isQuestPinActive = <function> defined @Interface/AddOns/WQAchievements/WQAchievements.lua:2783
 slash = <function> defined @Interface/AddOns/WQAchievements/WQAchievements.lua:506
 SetDefaultModulePrototype = <function> defined @Interface/AddOns/CanIMogIt/Libs/AceAddon-3.0/AceAddon-3.0.lua:405
 Show = <function> defined @Interface/AddOns/WQAchievements/WQAchievements.lua:798
 itemList = <table> {
 }
 defaultModuleState = true
 AnnouncePopUp = <function> defined @Interface/AddOns/WQAchievements/WQAchievements.lua:2208
 IsEnabled = <function> defined @Interface/AddOns/CanIMogIt/Libs/AceAddon-3.0/AceAddon-3.0.lua:447
 ExpansionList = <table> {
 }
 ScheduleTimer = <function> defined @Interface/AddOns/Details/Libs/AceTimer-3.0/AceTimer-3.0.lua:94
 DisableModule = <function> defined @Interface/AddOns/CanIMogIt/Libs/AceAddon-3.0/AceAddon-3.0.lua:346
 emissaryRewards = false
 missionList = <table> {
 }
 CreateCustomMissionReward = <function> defined @Interface/AddOns/WQAchievements/Options.lua:1611
 UpdateOptions = <function> defined @Interface/AddOns/WQAchievements/Options.lua:166
 GetArgs = <function> defined @Interface/AddOns/AnnoyingPopupRemover/Libs/AceConsole-3.0/AceConsole-3.0.lua:140
 data = <table> {
 }
 start = 16638.808000
 event = Frame {
 }
 questList = <table> {
 }
 ZoneIDList = <table> {
 }
 AddRewardToMission = <function> defined @Interface/AddOns/WQAchievements/WQAchievements.lua:696
 EmissaryReward = <function> defined @Interface/AddOns/WQAchievements/WQAchievements.lua:2454
 questPinMapList = <table> {
 }
 questPinList = <table> {
 }
 CreateCustomReward = <function> defined @Interface/AddOns/WQAchievements/Options.lua:1470
 SetEnabledState = <function> defined @Interface/AddOns/CanIMogIt/Libs/AceAddon-3.0/AceAddon-3.0.lua:420
 IsTransmogable = <function> defined @Interface/AddOns/WQAchievements/WQAchievements.lua:1387
 enabledState = true
 link = <function> defined @Interface/AddOns/WQAchievements/WQAchievements.lua:959
 playerName = "Klep-Ysondre"
 rewards = false
 optionsFrame = Frame {
 }
 links = <table> {
 }
 db = <table> {
 }
 IterateModules = <function> defined @Interface/AddOns/CanIMogIt/Libs/AceAddon-3.0/AceAddon-3.0.lua:433
 baseName = "WQAchievements"
 faction = "Horde"
 SortOptions = <function> defined @Interface/AddOns/WQAchievements/Options.lua:1673
 L = <table> {
 }
 Achievements = <table> {
 }
 Reward = <function> defined @Interface/AddOns/WQAchievements/WQAchievements.lua:1243
 UpdateCustomMissions = <function> defined @Interface/AddOns/WQAchievements/Options.lua:1540
 CheckWQ = <function> defined @Interface/AddOns/WQAchievements/WQAchievements.lua:809
 AddToys = <function> defined @Interface/AddOns/WQAchievements/WQAchievements.lua:637
 AddMounts = <function> defined @Interface/AddOns/WQAchievements/WQAchievements.lua:564
 OnInitialize = <function> defined @Interface/AddOns/WQAchievements/WQAchievements.lua:314
 NewModule = <function> defined @Interface/AddOns/CanIMogIt/Libs/AceAddon-3.0/AceAddon-3.0.lua:231
 CreateCustomMission = <function> defined @Interface/AddOns/WQAchievements/Options.lua:1526
 CreateQTip = <function> defined @Interface/AddOns/WQAchievements/WQAchievements.lua:1863
 AddPets = <function> defined @Interface/AddOns/WQAchievements/WQAchievements.lu
AddOns:
  Swatter, v<%version%> (<%codename%>)
  AllTheThings, vDF-3.10.8
  AnnoyingPopupRemover, vv20.1.1-release
  Auctionator, v10.2.34
  BFAInvasionTimer, vv10.2.1
  CanIMogIt, v10.1.5v1.53
  ClassicQuestLog, v2.3.12
  Collectionator, v1.19
  Details, v#Details.20240423.12651.156
  DetailsCompare2, v
  DetailsEncounterDetails, v
  DetailsRaidCheck, v
  DetailsStreamer, v
  DetailsTinyThreat, v
  DetailsVanguard, v
  GTFO, v5.7
  HandyNotes, vv1.6.18
  HandyNotesDragonflightTreasures, vv55
  HandyNotesShadowlandsTreasures, vv75
  HandyNotesTravelGuide, vv2.16.0
  NPCTime, v1.0.19
  NugComboBar, v10.2.4
  Paste, v10.2.6-20240320-1
  Prat30, v3.9.50
  Prat30Libraries, v
  PremadeGroupsFilter, v5.4.0
  RaiderIO, v10.2.6 (v202404270600)
  RaiderIODBEUF, v10.2.6 (v202404270600)
  RaiderIODBEUM, v10.2.6 (v202404270600)
  RaiderIODBEUR, v10.2.6 (v202404270600)
  RareScanner, v10.2.6.3
  Rarity, v1.0 (r730-release)
  RarityOptions, v
  Rematch, v5.1.4
  SilverDragon, vv2024.1.1
  SilverDragonOverlay, vv2024.1.1
  SilverDragonRangeExtender, vv2024.1.1
  TargetPercent, vv10.2.3
  TLDRMissions, v10.2-021
  TomeOfTeleportation, v
  TomTom, vv3.6.0-release
  WeakAuras, v5.12.8
  WeakAurasArchive, v5.12.8
  WorldQuestsList, v108
  WorldQuestTracker, vv10.2.6.492-Retail
  WQAchievements, vv10.2.6-1
  BlizRuntimeLib v10.2.6.54358(EU) <frFR>
  (ck=53e)
commented

Same here

22x WQAchievements/WQAchievements.lua:1736: attempt to index field '?' (a nil value)
[string "@WQAchievements/WQAchievements.lua"]:1736: in function `CheckReward'
[string "@WQAchievements/WQAchievements.lua"]:1425: in function `CheckItems'
[string "@WQAchievements/WQAchievements.lua"]:1314: in function `?'
[string "@DataStore/libs/AceTimer-3.0-17/AceTimer-3.0.lua"]:55: in function <DataStore/libs/AceTimer-3.0/AceTimer-3.0.lua:50>

Locals:
self = <table> {
 watched = <table> {
 }
 IsQuestFlaggedCompleted = <function> defined @WQAchievements/WQAchievements.lua:2794
 UpdateCustomRewards = <function> defined @WQAchievements/Options.lua:1481
 SetRewardLinkByID = <function> defined @WQAchievements/WQAchievements.lua:2356
 EnableModule = <function> defined @!KalielsTracker/Libs/AceAddon-3.0/AceAddon-3.0.lua:328
 modules = <table> {
 }
 GetRewardForID = <function> defined @WQAchievements/WQAchievements.lua:973
 IterateEmbeds = <function> defined @!KalielsTracker/Libs/AceAddon-3.0/AceAddon-3.0.lua:438
 ToggleGet = <function> defined @WQAchievements/Options.lua:1264
 CreateCustomQuest = <function> defined @WQAchievements/Options.lua:1351
 debug = false
 isQuestPinActive = <function> defined @WQAchievements/WQAchievements.lua:2783
 slash = <function> defined @WQAchievements/WQAchievements.lua:506
 SetDefaultModulePrototype = <function> defined @!KalielsTracker/Libs/AceAddon-3.0/AceAddon-3.0.lua:405
 Show = <function> defined @WQAchievements/WQAchievements.lua:798
 itemList = <table> {
 }
 defaultModuleState = true
 AnnouncePopUp = <function> defined @WQAchievements/WQAchievements.lua:2208
 IsEnabled = <function> defined @!KalielsTracker/Libs/AceAddon-3.0/AceAddon-3.0.lua:447
 ExpansionList = <table> {
 }
 ScheduleTimer = <function> defined @DataStore/libs/AceTimer-3.0/AceTimer-3.0.lua:94
 DisableModule = <function> defined @!KalielsTracker/Libs/AceAddon-3.0/AceAddon-3.0.lua:346
 emissaryRewards = false
 missionList = <table> {
 }
 CreateCustomMissionReward = <function> defined @WQAchievements/Options.lua:1611
 UpdateOptions = <function> defined @WQAchievements/Options.lua:166
 GetArgs = <function> defined @DataStore/libs/AceConsole-3.0/AceConsole-3.0.lua:140
 data = <table> {
 }
 start = 139250.714000
 event = Frame {
 }
 questList = <table> {
 }
 ZoneIDList = <table> {
 }
 AddRewardToMission = <function> defined @WQAchievements/WQAchievements.lua:696
 EmissaryReward = <function> defined @WQAchievements/WQAchievements.lua:2454
 questPinMapList = <table> {
 }
 questPinList = <table> {
 }
 CreateCustomReward = <function> defined @WQAchievements/Options.lua:1470
 SetEnabledState = <function> defined @!KalielsTracker/Libs/AceAddon-3.0/AceAddon-3.0.lua:420
 IsTransmogable = <function> defined @WQAchievements/WQAchievements.lua:1387
 enabledState = true
 link = <function> defined @WQAchievements/WQAchievements.lua:959
 playerName = "Fuocovivo-Nemesis"
 rewards = false
 optionsFrame = Frame {
 }
 links = <table> {
 }
 db = <table> {
 }
 IterateModules = <function> defined @!KalielsTracker/Libs/AceAddon-3.0/AceAddon-3.0.lua:433
 baseName = "WQAchievements"
 faction = "Horde"
 SortOptions = <function> defined @WQAchievements/Options.lua:1673
 L = <table> {
 }
 Achievements = <table> {
 }
 Reward = <function> defined @WQAchievements/WQAchievements.lua:1243
 UpdateCustomMissions = <function> defined @WQAchievements/Options.lua:1540
 CheckWQ = <function> defined @WQAchievements/WQAchievements.lua:809
 AddToys = <function> defined @WQAchievements/WQAchievements.lua:637
 AddMounts = <function> defined @WQAchievements/WQAchievements.lua:564
 OnInitialize = <function> defined @WQAchievements/WQAchievements.lua:314
 NewModule = <function> defined @!KalielsTracker/Libs/AceAddon-3.0/AceAddon-3.0.lua:231
 CreateCustomMission = <function> defined @WQAchievements/Options.lua:1526
 CreateQTip = <function> defined @WQAchievements/WQAchievements.lua:1863
 AddPets = <function> defined @Inte
commented

I added an additional nil check. Let me know if you still get the error.

commented

work fine now