Creating new terrain

SteelRush

Chieftain
Joined
Sep 3, 2006
Messages
7
I have been trying to create a new terrain type, and when I place it in WorldBuilder, it places it as water. Here is the code from CIV4TerrainInfos:

Code:
		<TerrainInfo>
			<Type>TERRAIN_MOUNTAIN</Type>
			<Description>TXT_KEY_TERRAIN_MOUNTAIN</Description>
			<Civilopedia>TXT_KEY_TERRAIN_MOUNTAIN_PEDIA</Civilopedia>
			<ArtDefineTag>ART_DEF_TERRAIN_PEAK</ArtDefineTag>
			<Yields>
				<iYield>0</iYield>
				<iYield>2</iYield>
				<iYield>0</iYield>
			</Yields>
			<RiverYieldChange/>
			<HillsYieldChange/>
			<bWater>0</bWater>
			<bImpassable>0</bImpassable>
			<bFound>1</bFound>
			<bFoundCoast>0</bFoundCoast>
			<bFoundFreshWater>0</bFoundFreshWater>
			<iMovement>4</iMovement>
			<iSeeFrom>3</iSeeFrom>
			<iSeeThrough>0</iSeeThrough>
			<iBuildModifier>0</iBuildModifier>
			<iDefense>90</iDefense>
			<Button>Art/Interface\Buttons\WorldBuilder\Terrain_Peak.dds</Button>
			<FootstepSounds>
				<FootstepSound>
					<FootstepAudioType>FOOTSTEP_AUDIO_HUMAN</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_FOOT_UNIT</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>FOOTSTEP_AUDIO_HUMAN_LOW</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_FOOT_UNIT_LOW</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>FOOTSTEP_AUDIO_ANIMAL</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_ANIMAL_FOOT_LARGE</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>FOOTSTEP_AUDIO_ANIMAL_LOW</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_ANIMAL_FOOT_LARGE_LOW</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>FOOTSTEP_AUDIO_HORSE</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_HORSE_RUN</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>LOOPSTEP_WHEELS</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_CHARIOT_LOOP</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>ENDSTEP_WHEELS</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_CHARIOT_END</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>LOOPSTEP_WHEELS_2</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_WAR_CHARIOT_LOOP</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>ENDSTEP_WHEELS_2</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_WAR_CHARIOT_END</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>LOOPSTEP_TANK</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_TANK_LOOP</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>ENDSTEP_TANK</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_TANK_END</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>LOOPSTEP_MOD_ARMOUR</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_MOD_ARMOUR_LOOP</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>ENDSTEP_MOD_ARMOUR</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_MOD_ARMOUR_END</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>LOOPSTEP_OCEAN1</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_OCEAN_LOOP1</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>ENDSTEP_OCEAN1</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_OCEAN_END1</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>LOOPSTEP_OCEAN2</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_OCEAN_LOOP1</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>ENDSTEP_OCEAN2</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_OCEAN_END2</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>LOOPSTEP_DESTOYER</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_DESTROYER_RUN_LOOP</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>ENDSTEP_DESTROYER</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_DESTROYER_RUN_END</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>LOOPSTEP_IRONCLAD</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_IRONCLAD_RUN_LOOP</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>ENDSTEP_IRONCLAD</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_IRONCLAD_RUN_END</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>LOOPSTEP_TRANSPORT</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_TRANSPORT_RUN_LOOP</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>ENDSTEP_TRANSPORT</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_TRANSPORT_RUN_END</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>LOOPSTEP_SUBMARINE</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_SUBMARINE_RUN_LOOP</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>ENDSTEP_SUBMARINE</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_SUBMARINE_RUN_END</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>LOOPSTEP_GUNSHIP</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_GUNSHIP_RUN_LOOP</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>ENDSTEP_GUNSHIP</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_GUNSHIP_RUN_END</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>LOOPSTEP_ARTILLERY</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_ARTILLERY_RUN_LOOP</FootstepAudioScript>
				</FootstepSound>
				<FootstepSound>
					<FootstepAudioType>ENDSTEP_ARTILLERY</FootstepAudioType>
					<FootstepAudioScript>AS3D_UN_ARTILLERY_RUN_END</FootstepAudioScript>
				</FootstepSound>
			</FootstepSounds>
			<bGraphicalOnly>0</bGraphicalOnly>
		</TerrainInfo>

Can anyone shed any light on why this is showing up as water, rather than the terrain tile I added?
 
Hmm. To me the file seems correct.

The only thing I think you should check is the Civ4ArtDefines_Terrain.xml file which is loacted in Assets/XML/Art/Civ4ArtDefines_Terrain.xml

Go to the <Type>ART_DEF_TERRAIN_PEAK</Type>
and make sure your file looks like this
Code:
               <TerrainArtInfo>
			<Type>ART_DEF_TERRAIN_PEAK</Type>
			<Path>Art/Terrain/Textures/PeakBlend.dds</Path>
			<Detail>Art/Terrain/Textures/IceDetail.dds</Detail>
<Button>,Art/Interface/Buttons/BaseTerrain/Peak.dds,Art/Interface/Buttons/BaseTerrain_TerrainFeatures_Atlas.dds,7,1</Button>
			<LayerOrder>80</LayerOrder>
			<TextureBlend01>8,0</TextureBlend01>
			<TextureBlend02>1,0</TextureBlend02>
			<TextureBlend04>6,0</TextureBlend04>
			<TextureBlend08>5,0</TextureBlend08>
			<TextureBlend03>2,0</TextureBlend03>
			<TextureBlend06>10,0</TextureBlend06>
			<TextureBlend12>12,0</TextureBlend12>
			<TextureBlend09>9,0</TextureBlend09>
			<TextureBlend07>3,0</TextureBlend07>
			<TextureBlend14>14,0</TextureBlend14>
			<TextureBlend13>11,0</TextureBlend13>
			<TextureBlend11>4,0</TextureBlend11>
			<TextureBlend10>7,0</TextureBlend10>
			<TextureBlend05>13,0</TextureBlend05>
			<TextureBlend15>15,0 16,0</TextureBlend15>
		</TerrainArtInfo>

The <Button> tag should be lined up with all the other stuff like <Type> and <Path>

I'm not an expert but this is all I could suggest. It may be helpful to me if I could know exact what other files you edited.
 
Back
Top Bottom