SilverDragon - Rare Scanner

SilverDragon - Rare Scanner

20M Downloads

LUA Errors with SilverDragon-v2024.12-3-gd0f62ca

fraerie opened this issue · 5 comments

commented

I'm getting the following errors with the new version of Silver Dragon

4x SilverDragon/scan/targets.lua:92: attempt to index field '?' (a nil value)
[string "@SilverDragon/scan/targets.lua"]:92: in function ProcessUnit' [string "@SilverDragon/scan/targets.lua"]:55: in function ?'
[string "@Ace3/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:109: in function <...Ons/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:109>
[string "=[C]"]: ?
[string "@Ace3/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:19: in function <...Ons/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:15>
[string "@Ace3/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:54: in function `Fire'
[string "@Ace3/AceEvent-3.0-4/AceEvent-3.0.lua"]:120: in function <Ace3/AceEvent-3.0/AceEvent-3.0.lua:119>

Locals:
self =

{
modules =
{
}
defaultModuleLibraries =
{
}
name = "SilverDragon_Scan_Targets"
orderedModules =
{
}
db =
{
}
baseName = "SilverDragon"
enabledState = true
defaultModuleState = true
moduleName = "Scan_Targets"
}
unit = "mouseover"
source = "mouseover"
id = 132969
zone = 2200
(*temporary) = nil
(*temporary) = "mouseover"
(*temporary) = true
(*temporary) = "132969"
(*temporary) = 132969
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field '?' (a nil value)"
core =
{
escapes =
{
}
modules =
{
}
defaultModuleState = true
db =
{
}
enabledState = true
zone_names =
{
}
events =
{
}
NAMESPACE =
{
}
datasources =
{
}
treasuresources =
{
}
baseName = "SilverDragon"
defaultModuleLibraries =
{
}
orderedModules =
{
}
debuggable = false
name = "SilverDragon"
conditions =
{
}
}
HBD =
{
mapData =
{
}
callbacks =
{
}
___DIIDO =
{
}
transforms =
{
}
eventFrame = Frame {
}
worldMapData =
{
}
}
globaldb =
{
custom =
{
}
mob_seen =
{
}
datasources =
{
}
ignore_datasource =
{
}
mob_count =
{
}
ignore =
{
}
}
rare_nonflags =
{
50009 = true
50063 = true
50056 = true
3868 = true
50089 = true
69161 = true
62346 = true
50061 = true
58336 = true
}
ns =
{
mobsByZone =
{
}
CLASSIC = false
achievements =
{
}
mobdb =
{
}
vignetteTreasureLookup =
{
}
Loot =
{
}
vignetteMobLookup =
{
}
Tooltip =
{
}
questMobLookup =
{
}
CLASSICERA = false
mobNamesByZone =
{
}
conditions =
{
}
mobs_to_achievement =
{
}
worldQuestMobLookup =
{
}
}

ALSO

2x SilverDragon/core.lua:545: attempt to index field '?' (a nil value)
[string "@SilverDragon/core.lua"]:545: in function ShouldIgnoreMob' [string "@SilverDragon/outputs/ldb.lua"]:288: in function SetupMounts'
[string "@SilverDragon/outputs/ldb.lua"]:135: in function ?' [string "@Ace3/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:109: in function <...Ons/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:109> [string "=[C]"]: ? [string "@Ace3/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:19: in function <...Ons/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:15> [string "@Ace3/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:54: in function Fire'
[string "@Ace3/AceEvent-3.0-4/AceEvent-3.0.lua"]:120: in function <Ace3/AceEvent-3.0/AceEvent-3.0.lua:119>
[string "=[C]"]: ?
[string "=[C]"]: in function LoadAddOn' [string "@ArkInventory/Core/ArkInventoryClient.lua"]:935: in function LoadAddOn'
[string "@ArkInventory/Core/ArkInventory.lua"]:13486: in function LoadAddOn' [string "@ArkInventory/Core/ArkInventory.lua"]:13509: in function BlizzardAPIHook'
[string "@ArkInventory/Core/ArkInventory.lua"]:3137: in function <ArkInventory/Core/ArkInventory.lua:3093>
[string "=[C]"]: ?
[string "@Ace3/AceAddon-3.0-13/AceAddon-3.0.lua"]:66: in function <Ace3/AceAddon-3.0/AceAddon-3.0.lua:61>
[string "@Ace3/AceAddon-3.0-13/AceAddon-3.0.lua"]:523: in function `EnableAddon'
[string "@Ace3/AceAddon-3.0-13/AceAddon-3.0.lua"]:626: in function <Ace3/AceAddon-3.0/AceAddon-3.0.lua:611>

Locals:
self =

{
escapes =
{
}
modules =
{
}
defaultModuleState = true
db =
{
}
enabledState = true
zone_names =
{
}
events =
{
}
NAMESPACE =
{
}
datasources =
{
}
treasuresources =
{
}
baseName = "SilverDragon"
defaultModuleLibraries =
{
}
orderedModules =
{
}
debuggable = false
name = "SilverDragon"
conditions =
{
}
}
id = 142709
zone = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field '?' (a nil value)"
globaldb =
{
custom =
{
}
mob_count =
{
}
mob_seen =
{
}
ignore_datasource =
{
}
datasources =
{
}
ignore =
{
}
}
zone_ignores =
{
550 =
{
}
}
mobdb =
{
17591 =
{
}
20932 =
{
}
152682 =
{
}
133373 =
{
}
18677 =
{
}
18678 =
{
}
18679 =
{
}
18680 =
{
}
16854 =
{
}
18241 =
{
}
18683 =
{
}
18684 =
{
}
18685 =
{
}
18686 =
{
}
16181 =
{
}
157157 =
{
}
18689 =
{
}
18690 =
{
}
18692 =
{
}
18693 =
{
}
18694 =
{
}
18695 =
{
}
18696 =
{
}
18697 =
{
}
18698 =
{
}
21724 =
{
}
148717 =
{
}
154600 =
{
}
142709 =
{
}
152553 =
{
}
160867 =
{
}
152555 =
{
}
127939 =
{
}
147951 =
{
}
138871 =
{
}
152681 =
{
}
16179 =
{
}
17144 =
{
}
16180 =
{
}
22060 =
{
}
18681 =
{
}
22062 =
{
}
18682 =
{
}
16855 =
{
}
}
faction = "Alliance"

commented

The second error makes sense -- it's a case where I'm not properly checking to make sure that zone isn't nil before trying to use it.

The first error is more confusing, because zone and id are both available, and it looks like what's happening is that that acedb defaults aren't working. I will add a guardrail against this...

commented

Could you let me know if that helps in the new alpha?

commented

Not OP, but I was getting the error too, but am now not anymore in the latest Alpha release,
however my Chat is now been spammed whenever I hover over an NPC

image

commented

Oh right, committing debugging-prints is bad. 🤣

commented

Okay, next alpha should fix the error and not spam your chat.