Zh/Saving and Compiling

From Valve Developer Community
< Zh
Revision as of 03:13, 2 December 2008 by Faqy (talk | contribs)
Jump to navigation Jump to search

制作关卡的最后一个步骤就是保存并编译。一张地图如果想在起源引擎中运行则必须要编译。

保存地图

选择 另存为...保存地图。

首先,我们来保存地图:

  1. 点击文件菜单。
  2. 因为这是你第一次保存地图,所以我们要给它命名,因此请选另存为...
  3. 另存为...对话框将会打开。在文件名文本框中键入地图的名字:
    Template:Warning:zh-cn
  4. 点击保存按钮将地图保存到硬盘。

地图会以.VMF文件格式保存。

Template:Note:zh-cn

编译地图

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.png注意: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.png注意: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.


Template:Otherlang:zh-cn Template:Otherlang:zh-cn:en, Template:Otherlang:zh-cn:fr, Template:Otherlang:zh-cn:ru.