What's wrong with my coding?

asem-hotep

Chieftain
Joined
Jan 27, 2009
Messages
13
Location
Bonn, Germany
What's wrong with this XML-File?
If i initiate the Mod, the changes of this file aren't loaded - each other change takes place but these. I checked the "Actions" below the mod infos, but the file is correctly meantioned. so, what's the freak'n problem?

PHP:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 06.10.2010 01:09:24 -->
<GameData>
	<Traits>
		
		<!-- Siam -->
		<Update>
			<Set LevelExperienceModifier="-25"/>
			<Where Type="TRAIT_CITY_STATE_BONUSES"/>
		</Update>
		<Update>
			<Set CityStateBonusModifier="0"/>
			<Where Type="TRAIT_CITY_STATE_BONUSES"/>
		</Update>
		
		<!-- Osmanen -->
		<Update>
			<Set FreeUnit="UNITCLASS_SCIENTIST"/>
			<Where Type="TRAIT_CONVERTS_SEA_BARBARIANS"/>
		</Update>
		<Update>
			<Set FreeUnitPrereqTech="TECH_POTTERY"/>
			<Where Type="TRAIT_CONVERTS_SEA_BARBARIANS"/>
		</Update>
		
		<!-- Azteken -->
		<Update>
			<Set CultureFromKills="100"/>
			<Where Type="TRAIT_CULTURE_FROM_KILLS"/>
		</Update>
		<Update>
			<Set GoldenAgeCombatModifier="10"/>
			<Where Type="TRAIT_CULTURE_FROM_KILLS"/>
		</Update>
		
		<!-- Irokesen -->
		<Update>
			<Set CultureFromKills="33"/>
			<Where Type="TRAIT_IGNORE_TERRAIN_IN_FOREST"/>
		</Update>
		
		<!-- Rom -->
		<Update>
			<Set CapitalBuildingModifier="20"/>
			<Where Type="TRAIT_CAPITAL_BUILDINGS_CHEAPER"/>
		</Update>
		
		<!-- Frankreich -->
		<Update>
			<Set FreeUnit="UNITCLASS_SCIENTIST"/>
			<Where Type="TRAIT_ENHANCED_CULTURE"/>
		</Update>
		<Update>
			<Set FreeUnitPrereqTech="TECH_POTTERY"/>
			<Where Type="TRAIT_ENHANCED_CULTURE"/>
		</Update>
		<Update>
			<Set GoldenAgeDurationModifier="50"/>
			<Where Type="TRAIT_ENHANCED_CULTURE"/>
		</Update>
		<Update>
			<Set GreatPeopleRateModifier="25"/>
			<Where Type="TRAIT_ENHANCED_CULTURE"/>
		</Update>
		<Update>
			<Set CityCultureBonus="0"/>
			<Where Type="TRAIT_ENHANCED_CULTURE"/>
		</Update>
		
		<!-- Deutschland -->
		<Update>
			<Set LandBarbarianConversionPercent="75"/>
			<Where Type="TRAIT_CONVERTS_LAND_BARBARIANS"/>
		</Update>
		<Update>
			<Set GoldenAgeMoveChange="2"/>
			<Where Type="TRAIT_CONVERTS_LAND_BARBARIANS"/>
		</Update>
		
		<!-- England -->
		<Update>
			<Set CityUnhappinessModifier="-33"/>
			<Where Type="TRAIT_OCEAN_MOVEMENT"/>
		</Update>
		
		<!-- Indien -->
		<Update>
			<Set CPopulationUnhappinessModifier="-25"/>
			<Where Type="TRAIT_POPULATION_GROWTH"/>
		</Update>
		<Update>
			<Set CityUnhappinessModifier="0"/>
			<Where Type="TRAIT_POPULATION_GROWTH"/>
		</Update>
	</Traits>
</GameData>

Greetz David
 
In the "Indien" section at the end of your code, you write <Set CPopulationUnhappinessModifier="-25"/> there's a typo, it's not CPopuation, just Population.

There might be something else, but this typo must do something wrong. I read in other threads about typos preventing files from loading altogether.

If only we had those XML error windows like in Civ4...
 
Back
Top Bottom