Saving and Compiling: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Compiling the Map: shortcut key)
m (minoro)
Line 1: Line 1:
[[Category:Level Design Tutorials]]
{{first room menu}}
{{first room menu}}
The final stage of making a level is saving and compiling it. A map must be compiled to run it in the Source Engine.{{clr}}


==Saving the Map==
The final stage of making a level is saving and compiling it. A map must be compiled to run it in the [[Source|Source Engine]].
{{clr}}


== Saving the map ==
[[Image:hammer_saveas.jpg |thumb|right|200px| Choose ''Save As...'' to save the map.]]
[[Image:hammer_saveas.jpg |thumb|right|200px| Choose ''Save As...'' to save the map.]]
<!--[[Image:hammer_setname.jpg |thumb|right|200px| Type in a name for the map, then Click the Save button.]]-->
<!--[[Image:hammer_setname.jpg |thumb|right|200px| Type in a name for the map, then Click the Save button.]]-->
Line 21: Line 21:
{{note|You can also press <Ctrl+S> to save the map without having to open the menu.}}{{clr}}
{{note|You can also press <Ctrl+S> to save the map without having to open the menu.}}{{clr}}


==Compiling the Map==
== Compiling the map ==
 
[[Image:hammer_pickrunmap.jpg |thumb|right|200px|Click the '''Run Map''' icon to compile your map.]]
[[Image:hammer_pickrunmap.jpg |thumb|right|200px|Click the '''Run Map''' icon to compile your map.]]


Line 49: Line 48:
{{note|If you wish to compile under [[HDR]] lighting, simply check the box that says HDR. The time to compile the map will be twice as long, but that is completely normal.}}{{clr}}
{{note|If you wish to compile under [[HDR]] lighting, simply check the box that says HDR. The time to compile the map will be twice as long, but that is completely normal.}}{{clr}}


[[Image:hammer_engine.jpg|thumb|300px|right|The final room, compiled and running in the game. Beautiful!]]
[[Image:hammer_engine.jpg|thumb|300px|right|The final room, compiled and running in the game.]]


Here's a shot of the compiled map in-game. It isn’t much to look at yet, but it has the basic pieces you need to get started making your own maps.
Here's a shot of the compiled map in-game. It isn’t much to look at yet, but it has the basic pieces you need to get started making your own maps.
Line 56: Line 55:


== Where do I go from here? ==
== Where do I go from here? ==
Now that you know the basics, look at the [[:Category:Level Design|Level Design Category]] page for a list of articles and tutorials on different level design topics.
Now that you know the basics, look at the [[:Category:Level Design|Level Design Category]] page for a list of articles and tutorials on different level design topics.


Line 62: Line 60:


{{NavBar|Adding Prop Models|Your First Map|:Category:Level Design}}
{{NavBar|Adding Prop Models|Your First Map|:Category:Level Design}}
[[Category:Level Design Tutorials]]

Revision as of 06:38, 9 February 2008

The final stage of making a level is saving and compiling it. A map must be compiled to run it in the Source Engine.

Saving the map

Choose Save As... to save the map.

First, let’s save this map:

  1. Click the File menu.
  2. As this is your first time saving this map, we will need to give it a name, so choose Save As....
  3. A Save As... dialog will open. Type the name of your map into the File Name field:
    Warning.pngWarning:You cannot include any spaces in the filename.
    • Half-Life 2: Deathmatch maps should have the dm_ prefix before their map names so that they can easily be recognized.
  4. Click the Save button to save the map to disk.

The map is saved in the .VMF file format.

Note.pngNote:You can also press <Ctrl+S> to save the map without having to open the menu.

Compiling the map

Click the Run Map icon to compile your map.

You have saved your map, but you will also need to compile it before it can be played in the game engine.

When a map is compiled, it is converted from the raw .VMF file that you just saved, into the .BSP format used by the game engine. The geometry is processed and the proper lighting and shadows are pre-calculated with several compile programs.

Open the File menu, and choose Run Map....

The Run Map dialog will open.

Note.pngNote:You can also press the F9 key to display this dialog
Change the Run Map parameters to match these settings, then click OK.

This dialog is used to set some basic compile parameters.

  1. Make sure that Normal is set under the Run BSP, Run VIS, and Run RAD settings.
  2. Under Additional game parameters:, type:
    -dev -console +sv_lan 1
    See Additional game parameters if you wish to learn more about these settings.
  3. Now click the OK button to start the map compile process.

The Compile Process Window will show the progress of the compile. When the compilation is done, the game you are mapping for will automatically launch, and load your map in the engine.

Note.pngNote:If you wish to compile under HDR lighting, simply check the box that says HDR. The time to compile the map will be twice as long, but that is completely normal.
The final room, compiled and running in the game.

Here's a shot of the compiled map in-game. It isn’t much to look at yet, but it has the basic pieces you need to get started making your own maps.

Congratulations, you’ve made your first map!

Where do I go from here?

Now that you know the basics, look at the Level Design Category page for a list of articles and tutorials on different level design topics.

If you're having problems, you may wish to consult the Level Design FAQ.


[[::Category:Level Design|:Category:Level Design]] →