
secType Lua error
GovtGeek opened this issue ยท 0 comments
AtlasLoot version
4.3.0 (dev-1740814854)
Lua error
Message: ...terface/AddOns/AtlasLootClassic/Button/Item_type.lua:115: attempt to index field 'secType' (a nil value)
Time: Fri Feb 28 23:40:58 2025
Count: 1
Stack: ...terface/AddOns/AtlasLootClassic/Button/Item_type.lua:115: attempt to index field 'secType' (a nil value)
[string "@Interface/AddOns/AtlasLootClassic/Button/Item_type.lua"]:115: in function `OnSet'
[string "@Interface/AddOns/AtlasLootClassic/Button/Button.lua"]:767: in function `SetType'
[string "@Interface/AddOns/AtlasLootClassic/Button/Button.lua"]:723: in function `SetContentTable'
[string "@Interface/AddOns/AtlasLootClassic/GUI/ItemFrame.lua"]:199: in function `Refresh'
[string "@Interface/AddOns/AtlasLootClassic/GUI/GUI.lua"]:146: in function <Interface/AddOns/AtlasLootClassic/GUI/GUI.lua:47>
[string "@Interface/AddOns/AtlasLootClassic/GUI/GUI.lua"]:883: in function `ButtonOnClick'
[string "@Interface/AddOns/AtlasLootClassic/GUI/Template_Select.lua"]:90: in function `SetSelected'
[string "@Interface/AddOns/AtlasLootClassic/GUI/Template_Select.lua"]:137: in function `SetData'
[string "@Interface/AddOns/AtlasLootClassic/GUI/GUI.lua"]:820: in function `ButtonOnClick'
[string "@Interface/AddOns/AtlasLootClassic/GUI/Template_Select.lua"]:90: in function `SetSelected'
[string "@Interface/AddOns/AtlasLootClassic/GUI/Template_Select.lua"]:137: in function `SetData'
[string "@Interface/AddOns/AtlasLootClassic/GUI/GUI.lua"]:777: in function `ButtonOnClick'
...
[string "@Interface/AddOns/AtlasLootClassic/Loader.lua"]:156: in function `LoadModule'
[string "@Interface/AddOns/AtlasLootClassic/GUI/GUI.lua"]:688: in function `ButtonOnClick'
[string "@Interface/AddOns/AtlasLootClassic/GUI/Template_DropDown.lua"]:159: in function `SetSelected'
[string "@Interface/AddOns/AtlasLootClassic/GUI/GUI.lua"]:202: in function <Interface/AddOns/AtlasLootClassic/GUI/GUI.lua:200>
[string "=[C]"]: in function `Show'
[string "@Interface/AddOns/AtlasLootClassic/GUI/GUI.lua"]:965: in function `Toggle'
[string "@Interface/AddOns/AtlasLootClassic/Core/SlashCommands.lua"]:20: in function `?'
[string "@Interface/AddOns/AtlasLootClassic/Core/SlashCommands.lua"]:58: in function `Run'
[string "@Interface/AddOns/AtlasLootClassic/MiniMapButton.lua"]:51: in function `OnClick'
[string "@Interface/AddOns/AtlasLootClassic/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua"]:179: in function <...tlasLootClassic/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:177>
Locals: button = AtlasLoot_Button_24 {
formatTab = <table> {
}
phaseIndicator = AtlasLoot_Button_24_phaseIndicator {
}
secButton = AtlasLoot_Button_24_secButton {
}
highlightBg = AtlasLoot_Button_24_highlightBg {
}
background = AtlasLoot_Button_24_background {
}
favourite = AtlasLoot_Button_24_favourite {
}
extra = AtlasLoot_Button_24_extra {
}
__atlaslootinfo = <table> {
}
completed = AtlasLoot_Button_24_completed {
}
name = AtlasLoot_Button_24_name {
}
overlay = AtlasLoot_Button_24_overlay {
}
factionIcon = AtlasLoot_Button_24_factionIcon {
}
count = AtlasLoot_Button_24_count {
}
icon = AtlasLoot_Button_24_icon {
}
}
second = nil
(*temporary) = nil
(*temporary) = "c396"
(*temporary) = nil
(*temporary) = 1
(*temporary) = "c396"
(*temporary) = "attempt to index field 'secType' (a nil value)"
ItemSet = <table> {
}
Item = <table> {
ItemClickHandler = <table> {
}
Query = <table> {
}
identifierLength = 1
identifier = "i"
index = 1
}
Droprate = <table> {
}
VendorPrice = <table> {
EventFrame = Frame {
}
}
Describe the bug
Open AtlasLoot and the error immediately pops up.
To Reproduce
Open AtlasLoot and the error immediately pops up.
Expected behavior
No error?
Additional context
Change line 115 from:
button.ItemString = button.__atlaslootinfo.type[2].itemString or GetItemString(button.ItemID, false, button.SuffixID)
to
button.SuffixID = button.__atlaslootinfo.type[2].SuffixID or (button.__atlaslootinfo.secType and button.__atlaslootinfo.secType[2][2]) or 0