The .TRN File Lizard's BZ2 Mapmaking Tutorials
Posted: Thu Apr 28, 2011 4:02 pm
Tutorial 7 : A very useful little file
The .TRN file is a handy file that allows you to change a vast array of the parameters for your map, most of these settings are also available through the console, so I will only be covering a few of the uses of the .TRN in this particular tutorial.
Editing BZ II .TRN files is incredibly easy because they are text based, they can be edited by using a normal text editor such as notepad. This also means that you can copy sections from one .TRN file and paste them into another.
Note:
Some .TRN files can be incredibly complex, such as the one pictured on the left, taken from my IA map "Cornered". The truth is that most map makers only tend to edit a couple of sections of this file.
The .TRN file for the map featured in this set of tutorials is shown to the left, as you can see this one is far simpler than the one above. The two main aspects of the .TRN file that you'll need to change are :
1) The width and depth settings in the [Size] section of the .TRN, these settings control the size of the play area of your map. The values increase in increments of 1024, from 1024 x 1024 (small), to 7168 x 7168 (huge). If you edit these values you will have to delete the .TER and .WAT files for the map in order for the changes to take place, DON'T attempt this on maps where you've already started modelling the terrain as all terrain data will be lost, this should be done before work on the map has started.
2) The [Texture] section of the .TRN is where you can specify which textures you wish to use on your map, you can use a maximum of 15 different textures. Simply replace the texture names in the quotes with the names of the textures you wish to use.
The .TRN file is a handy file that allows you to change a vast array of the parameters for your map, most of these settings are also available through the console, so I will only be covering a few of the uses of the .TRN in this particular tutorial.
Editing BZ II .TRN files is incredibly easy because they are text based, they can be edited by using a normal text editor such as notepad. This also means that you can copy sections from one .TRN file and paste them into another.
Note:
Some .TRN files can be incredibly complex, such as the one pictured on the left, taken from my IA map "Cornered". The truth is that most map makers only tend to edit a couple of sections of this file.
The .TRN file for the map featured in this set of tutorials is shown to the left, as you can see this one is far simpler than the one above. The two main aspects of the .TRN file that you'll need to change are :
1) The width and depth settings in the [Size] section of the .TRN, these settings control the size of the play area of your map. The values increase in increments of 1024, from 1024 x 1024 (small), to 7168 x 7168 (huge). If you edit these values you will have to delete the .TER and .WAT files for the map in order for the changes to take place, DON'T attempt this on maps where you've already started modelling the terrain as all terrain data will be lost, this should be done before work on the map has started.
2) The [Texture] section of the .TRN is where you can specify which textures you wish to use on your map, you can use a maximum of 15 different textures. Simply replace the texture names in the quotes with the names of the textures you wish to use.