[Hackfest] Question about player names.

Christopher Yeoh cyeoh at samba.org
Tue Mar 29 23:39:32 EST 2005


At 2005/3/29 21:12+0800  Russell Steicke writes:
> Hello,
> 
> I have a query about player names, and what happens if there are
> duplicate names in a game of spellcast.
> 
> Duplicate names are accepted by the server, and the players with
> identical names are assigned different IDs.  They are then
> distinguished by ID number.   When the players are sent a series of
> MSG_SEND_NEWPLAYER_INFO messages, the players with duplicate names are
> included with their different IDs.  The players are all sent the list
> in the same order.
> 
> How does a player tell which ID is himself if there are duplicate
> names?  The example clients don't seem to care about this, although
> they are still fairly simple.  But in an intelligent client this will
> be very important.

Hi Russell,

For the competition unique names will be enforced. The original plan
was to just reject a client if it supplied an existing name. I think
this would be better than accepting duplicates anyway as its confusing
for observers. btw this will mean a minor change to the protocol
to be able to reject an initial connection.

Also just as a warning, I just realised that there will have to
be an extra request/response cycle for creation of elementals
to ask the player for ice or fire versions.

Regards,

Chris
-- 
cyeoh at samba.org



More information about the Hackfest mailing list