NeatPlates

NeatPlates

7M Downloads

Today (11/08/2022) - Local (error) - 2313

Kyreaper opened this issue ยท 4 comments

commented

Date: 11/08/2022
Bug is occurring on retail. I am only playing retail atm.

Describe the bug
I keep getting the same error whenever I am in combat. It seems to be related to enemy unit frames (or possibly friendly unit frames) and some sort of coloring on them that NeatPlates is trying to add or modify.

I only get this error in combat & I cannot seem to replicate it outside of combat.

During combat, I am repeatedly flooded with the same error though.

To Reproduce
Steps to reproduce the behavior:

  1. Start attacking a mob or hostile player.

  2. Click on said mob or player, or hover over their nameplates / unit frames whilst still in combat with them.

  3. See the errors flood your chat.

13x bad argument #2 to '?' (Usage: self:SetTextColor(color [, a]))
[string "=[C]"]: in function `SetTextColor'
[string "@Interface/AddOns/NeatPlates/NeatPlatesCore.lua"]:1313: in function <Interface/AddOns/NeatPlates/NeatPlatesCore.lua:1298>
[string "@Interface/AddOns/NeatPlates/NeatPlatesCore.lua"]:694: in function <Interface/AddOns/NeatPlates/NeatPlatesCore.lua:665>
[string "@Interface/AddOns/NeatPlates/NeatPlatesCore.lua"]:810: in function <Interface/AddOns/NeatPlates/NeatPlatesCore.lua:800>
[string "@Interface/AddOns/NeatPlates/NeatPlatesCore.lua"]:380: in function <Interface/AddOns/NeatPlates/NeatPlatesCore.lua:353>

Locals:
(*temporary) = "bad argument #2 to '?' (Usage: self:SetTextColor(color [, a]))"

Screenshot 2022-11-08 160211

Screenshot 2022-11-08 160247

commented

Hi, could you check what your Enemy Status Text is set to. Because this seems to be an issue when it's trying to set the text that is displayed on the health bar itself. It could be somehow set incorrectly, because I am unable to replicate the issue regardless of what option I use.
image

commented

Sorry for the delayed response. I'd be happy to check that for you!

I have not tested NeatPlates on the patch that just dropped today 10.0.02.46658.

It may be helpful to note: A few days ago, when I first posted this report, the errors seemed to be happening mainly when I was in combat and sometimes when hovering over enemy nameplates whilst in combat.

I will update with any new information that may come up from the latest patch.

Screenshot 2022-11-15 195610
Screenshot 2022-11-15 195655

commented

This is really easy to replicate using the latest release. Just set it to use the default tank profile and target any NPC currently in combat with another player. I ended up changing line 1313 to visual.customtext:SetTextColor(unit.levelcolorRed, unit.levelcolorGreen, unit.levelcolorBlue, a or 1) and the error stopped plus the current target name being yellow on the nameplate didn't look to bad.

image

commented

This issue is stale because it has been open for 90 days with no activity. If you feel the issue is still relevant, please leave a comment to prevent the issue from being closed in 30 days