adding columns from one xml to another doesn't work?

Lonkut

..--""--..
Joined
Jul 13, 2004
Messages
862
Location
......
I took some columns from CIV5GameSpeeds.xml and placed them on CIV5HandicapInfos.xml like so:
Code:
		<Column name="AIPerEraModifier" type="integer" default="0"/>
		<Column name="AIAdvancedStartPercent" type="integer" default="0"/>
		[color=red]<Column name="TrainPercent" type="integer" default="0"/>[/color]
		<Column name="PortraitIndex" type="integer" default="-1"/>
		<Column name="IconAtlas" type="text" default="NULL" reference="IconTextureAtlases(Atlas)"/>

then went down to deity and added it like so:
Code:
			<AIPerEraModifier>-5</AIPerEraModifier>
			<AIAdvancedStartPercent>170</AIAdvancedStartPercent>
			[color=red]<TrainPercent>300</TrainPercent>[/color]
			<IconAtlas>DIFFICULTY_ATLAS</IconAtlas>
			<PortraitIndex>7</PortraitIndex>

according to this on marathon and deity units should take longer for the player, no? So why doesn't it work? why even have the colums at start of the file if we can't import from other xml files?
 
Because XML DOESN'T WORK THAT WAY.

You can't just arbitrarily add a new line to an existing table and expect the game to know what to do with it. It's a data format, nothing more.
 
Back
Top Bottom