City Name Problem

jaldaen

Prince
Joined
Feb 19, 2006
Messages
467
So I've returned to Civilization 5 modding after a year or so away and was updating my Portugal mod. I've gotten everything to work with the base game, except the city names, which Keep coming up "TXT_KEY_CITY_NAME_insertname" (with the exception of Lisbon, which comes up fine.)

Here's what my current code looks like in the Civilization file:

Code:
<Civilization_CityNames>
     <Row>
           <CivilizationType>CIVILIZATION_PORTUGAL</CivilizationType>
           <CityName>TXT_KEY_CITY_NAME_LISBON</CityName>
     </Row>
     <Row>
          <CivilizationType>CIVILIZATION_PORTUGAL</CivilizationType>
          <CityName>TXT_KEY_CITY_NAME_PORTO</CityName>
     </Row>
     <Row>
          <CivilizationType>CIVILIZATION_PORTUGAL</CivilizationType>
          <CityName>TXT_KEY_CITY_NAME_BRAGA</CityName>
     </Row>
</Civilization_CityNames>

And the City file:

Code:
<GameData>
<Language_en_US>
     <Row Tag="TXT_KEY_CITY_NAME_LISBON">
          <Text>Lisbon</Text>
     </Row>
     <Row Tag="TXT_KEY_CITY_NAME_PORTO">
          <Text>Porto</Text>
     </Row>
     <Row Tag="TXT_KEY_CITY_NAME_BRAGA">
          <Text>Braga</Text>
     </Row>
</Language_en_US>
</GameData>

I figure I'm missing something that changed in one of the patches. Any help would be greatly appreciated.

Thanks,
Jaldaen
 
Lisbon is a city state in unmodded game, so TXT_KEY_CITY_NAME_LISBON already exists. That's why your entire file with city names won't load (it should be reported as an error in database.log). It should work fine if you remove Lisbon from the City file.
 
Top Bottom