citynames for earthmap

No, I didn't make a clear point. What I meant is that if Rome expands outside of its city name map, then the game will assign the default city name. And there is no randomness about this. The city will get the first city name defined in the XML not already in use. So unless Cumae is already used as a city name it will be Cumae no matter where you build the city, as long as there is no other city name entry for that tile.

Right-click on the .py file and select Edit or Open with... In the second case you should select a text or code editor. Beware however that the Python module is huge - and written in Python. :rolleyes:
 
No, I didn't make a clear point. What I meant is that if Rome expands outside of its city name map, then the game will assign the default city name. And there is no randomness about this. The city will get the first city name defined in the XML not already in use. So unless Cumae is already used as a city name it will be Cumae no matter where you build the city, as long as there is no other city name entry for that tile.

Right-click on the .py file and select Edit or Open with... In the second case you should select a text or code editor. Beware however that the Python module is huge - and written in Python. :rolleyes:

A-Ha !
I thought it was being randomized because usually in a normal game, after I built Rome the next city is Antium before Cumae :D I don't built Antium this time and I've got Cumae that's why I wonder if it's being randomized.. hehe..

Waw yes it's .. really huge.
Btw, is there a thread specialized to discuss the city names ? I wonder that..
1) I'm playing with Roman and if I built the city at tile where the Settler spawn or 1 tiles next to it, both has the entry name Rome, but if Rome already built in one of the tiles, the other tiles will be named Cumae or the first unused name defined in XML. Did I interpret it right ?
2) I can't find any entry about Parapamisidae (Indian Empire) in Wikipedia. Instead, I found Paropamisadae (http://en.wikipedia.org/wiki/Paropamisadae)..

Thanks a lot !
 
1) I'm playing with Roman and if I built the city at tile where the Settler spawn or 1 tiles next to it, both has the entry name Rome, but if Rome already built in one of the tiles, the other tiles will be named Cumae or the first unused name defined in XML. Did I interpret it right ?
Basically, any time a city is founded it gets the default XML name. So for the Romans it would be Rome for the first city, no matter where it is built.

What happens with the CityNameManager is that it interrupts the game any time a city is founded and compares the tile coordinates of the city with the city name map of that player. If there is a entry for that tile, then the name is changed to whatever is specified in the code.

This is all there is to it.
 
Basically, any time a city is founded it gets the default XML name. So for the Romans it would be Rome for the first city, no matter where it is built.

What happens with the CityNameManager is that it interrupts the game any time a city is founded and compares the tile coordinates of the city with the city name map of that player. If there is a entry for that tile, then the name is changed to whatever is specified in the code.

This is all there is to it.

Oooh.. so that's the concept :)
Even if I drag my settler to China, and build my first cities there, it will still be named Rome ? Cool !
Thanks a lot ..
 
Ugh, forgot to update the team numbers when revising the civs order. Once more then... (see attachment)

The mod runs perfectly, except for... the names of the cities are as in non-mod game, sa my second Greek city is Sparta, on the spot where it shouldn't be. Can this be fixed?
 
Back
Top Bottom