05-27-21, 08:36 PM | #1 |
Backdrop Fix Help
I have seen the code change posted for backdrops. I don't have a clue. Can anyone help me fix this very old abandoned addon? It's very small. KBTracker.
Probably and easy fix for those that know .lua I have tried. Been using it forever. Worked in classic too. This is the lua error on login: Code:
Message: Interface\AddOns\KBTracker\KBTracker.lua:169: attempt to index global 'tframe' (a nil value) Time: Thu May 27 22:32:14 2021 Count: 1 Stack: Interface\AddOns\KBTracker\KBTracker.lua:169: attempt to index global 'tframe' (a nil value) [string "@Interface\AddOns\KBTracker\KBTracker.lua"]:169: in function `KBTracker_CreateMainFrame' [string "@Interface\AddOns\KBTracker\KBTracker.lua"]:61: in function `KBTracker_OnLoad' [string "@Interface\AddOns\KBTracker\KBTracker.lua"]:48: in function <Interface\AddOns\KBTracker\KBTracker.lua:48> Locals: backdrop = <table> { backdropColor = <table> { } edgeSize = 14 tileEdge = false backdropBorderColor = <table> { } tileSize = 16 edgeFile = "Interface\DialogFrame\UI-DialogBox-Border" tile = false bgFile = "Interface\FrameGeneral\UI-Background-Rock" insets = <table> { } } (*temporary) = nil (*temporary) = <table> { backdropColor = <table> { } edgeSize = 14 tileEdge = false backdropBorderColor = <table> { } tileSize = 16 edgeFile = "Interface\DialogFrame\UI-DialogBox-Border" tile = false bgFile = "Interface\FrameGeneral\UI-Background-Rock" insets = <table> { } } (*temporary) = 2.500000 (*temporary) = nil (*temporary) = <table> { backdropColor = <table> { } edgeSize = 14 tileEdge = false backdropBorderColor = <table> { } tileSize = 16 edgeFile = "Interface\DialogFrame\UI-DialogBox-Border" tile = false bgFile = "Interface\FrameGeneral\UI-Background-Rock" insets = <table> { } } (*temporary) = <function> defined =[C]:-1 (*temporary) = <table> { backdropColor = <table> { } bgFile = "Interface\FrameGeneral\UI-Background-Rock" tile = false backdropBorderColor = <table> { } tileSize = 16 edgeFile = "Interface\DialogFrame\UI-DialogBox-Border" tileEdge = false edgeSize = 14 insets = <table> { } } (*temporary) = "insets" (*temporary) = nil (*temporary) = nil (*temporary) = nil (*temporary) = <table> { top = 2.500000 right = 2.500000 left = 2.500000 bottom = 2.500000 } (*temporary) = "attempt to index global 'tframe' (a nil value)" KBTBlueColor = "" KBTTopColor = "" KBTMiddleColor = "" KBTBottomColor = "" KBTWhiteColor = "" Lua Code:
|
|
05-27-21, 09:27 PM | #2 |
There's no mention of tframe in the code you posted and the error and the code don't seem to match up.
Maybe the error and the code are from different clients? Error in Classic, code from Retail or some other combination?
__________________
Fizzlemizz Maintainer of Discord Unit Frames and Discord Art. Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus. |
|
05-28-21, 03:44 AM | #3 |
I concur with Fizzle. I even tried looking for the addon to look at the code in its completeness but it isn't on here or Curse.
Did you copy ALL of the code from KBTracker.lua ? Or block by block ? Maybe you missed a few lines out unknowingly or deliberately thinking it wasn't relevant.
__________________
All Level 70 Characters: Demon Warlock Resto Druid Disc Priest Resto Shaman Survival Hunter Augment Evoker Frost Mage Vengence Demon Hunter Rogue ( was subtlety ) Brewmaster Monk (TR) Prot Paladin (TR) Blood Death Knight ( TR) As you can see I am missing a warrior And .. I don't have all the allied races covered. Time Runner time when it happens again |
|
05-28-21, 07:48 AM | #4 |
Sorry, I think I may have edited that file. Can you take a look?
Here is the error with the original file: Code:
Message: Interface\AddOns\KBTracker\KBTracker.lua:186: attempt to call method 'SetBackdrop' (a nil value) Time: Fri May 28 09:45:14 2021 Count: 1 Stack: Interface\AddOns\KBTracker\KBTracker.lua:186: attempt to call method 'SetBackdrop' (a nil value) [string "@Interface\AddOns\KBTracker\KBTracker.lua"]:186: in function `KBTracker_CreateMainFrame' [string "@Interface\AddOns\KBTracker\KBTracker.lua"]:61: in function `KBTracker_OnLoad' [string "@Interface\AddOns\KBTracker\KBTracker.lua"]:48: in function <Interface\AddOns\KBTracker\KBTracker.lua:48> Locals: backdrop = <table> { bgFile = "Interface\DialogFrame\UI-DialogBox-Background" tileSize = 32 edgeFile = "Interface\DialogFrame\UI-DialogBox-Border" tile = false edgeSize = 20 insets = <table> { } } (*temporary) = nil (*temporary) = KBT_Display_Frame { 0 = <userdata> } (*temporary) = <table> { bgFile = "Interface\DialogFrame\UI-DialogBox-Background" tileSize = 32 edgeFile = "Interface\DialogFrame\UI-DialogBox-Border" tile = false edgeSize = 20 insets = <table> { } } (*temporary) = "attempt to call method 'SetBackdrop' (a nil value)" KBTBlueColor = "" KBTTopColor = "" KBTMiddleColor = "" KBTBottomColor = "" KBTWhiteColor = "" Lua Code:
|
|
05-28-21, 08:08 AM | #5 |
Line 182 should be changed from
Lua Code:
to be Lua Code:
__________________
Fizzlemizz Maintainer of Discord Unit Frames and Discord Art. Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus. |
|
05-28-21, 09:13 AM | #6 |
That is genius! Thx so much!
|
|
WoWInterface » Developer Discussions » Lua/XML Help » Backdrop Fix Help |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|