Und was sagt die Fehlermeldung?
Message: Interface\AddOns\PhanxFont\Options.lua:117: attempt to call method ‚SetBackdropBorderColor‘ (a nil value)
Time: Fri Apr 23 19:30:53 2021
Count: 1
Stack: Interface\AddOns\PhanxFont\Options.lua:117: attempt to call method ‚SetBackdropBorderColor‘ (a nil value)
[string „@Interface\AddOns\PhanxFont\Options.lua“]:117: in function <Interface\AddOns\PhanxFont\Options.lua:39>
[string „=[C]“]: in function Show' [string "@Interface\FrameXML\InterfaceOptionsFrame.lua"]:29: in function
InterfaceOptionsList_DisplayPanel’
[string „@Interface\FrameXML\InterfaceOptionsFrame.lua“]:47: in function `InterfaceOptionsListButton_OnClick’
[string „:OnClick"]:2: in function <[string ":OnClick“]:1>
Locals: self = PhanxFontOptions {
0 =
cancel = defined @Interface\FrameXML\InterfaceOptionsFrame.lua:615
name = „PhanxFont“
refresh = defined @Interface\FrameXML\InterfaceOptionsFrame.lua:617
okay = defined @Interface\FrameXML\InterfaceOptionsFrame.lua:614
default = defined @Interface\FrameXML\InterfaceOptionsFrame.lua:616
}
Title = {
0 =
}
Notes = {
0 =
}
UpdatePreviews = nil
SampleText = {
0 =
}
NormalFont = {
0 =
Enable = defined @Interface\AddOns\PhanxFont\Libs\PhanxConfig-Dropdown\PhanxConfig-Dropdown.lua:341
GetList = defined @Interface\AddOns\PhanxFont\Libs\PhanxConfig-Dropdown\PhanxConfig-Dropdown.lua:332
bgMiddle = {
}
button = {
}
bgLeft = {
}
SetList = defined @Interface\AddOns\PhanxFont\Libs\PhanxConfig-Dropdown\PhanxConfig-Dropdown.lua:336
GetValue = defined @Interface\AddOns\PhanxFont\Libs\PhanxConfig-Dropdown\PhanxConfig-Dropdown.lua:315
labelText = {
}
items = {
}
valueText = {
}
OnValueChanged = defined @Interface\AddOns\PhanxFont\Options.lua:60
__SetValue = defined @Interface\AddOns\PhanxFont\Libs\PhanxConfig-Dropdown\PhanxConfig-Dropdown.lua:319
bgRight = {
}
OnListButtonChanged = defined @Interface\AddOns\PhanxFont\Libs\PhanxConfig-MediaDropdown\PhanxConfig-MediaDropdown.lua:31
SetValue = defined @Interface\AddOns\PhanxFont\Libs\PhanxConfig-MediaDropdown\PhanxConfig-MediaDropdown.lua:37
Disable = defined @Interface\AddOns\PhanxFont\Libs\PhanxConfig-Dropdown\PhanxConfig-Dropdown.lua:347
}
BoldFont = {
0 =
Enable = defined @Interface\AddOns\PhanxFont\Libs\PhanxConfig-Dropdown\PhanxConfig-Dropdown.lua:341
GetList = defined @Interface\AddOns\PhanxFont\Libs\PhanxConfig-Dropdown\PhanxConfig-Dropdown.lua:332
bgMiddle = {
}
button = {
}
bgLeft = {
}
SetList = defined @Interface\AddOns\PhanxFont\Libs\PhanxConfig-Dropdown\PhanxConfig-Dropdown.lua:336
GetValue = defined @Interface\AddOns\PhanxFont\Libs\PhanxConfig-Dropdown\PhanxConfig-Dropdown.lua:315
labelText = {
}
items =
}
valueText = {
}
OnValueChanged = defined @Interface\AddOns\PhanxFont\Options.lua:71
__SetValue = defined @Interface\AddOns\PhanxFont\Libs\PhanxConfig-Dropdown\PhanxConfig-Dropdown.lua:319
bgRight = {
}
OnListButtonChanged = defined @Interface\AddOns\PhanxFont\Libs\PhanxConfig-MediaDropdown\PhanxConfig-MediaDropdown.lua:31
SetValue = defined @Interface\AddOns\PhanxFont\Libs\PhanxConfig-MediaDropdown\PhanxConfig-MediaDropdown.lua:37
Disable = defined @Interface\AddOns\PhanxFont\Libs\PhanxConfig-Dropdown\PhanxConfig-Dropdown.lua:347
}
Scale = {
0 =
GetEnabled = defined @Interface\AddOns\PhanxFont\Libs\PhanxConfig-Slider\PhanxConfig-Slider.lua:59
GetValue = defined @Interface\AddOns\PhanxFont\Libs\PhanxConfig-Slider\PhanxConfig-Slider.lua:22
maxText = {
}
labelText
Soweit ich das richtig sehe, liegt das an veraltetem Code.
Auf Zeile 112 steht:
local ScrollBG = CreateFrame("Frame", nil, self)
Seit den Updates muss man bei den Frames, wenn man einen Backdrop nutzen möchte auch das Template dazu benutzen. Das heißt, Ziele 112 sollte so aussehen:
local ScrollBG = CreateFrame("Frame", nil, self, BackdropTemplateMixin and "BackdropTemplate")
—BackdropTemplateMixin and „BackdropTemplate“ muss verwendet werden
Das sollte folgenden Fehler
...attempt to call method ‚SetBackdropBorderColor‘ (a nil value)...
beheben.
Müsste man bei jedem Frame das Backdrop nutzt aktualisieren. Sollten 3 Dateien sein, wenn ich das richtig sehe.
Um den letzten Fehler:
...Interface\AddOns\PhanxFont\Addon.lua:162: attempt to index field '?' (a nil value)...
zu berichtigen, muss Du in der Zeile den Code so ändern, dass er erst abfragt ob das Objekt auch vorhanden ist, also aus:
_G["HelpFrameButton"..i.."Text"]:SetFontObject(GameFontNormalMed3)
machst Du:
if _G["HelpFrameButton"..i] then _G["HelpFrameButton"..i.."Text"]:SetFontObject(GameFontNormalMed3) end
Soweit sollte das alles sein
Das dieser / Du ) nichts weis
Hab ich gemacht und Questlog wird normal wie ohne Addon…
zeigt fehler melden
Message: Interface\AddOns\PhanxFont\Addon.lua:169: unexpected symbol near ‚)‘
Time: Tue Apr 27 16:13:36 2021
Count: 1
Stack: Interface\AddOns\PhanxFont\Addon.lua:169: unexpected symbol near ‚)‘
Locals:
Dann hast Du aus Versehen dort was geändert, bei mir geht das, und zeigt auch Questlog so wie Du es willst.
Poste mal den Code von zeile 178 bis 180
– Set all the other frames to the same size.
for i = 1, 10 do
local f = _G[„ChatFrame“…i]
if f then
f:SetFont(NORMAL, size)
SetChatWindowSize(i, size)
Das fängt bei 179 an. Zeile 178 ist leer.
Sorry mein Fehler. Der Fehler startet bei 169 also brauch ich 168 bis 170
– Fix help frame category buttons, NFI why they need fixing
for i = 1, 6 do
if _G[„HelpFrameButton“…i] then _G[„HelpFrameButton“…i…„Text“]:SetFontObject(GameFontNormalMed3) end
BattlePetTooltip.Name:SetFontObject(GameTooltipHeaderText)
FloatingBattlePetTooltip.Name:SetFontObject(GameTooltipHeaderText)
LFGListFrame.CategorySelection.CategoryButtons[1].Label:SetFontObject(GameFontNormal)
WorldMapFrameHomeButtonText:SetFontObject(GameFontNormal)
end)
hooksecurefunc(„FCF_SetChatWindowFontSize“, function(self, frame, size)
if not frame then
frame = FCF_GetCurrentChatFrame()
end
if not size then
size = self.value
end
Das fängt bei 160 bis 177
Zârgrâhn oder kopieren sie bitte deine Code wo du geändert hat und ich einfügen ^^ noch einfacher
müsste meiner Meinung nach der Fehler sein. Die Klammer nach „end“ ist zu viel, dafür fehlt eine am Ende der zweiten Zeile.
Hi, Sorry dass ich erst jetzt antowrte.
Dein Code: (start Zeile 160, ende Zeile 170)
-– Fix help frame category buttons, NFI why they need fixing
for i = 1, 6 do
if _G[„HelpFrameButton“…i] then _G[„HelpFrameButton“…i…„Text“]:SetFontObject(GameFontNormalMed3) end
BattlePetTooltip.Name:SetFontObject(GameTooltipHeaderText)
FloatingBattlePetTooltip.Name:SetFontObject(GameTooltipHeaderText)
LFGListFrame.CategorySelection.CategoryButtons[1].Label:SetFontObject(GameFontNormal)
WorldMapFrameHomeButtonText:SetFontObject(GameFontNormal)
end)
da hast Du aus versehen wohl ein end gelöscht. Der Code muss aussehen:
-- Fix help frame category buttons, NFI why they need fixing
for i = 1, 6 do
if _G["HelpFrameButton"..i] then _G["HelpFrameButton"..i.."Text"]:SetFontObject(GameFontNormalMed3) end
end -- DAS FEHLT, DIESES KOMMENTAR KANNST DU LÖSCHEN
BattlePetTooltip.Name:SetFontObject(GameTooltipHeaderText)
FloatingBattlePetTooltip.Name:SetFontObject(GameTooltipHeaderText)
LFGListFrame.CategorySelection.CategoryButtons[1].Label:SetFontObject(GameFontNormal)
WorldMapFrameHomeButtonText:SetFontObject(GameFontNormal)
end)
Versuchs, dann sag obs geht.
hab versuch geht leider nicht sorry Zârgrâhn oder kopieren sie bitte ganze deine Code wo du geändert hat und ich einfügen ^^ noch einfacher von Addon.lua und Options.lua
Hi
Also, keine Ahnung was Du machst.
Also, lade Dir nochmal die Originaldateien runter unter
https://www.curseforge.com/wow/addons/phanxfont
Dann ändere NUR folgendes, bitte exakt wie ich es angegeben habe.
Denn so funktioniert es bei mir auf alle Fälle
----Addon.lua
Zeile 162:
_G["HelpFrameButton"..i.."Text"]:SetFontObject(GameFontNormalMed3)
in:
if (_G["HelpFrameButton"..i]) then _G["HelpFrameButton"..i.."Text"]:SetFontObject(GameFontNormalMed3) end
----Options.lua
Zeile 112:
local ScrollBG = CreateFrame("Frame", nil, self)
in:
local ScrollBG = CreateFrame("Frame", nil, self, BackdropTemplateMixin and "BackdropTemplate")
----Libs\PhanxConfig-Dropdown\PhanxConfig-Dropdown.lua
Zeile 272:
list.scrollFrame = CreateFrame("ScrollFrame", list:GetName() .. "ScrollFrame", list, "FauxScrollFrameTemplate")
in:
list.scrollFrame = CreateFrame("ScrollFrame", list:GetName() .. "ScrollFrame", list, "FauxScrollFrameTemplate" and BackdropTemplateMixin and "BackdropTemplate")
----Libs\PhanxConfig-Slider\PhanxConfig-Slider.lua
Zeile 170:
local slider = CreateFrame("Slider", nil, frame)
in:
local slider = CreateFrame("Slider", nil, frame, BackdropTemplateMixin and "BackdropTemplate")
NUR genau das ändern. Dann geht. Den ganzen Code kann ich hier nicht posten, das Addon besteht aus mehreren Dateien
MfG
EDIT: Am besten zu testen mal alle anderen Addons ausschalten
Hab alles gemacht wie du geändert hat Alle Addon ausgeschalt…
dann kam
Message: Interface\AddOns\PhanxFont\Addon.lua:169: unexpected symbol near ‚)‘
Time: Sat May 8 15:28:25 2021
Count: 3
Also keine Ahnung was Du machst oder ob Du andere Addons laufen hast, ich bekomme da keinen Fehler. Hier ist die ganze Addon.lua Datei:
https://pastebin.com/he3kqyWe
Wenn es dann immer noch nicht geht, kann ich Dir leider nicht helfen, bei mir funktioniert es einwandfrei.
MfG
Oh das hat funktioniert keine Ahnung was gemacht habe
Vielen Dank
Kein Problem. Gerne
Dieses Thema wurde automatisch 180 Tage nach der letzten Antwort geschlossen. Es sind keine neuen Nachrichten mehr erlaubt.