Need help adding terrain

iven

Chieftain
Joined
Apr 25, 2006
Messages
3
I need help adding a new type of terrain. Basically I would like to add a new type of desert, using all the existing art work for desert and make it impassable.

As far as I know you'd have to edit the CIV4ArtDefines_Terrain.xml file to define which art work to use and the CIV4TerrainInfos.xml to define the specifics of this terrain.

Editing the CIV4TerrainInfos.xml seems to go well.

I am running onto trouble with the graphics though. In the CIV4ArtDefines_Terrain.xml file I have created another entry, named the new terrain SALTPAN but other than that copied the entry for desert:
Spoiler :

<TerrainArtInfo>
<Type>ART_DEF_TERRAIN_SALTPAN</Type>
<Path>Art/Terrain/Textures/DesertBlend.dds</Path>
<Grid>Art/Terrain/Textures/DesertGrids.dds</Grid>
<Detail>Art/Terrain/Textures/DesertDetail.dds</Detail>
<Button>,Art/Interface/Buttons/BaseTerrain/Desert.dds,Art/Interface/Buttons/BaseTerrain_TerrainFeatures_Atlas.dds,2,1</Button>
<LayerOrder>2</LayerOrder>
<AlphaShader>0</AlphaShader>
<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 18,0 19,0 20,0 21,0 22,0 23,0 24,0 25,0 26,0 27,0 28,0 29,0 30,0 31,0 32,0</TextureBlend15>
</TerrainArtInfo>
</TerrainArtInfos>


However, when in the worldbuilder I add this terrain to a map, it looks like a mixture of flat peeks and coast. What am i doing wrong here?
 
if you want to use the same art work why would you re-define the desert art? Just use the same art tag for the new desert that the original uses. that is in the terrainInfos
 
Thanks, that does seem to make more sense than what I did. But it doesn't change the result.
I was trying to be more ambitious and use artwork from the Vikings scenario in Warlords, but it all ends up looking like in the picture. Clearly I am missing something.

The coast and the flat peek in the pic should have been desert, like the surrounding landscape.
 

Attachments

  • terrain.jpg
    terrain.jpg
    268.5 KB · Views: 68
Try to place your new entry for the terrain BEFORE the entries for hills and peaks.
If you place it after them, it will result in your screenshots.
It's probably because hills and peaks are somehow fake terrain, and that there's sure something hardcoded for them in the .dll.
 
Back
Top Bottom