This article relates to the game "Dota 2". Click here for more information.
This article relates to the SDK/Workshop Tools for "Dota 2 Workshop Tools". Click here for more information.
This article's documentation is for Source 2. Click here for more information.

Compile and Run

From Valve Developer Community
Jump to: navigation, search

English (en)Русский (ru)中文 (zh)Translate (Translate)
Click Build to compile your map.

It's time to compile and play your map. Press F9 or go to File -> Build Map to open the Build Map window. A window similar to the right should appear with a variety of options.


If you wish to have your map launch automatically when it's done being built, check the "Load in engine after building" and "Bring engine to front" check boxes. Also, since this is the first version of your map, check the "Create minimap on load" check box so that it auto-creates a minimap image for you. Click Build to begin compiling your map.


Once the map is compiled it can be run in game. If you've checked "Load in engine after building" this will automatically load the map in game. If not, there's some steps on how to do this:


  1. Open the console by pressing ` commonly located above the Tab key.
  2. Type "dota_launch_custom_game my_addon_name my_map_name" substituting your own addon name and map name where appropriate
  3. Press Enter


Launching a map using the console.

Once in-game, you'll need to re-open the console and enter the command "jointeam good" since your addon isn't yet set up to assign you a team.


You've completed your first simple map and, with that, completed the introduction to Hammer and its Tile Editor. You can return to the Level Design section to browse the rest of the Hammer documentation and tutorials. Additional information and advanced Tile Editor concepts can be found in the Tile Editor documentation.


Tip.pngTip:In the Build Map dialog (F9) clicking the Settings button gives a choice on which map components you'd like to compile. Later on, you may encounter cases where you haven't made any changes to the world geometry since your last map compile, so you don't want to spend time recompiling World. In that case, you'd just toggle off its check box.


Note.pngNote:The compile process takes your .vmap file contained in 🖿content/dota_addons/your_addon_name/maps/your_map_name.vmap and packages it into a .vpk file contained in 🖿game/dota_addons/your_addon_name/maps/your_map_name.vpk