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:97
Total downloads:25,532
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/09/19, 04:30 PM  
Pinion

Forum posts: 28
File comments: 55
Uploads: 0
Getting "%s%s zone: %s" in place of zone zone chat with addon enabled. Problem just started today after last patch (v5.1.9). Confirmed with all other addons and libraries disabled.

Edit: same thing for /say, "%s%s says: %s"
Last edited by Pinion : 09/09/19 at 04:32 PM.
Report comment to moderator  
Reply With Quote
Unread 09/10/19, 02:52 AM  
tuwtle

Forum posts: 0
File comments: 1
Uploads: 0
The bundled libChat2 is borked because of upstream changes: https://github.com/esoui/esoui/commi...8b2f5df63f9346

Here is a change that worked for me in one test based on the above (only the two lower ones are necessary, not sure what the other ones are but surely they can't hurt):

Code:
--- pNames/lib/libChat2/libChat2.lua.old	2019-09-10 20:27:57.902909509 +1200
+++ pNames/lib/libChat2/libChat2.lua	2019-09-10 20:42:55.906942669 +1200
@@ -220,18 +220,22 @@
 		-- Create player link
 		local playerLink
 		if info.playerLinkable and not from:find("%[") then
+			from = zo_strformat(SI_CHAT_MESSAGE_PLAYER_FORMATTER, from)
 			playerLink = DDSBeforeSender .. TextBeforeSender .. ZO_LinkHandler_CreatePlayerLink((from)) .. TextAfterSender .. DDSAfterSender
 		else
 			playerLink = DDSBeforeSender .. TextBeforeSender .. from .. TextAfterSender .. DDSAfterSender
 		end
 		
+		if info.formatMessage then
+		    text = zo_strformat(SI_CHAT_MESSAGE_FORMATTER, text)
+		end
 		text = DDSBeforeText .. TextBeforeText .. text .. TextAfterText .. DDSAfterText
 		
 		-- Create default formatting
 		if channelLink then
-			message = DDSBeforeAll .. TextBeforeAll .. zo_strformat(info.format, channelLink, playerLink, text)
+			message = DDSBeforeAll .. TextBeforeAll .. string.format(GetString(info.format), channelLink, playerLink, text)
 		else
-			message = DDSBeforeAll .. TextBeforeAll .. zo_strformat(info.format, playerLink, text, showCustomerService(isCustomerService))
+			message = DDSBeforeAll .. TextBeforeAll .. string.format(GetString(info.format), showCustomerService(isCustomerService), playerLink, text)
 		end
 	end
Report comment to moderator  
Reply With Quote
Unread 09/10/19, 09:41 PM  
Pinion

Forum posts: 28
File comments: 55
Uploads: 0
Thank you, thank worked for me as well. I really appreciate your time helping me with it!

Originally Posted by tuwtle
Here is a change that worked for me in one test based on the above (only the two lower ones are necessary, not sure what the other ones are but surely they can't hurt):
Report comment to moderator  
Reply With Quote
Unread 10/11/19, 09:09 AM  
vecny.samotar
 
vecny.samotar's Avatar

Forum posts: 23
File comments: 552
Uploads: 0
thank you for posting an addon edit, it worked

couldn't someone adopt and revive this addon?

EDIT:
but now I get an error after editing

user:/AddOns/pNames/pNames.lua:122: Cannot find a library instance of "libChat-1.0".
stack traceback:
user:/AddOns/LibStub/LibStub/LibStub.lua:29: in function 'LibStub:GetLibrary'
|caaaaaa<Locals> self = tbl, major = "libChat-1.0" </Locals>|r
user:/AddOns/pNames/pNames.lua:122: in function 'OnPlayerActivated
Last edited by vecny.samotar : 10/11/19 at 09:26 AM.
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.