logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Dynamic names
Goto page Previous  1, 2, 3, 4, 5
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development
View previous topic :: View next topic  
Author Message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Tue Dec 02, 2014 0:50    Post subject: Reply with quote

InitPlayerNameList should be called on oPC instead of the module, and you should move NWNX!INIT stuff to OnModuleLoad as it should only be called once and as soon as the server loads.
_________________
In Soviet Russia, NWN plays you!
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
metagamer



Joined: 30 Nov 2014
Posts: 20

PostPosted: Thu Dec 04, 2014 0:56    Post subject: Reply with quote

Ok thanks, it is working.

I have some questions anyway.

For example
void SetDynamicName(object oPlayer, object oObject, string sName)

object oPlayer: ok
object oObject: which object should I use? The module, one "support" object?

I would like to have that each player is able to set the name of the "Unknown" PG. Basically each player will have a different List Characters and will see different names of the other players.
In the GDR contest, this is usefull because "Player A" could bluff and then "Player B"" could really think that his name is "Paciuciucio" instead of "Player A".

Can you suggest me where to find the function where should I work in cpp?
I am trying to do it. I will give you the work done once completed.

Smile
Back to top
View user's profile Send private message Visit poster's website
elven



Joined: 28 Jul 2006
Posts: 259
Location: Germany

PostPosted: Thu Dec 04, 2014 15:15    Post subject: Reply with quote

metagamer wrote:

void SetDynamicName(object oPlayer, object oObject, string sName)

object oPlayer: ok
object oObject: which object should I use? The module, one "support" object?

I would like to have that each player is able to set the name of the "Unknown" PG. Basically each player will have a different List Characters and will see different names of the other players.
In the GDR contest, this is usefull because "Player A" could bluff and then "Player B"" could really think that his name is "Paciuciucio" instead of "Player A".


I did this on my PW way back then. oPC is the one who should see the name, oObject is the named object (in this instance, the other player character). You might have to party- or area-cycle him to update the name, though.

FWIW, it wasn't used much because it was too much work for players to maintain name lists, so I scrapped the thing again.
Back to top
View user's profile Send private message
xorbaxian



Joined: 18 Dec 2007
Posts: 45

PostPosted: Thu Dec 11, 2014 1:41    Post subject: Reply with quote

for npc's, i've used functionality similar to this using the standard nwn SetName() function. in doing this, i ran into some strange behaviour -- after using SetName(), one pc will see the npc's new name, but others will continue to see the old one. my guess is that the engine somehow doesn't update all of the game clients correctly after the SetName() call. does the nwnx_names plugin get around this difficulty ?
Back to top
View user's profile Send private message
metagamer



Joined: 30 Nov 2014
Posts: 20

PostPosted: Tue Mar 17, 2015 15:45    Post subject: Reply with quote

I have another interesting question.

Does somebody know if it is possible to HIDE the Player Name of the character?
I mean...to mask the account name.

Very Happy
Back to top
View user's profile Send private message Visit poster's website
elven



Joined: 28 Jul 2006
Posts: 259
Location: Germany

PostPosted: Tue Mar 17, 2015 15:47    Post subject: Reply with quote

metagamer wrote:
I have another interesting question.

Does somebody know if it is possible to HIDE the Player Name of the character?
I mean...to mask the account name.

:D


Not as it is now. You would have to hook and patch the server at a few places in the netlayer and rewrite them into pseudoyms.
_________________
silm.pw, a player-driven Forgotten Realms NWN1 persistent world for tinkerers.
Back to top
View user's profile Send private message
Lea_Andersteen



Joined: 15 Sep 2012
Posts: 5

PostPosted: Wed Jul 01, 2015 11:21    Post subject: Reply with quote

i'm using the nwnx_name for a module.

I clean a bit the code (the code i downloaded have duplicated declaration of NWN function) and i use it perfectly.

Btw i have a strange issue, i try to add the "setname function for the PC on a radial menu. I try it on PLAYER_TOOL_01. I did stuff about this found on the lexicon horse tutorial: it failed. I found a hak on the vault (the new one), witch had a social interaction menu on a radial, and it fail too.

I'm a bit mad about it >_>
I'm know i'm just a bit out of topic but it seem there is life here. And i will put on vault my dynamic name implementation Smile

http://neverwintervault.org/project/nwn1/hakpak/radial-social-actions

Trinity! I need some help!
Back to top
View user's profile Send private message
Anaris



Joined: 16 Mar 2018
Posts: 1

PostPosted: Thu Mar 22, 2018 7:36    Post subject: Reply with quote

I am wondering if any could share an example of how they used nwnx_names to create a Disguise system. Alternatively good documentation on how to use the various functions in nwnx_names will be highly appreciated.

Thank you!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development All times are GMT + 2 Hours
Goto page Previous  1, 2, 3, 4, 5
Page 5 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group