This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
What steps will reproduce the problem?1. Update WoW to 5.4.22. Login3. Have a guildmate talk in /g
What is the expected output? What do you see instead?Expected to see the names in the appropriate class colors. Names are grey instead.
What version of the product are you using?1.4.4-2-g4fbe5e5
Do you have an error log of what happened?No.
Please provide any additional information below.I was able to fix this with a few lines of code. It may not be the prettiest hack, but it seems to work and might be a start for you guys.
\Modules\PlayerNames.lua - Insert after line 311 (realm.names table initialization):
local randomPointerName = string.find(name, "-")if randomPointerName ~= nil then local name = string.sub(name, 1, randomPointerName-1)end
It seems guild names are reported to the addon as Name-Server, so this just strips the "-Server" when the name is seen for the first time. It has worked in local testing. There might be a better place in the code for this (or a better method overall), but since pretty much every other function calls AddPlayer, it seemed best to put it there.
I've shortened up the above code a bit:
if string.find(name, "-") ~= nil then name, _ = string.split("-", name) end
Cilraaz - when I put your patch after line 311 I produce an error:
Interface\\AddOns\\Chatter\\Modules\\PlayerNames.lua:312: bad argument #1 to 'find' (string expected, got nil)
My line 311 is the end statement for the realm.names table initialization function - what line of code should it be inserted after?
I got it to work with adding the following line at line 514 of Chatter/Modules/PlayerNames.lua (make it the first line in changeName)
name = Ambiguate(name, "none")
Not sure if it's the ideal fix though as I know too little of Chatter's internal workings.
To post a comment, please login or register a new account.