The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: jamespetts on February 06, 2010, 11:22:11 pm

Title: Changing player company names
Post by: jamespetts on February 06, 2010, 11:22:11 pm
I am considering writing a patch for -Standard after I have got -Experimental 7.2 out which would allow players to change the name of their own player company. I know that this is something that has been mentioned by Prissi in the past as a desirable feature. Before I start, are there any issues or traps of which I should be aware in coding a feature of this sort? In particular, how would I ensure that it would be network safe?
Title: Re: Changing player company names
Post by: Dwachs on February 07, 2010, 02:11:39 pm
For network mode, you must ensure that the company is renamed on all clients. However, all this renaming stuff does not work ovr network yet (cities, stop, lines, etc).
Title: Re: Changing player company names
Post by: jamespetts on February 07, 2010, 02:42:09 pm
Ahh - should I hold off until other renaming works?
Title: Re: Changing player company names
Post by: Dwachs on February 07, 2010, 04:27:39 pm
no :)
Title: Re: Changing player company names
Post by: prissi on February 07, 2010, 08:25:04 pm
The main problem with renaming is the UI; player options (also for AI there could be some options) are not implemented yet. Other than that I planned to make next to the p****word also the name changeable for network gaming (and of course nomal gaming). But the money frame is already too large. So I am not yet sure which way to go.