How do I create a custom city state?

Frossa

Prince
Joined
Apr 29, 2012
Messages
413
Location
Sweden
From the scratch, I don't have any programs at all to utilize any Civ5 modding. I'm looking for a guide to take me through all the steps of creating a custom city state, everything from naming it and deciding it's type.
Can anybody direct me to such a guide or tell me something about this manner? First of all I'd like to know what program I should use.
 
From the scratch, I don't have any programs at all to utilize any Civ5 modding. I'm looking for a guide to take me through all the steps of creating a custom city state, everything from naming it and deciding it's type.
Can anybody direct me to such a guide or tell me something about this manner? First of all I'd like to know what program I should use.

All you need for that is ModBuddy (it and Civ5 tools are downloadable in Steam under the name "Sid Meier's Civilization V SDK").

As an example, here is the xml code for the Macau city-state created by Zappara:

Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 9/29/2010 4:12:09 PM -->
<GameData>
	<!-- Adding a new CityState entry. -->
	<MinorCivilizations>
		<Row>
			<Type>MINOR_CIV_MACAU</Type>
			<Description>TXT_KEY_CITYSTATE_MACAU</Description>
			<ShortDescription>TXT_KEY_CITYSTATE_MACAU</ShortDescription>
			<Adjective>TXT_KEY_CITYSTATE_MACAU_ADJ</Adjective>
			<Civilopedia>TXT_KEY_CITYSTATE_MACAU_PEDIA</Civilopedia>
			<DefaultPlayerColor>PLAYERCOLOR_MINOR_PURPLE</DefaultPlayerColor>
			<ArtDefineTag>ART_DEF_CIVILIZATION_MINOR</ArtDefineTag>
			<ArtStyleType>ARTSTYLE_ASIAN</ArtStyleType>
			<ArtStyleSuffix>_ASIA</ArtStyleSuffix>
			<ArtStylePrefix>ASIAN</ArtStylePrefix>
			<MinorCivTrait>MINOR_TRAIT_MARITIME</MinorCivTrait>
		</Row>
	</MinorCivilizations>
	<MinorCivilization_CityNames>
		<Row>
			<MinorCivType>MINOR_CIV_MACAU</MinorCivType>
			<CityName>TXT_KEY_CITYSTATE_MACAU</CityName>
		</Row>
	</MinorCivilization_CityNames>
	<MinorCivilization_Flavors>
		<Row>
			<MinorCivType>MINOR_CIV_MACAU</MinorCivType>
			<FlavorType>FLAVOR_EXPANSION</FlavorType>
			<Flavor>5</Flavor>
		</Row>
		<Row>
			<MinorCivType>MINOR_CIV_MACAU</MinorCivType>
			<FlavorType>FLAVOR_CITY_DEFENSE</FlavorType>
			<Flavor>10</Flavor>
		</Row>
		<Row>
			<MinorCivType>MINOR_CIV_MACAU</MinorCivType>
			<FlavorType>FLAVOR_DEFENSE</FlavorType>
			<Flavor>0</Flavor>
		</Row>
		<Row>
			<MinorCivType>MINOR_CIV_MACAU</MinorCivType>
			<FlavorType>FLAVOR_WONDER</FlavorType>
			<Flavor>0</Flavor>
		</Row>
	</MinorCivilization_Flavors>
	<Language_en_US>
		<Row Tag="TXT_KEY_CITYSTATE_MACAU">
			<Text>Macau</Text>
		</Row>
		<Row Tag="TXT_KEY_CITYSTATE_MACAU_ADJ">
			<Text>Macanese</Text>
		</Row>
		<Row Tag="TXT_KEY_CITYSTATE_MACAU_PEDIA">
			<Text>Macau is one of the two special administrative regions of the People's Republic of China, the other being Hong Kong. The territory features industries such as textiles and toys, as well as a notable tourist and gambling sector. It has the highest life expectancy in the world (2008). Macau was a Portuguese colony and both the first and last European colony in China. Portuguese traders first settled in Macau in the 16th century and subsequently administered the region until the handover on 20 December 1999. The Sino-Portuguese Joint Declaration and the Basic Law of Macau stipulate that Macau operates with a high degree of autonomy until at least 2049, fifty years after the transfer.</Text>
		</Row>
	</Language_en_US>
</GameData>
 
All you need for that is ModBuddy (it and Civ5 tools are downloadable in Steam under the name "Sid Meier's Civilization V SDK").

As an example, here is the xml code for the Macau city-state created by Zappara:

Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 9/29/2010 4:12:09 PM -->
<GameData>
	<!-- Adding a new CityState entry. -->
	<MinorCivilizations>
		<Row>
			<Type>MINOR_CIV_MACAU</Type>
			<Description>TXT_KEY_CITYSTATE_MACAU</Description>
			<ShortDescription>TXT_KEY_CITYSTATE_MACAU</ShortDescription>
			<Adjective>TXT_KEY_CITYSTATE_MACAU_ADJ</Adjective>
			<Civilopedia>TXT_KEY_CITYSTATE_MACAU_PEDIA</Civilopedia>
			<DefaultPlayerColor>PLAYERCOLOR_MINOR_PURPLE</DefaultPlayerColor>
			<ArtDefineTag>ART_DEF_CIVILIZATION_MINOR</ArtDefineTag>
			<ArtStyleType>ARTSTYLE_ASIAN</ArtStyleType>
			<ArtStyleSuffix>_ASIA</ArtStyleSuffix>
			<ArtStylePrefix>ASIAN</ArtStylePrefix>
			<MinorCivTrait>MINOR_TRAIT_MARITIME</MinorCivTrait>
		</Row>
	</MinorCivilizations>
	<MinorCivilization_CityNames>
		<Row>
			<MinorCivType>MINOR_CIV_MACAU</MinorCivType>
			<CityName>TXT_KEY_CITYSTATE_MACAU</CityName>
		</Row>
	</MinorCivilization_CityNames>
	<MinorCivilization_Flavors>
		<Row>
			<MinorCivType>MINOR_CIV_MACAU</MinorCivType>
			<FlavorType>FLAVOR_EXPANSION</FlavorType>
			<Flavor>5</Flavor>
		</Row>
		<Row>
			<MinorCivType>MINOR_CIV_MACAU</MinorCivType>
			<FlavorType>FLAVOR_CITY_DEFENSE</FlavorType>
			<Flavor>10</Flavor>
		</Row>
		<Row>
			<MinorCivType>MINOR_CIV_MACAU</MinorCivType>
			<FlavorType>FLAVOR_DEFENSE</FlavorType>
			<Flavor>0</Flavor>
		</Row>
		<Row>
			<MinorCivType>MINOR_CIV_MACAU</MinorCivType>
			<FlavorType>FLAVOR_WONDER</FlavorType>
			<Flavor>0</Flavor>
		</Row>
	</MinorCivilization_Flavors>
	<Language_en_US>
		<Row Tag="TXT_KEY_CITYSTATE_MACAU">
			<Text>Macau</Text>
		</Row>
		<Row Tag="TXT_KEY_CITYSTATE_MACAU_ADJ">
			<Text>Macanese</Text>
		</Row>
		<Row Tag="TXT_KEY_CITYSTATE_MACAU_PEDIA">
			<Text>Macau is one of the two special administrative regions of the People's Republic of China, the other being Hong Kong. The territory features industries such as textiles and toys, as well as a notable tourist and gambling sector. It has the highest life expectancy in the world (2008). Macau was a Portuguese colony and both the first and last European colony in China. Portuguese traders first settled in Macau in the 16th century and subsequently administered the region until the handover on 20 December 1999. The Sino-Portuguese Joint Declaration and the Basic Law of Macau stipulate that Macau operates with a high degree of autonomy until at least 2049, fifty years after the transfer.</Text>
		</Row>
	</Language_en_US>
</GameData>

Thanks, but where do I download the SDK? It's not in the store as far as I can see :o

Edit: Okay, found it. :)
 
Into a new XML file (that you later set to OnModActivated > UpdateDatabase in the Actions tab of the mod's properties).
I can't place there code
 

Attachments

  • 2023-07-12 12_44_06-City-States Expansion 2 v0.1 - ModBuddy.png
    2023-07-12 12_44_06-City-States Expansion 2 v0.1 - ModBuddy.png
    40.4 KB · Views: 19
Top Bottom