The online racing simulator
UCID and Username
(5 posts, started )
UCID and Username
is anyone familiar with insims where usernames aren't used at all?
I'm working on an insim where playernames are used to identify a person (no its not for a cracked community).

Its actually for a racing center in south-norway. They have 8 LFS accounts they use and wants to save stats of their customers and post on their website later on.

Might be a stupid question.. but:
I keep getting the UCID of the host. The ucid can be found in several packets, but is it assigned with the username aswell? Since there are many different customers on the racing center, I can't use the username.

I tried to send a message where it said "welcome back, <incoming connection>". It said Host no matter what.

Attached images
dab.jpg
dab2.jpg
-
(Chag16) DELETED by Chag16
Eehh yes? Every NCN packet has a PName as well;

struct IS_NCN // New ConN
{
byte Size; // 56
byte Type; // ISP_NCN
byte ReqI; // 0 unless this is a reply to a TINY_NCN request
byte UCID; // new connection's unique id (0 = host)

char UName[24]; // username
char PName[24]; // nickname

byte Admin; // 1 if admin
byte Total; // number of connections including host
byte Flags; // bit 2 : remote
byte Sp3;
};

Quote from cargame.nl :Eehh yes? Every NCN packet has a PName as well;

struct IS_NCN // New ConN
{
byte Size; // 56
byte Type; // ISP_NCN
byte ReqI; // 0 unless this is a reply to a TINY_NCN request
byte UCID; // new connection's unique id (0 = host)

char UName[24]; // username
char PName[24]; // nickname

byte Admin; // 1 if admin
byte Total; // number of connections including host
byte Flags; // bit 2 : remote
byte Sp3;
};


The InSim manual is the first place i check, PName worked just fine earlier.
Until I decided not to base the stats on the username.
I may have missed something in the codes.

EDIT:
I changed it back to use username instead and it works again.
I don't know what caused it, but works again so I'm happy with it.
Solved?
UCID is a Unique Connection ID. It's uniqueness is only for as long as that connection lasts for and the numbers are used over and over again. PName is not Unique at all and are set by the player. So one play could set their name to another player name after they have disconnected. PLID only lasts for as long as the player is actually in the game for. UName is the only that that is Unique to a client across sessions and across servers. You should always use that for saving information on a client.

UCID and Username
(5 posts, started )
FGED GREDG RDFGDR GSFDG