Multiple City Problem?

Shqype

Shqyptar
Joined
Nov 15, 2005
Messages
2,468
Location
New York + Shqypni
Thanks to Brent Richie's XML tutorials, I was able to create my new civilization. Upon doing a test run, I found no problems, and used my settler to create my first city, Shkodra.

The next day, I decided to go back into my code and expand my new civilization to include more than 1 city. I added 11 new cities and the appropriate tags, however, when I opened the game to test them out, I ran into some problems: When I use the settler to settle and create a new city the game exits back to my Windows desktop ...

In Java class I've had similar issues with copying and pasting.. code did not work simply because it was copied and pasted from elsewhere... it only worked after I rewrote the code from scratch, although it was the exact same thing... perhaps that is the issue here, because I copied and pasted the city tags from the CIV4CivilizationInfos XML file into the CIV4GameTextInfos_Cities XML file and simply changed the tags.

In any case, here is my code, if anyone can point out anything wrong with it other than my belief in the copying issue, please let me know.

CIV4CivilizationInfos.xml
<Cities>
<City>TXT_KEY_CITY_NAME_SHKODRA</City>
<City>TXT_KEY_CITY_NAME_DURRES</City>
<City>TXT_KEY_CITY_NAME_BOGE</City>
<City>TXT_KEY_CITY_NAME_VUKEL</City>
<City>TXT_KEY_CITY_NAME_LEZHE</City>
<City>TXT_KEY_CITY_NAME_KRUJE</City>
<City>TXT_KEY_CITY_NAME_ULQIN</City>
<City>TXT_KEY_CITY_NAME_TIRANA</City>
<City>TXT_KEY_CITY_NAME_PRISHTINA</City>
<City>TXT_KEY_CITY_NAME_SHKUP</City>
<City>TXT_KEY_CITY_NAME_BERAT</City>
<City>TXT_KEY_CITY_NAME_SARANDA</City>
</Cities>

CIV4GameTextInfos_Cities.xml
<TEXT>
<Tag>TXT_KEY_CITY_NAME_SHKODRA</Tag>
<English>Shkodra</English>
</TEXT>
<TEXT>
<Tag>TXT_KEY_CITY_NAME_DURRES</Tag>
<English>Durres</English>
</TEXT>
<TEXT>
<Tag>TXT_KEY_CITY_NAME_BOGE</Tag>
<English>Boge</English>
</TEXT>
<TEXT>
<Tag>TXT_KEY_CITY_NAME_VUKEL</Tag>
<English>Vukel</English>
</TEXT>
<TEXT>
<Tag>TXT_KEY_CITY_NAME_LEZHE</Tag>
<English>Lezhe</English>
</TEXT>
<TEXT>
<Tag>TXT_KEY_CITY_NAME_KRUJE</Tag>
<English>Kruje</English>
</TEXT>
<TEXT>
<Tag>TXT_KEY_CITY_NAME_ULQIN</Tag>
<English>Ulqin</English>
</TEXT>
<TEXT>
<Tag>TXT_KEY_CITY_NAME_TIRANA</Tag>
<English>Tirana</English>
</TEXT>
<TEXT>
<Tag>TXT_KEY_CITY_NAME_PRISHTINA</Tag>
<English>Prishtina</English>
</TEXT>
<TEXT>
<Tag>TXT_KEY_CITY_NAME_SHKUP</Tag>
<English>Shkup</English>
</TEXT>
<TEXT>
<Tag>TXT_KEY_CITY_NAME_BERAT</Tag>
<English>Berat</English>
</TEXT>
<TEXT>
<Tag>TXT_KEY_CITY_NAME_SARANDA</Tag>
<English>Saranda</English>
</TEXT>
 
I cleared the game cache but am still coming up with the same problem.

=/
 
I just delete all my city code and simply rewrote my original 1-city code for Shkodra ... when I attemp to build a city with my settler the game exits to my Windows desktop.

...perhaps playing around with the XML files I made a typo somewhere and changed the city values?

Is there no one that can help me? :(
 
In test playing, I have discovered that this issue is not exclusive to my unique civ... any civilization I play as, whenever I use my free settler to build a city, the game exits to the desktop.

What could this possibly be caused by?
 
Does the game exit when you build a city with the World Editor? I don't know XML that well but the answer might help others.
 
I deleted the game, then reinstalled it. After I cleared my custom files and game saves and everything else I had previously, I ran the game, toned down the quality, and crossed my fingers ... it worked.
 
Back
Top Bottom