Tasharen Entertainment Forum

Support => TNet 3 Support => Topic started by: fgame on November 23, 2013, 04:56:59 AM

Title: Possible to assign player ID from client?
Post by: fgame on November 23, 2013, 04:56:59 AM
Is that possible to specify player ID in client before connecting to server instead auto assigned by the server?

The problem there is a ID for every player in online game server. We want to use it to identify players.
Title: Re: Possible to assign player ID from client?
Post by: ArenMook on November 23, 2013, 08:49:25 PM
Not without modifying TNet. In TNet the player ID is just a temporary identifier -- an instance ID.
Title: Re: Possible to assign player ID from client?
Post by: fgame on November 23, 2013, 09:48:35 PM
Not without modifying TNet. In TNet the player ID is just a temporary identifier -- an instance ID.

How to do it? Or is there a better way workaround?
Title: Re: Possible to assign player ID from client?
Post by: ArenMook on November 24, 2013, 01:56:01 AM
You could encode whatever you need within the player's name itself. For example if the player's ID was 12345 and his name was ArenMook, you could have his name be "12345|ArenMook".