Hello to anyone that can help,
I have script kittyd several scripts and I was hoping someone could help me compile them as I have been loving this UI and want to make it as clean as possible. I'm convinced 18.lua is having issues as well. On fights in pve where bosses disappear such as the first boss in shrine one nameplate in the pack will have an alpha of about 25% max and gets a whitish tint as well. I will try to get a screenshot here soon. I do use SantaUI textures I don't know if that has anything to do with it maybe it hooks to the wrong texture at some point?
Anyways, here is all 27 of my .lua files
(replace the dot with . cant link stuff)
pastebin dot com/K6tYxq1n
prays fizzle sees this lol
It’s a bit hard to tell where to start with this one. The code has quite a few errors just loading so one or more of these might effect what’s happening as you play.
Things like calling functions without the bracketes :Hide instead of :Hide() etc., the last line in 27.lua you declare a funct ion instead of function (space after the t), missing end statements and you perform operations on frames that no longer exist (HonorWatchBar etc.). There may be others but I ran out of time.
To start with, you should install a debugger and work through these errors which might help track down the problem.
BugGrabber and BugSack work together.
https://www.curseforge.com/wow/addons/bugsack
https://www.curseforge.com/wow/addons/bug-grabber
If it still exists you could place all the code into a single files and comment out sections using --[[ and ]]-- to test only the ones you think might be causing the problem. eg. the following will not run the section from 18.lua once you perform the next /reload or logout/login,
--[[
18.lua
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_LOGIN")
f:SetScript("OnEvent", function()
local function SetFont(obj, optSize)
local fontName= obj:GetFont()
obj:SetFont(fontName,optSize,"OUTLINE")
end
SetFont(SystemFont_LargeNamePlate,8)
SetFont(SystemFont_NamePlate,8)
SetFont(SystemFont_LargeNamePlateFixed,8)
SetFont(SystemFont_NamePlateFixed,8)
end)
]]--
(You could do this using the multiple files but it just seems easier to me because you can comment out multiple sections in one set of --[[ ]]-- ).
Afterward if the problem(s) persist, post the clean code again (with a screen shot might help).
Probably not the answer you were looking for I’m guessing, sorry.
2 Likes
fizzle its a great start i really appreciate the reply. Yeah its pretty much a compilation of a bunch of scripts I found online and edited myself without really any xp in this area. In the past you’e helped me a great deal with some of these scripts like the objective window mover you posted for me <3. Yeah I have addon control panel and also have an elv ui setup. I’ve been getting into arena and my awareness is a lot better with blizz ui but I think with patch coming out I’m going to put the debugging process off for 2-3 weeks so you will see me necro this post if I have questions during the process. I really appreciate the testing compiling bracket idea to fix bugs in their own sections I would of gone about it much slower with 27 lua files open lol.