WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   oUF (Otravi Unit Frames) (https://www.wowinterface.com/forums/forumdisplay.php?f=87)
-   -   Name Tag (name UNKNOWN) (https://www.wowinterface.com/forums/showthread.php?t=56931)

GreyFox777 12-29-18 08:02 PM

Name Tag (name UNKNOWN)
 
Hello,

anyone was able to help me with name tag?

My problem is:

Some time by joining the party, name of some players show as UNKNOWN (server lag?), but the problem is, it stays and won't be refreshing until reload UI.

Here is my tag code:

Code:

tags['lumen:reactionname'] = function(unit)
        local playerName = UnitName(unit) or ""
        local color
        if UnitIsPlayer(unit) then
            local class, key = UnitClassBase(unit)
            color = key and RAID_CLASS_COLORS[class].colorStr or "ffffffff"
        else
            local reaction = UnitReaction(unit,'player') or 5
            local col = FACTION_BAR_COLORS[reaction]
            color = string.format("ff%02x%02x%02x",col.r*255,col.g*255,col.b*255)
        end
        return string.format("|c%s%s",color,playerName)
end

and the code inside the party1.lua
Code:

  core:createNameString(self, font_big, cfg.fontsize - 1, "THINOUTLINE", 80, 29, "LEFT", 130)
...
  self:Tag(self.Name, '[lumen:reactionname]')
  self.Name:SetTextColor(unpack(cfg.colors.health))
...


p3lim 12-30-18 02:41 AM

Which events (if any) do you have registered to go along with that tag?

GreyFox777 12-30-18 09:31 AM

Quote:

Originally Posted by p3lim (Post 331197)
Which events (if any) do you have registered to go along with that tag?

Code:

'UNIT_NAME_UPDATE UNIT_CONNECTION UNIT_ENTERING_VEHICLE UNIT_EXITING_VEHICLE GROUP_ROSTER_UPDATE'
these here

p3lim 01-02-19 06:50 PM

Events seem ok to me, the "Unknown" name is indeed a caching/server issue, but it typically resolves itself when the "Unknown" player gets close to you.


All times are GMT -6. The time now is 10:12 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI