Hello guys, I made some custom citystates that I'll use for a custom map, and at the moment one problem happens to me:
When I want to place the citystate on my map, it doesn't exist.
But they are shown as leaders. So instead of a CS called Andorra, there is a leader called Andorra, how can I turn Andorra into a citystate?
I'm new to modding and just wanted to add some CS for a map, so I tried the scheme of the civilizations.xml
file and this is how it looks like:
I hope that someone can help me with my little problem here ^^
When I want to place the citystate on my map, it doesn't exist.
But they are shown as leaders. So instead of a CS called Andorra, there is a leader called Andorra, how can I turn Andorra into a citystate?
I'm new to modding and just wanted to add some CS for a map, so I tried the scheme of the civilizations.xml
file and this is how it looks like:
Code:
<?xml version="1.0" encoding="utf-8"?>
<GameInfo>
<Types>
<!--CIVILIZATIONS-->
<Row Type="CIVILIZATION_ANDORRA" Kind="KIND_CIVILIZATION"/>
<!--LEADERS-->
<Row Type="LEADER_MINOR_CIV_ANDORRA" Kind="KIND_LEADER"/>
<!--TRAITS-->
<Row Type="MINOR_CIV_ANDORRA_TRAIT" Kind="KIND_TRAIT"/>
</Types>
<Leaders>
<Row LeaderType="LEADER_MINOR_CIV_ANDORRA" Name="Andorra" InheritFrom="LEADER_MINOR_CIV_TRADE"/>
</Leaders>
<LeaderTraits>
<Row LeaderType="LEADER_MINOR_CIV_ANDORRA" TraitType="MINOR_CIV_ANDORRA_TRAIT"/>
</LeaderTraits>
<Traits>
<Row TraitType="MINOR_CIV_ANDORRA_TRAIT" Name="Andorra Suzerain Bonus" Description="+1 [ICON_GOLD] and +1 [ICON_CULTURE] for all mountain tiles in your Civilization."/>
</Traits>
<TraitModifiers>
<Row TraitType="MINOR_CIV_ANDORRA_TRAIT" ModifierId="MINOR_CIV_ANDORRA_UNIQUE_INFLUENCE_MOUNTAINS_GOLD_BONUS"/>
</TraitModifiers>
<Modifiers>
<!--ANDORRA-->
<Row>
<ModifierId>MINOR_CIV_ANDORRA_UNIQUE_INFLUENCE_MOUNTAINS_GOLD_BONUS</ModifierId>
<ModifierType>MODIFIER_ALL_PLAYERS_ATTACH_MODIFIER</ModifierType>
<SubjectRequirementSetId>PLAYER_IS_SUZERAIN</SubjectRequirementSetId>
</Row>
<Row>
<ModifierId>MINOR_CIV_ANDORRA_UNIQUE_INFLUENCE_MOUNTAINS_CULTURE_BONUS</ModifierId>
<ModifierType>MODIFIER_ALL_PLAYERS_ATTACH_MODIFIER</ModifierType>
<SubjectRequirementSetId>PLAYER_IS_SUZERAIN</SubjectRequirementSetId>
</Row>
<Row>
<ModifierId>MINOR_CIV_ANDORRA_UNIQUE_INFLUENCE_MOUNTAINS_GOLD_BONUS</ModifierId>
<ModifierType>MODIFIER_PLAYER_ADJUST_PLOT_YIELD</ModifierType>
<SubjectRequirementSetId>TERRAIN_IS_MOUNTAIN</SubjectRequirementSetId>
</Row>
<Row>
<ModifierId>MINOR_CIV_ANDORRA_UNIQUE_INFLUENCE_MOUNTAINS_CULTURE_BONUS</ModifierId>
<ModifierType>MODIFIER_PLAYER_ADJUST_PLOT_YIELD</ModifierType>
<SubjectRequirementSetId>TERRAIN_IS_MOUNTAIN</SubjectRequirementSetId>
</Row>
</Modifiers>
<!-------------------------------------------------------------------------MODIFIER ARGUMENTS------------------------------------------------------------------------->
<ModifierArguments>
<!--ANDORRA-->
<Row>
<ModifierId>MINOR_CIV_ANDORRA_UNIQUE_INFLUENCE_MOUNTAINS_CULTURE_BONUS</ModifierId>
<Name>ModifierId</Name>
<Value>MINOR_CIV_ANDORRA_MOUNTAINS_CULTURE_BONUS</Value>
</Row>
<Row>
<ModifierId>MINOR_CIV_ANDORRA_MOUNTAINS_CULTURE_BONUS</ModifierId>
<Name>YieldType</Name>
<Value>YIELD_CULTURE</Value>
</Row>
<Row>
<ModifierId>MINOR_CIV_ANDORRA_MOUNTAINS_CULTURE_BONUS</ModifierId>
<Name>Amount</Name>
<Value>1</Value>
</Row>
<Row>
<ModifierId>MINOR_CIV_ANDORRA_MOUNTAINS_CULTURE_BONUS</ModifierId>
<Name>TerrainType</Name>
<Value>TERRAIN_MOUNTAIN</Value>
</Row>
<Row>
<ModifierId>MINOR_CIV_ANDORRA_UNIQUE_INFLUENCE_MOUNTAINS_GOLD_BONUS</ModifierId>
<Name>ModifierId</Name>
<Value>MINOR_CIV_ANDORRA_MOUNTAINS_GOLD_BONUS</Value>
</Row>
<Row>
<ModifierId>MINOR_CIV_ANDORRA_MOUNTAINS_GOLD_BONUS</ModifierId>
<Name>YieldType</Name>
<Value>YIELD_GOLD</Value>
</Row>
<Row>
<ModifierId>MINOR_CIV_ANDORRA_MOUNTAINS_GOLD_BONUS</ModifierId>
<Name>Amount</Name>
<Value>1</Value>
</Row>
<Row>
<ModifierId>MINOR_CIV_ANDORRA_MOUNTAINS_GOLD_BONUS</ModifierId>
<Name>TerrainType</Name>
<Value>TERRAIN_MOUNTAIN</Value>
</Row>
</ModifierArguments>
<RequirementSets>
<Row>
<RequirementSetId>PLAYER_IS_SUZERAIN</RequirementSetId>
<RequirementSetType>REQUIREMENTSET_TEST_ALL</RequirementSetType>
</Row>
<Row>
<RequirementSetId>TERRAIN_IS_MOUNTAIN</RequirementSetId>
<RequirementSetType>REQUIREMENTSET_TEST_ALL</RequirementSetType>
</Row>
</RequirementSets>
<RequirementSetRequirements>
<Row>
<RequirementSetId>PLAYER_IS_SUZERAIN</RequirementSetId>
<RequirementId>REQUIRES_PLAYER_IS_SUZERAIN</RequirementId>
</Row>
<Row>
<RequirementSetId>TERRAIN_IS_MOUNTAIN</RequirementSetId>
<RequirementId>REQUIRES_TERRAIN_IS_MOUNTAIN</RequirementId>
</Row>
</RequirementSetRequirements>
<Requirements>
<Row>
<RequirementId>REQUIRES_TERRAIN_IS_MOUNTAIN</RequirementId>
<RequirementType>REQUIREMENT_PLOT_TERRAIN_TYPE_MATCHES</RequirementType>
</Row>
</Requirements>
<RequirementArguments>
<Row>
<RequirementId>REQUIRES_TERRAIN_IS_MOUNTAIN</RequirementId>
<Name>TerrainType</Name>
<Value>TERRAIN_MOUNTAIN</Value>
</Row>
</RequirementArguments>
<TypeProperties>
<Row Type="CIVILIZATION_ANDORRA" Name="CityStateCategory" Value="TRADE"/>
</TypeProperties>
<Civilizations>
<Row CivilizationType="CIVILIZATION_ANDORRA" Name="Andorra" Description="Andorra city-state" Adjective="Andorra" StartingCivilizationLevelType="CIVILIZATION_LEVEL_CITY_STATE" RandomCityNameDepth="1"/>
</Civilizations>
<CivilizationLeaders>
<Row CivilizationType="CIVILIZATION_ANDORRA" LeaderType="LEADER_MINOR_CIV_ANDORRA" CapitalName="Andorra"/>
</CivilizationLeaders>
<CityNames>
<Row CivilizationType="CIVILIZATION_ANDORRA" CityName="Andorra"/>
</CityNames>
<PlayerColors>
<Row>
<Type>CIVILIZATION_ANDORRA</Type>
<Usage>Minor</Usage>
<PrimaryColor>COLOR_PLAYER_CITY_STATE_PRIMARY</PrimaryColor>
<SecondaryColor>COLOR_PLAYER_CITY_STATE_TRADE_SECONDARY</SecondaryColor>
<TextColor>COLOR_PLAYER_CITY_STATE_TRADE_SECONDARY</TextColor>
</Row>
</PlayerColors>
</GameInfo>
I hope that someone can help me with my little problem here ^^
Last edited: