custom Czechia civ - problem: Can't see it in the menu

Johny9509

Chieftain
Joined
Jan 9, 2011
Messages
27
Location
Prague, Czechia
Hello, I was trying to create Czech Empire into the game. I have created civilization with help of Kael Modders Guide but I didn't add unique unit or trait. And the problem is I can't see new civilization in menu when player is choosing civilization.

Here it is.
http://www.mediafire.com/?qt2qq3j2et4b5v1
Thank you for help!


Moderator Action: Moved to the main forum. Because the civs subforum is only for finished civs ;).
Thank you for moving it in correct place and my apologises for that but can you help me please?
There's another problem.. when i try to download any mod, it downloads ok but then i click on install mods and nothing happens, mods are not installed, i tried to reinstall game but it didnt matter.. i really to dont know what to do :(
 
I am having the same problem with some custom civs I added to a scenario, so I took a look at your mod to see if we are making the same mistakes.

Spoiler :
Code:
<Civilizations>
		<Row>
			<ID>0</ID>
			<Type>CIVILIZATION_CZECHIA</Type>
			<Description>TXT_KEY_CIV_CZECHIA_DESC</Description>
			<ShortDescription>TXT_KEY_CIV_CZECHIA_SHORT_DESC</ShortDescription>
			<Adjective>TXT_KEY_CIV_CZECHIA_ADJECTIVE</Adjective>
			<Civilopedia>TXT_KEY_CIV_CZECHIA_PEDIA</Civilopedia>
			<CivilopediaTag>TXT_KEY_CIV5_CZECHIA</CivilopediaTag>
			<DefaultPlayerColor>PLAYERCOLOR_DARK_GREEN</DefaultPlayerColor>
			<ArtDefineTag>ART_DEF_CIVILIZATION_ENGLAND</ArtDefineTag>
			<ArtStyleType>ARTSTYLE_EUROPEAN</ArtStyleType>
			<PortraitIndex>0</PortraitIndex>
			<IconAtlas>CIV_COLOR_ATLAS_LEGEND</IconAtlas>
			<AlphaIconAtlas>CIV_ALPHA_ATLAS</AlphaIconAtlas>
			<MapImage>MapAmerica512.dds</MapImage>
			<ArtStyleSuffix>_EURO</ArtStyleSuffix>
			<ArtStylePrefix>EUROPEAN </ArtStylePrefix>
			<DawnOfManQuote>TXT_KEY_CIV5_DAWN_UNITEDSTATES_TEXT</DawnOfManQuote>
			<DawnOfManImage>CharlesIVDOM.dds</DawnOfManImage>
			<DawnOfManAudio/>
		</Row>
	</Civilizations>

I'm pretty sure you should not have set <ID>0</ID>. The game already assigns ID=0 to America, so it can lead to conflicts. By default the database will auto increment the ID numbers based on the order they appear in the Civilizations table. It may simply add your czech civ at the top position and then increment all other IDs by +1. I don't really know, but it's easy to just leave it out and avoid any trouble with it.

The other potential problem is that you included <Civilopedia>TXT_KEY_CIV_CZECHIA_PEDIA</Civilopedia>. This line isn't used in any of the vanilla civs, and its default is NULL.

That's about all I can see that might be causing a problem though. Like I said, I have run into the same problem where my custom civs don't show up in game setup. They function perfectly in game too. This happens for me even though I can't find any errors in the xml.
 
You're welcome. Specifically I was recommending that you delete those 2 lines. So change this,
Code:
<ID>0</ID>
			<Type>CIVILIZATION_CZECHIA</Type>
			<Description>TXT_KEY_CIV_CZECHIA_DESC</Description>
			<ShortDescription>TXT_KEY_CIV_CZECHIA_SHORT_DESC</ShortDescription>
			<Adjective>TXT_KEY_CIV_CZECHIA_ADJECTIVE</Adjective>
			<Civilopedia>TXT_KEY_CIV_CZECHIA_PEDIA</Civilopedia>
			<CivilopediaTag>TXT_KEY_CIV5_CZECHIA</CivilopediaTag>
to this,
Code:
<Type>CIVILIZATION_CZECHIA</Type>
			<Description>TXT_KEY_CIV_CZECHIA_DESC</Description>
			<ShortDescription>TXT_KEY_CIV_CZECHIA_SHORT_DESC</ShortDescription>
			<Adjective>TXT_KEY_CIV_CZECHIA_ADJECTIVE</Adjective>
			<CivilopediaTag>TXT_KEY_CIV5_CZECHIA</CivilopediaTag>
I also noticed you had an odd part here:
Spoiler :
Code:
<Row>
			<CivilizationType>CIVILIZATION_CZECHIA</CivilizationType>
			<CityName>TXT_KEY_CITY_NAME_HRADEC</CityName>
			<Row>
				<CivilizationType>CIVILIZATION_CZECHIA</CivilizationType>
				<CityName>TXT_KEY_CITY_NAME_OLOMOUC</CityName>
			</Row>
		</Row>
It may very work this way, but I always like to keep rows like these two discrete from one another. It ensures no possible problems. good luck
 
I added unique unit (gaelic warrior from the modders guide by Kael) and empire still doesn't show up in the menu. And about that building, i don't know how to add it because it isn't in the modders guide.

edit: I tried to add second unique unit and still nothing
 
1. As noted by rhettrongun, one of the city names is too nested, so you should change this:

Spoiler :
Code:
		<Row>
			<CivilizationType>CIVILIZATION_CZECHIA</CivilizationType>
			<CityName>TXT_KEY_CITY_NAME_HRADEC</CityName>
			<Row>
				<CivilizationType>CIVILIZATION_CZECHIA</CivilizationType>
				<CityName>TXT_KEY_CITY_NAME_OLOMOUC</CityName>
			</Row>
		</Row>

To:

Spoiler :
Code:
		<Row>
			<CivilizationType>CIVILIZATION_CZECHIA</CivilizationType>
			<CityName>TXT_KEY_CITY_NAME_HRADEC</CityName>
		</Row>
		<Row>
			<CivilizationType>CIVILIZATION_CZECHIA</CivilizationType>
			<CityName>TXT_KEY_CITY_NAME_OLOMOUC</CityName>
		</Row>

2. The Chech Spearman unit definitions are not put in appropriate tables, so instead of:

Spoiler :
Code:
	<Row>
		<Class>UNITCLASS_SPEARMAN</Class>
		<Type>UNIT_CZECH_SPEARMAN</Type>
		<PrereqTech>TECH_BRONZE_WORKING</PrereqTech>
		<Combat>9</Combat>
		<Cost>40</Cost>
		<Moves>2</Moves>
		<CombatClass>UNITCOMBAT_MELEE</CombatClass>
		<Domain>DOMAIN_LAND</Domain>
		<DefaultUnitAI>UNITAI_COUNTER</DefaultUnitAI>
		<Description>TXT_KEY_UNIT_CZECH_SPEARMAN</Description>
		<Civilopedia>TXT_KEY_CIV5_ANTIQUITY_SPEARMAN_TEXT</Civilopedia>
		<Strategy>TXT_KEY_UNIT_SPEARMAN_STRATEGY</Strategy>
		<Help>TXT_KEY_UNIT_HELP_CZECH_SPEARMAN</Help>
		<MilitarySupport>true</MilitarySupport>
		<MilitaryProduction>true</MilitaryProduction>
		<Pillage>true</Pillage>
		<ObsoleteTech>TECH_CIVIL_SERVICE</ObsoleteTech>
		<GoodyHutUpgradeUnitClass>UNITCLASS_PIKEMAN</GoodyHutUpgradeUnitClass>
		<AdvancedStartCost>15</AdvancedStartCost>
		<XPValueAttack>3</XPValueAttack>
		<XPValueDefense>3</XPValueDefense>
		<Conscription>2</Conscription>
		<UnitArtInfo>ART_DEF_UNIT_SPEARMAN</UnitArtInfo>
		<UnitFlagIconOffset>9</UnitFlagIconOffset>
		<IconAtlas>UNIT_ATLAS_1</IconAtlas>
		<PortraitIndex>9</PortraitIndex>
	</Row>
	<Row>
		<UnitType>UNIT_CZECH_SPEARMAN</UnitType>
		<UnitAIType>UNITAI_COUNTER</UnitAIType>
	</Row>
	<Row>
		<UnitType>UNIT_CZECH_SPEARMAN</UnitType>
		<UnitAIType>UNITAI_DEFENSE</UnitAIType>
	</Row>
	<Row>
		<UnitType>UNIT_CZECH_SPEARMAN</UnitType>
		<UnitAIType>UNITAI_EXPLORE</UnitAIType>
	</Row>
	<Row>
		<UnitType>UNIT_CZECH_SPEARMAN</UnitType>
		<UnitClassType>UNITCLASS_PIKEMAN</UnitClassType>
	</Row>
	<Row>
		<UnitType>UNIT_CZECH_SPEARMAN</UnitType>
		<FlavorType>FLAVOR_OFFENSE</FlavorType>
		<Flavor>2</Flavor>
	</Row>
	<Row>
		<UnitType>UNIT_CZECH_SPEARMAN</UnitType>
		<FlavorType>FLAVOR_DEFENSE</FlavorType>
		<Flavor>4</Flavor>
	</Row>
	<Row>
		<UnitType>UNIT_CZECH_SPEARMAN</UnitType>
		<FlavorType>FLAVOR_RECON</FlavorType>
		<Flavor>1</Flavor>
	</Row>
	<Row>
		<UnitType>UNIT_CZECH_SPEARMAN</UnitType>
		<PromotionType>PROMOTION_ANTI_MOUNTED_II</PromotionType>
	</Row>

It should be:

Spoiler :
Code:
	<Units>
		<Row>
			<Class>UNITCLASS_SPEARMAN</Class>
			<Type>UNIT_CZECH_SPEARMAN</Type>
			<PrereqTech>TECH_BRONZE_WORKING</PrereqTech>
			<Combat>9</Combat>
			<Cost>40</Cost>
			<Moves>2</Moves>
			<CombatClass>UNITCOMBAT_MELEE</CombatClass>
			<Domain>DOMAIN_LAND</Domain>
			<DefaultUnitAI>UNITAI_COUNTER</DefaultUnitAI>
			<Description>TXT_KEY_UNIT_CZECH_SPEARMAN</Description>
			<Civilopedia>TXT_KEY_CIV5_ANTIQUITY_SPEARMAN_TEXT</Civilopedia>
			<Strategy>TXT_KEY_UNIT_SPEARMAN_STRATEGY</Strategy>
			<Help>TXT_KEY_UNIT_HELP_CZECH_SPEARMAN</Help>
			<MilitarySupport>true</MilitarySupport>
			<MilitaryProduction>true</MilitaryProduction>
			<Pillage>true</Pillage>
			<ObsoleteTech>TECH_CIVIL_SERVICE</ObsoleteTech>
			<GoodyHutUpgradeUnitClass>UNITCLASS_PIKEMAN</GoodyHutUpgradeUnitClass>
			<AdvancedStartCost>15</AdvancedStartCost>
			<XPValueAttack>3</XPValueAttack>
			<XPValueDefense>3</XPValueDefense>
			<Conscription>2</Conscription>
			<UnitArtInfo>ART_DEF_UNIT_SPEARMAN</UnitArtInfo>
			<UnitFlagIconOffset>9</UnitFlagIconOffset>
			<IconAtlas>UNIT_ATLAS_1</IconAtlas>
			<PortraitIndex>9</PortraitIndex>
		</Row>
	</Units>
	<Unit_AITypes>
		<Row>
			<UnitType>UNIT_CZECH_SPEARMAN</UnitType>
			<UnitAIType>UNITAI_COUNTER</UnitAIType>
		</Row>
		<Row>
			<UnitType>UNIT_CZECH_SPEARMAN</UnitType>
			<UnitAIType>UNITAI_DEFENSE</UnitAIType>
		</Row>
		<Row>
			<UnitType>UNIT_CZECH_SPEARMAN</UnitType>
			<UnitAIType>UNITAI_EXPLORE</UnitAIType>
		</Row>
	</Unit_AITypes>
	<Unit_ClassUpgrades>
		<Row>
			<UnitType>UNIT_CZECH_SPEARMAN</UnitType>
			<UnitClassType>UNITCLASS_PIKEMAN</UnitClassType>
		</Row>
	</Unit_ClassUpgrades>
	<Unit_Flavors>
		<Row>
			<UnitType>UNIT_CZECH_SPEARMAN</UnitType>
			<FlavorType>FLAVOR_OFFENSE</FlavorType>
			<Flavor>2</Flavor>
		</Row>
		<Row>
			<UnitType>UNIT_CZECH_SPEARMAN</UnitType>
			<FlavorType>FLAVOR_DEFENSE</FlavorType>
			<Flavor>4</Flavor>
		</Row>
		<Row>
			<UnitType>UNIT_CZECH_SPEARMAN</UnitType>
			<FlavorType>FLAVOR_RECON</FlavorType>
			<Flavor>1</Flavor>
		</Row>
	</Unit_Flavors>
	<Unit_FreePromotions>
		<Row>
			<UnitType>UNIT_CZECH_SPEARMAN</UnitType>
			<PromotionType>PROMOTION_ANTI_MOUNTED_II</PromotionType>
		</Row>
	</Unit_FreePromotions>
 
I noticed one more thing:
Code:
		<Row>
			<CivilizationType>CIVILIZATION_CZECHIA</CivilizationType>
			<UnitClassType>UNITCLASS_[b]WARRIOR[/b]</UnitClassType>
			<UnitType>UNIT_CZECH_SPEARMAN</UnitType>
		</Row>
The unit class should be changed from UNITCLASS_WARRIOR to UNITCLASS_SPEARMAN.

If it still doesn't work, check if there are any errors in database.log.
 
Still doesn't work
Can be problem in the game? BEcause I also downloaded Holy Roman Empire from civfanatics and it also didn't show up in the menu

database.log
Code:
[48956.015] Validating Foreign Key Constraints...
[48956.030] Invalid Reference on Civilizations.CivilopediaTag - "TXT_KEY_CIV5_UNITEDSTATES" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.CivilopediaTag - "TXT_KEY_CIV5_ARABIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.CivilopediaTag - "TXT_KEY_CIV5_AZTECS" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.CivilopediaTag - "TXT_KEY_CIV5_CHINA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.CivilopediaTag - "TXT_KEY_CIV5_EGYPT" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.CivilopediaTag - "TXT_KEY_CIV5_ENGLAND" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.CivilopediaTag - "TXT_KEY_CIV5_FRANCE" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.CivilopediaTag - "TXT_KEY_CIV5_GERMANY" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.CivilopediaTag - "TXT_KEY_CIV5_GREECE" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.CivilopediaTag - "TXT_KEY_CIV5_INDIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.CivilopediaTag - "TXT_KEY_CIV5_IROQUOIS" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.CivilopediaTag - "TXT_KEY_CIV5_JAPAN" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.CivilopediaTag - "TXT_KEY_CIV5_OTTOMAN" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.CivilopediaTag - "TXT_KEY_CIV5_PERSIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.CivilopediaTag - "TXT_KEY_CIV5_ROME" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.CivilopediaTag - "TXT_KEY_CIV5_RUSSIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.CivilopediaTag - "TXT_KEY_CIV5_SIAM" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.CivilopediaTag - "TXT_KEY_CIV5_SONGHAI" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.Civilopedia - "TXT_KEY_CIV_AMERICA_PEDIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.Civilopedia - "TXT_KEY_CIV_ARABIA_PEDIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.Civilopedia - "TXT_KEY_CIV_AZTEC_PEDIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.Civilopedia - "TXT_KEY_CIV_CHINA_PEDIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.Civilopedia - "TXT_KEY_CIV_EGYPT_PEDIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.Civilopedia - "TXT_KEY_CIV_ENGLAND_PEDIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.Civilopedia - "TXT_KEY_CIV_FRANCE_PEDIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.Civilopedia - "TXT_KEY_CIV_GERMANY_PEDIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.Civilopedia - "TXT_KEY_CIV_GREECE_PEDIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.Civilopedia - "TXT_KEY_CIV_INDIA_PEDIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.Civilopedia - "TXT_KEY_CIV_IROQUOIS_PEDIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.Civilopedia - "TXT_KEY_CIV_JAPAN_PEDIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.Civilopedia - "TXT_KEY_CIV_OTTOMAN_PEDIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.Civilopedia - "TXT_KEY_CIV_PERSIA_PEDIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.Civilopedia - "TXT_KEY_CIV_ROME_PEDIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.Civilopedia - "TXT_KEY_CIV_RUSSIA_PEDIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.Civilopedia - "TXT_KEY_CIV_SIAM_PEDIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.Civilopedia - "TXT_KEY_CIV_SONGHAI_PEDIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.Civilopedia - "TXT_KEY_CIV_MINOR_PEDIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Civilizations.Civilopedia - "TXT_KEY_CIV_BARBARIAN_PEDIA" does not exist in Language_en_US
[48956.030] Invalid Reference on Feature_YieldChanges.FeatureType - "FEATURE_RIVER" does not exist in Features
[48956.030] Invalid Reference on Feature_YieldChanges.FeatureType - "FEATURE_LAKE" does not exist in Features
[48956.030] Invalid Reference on Feature_YieldChanges.FeatureType - "FEATURE_LAKE" does not exist in Features
[48956.046] Failed Validation.
[48956.514] 
-- SQLite Memory Statistics --
Memory Usage:
		[Cur]		[Max]
Malloc:		274712		2231456
PageCache:	3749		3753
LookAside:	70		1807
Scratch:	0		1

Static Buffer Overflows:
		[TooLarge]	[NoSpace]
PageCache:	0		0
Scratch:	0		0

Largest Allocations:
Malloc:		65280
PageCache:	1160
Scratch:	4984

Prepared Statements:
Current:		7
------------------------------
 
1. Are you running any other mods together with this one? If so, try to run the game with only this mod selected.
2. Is your game up to date? The version shown on the main menu screen should be 1.0.1.383. The game can be outdated if you were running Steam in offline mode, in this case switch Steam to online mode and wait for Civ5 to get updated.
3. Verify the game files in Steam (right click on Civ5 in Steam, go to properties, go to the local files tab, select "verify integrity of game cache") in case some of your civ5 files are corrupt.
 
Back
Top Bottom