Download
(52 Kb)
Download
Updated: 08/26/17 07:35 AM
Pictures
File Info
Compatibility:
Horns of the Reach (3.1)
Updated:08/26/17 07:35 AM
Created:04/14/14 06:04 PM
Monthly downloads:43
Total downloads:25,431
Favorites:60
MD5:
pNames  Popular! (More than 5000 hits)
Version: 10
by: Puddy, Ayantir
pNames

pNames is a simple addon to change names displayed in every chat channel.

It includes an option menu to choose between "@UserID", "Character Name" and "Character Name@UserID" thus, per guild, but also for party and say, tell and zone channels.

Please also note that pNames is embedded into pChat, but also works as a standalone addon
v10
=======
- API & Lib update
- https://github.com/Ayantir/pNames

v9
=======
- API update

v8
=======
- Splitted option for setting format for zones into 2 groups : Say/Yell/Emote and another group with Whispers/Zones
- API update

v7
=======
- You can now select to display @UserID or Char@UserID on every channel.
Two options have been added, on for party and one for all other channels.
Please note that whisps from @UserID cannot be transformed into Char or Char@UserID
- The force method has been dropped. Other addons had 1 year to be compatible with pNames
- Addon now drop brackets and the "handler" (right cic interaction) from NPS speechs.
- Addon has been widely rewrited to use dynamic functions added with lasts DLCs instead than a static list updated on login/logout
- API & libraries update

v5
=======
- API Bump
- Updated LibAddonMenu library

v4
=======
- API Bump

v3
=======
- Update for Imperial City
- Update of LibStub and LibChat

v2.a
=======
- Upgrade to LibAddonMenu 2.0-r18 and LibStub-r3

v2
=======
- Updated API version
- Upgrade to LibAddonMenu 2.0-r17
- Fixed small oversight in metafile
- Updated LibChat2 for better 3rd Party Addons integration

v1.6
=======
- Updated API version
- Upgrade to LibAddonMenu 2.0-r16
- Corrected tiny bug with Officer chats and bad string for french users

v 1.5
=======
- Corrected bug with newmember
- Added force conversion for users where pNames does nothing, disabled by default

v 1.4
=======
- Updated API version
- Few corrections to reduce memory usage and avoidreloadui when joinin/leaving a guild
- Updated libChat2

v 1.3
=======
- Convertname fully rewrited
- Updated API version
- Upgrade to LibAddonMenu 2.0-r14

v 1.2
=======
New features:
- Config per guild
- Updated API version
- Upgrade to LibAddonMenu 2.0-r13
- French & German traduction
- Added default settings & ZOS EULA

v 1.1.3
=======
- Updated API version

v 1.1.3
=======
Updated API version

v 1.1.2
=======
Bug fixes:
- Fixed an issue where LibAddonMenu was not included.

v 1.1.1
=======
Bug fixes:
- Fixed an issue with player links when the "Character Name@UserID" option was selected.

v 1.1.0
=======
New features:
- Added an options menu, with 3 name format options.
Bug fixes:
- Issues with joining and leaving guilds should be fixed.

v1.0.0
======
Initial release
Optional Files (0)


Archived Files (19)
File Name
Version
Size
Uploader
Date
9
50kB
Ayantir
06/02/17 07:47 AM
9
45kB
Ayantir
09/05/16 08:26 AM
7
45kB
Ayantir
08/02/16 11:16 AM
6
51kB
Ayantir
05/31/16 11:11 AM
5
46kB
Ayantir
03/07/16 10:39 PM
4
46kB
Ayantir
11/02/15 11:24 AM
3
46kB
Ayantir
08/31/15 03:51 PM
2.a
46kB
Ayantir
06/16/15 06:14 PM
2
40kB
Ayantir
03/03/15 05:09 AM
1.6
36kB
Ayantir
11/04/14 02:43 PM
1.5
36kB
Ayantir
09/21/14 01:12 PM
1.4
34kB
Ayantir
09/18/14 06:58 PM
1.3
31kB
Ayantir
08/13/14 09:50 AM
1.2
31kB
Ayantir
08/01/14 02:52 AM
1.1.3
9kB
Puddy
05/22/14 11:31 PM
1.1.2
10kB
Puddy
05/11/14 12:34 AM
1.1.1
6kB
Puddy
05/10/14 03:48 AM
1.1.0
6kB
Puddy
05/08/14 04:52 AM
1.0.0
5kB
Puddy
04/14/14 06:04 PM


Post A Reply Comment Options
Unread 09/21/14, 01:15 PM  
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1019
File comments: 1531
Uploads: 31
Hello, I've added a new version with the corrected bug on new members and also an option to force conversion for people where addon does anything. (at he top of option panel). hope it will help !
Report comment to moderator  
Reply With Quote
Unread 09/19/14, 05:43 PM  
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1019
File comments: 1531
Uploads: 31
Oops. Missing parameter in this function. Update incoming, sorry
Report comment to moderator  
Reply With Quote
Unread 09/19/14, 02:32 PM  
Ravener

Forum posts: 0
File comments: 1
Uploads: 0
This may be the error Phinix was referring to:

Report comment to moderator  
Reply With Quote
Unread 09/19/14, 12:48 AM  
Phinix
 
Phinix's Avatar
AddOn Author - Click to view AddOns

Forum posts: 186
File comments: 1783
Uploads: 32
Originally Posted by Ayantir
Hello everyone,

So a little update of this addon, with a little rework to avoid reloadui when joinin a guild. For people who still get the problem of "pNames does nothing" even if menu settings are well configured, so i've tried some things, and it could maybe a 3rd party addon wich play with name of the sender of messages, like pNames..

If people still got problems with this feature, I could try a bigger overwrite. send a reply
First of all, thanks for the addon. Been using it forever.

With this latest update came UI errors, however. Something to do with new member notifications. Only happens when new members join the guild. Otherwise everything seems to be working.

Sadly I did not get a SS (derp) and now my main guild has stopped their big recruitment bonanza, but if I do see it again I'll definitely post it.
Last edited by Phinix : 09/19/14 at 12:49 AM.
Report comment to moderator  
Reply With Quote
Unread 09/18/14, 07:04 PM  
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1019
File comments: 1531
Uploads: 31
Hello everyone,

So a little update of this addon, with a little rework to avoid reloadui when joinin a guild. For people who still get the problem of "pNames does nothing" even if menu settings are well configured, so i've tried some things, and it could maybe a 3rd party addon wich play with name of the sender of messages, like pNames..

If people still got problems with this feature, I could try a bigger overwrite. send a reply
Report comment to moderator  
Reply With Quote
Unread 09/16/14, 12:41 PM  
StrangerFull
AddOn Author - Click to view AddOns

Forum posts: 33
File comments: 174
Uploads: 1
The addon does not work. I do not want to use pNames, want to separate this, but despite the fact that the addon is, there are no changes, regardless of the setting. Possible incompatibility with Wykkid's Enhanced Chat or something else, but the people here write that the addon does not work. I would like to see it working.
Report comment to moderator  
Reply With Quote
Unread 08/16/14, 08:40 PM  
Halorin

Forum posts: 0
File comments: 5
Uploads: 0
I can also report that pNames stopped working for me since the latest update.
Report comment to moderator  
Reply With Quote
Unread 08/14/14, 04:26 AM  
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1019
File comments: 1531
Uploads: 31
I rechecked this morning, and didn't found any errors .. :/

Could you try to delete pNames.lua in My Documents\Elder Scrolls Online\liveeu\SavedVariables ? and restart game ?
Last edited by Ayantir : 08/14/14 at 04:27 AM.
Report comment to moderator  
Reply With Quote
Unread 08/13/14, 04:55 PM  
Kevinmon

Forum posts: 17
File comments: 150
Uploads: 0
This add-on doesn't work anymore after the update.

I can't see my guild members' character names anymore! So sad!
Report comment to moderator  
Reply With Quote
Unread 08/13/14, 09:52 AM  
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1019
File comments: 1531
Uploads: 31
little update, no features added but bugs removed (I just merged pChat code into this addon).
I'll keep to update libs and API version since i'll see some downloads for this addon
Report comment to moderator  
Reply With Quote
Unread 08/04/14, 10:54 AM  
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1019
File comments: 1531
Uploads: 31
Heya here, debuggers are everywhere

So first, thanks for the replys, i was searching why the bug mentionned by Migoda could happens, maybe underscore, or thing like this, but it seems to be random, so. wait & see for now.
linkhandler corrected & local variables already corrected in beta version, still analizing puddy's code to make it better. createtable seems to be quite optimizable, and some some other stuff also.

ps, yes I use zgoo & zbug, but if you got some debugging ingame tools, i'm still interested, be indulgent, i'm lua beginner
will update tommorrow this standalone one and with pchat merged version too as long as colorization in this addon is not an option.
Report comment to moderator  
Reply With Quote
Unread 08/03/14, 09:45 AM  
Garkin
 
Garkin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 832
File comments: 1097
Uploads: 33
Originally Posted by merlight
Originally Posted by Garkin
Argument from in pNames.convertName is character name, not display name (account name). EVENT_CHAT_MESSAGE_CHANNEL uses chracter names.
pNames.convertName looks for character name in guild tables if 'from' starts with "@", so it must be account name.
Proof:
Lua Code:
  1. function pNames.convertName(channelID, from, text)
  2.     local info = ChanInfoArray[channelID]
  3.     local old_from = from
  4.     ...
  5.     d("pNames.convertName '" .. old_from .. "' => '" .. new_from .. "'")
  6.     return new_from
  7. end
I have corrected my post.
I have checked arguments in Zgoo and those arguments were probably already modified by pNames.
Report comment to moderator  
Reply With Quote
Unread 08/03/14, 09:41 AM  
merlight
AddOn Author - Click to view AddOns

Forum posts: 671
File comments: 213
Uploads: 12
Originally Posted by Garkin
Argument from in pNames.convertName is character name, not display name (account name). EVENT_CHAT_MESSAGE_CHANNEL uses chracter names.
pNames.convertName looks for character name in guild tables if 'from' starts with "@", so it must be account name.
Proof:
Lua Code:
  1. function pNames.convertName(channelID, from, text)
  2.     local info = ChanInfoArray[channelID]
  3.     local old_from = from
  4.     ...
  5.     d("pNames.convertName '" .. old_from .. "' => '" .. new_from .. "'")
  6.     return new_from
  7. end
Report comment to moderator  
Reply With Quote
Unread 08/03/14, 08:21 AM  
Garkin
 
Garkin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 832
File comments: 1097
Uploads: 33
Originally Posted by merlight
Originally Posted by Migoda
Got a problem with the latest version, showing just the character name does not work in all cases anymore. Sometimes it shows the User ID with the first char of it in capital letters.
pNames.lua line 98 (in pNames.convertName) should be removed:
Lua Code:
  1. -- Remove extra characters.
  2. from = zo_strformat(SI_UNIT_NAME, from)
SI_UNIT_NAME is for formatting character names, not account names

Also there's a subtle bug in pNames.update, which receives guild id as an argument, but later calls GetGuildName(GetGuildId(id)) -- when guilds are re-numbered, for example after you leave a guild, this will not work, and will end up scanning all guilds everytime pNames.udpate is called.
EDIT:
(a bit corrected&extended what I have written before)
Lua Code:
  1. from = zo_strformat(SI_UNIT_NAME, from)
I think this does not matter, this line just removes control characters from name.

When you are talking about bugs, this is not a valid character link:
Lua Code:
  1. new_from = "|Hignore:character:" .. from .. "|h[" .. new_from .. "]|h"
There should be:
Lua Code:
  1. new_from = "|H1:character:" .. from .. "|h[" .. new_from .. "]|h"
or even better is:
Lua Code:
  1. if IsDecoratedDisplayName(from) then
  2.     new_from = ZO_LinkHandler_CreateLink(new_from, nil, DISPLAY_NAME_LINK_TYPE, UndecorateDisplayName(from))
  3. else
  4.     new_from = ZO_LinkHandler_CreateLink(new_from, nil, CHARACTER_LINK_TYPE, from)
  5. end
It's because 'new_from' can be both character name or display name, you can change it in the settings.

In functions function pNames.createTable(...) and pNames.update(...) is not defined that variables hasChar and character should be local.
As it is now, condition:
Lua Code:
  1. if hasChar and character then
can be true even if GetGuildMemberCharacterInfo(id, member) returns nil. It could cause bugs in lookup table.
Last edited by Garkin : 08/03/14 at 09:48 AM.
Report comment to moderator  
Reply With Quote
Unread 08/03/14, 07:19 AM  
merlight
AddOn Author - Click to view AddOns

Forum posts: 671
File comments: 213
Uploads: 12
Originally Posted by Migoda
Got a problem with the latest version, showing just the character name does not work in all cases anymore. Sometimes it shows the User ID with the first char of it in capital letters.
pNames.lua line 98 (in pNames.convertName) should be removed:
Lua Code:
  1. -- Remove extra characters.
  2. from = zo_strformat(SI_UNIT_NAME, from)
SI_UNIT_NAME is for formatting character names, not account names

Also there's a subtle bug in pNames.update, which receives guild id as an argument, but later calls GetGuildName(GetGuildId(id)) -- when guilds are re-numbered, for example after you leave a guild, this will not work, and will end up scanning all guilds everytime pNames.udpate is called.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.