[v1.3.0+] Longer Character Names
Posted: Thu Jul 14, 2016 11:14 pm
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. 
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:]



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]