Thread Tools Display Modes
02-19-14, 06:51 PM   #1
Mardread
A Deviate Faerie Dragon
Join Date: Jun 2008
Posts: 19
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.
 
02-19-14, 07:19 PM   #2
Sparkplug
A Cyclonian
 
Sparkplug's Avatar
Join Date: Aug 2012
Posts: 40
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.
 
02-19-14, 07:48 PM   #3
Mardread
A Deviate Faerie Dragon
Join Date: Jun 2008
Posts: 19
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.
 
02-19-14, 07:55 PM   #4
Mardread
A Deviate Faerie Dragon
Join Date: Jun 2008
Posts: 19
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.
 
02-22-14, 12:00 AM   #5
Sparkplug
A Cyclonian
 
Sparkplug's Avatar
Join Date: Aug 2012
Posts: 40
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)

Last edited by Sparkplug : 02-22-14 at 12:22 AM.
 
02-22-14, 04:32 AM   #6
sigg
Featured Artist
 
sigg's Avatar
Featured
Join Date: Aug 2008
Posts: 1,251
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;
__________________
RDX manager
Sigg
 
02-22-14, 12:28 PM   #7
DeaTHCorEKiD
A Deviate Faerie Dragon
Join Date: Apr 2010
Posts: 14
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.

Last edited by DeaTHCorEKiD : 02-22-14 at 12:30 PM.
 
02-24-14, 04:56 PM   #8
sui_70
A Defias Bandit
Join Date: Nov 2013
Posts: 3
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.
 
 

WoWInterface » Featured Projects » Carbonite » Carbonite Archive » Friends/Guildmates in Cities error

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off