Tasharen Entertainment Forum
Support => TNet 3 Support => Topic started 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.
-
Not without modifying TNet. In TNet the player ID is just a temporary identifier -- an instance ID.
-
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?
-
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".