Talented Classic

Talented Classic

519k Downloads

Error when attempting to replace an existing glyph with a new glyph

Ragedaug opened this issue ยท 3 comments

commented

I am getting the following errors when I try to replace an existing glyph with a new glyph:

When I click the filled glyph socket where I want to put the replacement glyph:

2x FrameXML\StaticPopup.lua:158: attempt to index field 'data' (a nil value)
[string "@FrameXML\StaticPopup.lua"]:158: in function `OnShow'
[string "@FrameXML\StaticPopup.lua"]:5134: in function `StaticPopup_OnShow'
[string "*:OnShow"]:1: in function <[string "*:OnShow"]:1>
[string "=[C]"]: in function `Show'
[string "@FrameXML\StaticPopup.lua"]:4945: in function `StaticPopup_Show'
[string "@Talented_GlyphFrame\glyph.lua"]:131: in function <Talented_GlyphFrame\glyph.lua:115>

Locals:
self = StaticPopup1 {
 0 = <userdata>
 hideOnEscape = 1
 SubText = <unnamed> {
 }
 ItemFrame = StaticPopup1ItemFrame {
 }
 OnBackdropLoaded = <function> defined @SharedXML\Backdrop.lua:152
 GetBackdropColor = <function> defined @SharedXML\Backdrop.lua:390
 SetBackdropBorderColor = <function> defined @SharedXML\Backdrop.lua:422
 button4 = StaticPopup1Button4 {
 }
 moneyFrame = StaticPopup1MoneyFrame {
 }
 extraButton = StaticPopup1ExtraButton {
 }
 text = StaticPopup1Text {
 }
 SetBackdrop = <function> defined @SharedXML\Backdrop.lua:329
 ClearBackdrop = <function> defined @SharedXML\Backdrop.lua:282
 GetBackdropBorderColor = <function> defined @SharedXML\Backdrop.lua:409
 GetBackdrop = <function> defined @SharedXML\Backdrop.lua:347
 moneyInputFrame = StaticPopup1MoneyInputFrame {
 }
 maxHeightSoFar = 0
 exclusive = 1
 SetBorderBlendMode = <function> defined @SharedXML\Backdrop.lua:266
 TopLeftCorner = <unnamed> {
 }
 CoverFrame = <unnamed> {
 }
 itemFrame = StaticPopup1ItemFrame {
 }
 ApplyBackdrop = <function> defined @SharedXML\Backdrop.lua:294
 BottomEdge = <unnamed> {
 }
 button3 = StaticPopup1Button3 {
 }
 icon = StaticPopup1AlertIcon {
 }
 Center = <unnamed> {
 }
 backdropInfo = <table> {
 }
 OnBackdropSizeChanged = <function> defined @SharedXML\Backdrop.lua:182
 HasBackdropInfo = <function> defined @SharedXML\Backdrop.lua:278
 RightEdge = <unnamed> {
 }
 numButtons = 2
 maxWidthSoFar = 0
 button2 = StaticPopup1Button2 {
 }
 GetEdgeSize = <function> defined @SharedXML\Backdrop.lua:188
 BottomRightCorner = <unnamed> {
 }
 button1 = StaticPopup1Button1 {
 }
 TopEdge = <unnamed> {
 }
 BottomLeftCorner = <unnamed> {
 }
 TopRightCorner = <unnamed> {
 }
 editBox = StaticPopup1EditBox {
 }
 timeleft = 0
 extraFrame = StaticPopup1ExtraFrame {
 }
 SetupTextureCoordinates = <function> defined @SharedXML\Backdrop.lua:214
 Separator = <unnamed> {
 }
 SetupPieceVisuals = <function> defined @SharedXML\Backdrop.lua:246
 SetBackdropColor = <function> defined @SharedXML\Backdrop.lua:399
 LeftEdge = <unnamed> {
 }
 which = "CONFIRM_GLYPH_PLACEMENT"
}
(*temporary) = <function> defined =[C]:-1
(*temporary) = StaticPopup1Text {
 0 = <userdata>
}
(*temporary) = "Are you sure you want to inscribe %s?  This will replace %s."
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'data' (a nil value)"

The "yes / no" Frame and buttons pop up, but with no text. If I click "no", then the frame closes. If I click "yes", nothing happens, but I get the following error:

2x FrameXML\StaticPopup.lua:155: attempt to index field 'data' (a number value)
[string "@FrameXML\StaticPopup.lua"]:155: in function `OnAccept'
[string "@FrameXML\StaticPopup.lua"]:5228: in function `StaticPopup_OnClick'
[string "*:OnClick"]:1: in function <[string "*:OnClick"]:1>

Locals:
self = StaticPopup1 {
 0 = <userdata>
 hideOnEscape = 1
 SubText = <unnamed> {
 }
 ItemFrame = StaticPopup1ItemFrame {
 }
 OnBackdropLoaded = <function> defined @SharedXML\Backdrop.lua:152
 GetBackdropColor = <function> defined @SharedXML\Backdrop.lua:390
 SetBackdropBorderColor = <function> defined @SharedXML\Backdrop.lua:422
 button4 = StaticPopup1Button4 {
 }
 moneyFrame = StaticPopup1MoneyFrame {
 }
 extraButton = StaticPopup1ExtraButton {
 }
 text = StaticPopup1Text {
 }
 SetBackdrop = <function> defined @SharedXML\Backdrop.lua:329
 ClearBackdrop = <function> defined @SharedXML\Backdrop.lua:282
 GetBackdropBorderColor = <function> defined @SharedXML\Backdrop.lua:409
 GetBackdrop = <function> defined @SharedXML\Backdrop.lua:347
 moneyInputFrame = StaticPopup1MoneyInputFrame {
 }
 maxHeightSoFar = 62.000011
 exclusive = 1
 SetBorderBlendMode = <function> defined @SharedXML\Backdrop.lua:266
 TopLeftCorner = <unnamed> {
 }
 CoverFrame = <unnamed> {
 }
 itemFrame = StaticPopup1ItemFrame {
 }
 ApplyBackdrop = <function> defined @SharedXML\Backdrop.lua:294
 BottomEdge = <unnamed> {
 }
 data = 4
 button3 = StaticPopup1Button3 {
 }
 icon = StaticPopup1AlertIcon {
 }
 Center = <unnamed> {
 }
 backdropInfo = <table> {
 }
 OnBackdropSizeChanged = <function> defined @SharedXML\Backdrop.lua:182
 HasBackdropInfo = <function> defined @SharedXML\Backdrop.lua:278
 RightEdge = <unnamed> {
 }
 numButtons = 2
 maxWidthSoFar = 320
 button2 = StaticPopup1Button2 {
 }
 GetEdgeSize = <function> defined @SharedXML\Backdrop.lua:188
 BottomRightCorner = <unnamed> {
 }
 button1 = StaticPopup1Button1 {
 }
 TopEdge = <unnamed> {
 }
 BottomLeftCorner = <unnamed> {
 }
 TopRightCorner = <unnamed> {
 }
 editBox = StaticPopup1EditBox {
 }
 timeleft = 0
 extraFrame = StaticPopup1ExtraFrame {
 }
 SetupTextureCoordinates = <function> defined @SharedXML\Backdrop.lua:214
 Separator = <unnamed> {
 }
 SetupPieceVisuals = <function> defined @SharedXML\Backdrop.lua:246
 SetBackdropColor = <function> defined @SharedXML\Backdrop.lua:399
 LeftEdge = <unnamed> {
 }
 which = "CONFIRM_GLYPH_PLACEMENT"
}
(*temporary) = <function> defined =[C]:-1
(*temporary) = 4
(*temporary) = "attempt to index field 'data' (a number value)"
commented

I encountered the same behavior. Also, when Shift-Right-Clicking to remove a Glyph, nothing happens.

commented

Should be fixed now

commented

I tested with all addons disabled except Talented, Talented Data, Talented_GlyphFrame, and Talented_SpecTabs. I also tested with only Talented and Talented_GlyphFrame enabled and get the same errors.