Game Development Community

Sizing the terrain to your settings

by Shane09 · in General Discussion · 02/11/2009 (3:12 pm) · 3 replies

I am working on an island. Is it possible to size the mission editor red box to a certain size. I don't mean adding more handles to be able to shape it, but, I mean sizing it like 2 km by 2km, or 1 mile by 1 mile. Is this possible? Would this be done with editing the '.mis' or '.ter' file using a text editor? I don't want to free hand my island size. I guess I would have to if there is no other solution, though. Any help is greatly appreciated. Thanks.

#1
02/11/2009 (3:32 pm)
I noticed this line of code:

new MissionArea(MissionArea) {
      canSaveDynamicFields = "1";
      area = "-600 -664 944 1328";
      flightCeiling = "300";
      flightCeilingRange = "20";
         locked = "true";
I think what I am looking for is
area = "-600 -664 944 1328";
. I noticed there are 4 sets of numbers. Does anyone know how much those measure out to? Like 1000 is 1 second. What is the translation for mission area? Is there even one?
#2
02/11/2009 (5:51 pm)
It's my understanding that the four sets of numbers in that area field are actually coordinate values (-x, -y) (x, y). You'll have to eyeball the apparent size of the terrain and the MissionArea.

Look at the TerrainBLock in the MissionEditor under the InspectorPanel. You'll find a field called "squareSize". By default squaresize is 8 which gives you an approximately 2k X 2k terrain square. Change that to a 4 and you'll have a 1k X 1k square, or a 16 would give you 4k X 4k, etc, etc.

So, in order to make your Mission Area equal to 2k X 2k simply resize the area with the MissionAreaEditor so that it is extent to your initial terrain tile. Be aware that scaling the size of your players and other objects will affect the apparent terrain and mission area sizes.
#3
02/11/2009 (6:29 pm)
Oh, ok. I just thought that there was a translation for it. Coordinates make sence, though. Well, I don't really plan on resizing my game. I need to know if there was a size translation for the Mission Area so that way all my islands could be the same size in some way. Since that option is now outruled, is it possible you can have a grid on or over the terrain? This way I know how big certain parts of my island have to be? Would making a texture of a grid work, and then using that, until my game is ready to be published? Right before I publish, I could switch out the textures? But the problem with this is that when I make hills, the grid will be distorted where the hill is.

EDIT: And, oh. When you size the Mission Area to fill up the whole section, is that 2 km by 2 km?