Hammer Map Menu

From Valve Developer Community
Jump to: navigation, search
English (en)Deutsch (de)
Edit

The Map menu contains a number of functions related to the display of the map, as well as global viewing and manipulation of map contents and properties.

Hammer mapmenu.gif

Snap to Grid <Shift+W>

Will cause objects and selection boxes to snap to the current grid.

Show Grid <Shift+R>

You can use this to toggle the grid display on and off. Objects will still snap to the grid if the Snap to Grid option is enabled, regardless if the grid is visible.

Grid Settings <[> and <]>

Hammer gridsettingsmenu.gif

This allows you to increase or decrease the current Snap to Grid size. The current grid size is show in the status bar at the bottom of the Hammer window.

Note.pngNote:Snap-Grid increments are powers of two inches; ie: 1" - 2" - 4" - 8" - 16" - 32" - 64" - 128" - etc. Therefore increase grid size will double the grid unit dimension and decrease will halve it.

Units

This allows you to changes the units of measurement displayed in the Selection size information area on the status bar.

Note.pngNote:1"=1 unit

Hammer unitsettingsmenu.gif

Show Selected Brush Number

This displays the brush number of the selected brush. You must select a single non-entity brush for this command.

Entity Report...

Opens the Entity Report dialog, which can be used to manage your entities and do quick searches for specific entities, providing an easy alternative to searching through your map manually.

Entity Gallery

Pastes a copy of every type of entity in the game data file into the current map. Mainly used for debugging purposes.

Check for Problems <Alt+P>

Opens the Check for Problems dialog that will analyze the map and notify you of any errors it finds.

Diff Map File

A feature used to compare differences between two maps. This feature is incomplete at the current time and has limited usefulness.

Load Pointfile

If your map is not totally sealed, the compile tools (vbsp.exe, specifically) will report a "leak" and generate a pointfile. A pointfile contains information Hammer can use to trace a line from one of the map's entities to the source of the leak. This is represented in the 2D and 3D views by a thick red line. The Load Pointfile command will open the pointfile data associated with the current map, if it can locate the file. If not, it will display an Open dialog that allows you to load the pointfile. The pointfile will have a .lin or [[.pts[confirm] filename extension, depending on the game compilation tools you are using. See Leaks Explained for more information.

The Load Pointfile command shows the path to the leak in the Hammer viewports.

Unload Pointfile

Use this command to remove the display of pointfile data from the 2D and 3D views of the current map file.

Load PortalFile

Loads the Prt file associated with the bsp and vmf, to view Visleafs with Hammer instead of using Glview.

Unload PortalFile

Same as above, but removes the file.

Show Information

This brings up the Map Information dialog, which gives you some statistics on the currently selected map file.

Map Properties...

This will open an Object Properties dialog box, containing different editable parameters for the current map file. This is also known as the worldspawn entity. The worldspawn is an entity that defines some characteristics of the world, including the map title and skybox. See worldspawn for more information.


Stub

This article or section is a stub. You can help by adding to it.