Download
(2 Kb)
Download
Updated: 04/20/24 01:05 AM
Pictures
File Info
Compatibility:
Gold Road (10.0.0)
Scions of Ithelia (9.3.0)
Updated:04/20/24 01:05 AM
Created:04/15/20 12:54 PM
Monthly downloads:1,061
Total downloads:16,101
Favorites:24
MD5:
9.3.0
Group User ID  Updated this week!  Popular! (More than 5000 hits)
Version: 2024.04.20
by: Jarva, Masteroshi430
Group User ID was created by Jarva who is now retired from addon development.

Character Name -> @UserId

This addon changes the group frame view, the Emperor Leaderboards view and leaderboards view to respect the display name preference in your game settings. (see below)


When the preference for display names is set to @UserId in the game settings it will display @UserId in the group menu with character names on hover.


When the preference for display names is set to @UserId in the game settings it will display @UserId in the alliance war/ emperor leaderboards menu with character names on hover.


When the preference for display names is set to @UserId in the game settings it will display @UserId in the leaderboards menu with character names on hover.
2024.04.20 -- @Masteroshi430
- Bumped API to 101042 (Gold Road)

2024.02.01 -- @Masteroshi430
- Bumped API to 101041 (Scions of Ithelia)

2023.10.07 -- @Masteroshi430
- Should fix Navarill's bug

2023.09.23 -- @Masteroshi430
- Bumped API to 101040 (Secret of the Telvanni)

2023.04.20 -- @Masteroshi430
- Bumped API to 101039 (base-game patch)

2023.05.13 -- @Masteroshi430
- Fixed a bug on gamepad mode when there is no Emperor

2023.04.20 -- @Masteroshi430
- Bumped API to 101038 (Necrom)

2023.04.13-2 -- @Masteroshi430
- Emperor name is User ID on Emperor Leaderboards
- Added tooltip for Emperor name on Emperor Leaderboards

2023.04.13 -- @Masteroshi430
- Bumped API to 101037 (Scribes of Fate)
- Versioning becomes the release date
- Now working for Emperor Leaderboards

v.1.1.6
Add stonethorn compatibility

v1.1.5
Internal addon rewrite to use MoonScript under the hood
Optional Files (0)


Archived Files (16)
File Name
Version
Size
Uploader
Date
2024.02.01
2kB
Masteroshi430
02/01/24 04:49 AM
2023.10.07
2kB
Masteroshi430
10/07/23 03:23 PM
2023.09.23
2kB
Masteroshi430
09/22/23 11:53 PM
2023.07.28
2kB
Masteroshi430
07/27/23 10:50 PM
2023.05.13
2kB
Masteroshi430
05/13/23 02:26 PM
2023.04.20
2kB
Masteroshi430
04/20/23 02:29 AM
2023.04.13-2
2kB
Jarva
04/13/23 01:40 PM
2023.04.13
2kB
Masteroshi430
04/13/23 08:11 AM
1.1.6
2kB
Jarva
09/16/20 12:01 AM
1.1.5
2kB
Jarva
09/15/20 11:19 PM
1.1.4
1kB
Jarva
08/21/20 10:30 AM
1.1.3
1kB
Jarva
04/16/20 12:26 PM
1.1.2
1kB
Jarva
04/16/20 12:20 PM
1.1.1
1kB
Jarva
04/16/20 07:04 AM
1.1.0
1001B
Jarva
04/16/20 06:58 AM
1.0.0
1kB
Jarva
04/15/20 12:54 PM


Post A Reply Comment Options
Unread 04/15/20, 01:56 PM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4979
File comments: 6039
Uploads: 78
Isn't this handled by the game's settings, if you prefer user or character names?
If so you might maybe better build a switch to "show the opposite of the game settings" in the group menus.

btw: Overwriting total ZOs code like
GROUP_LIST:SetupGroupEntry(control, data)
ZO_GroupListRowCharacterName_OnMouseEnter

will definetaly make other addons fail to work properly!
You should either use a ZO_PreHook and change the values you need to your need, then return false so other addons still work as intended or find a different way
Last edited by Baertram : 04/15/20 at 01:58 PM.
Report comment to moderator  
Reply With Quote
Unread 04/15/20, 11:00 PM  
Jarva
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 13
Uploads: 7
Unfortunately this is basically the only place that doesn't follow the games social settings.

I know overwriting the methods is currently a hack and isn't the long term intended implementation however when playing around with the hook methods I couldn't find a way to make the changes I required. When changing the values in ZO_PreHook they don't propagate through to the hooked method.

For now the implementation matches the ingame code, with a singular variable changed, which should only cause other addons to fail where they rely on the characters name being present there.

I will however add a disclaimer about potential incompatibilities with other group panel addons.
Report comment to moderator  
Reply With Quote
Unread 04/16/20, 04:32 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4979
File comments: 6039
Uploads: 78
I see, but if you ONLY want to change the character name to display name or vice versa you should ONLY change the affected line then and leave all other code normal.
Use a SecurePostHook on the SetupGroupEntry function. This will render all with vanilla code first.
Then in your callback function of the SecurePostHook only change the line:
Code:
control.characterNameLabel:SetText(zo_strformat(SI_GROUP_LIST_PANEL_CHARACTER_NAME, data.index, ZO_FormatUserFacingCharacterName(data.rawCharacterName)))
Or you PreHook the SetupGroupEntry function and set a variable in your addon to true, then PreHook the function ZO_FormatUserFacingCharacterName and change it to return the displayname instead IF the variable in your addon is true, and then let all other stuff run like normal.

This could be reused in other UIs if you want to change the character to display name as well e.g.


Edit:
This is what works fine for me (including an idea for settings to change the tooltip at the group member row between displayId or charactername):
Lua Code:
  1. local settings = {}
  2. settings.displayNameInTooltip = true
  3.  
  4. ZO_PreHook("ZO_GroupListRowCharacterName_OnMouseEnter", function(control)
  5.     if settings.displayNameInTooltip then
  6.         ZO_SocialListKeyboard.CharacterName_OnMouseEnter(GROUP_LIST, control)
  7.         return true
  8.     else
  9.         ZO_SocialListKeyboard.DisplayName_OnMouseEnter(GROUP_LIST, control)
  10.         return true
  11.     end
  12.     return false
  13. end)
  14.  
  15. SecurePostHook(GROUP_LIST, "SetupGroupEntry", function(self, control, data)
  16.     control.characterNameLabel:SetText(zo_strformat(SI_GROUP_LIST_PANEL_CHARACTER_NAME, data.index, data.displayName))
  17. end)
Last edited by Baertram : 04/16/20 at 06:16 AM.
Report comment to moderator  
Reply With Quote
Unread 04/16/20, 07:05 AM  
Jarva
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 13
Uploads: 7
This has now been updated to PostHook both methods and update the values as required as well as checking to align with the user social display preference. Thanks for your help.
Report comment to moderator  
Reply With Quote
Unread 08/25/22, 03:43 PM  
SerLoras
 
SerLoras's Avatar

Forum posts: 6
File comments: 8
Uploads: 0
Hello, I love this add-on. It fixes something that has annoyed me for probably years at this point, however, it does seem to be causing a small problem with the Cyrodiil Emperorship Leaderboard.

On the Emperor Leaderboards character names (rather than @names) are still being displayed, and when you mouse over the names I see this weird black box with a small cross in it show up.



If I disable the add-on, it goes back to the normal behavior, which is to show a small box with the @name when you mouse over a character name.



I'd really love to be able to replace all character names with @names on the Cyro Leaderboards too if that's possible, but I do at least need to be able to mouse over the name to see the @name.
Report comment to moderator  
Reply With Quote
Unread 04/13/23, 07:52 AM  
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view AddOns

Forum posts: 185
File comments: 704
Uploads: 20
Originally Posted by SerLoras
Hello, I love this add-on. It fixes something that has annoyed me for probably years at this point, however, it does seem to be causing a small problem with the Cyrodiil Emperorship Leaderboard.

On the Emperor Leaderboards character names (rather than @names) are still being displayed, and when you mouse over the names I see this weird black box with a small cross in it show up.


If I disable the add-on, it goes back to the normal behavior, which is to show a small box with the @name when you mouse over a character name.


I'd really love to be able to replace all character names with @names on the Cyro Leaderboards too if that's possible, but I do at least need to be able to mouse over the name to see the @name.
Hi, I've just been added to the team today and I'm working on the Emperor Leaderboards, I've already managed to display the account names but I've still have to fix the tooltips.
I will release an update when it's ready.
EDIT: done.
Last edited by Masteroshi430 : 04/13/23 at 08:14 AM.
Report comment to moderator  
Reply With Quote
Unread 04/13/23, 12:23 PM  
sinnereso
AddOn Author - Click to view AddOns

Forum posts: 245
File comments: 88
Uploads: 4
this is pretty sick addon.. the names are always so messed up in cyro leaderboard.. One thing though the current emperor is still using char name. Its always been so buggy when people change names.
Last edited by sinnereso : 04/13/23 at 12:23 PM.
Report comment to moderator  
Reply With Quote
Unread 04/13/23, 12:27 PM  
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view AddOns

Forum posts: 185
File comments: 704
Uploads: 20
Originally Posted by sinnereso
this is pretty sick addon.. the names are always so messed up in cyro leaderboard.. One thing though the current emperor is still using char name. Its always been so buggy when people change names.
Sorry but can you explain what is good/working and what is bad/not working more clearly so I can try to fix? Thanks 🙂
Report comment to moderator  
Reply With Quote
Unread 04/13/23, 01:08 PM  
sinnereso
AddOn Author - Click to view AddOns

Forum posts: 245
File comments: 88
Uploads: 4
Originally Posted by Masteroshi430
Originally Posted by sinnereso
this is pretty sick addon.. the names are always so messed up in cyro leaderboard.. One thing though the current emperor is still using char name. Its always been so buggy when people change names.
Sorry but can you explain what is good/working and what is bad/not working more clearly so I can try to fix? Thanks 🙂
Oh sorry . I was merely stating that the current emperor looks to be displaying as character name instead of @NAME like the rest while @NAME or USERID is set as my preference.
Report comment to moderator  
Reply With Quote
Unread 04/13/23, 01:41 PM  
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view AddOns

Forum posts: 185
File comments: 704
Uploads: 20
Originally Posted by sinnereso
Originally Posted by Masteroshi430
Originally Posted by sinnereso
this is pretty sick addon.. the names are always so messed up in cyro leaderboard.. One thing though the current emperor is still using char name. Its always been so buggy when people change names.
Sorry but can you explain what is good/working and what is bad/not working more clearly so I can try to fix? Thanks 🙂
Oh sorry . I was merely stating that the current emperor looks to be displaying as character name instead of @NAME like the rest while @NAME or USERID is set as my preference.
Implemented in just uploaded version 2023.04.13-2
Report comment to moderator  
Reply With Quote
Unread 04/13/23, 02:09 PM  
sinnereso
AddOn Author - Click to view AddOns

Forum posts: 245
File comments: 88
Uploads: 4
Originally Posted by Masteroshi430
Originally Posted by sinnereso
Originally Posted by Masteroshi430
Originally Posted by sinnereso
this is pretty sick addon.. the names are always so messed up in cyro leaderboard.. One thing though the current emperor is still using char name. Its always been so buggy when people change names.
Sorry but can you explain what is good/working and what is bad/not working more clearly so I can try to fix? Thanks 🙂
Oh sorry . I was merely stating that the current emperor looks to be displaying as character name instead of @NAME like the rest while @NAME or USERID is set as my preference.
Implemented in just uploaded version 2023.04.13-2
WOW nice.. i wish I could do stuff as fast as you guys.. takes me half a day to figure out how to save a variable =p
Report comment to moderator  
Reply With Quote
Unread 04/13/23, 02:11 PM  
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view AddOns

Forum posts: 185
File comments: 704
Uploads: 20
Originally Posted by sinnereso
Originally Posted by Masteroshi430
Originally Posted by sinnereso
Originally Posted by Masteroshi430
Originally Posted by sinnereso
this is pretty sick addon.. the names are always so messed up in cyro leaderboard.. One thing though the current emperor is still using char name. Its always been so buggy when people change names.
Sorry but can you explain what is good/working and what is bad/not working more clearly so I can try to fix? Thanks 🙂
Oh sorry . I was merely stating that the current emperor looks to be displaying as character name instead of @NAME like the rest while @NAME or USERID is set as my preference.
Implemented in just uploaded version 2023.04.13-2
WOW nice.. i wish I could do stuff as fast as you guys.. takes me half a day to figure out how to save a variable =p
Thanks for the compliment!
Report comment to moderator  
Reply With Quote
Unread 05/13/23, 12:20 PM  
Navarill

Forum posts: 11
File comments: 35
Uploads: 0
Originally Posted by Masteroshi430
Hi, I've just been added to the team today and I'm working on the Emperor Leaderboards, I've already managed to display the account names but I've still have to fix the tooltips.
I will release an update when it's ready.

EDIT: done.
FYI... since the Emperor Leaderboard changes, viewing the emp leaderboard crashes the entire UI in gamepad mode. When I get time, I'll enable LibDebugLogger and grab the error message for you.
Report comment to moderator  
Reply With Quote
Unread 05/13/23, 02:23 PM  
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view AddOns

Forum posts: 185
File comments: 704
Uploads: 20
Originally Posted by Navarill
Originally Posted by Masteroshi430
Hi, I've just been added to the team today and I'm working on the Emperor Leaderboards, I've already managed to display the account names but I've still have to fix the tooltips.
I will release an update when it's ready.

EDIT: done.
FYI... since the Emperor Leaderboard changes, viewing the emp leaderboard crashes the entire UI in gamepad mode. When I get time, I'll enable LibDebugLogger and grab the error message for you.
Yes, that's apparently when there is no emperor, will upload a fix in a few minutes, thanks.
Report comment to moderator  
Reply With Quote
Unread 05/21/23, 09:02 PM  
Navarill

Forum posts: 11
File comments: 35
Uploads: 0
Originally Posted by Masteroshi430
Originally Posted by Navarill
FYI... since the Emperor Leaderboard changes, viewing the emp leaderboard crashes the entire UI in gamepad mode. When I get time, I'll enable LibDebugLogger and grab the error message for you.
Yes, that's apparently when there is no emperor, will upload a fix in a few minutes, thanks.
In Cyrodiil tonight, there was no problem with the "Home" campaign, but the "Local" campaign resulted in the same error I was getting before.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: