My Question...

jsweeney

American
Joined
Mar 28, 2008
Messages
323
Location
Boston Area, America
Hey there.
I'm trying to make a British Empire mod, i'm a begginer, and i wanted to know if it is possible to make it if the British place a city on a landmass that is different from its capital, if the predetermined names can be different.
So if you start an Earth18civs map as Britian(i plan on britian replacing england) and you find London, York, etc. on the Main British Isle, then if you find a city on a different continent( america, for example) the list will change to Jamestown, New York, etc.
Please, if you have any ideas, please post, and when im done ill post the mod in the proper directory.
 
I know you can rearrange the names in the city list. But I wouldn't know how to make the game decide. Maybe there's a way to make a variable to determine where you are, and have the game select from one of 2 lists... ie one list for normal, one list for new continent.
I don't know how one would achieve this but I can tell you if you figure it out you won't be a beginner. I know that BTS can figure out what continent you're on (for colonies), maybe you could figure out where that code is and adapt it for your needs.

Good Luck.
 
I'm sure this could be done in Python, although I cannot (yet) tell you exactly how to do it. Just for starters, find the Python code for naming new cities (it is going to be an event trigger somewhere) and add some code to check the continental location before picking a new name. I have never seen any tags in the map files for continent, so you will have to either put one into python code somewhere and probably add an xml and modify or create a schema file. The alternative would be to identify the continents by a range of map coordinates at the front of the python file with the code for naming cities, probably much easier. Last, you would have to figure out a way to have to code skip to a certain line which would be the the start in the cities list of names for that continent, or move the cities list to a new xml file, ContinentalInfos.xml, which would have continental info for each continent, including lists of city names, more python and xml coding.

Or, you could just keep a written list and name the cities yourself as they are started.
 
Reminder: QUESTIONS BELONG IN THE MAIN CREATION FORUM!

And yes, you could probly do this in python, if the naming popup is created some where in the python files, but if its not (or you want to be able to define your new lists in the xml) your going to have to mod the SDK.
 
Back
Top Bottom