Backupiseasy / ThreatPlates

Nameplate addon for World of Warcraft
https://wow.curseforge.com/projects/tidy-plates-threat-plates
35 stars 19 forks source link

LuA error SetFont #464

Closed Poisonenvy2 closed 12 months ago

Poisonenvy2 commented 1 year ago

Getting this error when I login:

40x ...ceTidyPlates_ThreatPlates/Elements/Fonts.lua:102: bad argument #3 to 'SetFont' (Usage: self:SetFont(fontFile, height, flags)) string "=[C]": in function SetFont' [string "@TidyPlates_ThreatPlates/Elements/Fonts.lua"]:102: in function <...ceTidyPlates_ThreatPlates/Elements/Fonts.lua:100> [string "@TidyPlates_ThreatPlates/Elements/Fonts.lua"]:117: in functionSetNamesFonts' [string "@TidyPlates_ThreatPlates/Core.lua"]:559: in function `?' [string "@DataStore/libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:109: in function <...ore/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:109>

[string "@DataStore/libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:19: in function <...ore/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15> [string "@DataStore/libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:54: in function `Fire' [string "@DataStore/libs/AceEvent-3.0-4/AceEvent-3.0.lua"]:120: in function <DataStore/libs/AceEvent-3.0/AceEvent-3.0.lua:119>

Locals: (temporary) = SystemFont_NamePlate { 0 = } (temporary) = "Interface\Addons\TidyPlates_ThreatPlates\Fonts\Cabin.ttf" (temporary) = 13 (temporary) = "NONE"

First and only error in bugsack. Checked version and it's the current one: 11.1.24

Backupiseasy commented 1 year ago

It seems that "NONE" is no longer accepted as flags parameter here. It must be an empty string "". I seems to be like that since Dragonflight, but was not enforced or at least NONE did work until 10.1.5, I guess.

Thanks for reporting this. Will fix it as fast as possible.

Backupiseasy commented 1 year ago

As a quick fix, it should work to just enable OUTLINE in General - Blizzard Settings - Names.

Poisonenvy2 commented 1 year ago

Yup .. that worked, thank you. I did try fiddling with the various font settings, because I guessed it might be "fixable" that way, but I was basically just stabbing at stuff blindly lol

Backupiseasy commented 1 year ago

The weird thing is that it only throws a Lua error for the Blizzard nameplate font. All other fonts, e.g., name, health, ..., work fine with "NONE" ...

Backupiseasy commented 12 months ago

Fixed in version 11.1.25