Welcome to the TWC Wiki! You are not logged in. Please log in to the Wiki to vote in polls, change skin preferences, or edit pages. See HERE for details of how to LOG IN.

Difference between revisions of "Descr terrain.txt"

From TWC Wiki
Jump to navigationJump to search
m
(cat's)
 
(2 intermediate revisions by 2 users not shown)
Line 16: Line 16:
 
Altering the max_land_height figure increases or decreases the scale of the heights on the map, so with the same map_heights.tga you can get a much steeper or flatter effect.  Note that changes made to this figure effect the slopes on the battle map as well as on the campaign map.
 
Altering the max_land_height figure increases or decreases the scale of the heights on the map, so with the same map_heights.tga you can get a much steeper or flatter effect.  Note that changes made to this figure effect the slopes on the battle map as well as on the campaign map.
  
Changes to the min_sea_height do not have such an immediate visual effect but they do have an effect on some bits of fine detail around the coast line.  The sea in map_heights.tga can have a 'depth' set by using different intensities of pure blue hue RGB 0,0,250 or 0,0,253 etc which effects the angle of slope where the coast emerges from the sea - changing the min_sea_height effects that.   
+
Changes to the min_sea_height do not have such an immediate visual effect but they do have an effect on some bits of fine detail around the coast line.  The sea in map_heights.tga can have a 'depth' set by using different intensities of pure blue hue RGB 0,0,250 or 0,0,253 etc which effects the angle of slope where the coast emerges from the sea - changing the min_sea_height affects that.   
  
 
''Descr_terrain.txt also has values for 'roughness' 'fractal' and 'lattitude' an explanation of the effects of those values is needed.''
 
''Descr_terrain.txt also has values for 'roughness' 'fractal' and 'lattitude' an explanation of the effects of those values is needed.''
Line 26: Line 26:
 
You have to make sure that when you increase you land height, you decrease your sea depth by using this formula. This will prevent the screwed-up coastlines you get.
 
You have to make sure that when you increase you land height, you decrease your sea depth by using this formula. This will prevent the screwed-up coastlines you get.
  
[[Category:Modding]]
+
 
[[Category:RTW Modding]]
+
[[Category:RTW Campaign Map Modding]]
[[Category:M2TW Modding]]
+
[[Category:M2TW Campaign Map Modding]]
[[Category:Map_Modification]]
+
[[Category:RTW Files]]
 +
[[Category:M2TW Files]]

Latest revision as of 08:32, 20 June 2017

Descr_terrain.txt will be found in the data/world/maps/base folder of a vanilla installation, it may also be placed in the data/world/maps/campaign/campaign_name folder if the other map files are copied there as well.

This is a very small text file that controls some overall functions for the entire campaign and battle map system.

 dimensions
 {
     width  255
     height  156
 }

The dimensions given in the first section must be the size in pixels of the map_regions.tga

 heights
 {
     min_sea_height  -3122.256
     max_land_height  7511.272
 }

Altering the max_land_height figure increases or decreases the scale of the heights on the map, so with the same map_heights.tga you can get a much steeper or flatter effect. Note that changes made to this figure effect the slopes on the battle map as well as on the campaign map.

Changes to the min_sea_height do not have such an immediate visual effect but they do have an effect on some bits of fine detail around the coast line. The sea in map_heights.tga can have a 'depth' set by using different intensities of pure blue hue RGB 0,0,250 or 0,0,253 etc which effects the angle of slope where the coast emerges from the sea - changing the min_sea_height affects that.

Descr_terrain.txt also has values for 'roughness' 'fractal' and 'lattitude' an explanation of the effects of those values is needed.

When increasing or decreasing the max_land_height you automatically have to adjust the min_sea_height. Here's a little formule:

7511.272 - 3122.256 = 4389.016 so land - sea = 4389.016 -> sea = land - 4389.016

You have to make sure that when you increase you land height, you decrease your sea depth by using this formula. This will prevent the screwed-up coastlines you get.