Shqype
Shqyptar
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>
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>