The International Simutrans Forum

Development => Bug Reports => Topic started by: Roboron on April 04, 2026, 07:00:57 PM

Title: Wrong citylist when creating map after joining online game
Post by: Roboron on April 04, 2026, 07:00:57 PM
Something weird happened today after I configured the new Simutrans Public Server (SPC). After joining the server, I went to create a new map, and then all but a few cities were called "simcity"! How is that possible? Simcity died a decade ago!

Seriously, here is what I think that happened:

1. I have my game language set up to Spanish, with a custom citylist_es.txt that is actually a "World citylist", the one used on the SPC.
2. I joined the SPC, then went to create a new map because I forgot some config.
3. When creating the new map, it seems that citylist_en.txt was used, instead of citylist_es.txt. As there is not enough cities in that list, "simcity" everywhere...

After restarting Simutrans and creating a new map again, it used the right citylist.
Title: Re: Wrong citylist when creating map after joining online game
Post by: prissi on April 05, 2026, 02:03:22 AM
Yes, the server set the game name langugae to whatever was on the server. Hence, all stop names on all clients are the same. Apprantly, starting a new game does not reset the name language. Had you selected "es" again, then it would have resetted.
Title: Re: Wrong citylist when creating map after joining online game
Post by: Roboron on April 07, 2026, 04:53:54 PM
Quote from: prissi on April 05, 2026, 02:03:22 AMApprantly, starting a new game does not reset the name language.

It does reset the language but not the citylist/streetlist language files. Fixed in r11922 by calling translator::init_custom_names on game creation as is done on network join.
Title: Re: Wrong citylist when creating map after joining online game
Post by: prissi on April 08, 2026, 12:25:09 AM
Well, I am working on exposing the name language too. It is just a tab on the langugage screen.

And comitted.