Game Development Community

How do I get the .ter file?

by Bradley Mitchell · in Torque 3D Beginner · 08/11/2013 (5:21 pm) · 1 replies

I made a map using the editor (basically off the beamng DRIVE game) and I have a .mis file. In order for the map to load correctly, I also need the .ter file.

How do I get it?

About the author

Recent Threads


#1
08/11/2013 (8:58 pm)
The terrain (.ter) is linked in the mission file (.mis). If you open the mission file with a text editor, find the word "TerrainBlock" and you'll see code like this:

...

      new TerrainBlock(theTerrain) {
         terrainFile = "levels/myTerrain.ter";
         castShadows = "1";
         squareSize = "2";
         baseTexSize = "1024";
         lightMapSize = "128";
         screenError = "16";
         position = "0 0 0";
         rotation = "1 0 0 0";
         canSave = "1";
         canSaveDynamicFields = "1";
      };

...

"terrainFile = ..." is the linked terrain file. This file should be present in the "levels" folder by default but may have a different location.