WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Carbonite Archive (https://www.wowinterface.com/forums/forumdisplay.php?f=158)
-   -   Friends/Guildmates in Cities error (https://www.wowinterface.com/forums/showthread.php?t=48961)

Mardread 02-19-14 06:51 PM

Friends/Guildmates in Cities error
 
I noticed this since patch 5.4.7. I was seeing a green dot directly underneath my character direction arrow on the map. Every time I moved, there was a small delay and it would move after me. Like I was being followed. I was starting to get paranoid because I couldn't see anyone else around me in the game. I was being haunted.

Well not really, I guess there was a significant change in the API or this was something that I never noticed before.

The problem is replicated by having Show Friends/Guildmates in Cities checked under the map options. This will place a guild dot on your map for your character. I am pretty sure it is not supposed to be there. My uneducated guess is that it might have to do with the way character names are being handled now in game. That little feature broke several other addons, like DBM's Pull Timer.

Rythal, the addon still works great. I seriously want to thank you for all the work you have done to this point.

Sparkplug 02-19-14 07:19 PM

It didn't do it before the new patch unless I was missing it too so I'm guessing it has to do with changes in the new patch. It was kinda freaking me out until I realized what it was too.

Mardread 02-19-14 07:48 PM

I was wrong about that option. It removed the feature in Stormwind, but it is still out in the wild. I tried to disable the chat channels, but that didn't work either.

Mardread 02-19-14 07:55 PM

Ok, I thought I disabled it the friends and guild chat messages. I didn't. I unloaded the minimap from the map and then placed it back in there. That seemed to do the trick and removed the green dot under the character arrow.

Sparkplug 02-22-14 12:00 AM

I still got the extra dots (noticed it's also giving me doubles on party members) even after doing that.

Ok I take that back, turning off chat channels seems to have worked and I can still see party members (not sure about guildies right now)

sigg 02-22-14 04:32 AM

In NXCom.lua

Add the two following lines :
Code:

local rn = GetRealmName();
self.PlyrName = self.PlyrName .. "-" .. rn;

here

Code:

function Nx.Com:OnEvent (event)

        local self = Nx.Com

--        Nx.prt ("Com Event: %s", event)

        if event == "PLAYER_LOGIN" then

                RegisterAddonMessagePrefix (self.Name)                -- 4.1 must register for guild messages

                self.PlyrName = UnitName ("player")
                local rn = GetRealmName();
                self.PlyrName = self.PlyrName .. "-" .. rn;


DeaTHCorEKiD 02-22-14 12:28 PM

i think a better way is the follow:


local pl, rn = UnitFullName ("player")
self.PlyrName = pl.."-"..rn

so it's faster, i think...

from wowpedia:

API UnitFullName

Returns the player's (unit's) name and server.

fullName, realm = UnitFullName("unit")

Arguments

unit
String - unitId to query; the only intended value is "player".

Returns

name
String - unit's name (with no realm suffix), e.g. "Shion".
realm
String - unit's realm of origin, e.g. "TarrenMill", if different from the player's own, or no value if the same as the player's own realm (see Details).

Details

This function is equivalent to UnitName if called with any other unitId than "player". When called with "player" as the argument, realm is always returned.

sui_70 02-24-14 04:56 PM

Just to Summarize the fix that worked for me:

In NXCom.lua

Find:
Code:

function Nx.Com:OnEvent (event)

        local self = Nx.Com

--        Nx.prt ("Com Event: %s", event)

        if event == "PLAYER_LOGIN" then

                RegisterAddonMessagePrefix (self.Name)                -- 4.1 must register for guild messages

                self.PlyrName = UnitName ("player")

Change to:
Code:

function Nx.Com:OnEvent (event)

        local self = Nx.Com

--        Nx.prt ("Com Event: %s", event)

        if event == "PLAYER_LOGIN" then

                RegisterAddonMessagePrefix (self.Name)                -- 4.1 must register for guild messages

                local pl, rn = UnitFullName ("player")
                self.PlyrName = pl.."-"..rn

Hope this helps.


All times are GMT -6. The time now is 07:54 AM.

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