ToT Frame Missing (Yes, Its Checked On in Interface Settings)

Hello,

All I know is when I delete my first module in my addon file it fixes it. I’ve tried taking parts out but pretty much if anything is left in at all my Target of Target frame doesnt display. The last two register events were a last ditch effort I made still not working.

I’m really hoping someone can help

idk if this helps but here is a picture of my ui replace spaces with period

imgur com/a/QC9hwtM

Here is the lua

MainMenuBarArtFrame.LeftEndCap:Hide()
MainMenuBarArtFrame.RightEndCap:Hide()
MainMenuBarArtFrameBackground:Hide()
ActionBarUpButton:Hide()
ActionBarDownButton:Hide()
MainMenuBarArtFrame.PageNumber:Hide()
QuickJoinToastButton:Hide()
MainMenuBarArtFrame.PageNumber:Hide()
QuickJoinToastButton:Hide()
MainMenuBarArtFrame.LeftEndCap:Hide()
MainMenuBarArtFrame.RightEndCap:Hide()
MicroButtonAndBagsBar:Hide()
CharacterMicroButton:Hide()
SpellbookMicroButton:Hide()
TalentMicroButton:Hide()
AchievementMicroButton:Hide()
QuestLogMicroButton:Hide()
GuildMicroButton:Hide()
LFDMicroButton:Hide()
CollectionsMicroButton:Hide()
EJMicroButton:Hide()
StoreMicroButton:Hide()
MainMenuMicroButton:Hide()
StoreMicroButton:SetScript("OnShow",StoreMicroButton.Hide)
StoreMicroButton:Hide()
MinimapCluster:SetScale(1.5)
MainMenuBarArtFrame:SetScale(1.16)
CastingBarFrame:ClearAllPoints()
CastingBarFrame:SetScale(1.44)
CastingBarFrame:SetPoint("CENTER",0,-225)
CastingBarFrame.SetPoint = function() end
ActionButton1:ClearAllPoints()
ActionButton1:SetPoint("CENTER",-230,0)
ActionButton1.SetPoint = function() end
MultiBarBottomLeftButton1:ClearAllPoints()
MultiBarBottomLeftButton1:SetPoint("CENTER",-232,7)
MultiBarBottomLeftButton1.SetPoint = function() end
MultiBarBottomRightButton7:ClearAllPoints()
MultiBarBottomRightButton7:SetPoint("CENTER",-398,82)
MultiBarBottomRightButton7.SetPoint = function() end
MultiBarBottomRightButton1:ClearAllPoints()
MultiBarBottomRightButton1:SetPoint("CENTER",-650,82)
MultiBarBottomRightButton1.SetPoint = function() end
BuffFrame:ClearAllPoints()BuffFrame:SetPoint("TOPRIGHT",MinimapCluster,"TOPRIGHT",-225,-100)BuffFrame.SetPoint=function()end
BuffFrame:SetScale(1.5)
PlayerFrame:ClearAllPoints()PlayerFrame:SetPoint("CENTER",UIParent,"CENTER",-255,-175)PlayerFrame.SetPoint=function()end
TargetFrame:ClearAllPoints()TargetFrame:SetPoint("CENTER",UIParent,"CENTER", 255,-175)TargetFrame.SetPoint=function()end
FocusFrame:ClearAllPoints()FocusFrame:SetPoint("CENTER",UIParent,"CENTER", 255,50)FocusFrame.SetPoint=function()end
PlayerFrame:SetScale(1.3)
TargetFrame:SetScale(1.3)
FocusFrame:SetScale(1.3)
update:RegisterEvent("PLAYER_LOGIN")
update:RegisterEvent("PLAYER_ENTERING_WORLD")
update:RegisterEvent("ADDON_LOADED")
update:RegisterEvent("PLAYER_TALENT_UPDATE")
update:RegisterEvent("PLAYER_TARGET_CHANGED")
update:RegisterEvent("UNIT_TARGET")```

Repost it between code tags `x3 (key to the left of 1) so we can rule out smart quotes etc.

Also, are you getting any Lua errors?

I don’t know what a code tag is. I don’t understand the premise of the statement to put 3 asterisks to the left of 1? What is 1? I’m a noob. I’m not getting any errors unless I enable other addons.

also, I don’t know if this helps anyone help me, but I just figured out friendly players Target of Target frame works its when I run up to an enemy npc and let them attack me I don’t get a target of target.

Code tags keep the forum software from formatting your text.

 [code]code here[/code] or ```code here``` 

The second form uses the grave accent or backtick. On a standard US keyboard that’s on the key to the left of the number 1.

Thank you very much for the explanation. I updated the script with the asterisk for forum setup.

If you could define what you mean by “first module” it might help as to most a module in an addon is likely to be an entire .lua file or even an associated addon.

If it’s one of the lines in the code presented, could you point out which one (line 1 seems ok) or if not let us know what the line is/was?

As Elvenbane mentioned, post any lua errors as well.

Code tags also work display URLs.

I have the addon folder with the toc inside and a module folder inside. inside the module folder i made 4 lua files. They were all working in one file but I did some splitting up of things I thought were the likely culprits, but none were. I could just put them all back into one file and put it in the parent folder alongside the toc but I thought splitting stuff up to find bugs would be good.

the 2nd lua file is an objective window click to move script that I copy pastad from one of your (@fizzlemizz) posts in 2019.

3rd file is a feral combo point script location

f:RegisterEvent("PLAYER_LOGIN")
f:SetScript("OnEvent", function(self, event, ...)
        local _, class = UnitClass("player")
        if class == "DRUID" and GetCVar("comboPointLocation") == "1" then
                hooksecurefunc(ComboPointPlayerFrame,"Setup", function()
                        ComboPointPlayerFrame:Hide()
                        ComboPointPlayerFrame:UnregisterEvent("UNIT_POWER_FREQUENT")
                        ComboPointPlayerFrame:UnregisterEvent("UNIT_MAXPOWER")
                end)
        end
end)
---------------------------------------------

the last is what colors my healthbar and the area above my healthbar for my player, target, and focus unit frames. I thought this was the culprit but ive disabled it multiple times and still no ToT. 

--------------------------------------------------
local ClassColorUnits = {
        ["target"] = {
                ["name"] = "TargetFrame",
                ["back"] = "TargetFrame",
                ["x-offset"] = -104,
                ["y-offset"] = 60,
                ["x-offset2"] = 6,
                ["y-offset2"] = -22,
        },
        ["player"] = {
                ["name"] = "PlayerFrame",
                ["back"] = "PlayerFrameBackground",
                ["x-offset"] = 0,
                ["y-offset"] = 22,
                ["x-offset2"] = 0,
                ["y-offset2"] = 0,
        },
        ["focus"] = {
                ["name"] = "FocusFrame",
                ["back"] = "FocusFrame",
                ["x-offset"] = -104,
                ["y-offset"] = 60,
                ["x-offset2"] = 6,
                ["y-offset2"] = -22,
                },
        }
local function updateClassColor(unit)
        if(unit and UnitExists(unit)) then
                local _,class = UnitClass(unit)
                if(class and RAID_CLASS_COLORS[class]) then
                        if(ClassColorUnits[unit]) then
                                local uf = _G[ClassColorUnits[unit]['name']]
                                local bg = _G[ClassColorUnits[unit]['back']]
                                if(not uf['unitClassColorBack']) then
                                        uf['unitClassColorBack'] = uf:CreateTexture(nil, "ARTWORK")
                                        uf['unitClassColorBack']:SetPoint("TOPLEFT", bg, ClassColorUnits[unit]['x-offset2'], ClassColorUnits[unit]['y-offset2'])
                                        uf['unitClassColorBack']:SetPoint("BOTTOMRIGHT", bg, ClassColorUnits[unit]['x-offset'], ClassColorUnits[unit]['y-offset'])
                                        uf['unitClassColorBack']:SetTexture("Interface\\TargetingFrame\\UI-StatusBar")
                                end
                                local col = RAID_CLASS_COLORS[class]
                                uf['unitClassColorBack']:SetVertexColor(col['r'], col['g'], col['b'])
                        end
                end
        end
end

local frame = CreateFrame("Frame")
frame:RegisterEvent("PLAYER_FOCUS_CHANGED")
frame:RegisterEvent("PLAYER_TARGET_CHANGED")
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:SetScript("OnEvent", function(self, event)
        if(event=="PLAYER_FOCUS_CHANGED") then
                updateClassColor('focus')
        elseif(event=="PLAYER_TARGET_CHANGED") then
                updateClassColor('target')
        elseif(event=="PLAYER_ENTERING_WORLD") then
                updateClassColor('player')
                self:UnregisterEvent(event)
        end
end)
hooksecurefunc("HealthBar_OnValueChanged", function (self)
        if UnitIsPlayer(self.unit) then
                local c = RAID_CLASS_COLORS[select(2,UnitClass(self.unit))];
                if c then
                        self:SetStatusBarColor(c.r, c.g, c.b)
                end
        end
end);

hooksecurefunc("UnitFrameHealthBar_Update", function (self)
        if UnitIsPlayer(self.unit) then
                local c = RAID_CLASS_COLORS[select(2,UnitClass(self.unit))];
                if c then
                        self:SetStatusBarColor(c.r, c.g, c.b)
                end
        end
end);

You’ll probably find it’s because you are redefining the SetPoint methods for BuffFrame, PlayerFrame, TargetFrame.

Secure frames are persnickety about that kind of thing.

I just downloaded bugsack fizzle second.

  1. 1x [ADDON_ACTION_BLOCKED] AddOn ‘DeptiUI’ tried to call the protected function ‘TargetFrameToT:Show()’.
    [string “@!BugGrabber\BugGrabber.lua”]:519: in function <!BugGrabber\BugGrabber.lua:519>
    [string “=[C]”]: in function Show' [string "@FrameXML\TargetFrame.lua"]:972: in function TargetofTarget_Update’
    [string “@FrameXML\TargetFrame.lua”]:471: in function `TargetFrame_OnUpdate’
    [string “:OnUpdate"]:1: in function <[string ":OnUpdate”]:1>

1x DeptiUI\Modules\1.lua:53: attempt to index global ‘update’ (a nil value)
[string “@DeptiUI\Modules\1.lua”]:53: in main chunk

Locals:
(*temporary) = nil
(*temporary) = nil
(*temporary) = 1.300000
(*temporary) =
(*temporary) = “CENTER”
(*temporary) = 255
(*temporary) = 50
(*temporary) = “attempt to index global ‘update’ (a nil value)”

3
1x [ADDON_ACTION_BLOCKED] AddOn ‘DeptiUI’ tried to call the protected function ‘TargetFrameToT:Show()’.
[string “@!BugGrabber\BugGrabber.lua”]:519: in function <!BugGrabber\BugGrabber.lua:519>
[string “=[C]”]: in function Show' [string "@FrameXML\TargetFrame.lua"]:972: in function TargetofTarget_Update’
[string “@FrameXML\TargetFrame.lua”]:471: in function `TargetFrame_OnUpdate’
[string “:OnUpdate"]:1: in function <[string ":OnUpdate”]:1>

4
1x DeptiUI\Modules\1.lua:53: attempt to index global ‘update’ (a nil value)
[string “@DeptiUI\Modules\1.lua”]:53: in main chunk

Locals:
(*temporary) = nil
(*temporary) = nil
(*temporary) = 1.300000
(*temporary) =
(*temporary) = “CENTER”
(*temporary) = 255
(*temporary) = 50
(*temporary) = “attempt to index global ‘update’ (a nil value)”

deleted the stuff you said might be a problem fizz and i did it with move anything. I think im good for now would prefer to fix the script but im very happy as is. thanks very much for the help!