[v1.3.0+] Longer Character Names

A place to post your add ons and ideas for them

Moderator: Moderator

Post Reply
Message
Author
Zizzo
Sher'Tul Godslayer
Posts: 2009
Joined: Thu Jan 23, 2003 8:13 pm
Location: A shallow water area south of Bree
Contact:

[v1.3.0+] Longer Character Names

#1 Post by Zizzo »

I think the reason I ultimately gave up on Yeek Brawler Reginald Q. Milquetoast III, Esq. (on top of, y'know, the whole drowning thing, this being pre-Nur-Kit) was the demoralizing effect of discovering that the game was truncating his name. :? :( Specifically, Game:setPlayerName() enforces a maximum character name length of 25 characters. [Oddly, the name field on the character creation dialog is set up with a max_len of 50 characters, which is why I wasn't expecting the truncation.] Well, AFAICT there's no particular structural reason that necessitates the 25-character limit, so a quick bit of overloading later, I give you my new Longer Character Names addon. :wink:

Now, as a first pass, we increase the character name length limit to 50 in Game:setPlayerName() to match the character creation dialog, on the theory that (a) if I wanted to increase it further, I'd have to superload both places, and (b) I can't think of any obvious names I'm tempted to use that are longer than this one. If anyone does want a really, really long name, let me know and maybe we can work something out.

[Technical notes:]

Code: Select all

Superload:
  mod.class.Game:
    setPlayerName() [overloaded, to increase max character name len to 50]
"Blessed are the yeeks, for they shall inherit Arda..."

stinkstink
Spiderkin
Posts: 543
Joined: Sat Feb 11, 2012 1:12 am

Re: [v1.3.0+] Longer Character Names

#2 Post by stinkstink »

yes yes thank you

Hellcommander
Archmage
Posts: 359
Joined: Tue Nov 09, 2010 7:43 pm

Re: [v1.3.0+] Longer Character Names

#3 Post by Hellcommander »

Are you going to add your new addons to your addon pack (please do so I can use your new tweaks)?

Zizzo
Sher'Tul Godslayer
Posts: 2009
Joined: Thu Jan 23, 2003 8:13 pm
Location: A shallow water area south of Bree
Contact:

Re: [v1.3.0+] Longer Character Names

#4 Post by Zizzo »

Hellcommander wrote:Are you going to add your new addons to your addon pack (please do so I can use your new tweaks)?
(shrug) Dunno, I'll ask. :wink:
"Blessed are the yeeks, for they shall inherit Arda..."

astralInferno
Uruivellas
Posts: 757
Joined: Mon Jan 27, 2014 10:40 am

Re: [v1.3.0+] Longer Character Names

#5 Post by astralInferno »

Hogulus wants you to know you are a gentleman and a scholar. :wink:

Zizzo
Sher'Tul Godslayer
Posts: 2009
Joined: Thu Jan 23, 2003 8:13 pm
Location: A shallow water area south of Bree
Contact:

Re: [v1.3.0+] Longer Character Names

#6 Post by Zizzo »

Just a reminder that this addon is now included in ZOmnibus and ZOmnibus Lite as of v16. (This is such a simple addon that I don't even have to push out a compatibility release for it…)
"Blessed are the yeeks, for they shall inherit Arda..."

Post Reply