View previous topic :: View next topic |
Author |
Message |
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Sat Sep 09, 2006 15:02 Post subject: Dynamic names |
|
|
Recently I wrote an NWNX-plugin for my RP PW to dynamically change player/creature names that are being sent to clients. In other words, the real names remain (for DMs and scripts), while the ones displayed in player clients may be different and are changed by scripts.
For example, I see somebody for the first time, so his/her name is "Stranger" for me. When he/she tells me his/her name (it can be a false name), I can set this name to be displayed automatically next time we meet. So there will be no "name over the head" problem.
Something like that:
http://data.virusman.ru/nwn/name_disp3.jpg (just changed all display names to "Test name")
http://data.virusman.ru/nwn/name_disp4.jpg (first number is client PC object ID, second is the creature ObjID)
http://data.virusman.ru/nwn/names_party.jpg (party example; the grey word is "Stranger" in russian)
http://data.virusman.ru/nwn/nwnx_names1.jpg
http://data.virusman.ru/nwn/nwnx_names2.jpg
It can be used to hide real PC names and allow players to set a custom name to any other PC.
It's still in development and I haven't decided if it'll be released or not..
Last edited by virusman on Sat Feb 09, 2008 1:52; edited 1 time in total |
|
Back to top |
|
|
dorrian
Joined: 05 Apr 2007 Posts: 7
|
Posted: Thu Apr 05, 2007 21:15 Post subject: |
|
|
That both sounds and looks truly amazing. Did you end up doing much with this? I would love to hear more about it. |
|
Back to top |
|
|
nwn_martin
Joined: 06 Apr 2007 Posts: 10
|
Posted: Fri Apr 06, 2007 17:10 Post subject: wonderful |
|
|
i have always wished for hiding identity, this is totally awesome |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Fri Apr 06, 2007 21:24 Post subject: |
|
|
We use it for our identity hiding system on my PW.
This is the most complicated plugin of all my NWNX plugins. It supports only NWServer 1.67 (Linux) now. When 1.69 comes out, I'll port it to 1.69.
It's impossible to port it to Windows.
And I'll probably never do anything like this again. I spent 2 weeks in disasm/debug just to make something that nobody thought was possible. |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Sat Apr 07, 2007 11:33 Post subject: |
|
|
I know this feeling... Happened to me with resource manager. _________________ Papillon |
|
Back to top |
|
|
Zebranky
Joined: 04 Jun 2006 Posts: 415
|
Posted: Sun Jul 08, 2007 3:47 Post subject: |
|
|
Does SetName() effectively do the same thing as this plugin (for PCs), or does it actually change the PC's name with regards to everything? If the latter, then I just might have to try the impossible and port it to Windows. |
|
Back to top |
|
|
FunkySwerve
Joined: 02 Jun 2005 Posts: 377
|
Posted: Sun Jul 08, 2007 7:18 Post subject: |
|
|
You can do pc name changes fairly effortlessly using leto. I have a post on the leto forms with the needed functions, just fyi.
Funky |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Sun Jul 08, 2007 11:48 Post subject: |
|
|
SetName doesn't work for PCs. Even if it did, its effect would be global. |
|
Back to top |
|
|
Zebranky
Joined: 04 Jun 2006 Posts: 415
|
Posted: Sun Jul 08, 2007 18:20 Post subject: |
|
|
I don't want to permanently change the PC's name, as that would royally screw up all references to them in the DB. |
|
Back to top |
|
|
bard
Joined: 20 Aug 2007 Posts: 1
|
Posted: Mon Aug 20, 2007 15:46 Post subject: |
|
|
Any news with dynamic names plugin?
Such an amazing thing should definitely be part of all RP NWN worlds! |
|
Back to top |
|
|
PhyrPhly
Joined: 16 Jun 2007 Posts: 25
|
Posted: Wed Aug 22, 2007 16:38 Post subject: Re: Dynamic names |
|
|
This is very interesting. Nice job!
I'm curious... You state that a PC can dynamically name a "stranger". Since this is server-side, is the "new" name displayed for all clients? (e.g. PlayerA sets PlayerB's character's name from "Stranger" to "Bob", does PlayerC see PlayerB's character as "Stranger" or "Bob"?)
If all PC/NPC names are unique to every player, are you using some sort of table to store these names?
Thanks,
- PhyrPhly |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Wed Aug 22, 2007 17:39 Post subject: Re: Dynamic names |
|
|
PhyrPhly wrote: | I'm curious... You state that a PC can dynamically name a "stranger". Since this is server-side, is the "new" name displayed for all clients? (e.g. PlayerA sets PlayerB's character's name from "Stranger" to "Bob", does PlayerC see PlayerB's character as "Stranger" or "Bob"?) | Of course no.
PhyrPhly wrote: | If all PC/NPC names are unique to every player, are you using some sort of table to store these names? | Yes. |
|
Back to top |
|
|
Extreme
Joined: 28 Nov 2007 Posts: 135
|
Posted: Fri Feb 22, 2008 23:31 Post subject: |
|
|
i Want to thank you for making this plugin. I have not put her in yet, but this is exactly what teh doctor ordered |
|
Back to top |
|
|
Zaith
Joined: 05 Jun 2007 Posts: 21
|
Posted: Sat Feb 23, 2008 0:34 Post subject: |
|
|
Extreme wrote: | i Want to thank you for making this plugin. I have not put her in yet, but this is exactly what teh doctor ordered |
I didn't realize that this had been released already. I've been waiting for this since virusman first hinted that he might release it. |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Sat Feb 23, 2008 15:04 Post subject: |
|
|
The plugin is not available yet. As I said before, I'll release it after 1.69 (final) comes out. |
|
Back to top |
|
|
|