The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Dwachs on February 05, 2012, 09:17:26 AM

Title: Patch: player nick names
Post by: Dwachs on February 05, 2012, 09:17:26 AM
This patch introduces nicknames for players in network games. It enables posting chat messages also for players without access to a company (ie chat for observers).

The nick name has to be entered in the server-list window. It can be changed there too. Should players be forced to enter a non-empty nickname before joining?
Title: Re: Patch: player nick names
Post by: jamespetts on February 05, 2012, 06:48:06 PM
This is a rather good idea...
Title: Re: Patch: player nick names
Post by: IgorEliezer on February 05, 2012, 07:19:34 PM
YES!

Where's the poll so I can vote yes!?  :o

Quote from: Dwachs on February 05, 2012, 09:17:26 AMIt can be changed there too. Should players be forced to enter a non-empty nickname before joining?
From I know about multiplayer games, when I join a multiplayer server, the server gives me a "temp-name", something like "Player1" or my OS username. And then, I change my nick by typing a command in a in-game chat that also works as a command-line (e.g. name "my-name-here" or /nick "my-name-here").
Title: Re: Patch: player nick names
Post by: prissi on February 05, 2012, 08:06:09 PM
I think the sensible choice would be a temp name from the server. For changing it I would expect it in the "talk" window. I.e. under the option for the windows time I would add a chaname filed.
Title: Re: Patch: player nick names
Post by: Ashley on February 21, 2012, 12:45:16 AM
Oh I was thinking of implementing this. I think currently we have two concepts, one of the player (e.g. the person sitting at their keyboard playing Simutrans) and the concept of a company (one of the player slots on the server). The player currently has no real identity beyond the ClientID (which changes). It's hard to tell when players switch between companies, and keep track of who is actually playing.

So yes, this is a really good idea for an enhancement, and there's lots of other things that can be built on top of this idea. (E.g. registration of nicknames with a central server, like the game listings, with a password. This would let players have a consistent identity throughout network games. Ranking systems can be built around such a database...)

I'd say don't force people to pick a name, let them change it in-game (and have an auto-assigned one, e.g. Player1). We can then make the distinction between Player and Company clear. (The local client should remember the name which has been picked and fill it in automatically upon subsequent game loads).
Title: Re: Patch: player nick names
Post by: Dwachs on March 05, 2012, 07:13:41 AM
Here is an update. Nicks can be changed in server window. If no nickname is provided a default one (Client#03) is used.
Title: Re: Patch: player nick names
Post by: Ashley on March 05, 2012, 08:58:46 AM
Looks good :)
Title: Re: Patch: player nick names
Post by: Dwachs on March 05, 2012, 07:53:31 PM
this is now incorporated in r5522.