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.
 Actions

Descr geography new.db: Difference between revisions

From TWC Wiki

No edit summary
Overall Scale: correction to say height_scale is editable and explain use
 
Line 17: Line 17:


==Overall Scale==
==Overall Scale==
This value isn't editable in IWTE currently - it's the float value at decimal position 905 in the .db file - you can change this via hex-editor.
The overall scale applied to translate map_heights.tga values to battle map heights is controlled by both the value set in descr_terrain.txt for max_land_height and the height_scale in the geography.db.  The max_land_height in descr_terrain.txt will affect the appearance of BOTH the campaign map and battle map.  The height_scale in the geography.db will only affect the battle map. The height_scale parameter is editable in the General Parameters tab when editing the db with IWTE.


[[Category:M2TW Battle Map Modding]]
[[Category:M2TW Battle Map Modding]]

Latest revision as of 09:09, 4 April 2025

M2TW Modding Index


For the RTW file see: descr_geography.db

Editing descr_geography_new.db with IWTE

Open the .db file by using the Veg/GeogDB tab and Read/edit geography.db button. When you've finished making all your changes use OK-write files to save. The new files will be written with _IWTE or _1 added to the end to avoid accidental overwrites of your original files - change the names of the new files to allow them to be used in game.

Changing Textures

Select the required Climate and Season and Ground_Textures. Double click the texture name you want to change to open the line for editing.

The underlined BGR values in the picture make up the colour which the game uses for distant bits of landscape which would have used that battlefield texture. If you're drastically changing a texture colour (e.g. from grass to snow colours) you will want to change the BGR values too. NOTE: If you have a geography_new.db that was created by letting M2TW regenerate from the text file ALL of the BGR values will have been wiped out and re-set to 0 0 0! This is why some mods have ended up with black distant mountains.

Copy Climate Function

If you wish to copy all of one Climate's Season to another use the Copy Function tab. Select the From and To Climates/Seasons as required and toggle the settings you want to copy. If you don't know what you're doing, you probably want to toggle all of the settings to ON! Click 'Copy selected data' - you will need to use "OK - write files" to save a file with the copied data.

If you open the Vegetation.db at the same time you can also copy the Vegetation Groups within that db as part of the same process.

Overall Scale

The overall scale applied to translate map_heights.tga values to battle map heights is controlled by both the value set in descr_terrain.txt for max_land_height and the height_scale in the geography.db. The max_land_height in descr_terrain.txt will affect the appearance of BOTH the campaign map and battle map. The height_scale in the geography.db will only affect the battle map. The height_scale parameter is editable in the General Parameters tab when editing the db with IWTE.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.