Editing Mission Builder

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 196: Line 196:
Water is created in cubes - either single small areas or one big enough to fill the entire map.  You can find '''Water''' under '''Mission Objects'''.  Don't worry about the parameters, they're easy to change later.
Water is created in cubes - either single small areas or one big enough to fill the entire map.  You can find '''Water''' under '''Mission Objects'''.  Don't worry about the parameters, they're easy to change later.


[[File:MB Screen 23.jpg]]
[[File:MB Screen23.jpg]]


Once you have your water (it will look like a 2D sheet, only the surface is really visible) you can move it into place and start changing the parameters.  I recommend opening up a level which has water you like the look of, and copying that.  You can make the water appear to flow, change the colour, and all sorts of other things.  I've copied the water from the gates of Elms, and made it look a bit less appealing.
Once you have your water (it will look like a 2D sheet, only the surface is really visible) you can move it into place and start changing the parameters.  I recommend opening up a level which has water you like the look of, and copying that.  You can make the water appear to flow, change the colour, and all sorts of other things.  I've copied the water from the gates of Elms, and made it look a bit less appealing.


[[File:MB Screen 24.jpg]]
[[File:MB Screen24.jpg]]


==== Weather ====
==== Weather ====
Line 206: Line 206:
You can also play with the depth fog.  If you look through the list of objects which are created for you, you should be able to find '''Sky'''.  There are various different parameters - in this screenshot I've reduced the fog distance and visible distance down to almost nothing.
You can also play with the depth fog.  If you look through the list of objects which are created for you, you should be able to find '''Sky'''.  There are various different parameters - in this screenshot I've reduced the fog distance and visible distance down to almost nothing.


[[File:MB Screen 25.jpg]]
[[File:MB Screen25.jpg]]


You can also change the fog colour (it uses [http://en.wikipedia.org/wiki/RGB#Numeric_representations RGB] colour values).  Here I've produced a nice pink fog.  Very pretty.
You can also change the fog colour (it uses [http://en.wikipedia.org/wiki/RGB#Numeric_representations|8-bit RGB] colour values).  Here I've produced a nice pink fog.  Very pretty.


[[File:MB Screen 27.jpg]]
[[File:MB Screen27.jpg]]


The final thing you can try is to change the sky texture.  Have a look at '''MaterialList''' under '''Media'''.  This is your current sky texture.  If you find that file, there will be others in the same directory with the same extension.  Those are the other possible sky textures.  Play around until you find one that suits the mood of your level.  This is the stormy sky texture, but there are a lot of others.
The final thing you can try is to change the sky texture.  Have a look at '''MaterialList''' under '''Media'''.  This is your current sky texture.  If you find that file, there will be others in the same directory with the same extension.  Those are the other possible sky textures.  Play around until you find one that suits the mood of your level.  This is the stormy sky texture, but there are a lot of others.


[[File:MB Screen 26.jpg]]
[[File:MB Screen26.jpg]]


==== Sunlight ====
==== Sunlight ====


The last thing to try is changing the colour of the sunlight, if you want a sunset or stormy feel.  Find the '''Sun''' object, and you can change the colour in the same way as with the fog.  You will need to recalculate lighting for this to work.  Here is an example with a reddish sun, although it turned out a bit too pink to really look like sunset.  I also set the fog to yellowish brown, to blend in with the desert a bit better.
The last thing to try is changing the colour of the sunlight, if you want a sunset or stormy feel.  Find the '''Sun''' object, and you can change the colour in the same way as with the fog.  You will need to recalculate lighting for this to work.  Here is an example with a reddish sun, although it turned out a bit too pink to really look like sunset.


[[File:MB Screen 28.jpg]]
[[File:MB Screen28.jpg]]
 
== Creating a Wilderness Map ==
 
This guide goes over some of the parts of the mission builder that are most relevant to wilderness maps.  Honestly there's not that much of a difference between a race track and a wilderness map - it's just more work, as you have to take into account that players can and will drive anywhere on the map.  If you feel confident in your ability to make a map, just skip to the end and add the car paths and spawn areas, and you'll be good to go.
 
=== Terrain Generation ===
 
Unlike race tracks, the whole area is important.  Players will be able to go everywhere, so we need to make sure there's something interesting in every direction.
The first thing to do is to look at other maps in the area, try and work out how they were created.
 
I'll be using an empty map to demonstrate these transformations.  The sun has been turned down to reduce glare, and fog is reduced.
 
[[File:MBW_Screen1.jpg]]
 
The green area shows where the terrain will repeat.  Darkwind maps loop forever (as you probably noticed), and this line shows the edge of the map section. You can't paint textures outside this area - you need to head over to the other side of the map.  It doesn't have any effect in-game though.
 
Making a map starts in terrain terraform editor mode.  There are two types of transformation - generators and modifiers. They work in order from top to bottom, and can be layered to produce complex effects.
 
==== Generators ====
 
Generators override the terrain, and wipe out everything above them in the stack.  There's no point using more than one of these, they just override each other.  The "New Seed" button gives a different random terrain.  The green minimap in the bottom left shows a preview of the terrain that will be generated.
 
*'''fBm Fractal''' - basic hilly terrain.  Hill frequency is (more or less) the number of hills in the area.  Roughness is the steepness of the hills (I think - it doesn't actually seem to do much).  Detail adds smaller hills between the large ones.  This is the most useful generator for most areas.
 
[[File:MBW_Screen2.jpg]]
 
*'''Rigid MultiFractal''' - produces ridges or sand dunes.  This is used for most of the terrain along the SS-Elms route.  Frequency and detail as above.
 
[[File:MBW_Screen3.jpg]]
 
*'''Canyon Fractal''' - Produces steep-sided canyons.  Think of Sarsfield, or The Maze.  Chaos adjusts how winding the canyons are.  With low numbers of canyons and moderate roughness, this can produce rolling hills.
 
[[File:MBW_Screen4.jpg]]
 
''Low Chaos''
 
[[File:MBW_Screen5.jpg]]
 
''High Chaos''
 
*'''Sinus''' - produces small bumps all over the map.  The graph will be important for a lot of operations, so it's worth explaining how it works.  The height of the graph shows how much of that size effect will be part of the final terrain - large bumps on the left, small ones on the right.  A couple of examples:
 
[[File:MBW_Screen6.jpg]]
 
''Small Ripples''
 
[[File:MBW_Screen7.jpg]]
 
''Large Ripples''
 
[[File:MBW_Screen8.jpg]]
 
''Varied Ripples''
 
* '''Bitmap''' - claims to use an 8 bit bitmap as the base for a terrain.  Unfortunately I can't work out which folder it looks in for bitmaps.  Anyone who works it out, let me know.
 
==== Modifiers ====
 
*'''General''' - sets max and min terrain height.  This is the biggest effect on the "hilliness" of the terrain.  This is always the first transformation, and can't be deleted.
 
*'''Turbulence''' - adds extra noise and roughness to the terrain.  It gives a twisting sort of effect.  Requires clicking on a higher level and back before seeing any effects.
 
[[File:MBW_Screen9.jpg]]
 
''No Turbulence''
 
[[File:MBW_Screen10.jpg]]
 
''Light Turbulence''
 
[[File:MBW_Screen11.jpg]]
 
''Heavy Turbulence''
 
*'''Smoothing''' - the opposite.  Smooths out rough edges and makes a more even, rolling terrain.  Number of iterations has the biggest effect on the outcome.
 
[[File:MBW_Screen12.jpg]]
 
''No Smoothing''
 
[[File:MBW_Screen13.jpg]]
 
''Light Smoothing''
 
[[File:MBW_Screen14.jpg]]
 
''Heavy Smoothing''
 
*'''Smooth Ridges/Valleys''' - smooths only the top of mountains and ridges.  Useful to avoid sharp peaks that cars have trouble driving over.
 
[[File:MBW_Screen15.jpg]]
 
''No Smoothing''
 
[[File:MBW_Screen16.jpg]]
 
''Heavy Smoothing''
 
*'''Filter''' - applies a transform based on the height of the terrain - each input height can be linked to an output.  There are all sort of complex effects that can be achieved like this, although I haven't experimented much.
 
[[File:MBW_Screen17.jpg]]
 
''The original terrain''
 
[[File:MBW_Screen18.jpg]]
 
''Filtering used to set the terrain to three levels''
 
*'''Thermal Erosion/Hydraulic Erosion''' - don't appear to do anything.  Let me know if you work it out.
 
=== Automatic Texture Generation ===
 
Painting the whole map by hand would be slow and impractical, so unless we just want uniform sand we need to automatically paint textures.
This is more art than science.  I've managed to get it to work, more or less, but I'm not sure exactly what the rules are.
 
Use the add material button to add textures to your level.  They come with a standard fractal distortion, just to add a bit of roughness to the edges and make the whole thing appear a little more natural.  There are two additional placement options:
 
* '''Place by Height''' - Good for putting rock textures on the tops of hills, or underwater textures at the bottom of pools.  Here's a quick example:
 
[[File:MBW_Screen19.jpg]]
 
You can see that the sand is restricted to the middle layer, with red sand at the bottom of pits and black rock at the top of the hills.
 
* '''Place by Slope''' - Best used in combination with place by height.  In this example, the black rock has been set to large slopes only, so the plateau on top reverts to the yellow sand.
 
[[File:MBW_Screen20.jpg]]
 
=== Sculpting the Map ===
 
The techniques here are the same as for the race track above.  Try to look at the map as you would playing it.  Think about points where the player can sit at the top of a cliff or behind a pit and get easy kills, or use areas the AI has trouble navigating in order to escape.  Then stop them.  Remember, you score points for every player who dies on your map, double points if you can get them to drive into pits.
 
It's up to you how much hand sculpting you want to do.  Some maps are just a few tweaks on top of a generated terrain, whereas some (The Pits is a good example) are largely built by hand.  Hand built terrain can look amazing, but it's a lot of work - up to you.  I prefer to have the computer do most of the work because I'm a lazy programmer.
 
==== Regenerating Textures ====
 
If you adjust the terrain and want to automatically texture it, you'll need to swap into Terraform Editor mode and back out again before your changes are recognised.  There are actually a few situations like this, and swapping between modes or turning fractal distortion off and on again usually fix them.  If not, you may need to quit and restart.
 
=== Decorations ===
 
Again, this is covered in the race track section.  Adding just a few trees or shrubs can make a big difference.
 
Note that even though the terrain will loop, the objects won't be recreated.  You can put objects outside the mission area though, which is a good idea if you have something like a bridge.
 
=== Car Paths and Spawn Areas ===
 
This is the major technical difference between a wilderness map and a race track.  Like the track, car paths are needed to direct the AIs along your roads (not that they pay any attention, but you have to make the effort).  However the form of the path is different and you may need more than one.  You will also need multiple spawn areas, along with ambush points.
 
==== Car Paths ====
 
The simplest maps (which is most of them) have a single car path that follows a single road across the map.  These are by far the easiest to make.  Make a path just like you would for the race track, but instead of a loop you want a single line from one edge of the mission area to the other.  The AI will head the first waypoint on the next repeat of the map when they get to the last waypoint on this repeat, so make sure the two points are close to each other.  You also need to make the points big enough that the AIs won't miss them if they're driving slightly off road.
 
More complex maps may have multiple car paths that join and split it complex ways, but I can't help you there.  Have a look at the gates of SS if you want an idea of how bad it can get.  Then just stick to making maps with a single road on.
 
==== Spawn Areas ====
 
There are three types of spawn area available.  Trader and Pirate spawns are the normal spawn points, and do what you expect them to.  Traditionally the pirates spawn 100m - 200m behind the traders, but you could try some more unorthodox things if you want.  Bear in mind that a head-on spawn will (I believe) put the players in the pirate spot, with the AIs facing them in the trader spot.
These types of spawn consist of a SimGroup named in the form PlayerDropPoints1Pirate or PlayerDropPoints1Trader, which contains four SpawnSpheres.  These mark (in order) the front-left, front-right, rear-left, and rear-right corners of the area.
 
[[File:MBW_Screen21.jpg]][[File:MBW_Screen22.jpg]]
 
''Traders(left) and Pirates (right)''
 
The third type is the ambush, named in the form AmbushPoints1Pirate.  These are optional, but I like to add one to each spawn point, just to stop people getting complacent.  These consist of 25 or more SpawnSpheres, which each give the position and facing of a single car.
 
[[File:MBW_Screen23.jpg]]
 
''Ambush points''
 
You can have as many spawn areas as you like, just keep increasing the number.  One nice trick (which I didn't think of when making Oil Slick, unfortunately) is to add spawns at both ends of your path, facing towards the centre.  Driving the map in both directions adds a bit of variety, and it means players will be seeing all that nice decration you added from both sides.
 
== Submitting Your Mission ==


== Notes ==
== Notes ==
Line 434: Line 263:


'''Checkpoints'''
'''Checkpoints'''
ONLY USED ON RACE TRACKS
ONLY USED ON RACETRACKS
You need a set of these, probably between 5 and 10 of them. In fact, the more the better. Make sure they overlap the track boundaries generously, so we don't penalise people who drift over the edges a little.
You need a set of these, probably between 5 and 10 of them. In fact, the more the better. Make sure they overlap the track boundaries generously, so we don't penalise people who drift over the edges a little.


Line 445: Line 274:


'''Spawn Areas'''
'''Spawn Areas'''
RACE TRACKS HAVE 1 SPAWN AREA ONLY
RACETRACKS HAVE 1 SPAWN AREA ONLY
The spawn area is specified by using ''two SpawnSpheres'' inside a SimGroup called PlayerDropPoints. These two SpawnSpheres show the opposite corners of a rectangle into which the cars will be spawned. The first is the 'front' of the starting grid and the second is the 'back' of the grid. The rotation of the first SpawnSphere will be the rotation that cars are spawned at.
The spawn area is specified by using ''two SpawnSpheres'' inside a SimGroup called PlayerDropPoints. These two SpawnSpheres show the opposite corners of a rectangle into which the cars will be spawned. The first is the 'front' of the starting grid and the second is the 'back' of the grid. The rotation of the first SpawnSphere will be the rotation that cars are spawned at.


Line 470: Line 299:
__isOffroad __- this takes 2 possible values, or can be omitted. A value 1 means this waypoint is only for offroad vehicles (e.g. the buggy or the landrunner) to use (they have better tyre friction and this can be significant in places where other cars slide a lot). A value 2 means this waypoint is only for non-offroad vehicles. If you omit the isOffroad field then all cars use the waypoint.
__isOffroad __- this takes 2 possible values, or can be omitted. A value 1 means this waypoint is only for offroad vehicles (e.g. the buggy or the landrunner) to use (they have better tyre friction and this can be significant in places where other cars slide a lot). A value 2 means this waypoint is only for non-offroad vehicles. If you omit the isOffroad field then all cars use the waypoint.


RACE TRACKS HAVE 1 CARPATH
RACETRACKS HAVE 1 CARPATH


ARENAS HAVE BETWEEN 2 AND 4 CARPATHS
ARENAS HAVE BETWEEN 2 AND 4 CARPATHS
Line 504: Line 333:
The order of these, rather than their name, determines their position on the grid  
The order of these, rather than their name, determines their position on the grid  


=== Notes on Racetracks: ===
(1) To get the cars spawning at the right place, make sure that the SpawnSpheres are *inside* the PlayerDropPoints simgroup, not after it. To be inside, they need to be directly after the { symbol and before the }; symbols
Like this:
  new SimGroup(PlayerDropPoints) {
    spawnspheres are in here..
  };
(2) The scale of the Marker objects (which define the NPC route around the track) is very important. The position of the markers obviously defines where the NPCs should steer towards, but until they cross the edge of a Marker they won't move onto the next one. So if the scale is "1 1 1" they'll have a very hard time driving the track since they will insist on passing through a precise area 1x1 metre in size. If you open up one of the existing files, such as the Northern Desert Circuit, you'll see how the size is used to make them start turnning before they get to the apex in many cases.
(3) Don't worry about the looping constraint, that will be easy to fix by forcing the track to always have 1 lap races.


[[Category: World]]
[[Category: World]]
Please note that all contributions to Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wiki:Copyrights for details). Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)