LastSeen

LastSeen

12k Downloads

`LastSeen/Handlers/Loot.lua:122: attempt to index field 'location' (a string value)`

tflo opened this issue ยท 3 comments

commented

Just got this:

1x LastSeen/Handlers/Loot.lua:122: attempt to index field 'location' (a string value)
[string "@LastSeen/Handlers/Loot.lua"]:122: in function `Item'
[string "@LastSeen/Handlers/Quest.lua"]:175: in function <LastSeen/Handlers/Quest.lua:161>

Locals:
self = <table> {
 SetDefaultModuleLibraries = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:363
 AddCreatureFromNameplate = <function> defined @LastSeen/Handlers/Creature.lua:39
 OnInitialize = <function> defined @LastSeen/LastSeen.lua:17
 RegisterChatCommand = <function> defined @Ace3/AceConsole-3.0/AceConsole-3.0.lua:81
 EnableModule = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:328
 modules = <table> {
 }
 GetModule = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:206
 IterateEmbeds = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:438
 defaultModuleLibraries = <table> {
 }
 UnregisterChatCommand = <function> defined @Ace3/AceConsole-3.0/AceConsole-3.0.lua:107
 mainOptions = Frame {
 }
 Printf = <function> defined @Ace3/AceConsole-3.0/AceConsole-3.0.lua:65
 SetDefaultModulePrototype = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:405
 name = "LastSeen"
 IsEnabled = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:447
 orderedModules = <table> {
 }
 DisableModule = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:346
 GetBestMapForUnit = <function> defined @LastSeen/Handlers/Map.lua:41
 GetArgs = <function> defined @Ace3/AceConsole-3.0/AceConsole-3.0.lua:140
 Print = <function> defined @Ace3/AceConsole-3.0/AceConsole-3.0.lua:50
 IsModule = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:464
 SetDefaultModuleState = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:383
 SetEnabledState = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:420
 MinimapIcon = <function> defined @LastSeen/Settings.lua:6
 enabledState = true
 baseName = "LastSeen"
 KeyBind = <function> defined @LastSeen/Keybinds.lua:6
 Item = <function> defined @LastSeen/Handlers/Loot.lua:33
 AddCreatureFromMouseover = <function> defined @LastSeen/Handlers/Creature.lua:15
 Enable = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:290
 GetParentMap = <function> defined @LastSeen/Handlers/Map.lua:14
 IterateModules = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:433
 NewModule = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:231
 GetMapPosition = <function> defined @LastSeen/Handlers/Map.lua:25
 Disable = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:310
 GetName = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:275
 SlashCommandHandler = <function> defined @LastSeen/Handlers/Command.lua:55
 defaultModuleState = true
}
itemID = 199122
itemLink = "|cff0070dd|Hitem:199122::::::::70:252:::::::::|h[Mining Field Notes]|h|r"
itemName = "Mining Field Notes"
itemRarity = 3
itemType = "Miscellaneous"
itemIcon = 4625027
sourceID = 0
lootDate = "2023/06/28"
map = "Valdrakken"
location = <table> {
 y = 51.406825
 mapID = 2112
 x = 38.985771
}
source = "|cffffff00|Hquest:72157:2164|h[The Weight of Earth]|h|r"
factionID = 0
faction = "Alliance"
_ = "Death Knight"
_ = "DEATHKNIGHT"
classID = 6
level = 70
collectedIcon = ""
updated = true
item = <table> {
 map = "Valdrakken"
 itemName = "Mining Field Notes"
 itemType = "Miscellaneous"
 lootDate = "2023/06/28"
 itemRarity = 3
 lootedBy = <table> {
 }
 sourceInfo = <table> {
 }
 location = ""
 source = "|cffffff00|Hquest:72157:2164|h[The Weight of Earth]|h|r"
 itemLink = "|cff0070dd|Hitem:199122::::::::70:64:::::::::|h[Mining Field Notes]|h|r"
 itemIcon = 4625027
}
(*temporary) = ""
(*temporary) = 2112
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'location' (a string value)"
isFishingLoot = false
fishingSource = ""
isGatheringLoot

Let me know if you need more info.

WoW Retail 10.1.0.50000, LastSeen 4.0.6

commented

I think I've fixed the problem. I need time to test it before I push a release. It's safe to assume a release will be pushed within the next 24 hours.

Thank you for the report! It helps a lot!

commented

Got the same error today again, according to LS (see variables below) same quest (The Weight of Earth) and same item (Mining Field Notes). The interesting thing is that I do not have Mining on this toon. It was the Herbalism quest. And the char is not a Death Knight. (The one from the first error in my OP was a Death Knight).

Error
7x LastSeen/Handlers/Loot.lua:122: attempt to index field 'location' (a string value)
[string "@LastSeen/Handlers/Loot.lua"]:122: in function `Item'
[string "@LastSeen/Handlers/Quest.lua"]:175: in function <LastSeen/Handlers/Quest.lua:161>

Locals:
self = <table> {
 SetDefaultModuleLibraries = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:363
 AddCreatureFromNameplate = <function> defined @LastSeen/Handlers/Creature.lua:39
 OnInitialize = <function> defined @LastSeen/LastSeen.lua:17
 RegisterChatCommand = <function> defined @Ace3/AceConsole-3.0/AceConsole-3.0.lua:81
 EnableModule = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:328
 modules = <table> {
 }
 GetModule = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:206
 IterateEmbeds = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:438
 defaultModuleLibraries = <table> {
 }
 UnregisterChatCommand = <function> defined @Ace3/AceConsole-3.0/AceConsole-3.0.lua:107
 mainOptions = Frame {
 }
 Printf = <function> defined @Ace3/AceConsole-3.0/AceConsole-3.0.lua:65
 SetDefaultModulePrototype = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:405
 name = "LastSeen"
 IsEnabled = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:447
 orderedModules = <table> {
 }
 DisableModule = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:346
 GetBestMapForUnit = <function> defined @LastSeen/Handlers/Map.lua:41
 GetArgs = <function> defined @Ace3/AceConsole-3.0/AceConsole-3.0.lua:140
 Print = <function> defined @Ace3/AceConsole-3.0/AceConsole-3.0.lua:50
 IsModule = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:464
 SetDefaultModuleState = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:383
 SetEnabledState = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:420
 MinimapIcon = <function> defined @LastSeen/Settings.lua:6
 enabledState = true
 baseName = "LastSeen"
 KeyBind = <function> defined @LastSeen/Keybinds.lua:6
 Item = <function> defined @LastSeen/Handlers/Loot.lua:33
 AddCreatureFromMouseover = <function> defined @LastSeen/Handlers/Creature.lua:15
 Enable = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:290
 GetParentMap = <function> defined @LastSeen/Handlers/Map.lua:14
 IterateModules = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:433
 NewModule = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:231
 GetMapPosition = <function> defined @LastSeen/Handlers/Map.lua:25
 Disable = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:310
 GetName = <function> defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:275
 SlashCommandHandler = <function> defined @LastSeen/Handlers/Command.lua:55
 defaultModuleState = true
}
itemID = 199122
itemLink = "|cff0070dd|Hitem:199122::::::::70:252:::::::::|h[Mining Field Notes]|h|r"
itemName = "Mining Field Notes"
itemRarity = 3
itemType = "Miscellaneous"
itemIcon = 4625027
sourceID = 0
lootDate = "2023/06/28"
map = "Valdrakken"
location = <table> {
 y = 51.406825
 mapID = 2112
 x = 38.985771
}
source = "|cffffff00|Hquest:72157:2164|h[The Weight of Earth]|h|r"
factionID = 0
faction = "Alliance"
_ = "Death Knight"
_ = "DEATHKNIGHT"
classID = 6
level = 70
collectedIcon = ""
updated = true
item = <table> {
 map = "Valdrakken"
 itemName = "Mining Field Notes"
 itemType = "Miscellaneous"
 lootDate = "2023/06/28"
 itemRarity = 3
 lootedBy = <table> {
 }
 sourceInfo = <table> {
 }
 location = ""
 source = "|cffffff00|Hquest:72157:2164|h[The Weight of Earth]|h|r"
 itemLink = "|cff0070dd|Hitem:199122::::::::70:64:::::::::|h[Mining Field Notes]|h|r"
 itemIcon = 4625027
}
(*temporary) = ""
(*temporary) = 2112
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'location' (a string value)"
isFishingLoot = false
fishingSource = ""
isGatheringLoot

commented

Thank you.