Skip to content
Browse the docs

Workshop docsHelp & reference

Reference

Every file path, console command and link from these guides on one page, for when you know what you're doing and just need the detail.

File paths

All paths are relative to the root of your VPK, or to Black Mesa/bms/ for loose files.

PathWhat it is
maps/<map>.bspA compiled map.
maps/graphs/<map>.ainThe map's AI nodegraph. Generated on first load; ship it.
maps/<map>.txtMultiplayer map info: display name, player count, loading images.
materials/vgui/multiplayer/map_backgrounds/Multiplayer loading images: a .vtf and .vmt named <map>_<id> (4:3), <map>_<id>_widescreen (16:9) and <map>_<id>_widescreen_16_10 (16:10) for each camera.
campaigns/<unique-name>.jsonA campaign, listed on the Campaigns tab of the main menu's Add-ons section.
campaigns/blackmesa.jsonThe official campaign. Standalone mods only.
scripts/chapter_manifest.txtWhich maps belong to which chapter. Standalone mods only.
resource/<mod>_english.txtLocalization tokens (UTF-16 LE). Standalone mods only.
ui/themes/default/*.qmlThe main menu's code. Standalone mods only.
bms/custom/Drop VPKs or folders here to test them. Scanned at startup.
steamapps/workshop/content/362890/<item id>/Where Steam puts subscribed Workshop items.

Tools

In steamapps/common/Black Mesa/bin/:

ToolUse
hammer.exeLevel editor. Needs bms.fgd under Game Data files.
vpk.exe <folder>Pack a folder into <folder>.vpk.
vpk.exe -M -c <MB> <folder>Pack into a multi-part VPK (_dir.vpk plus _000.vpk, _001.vpk, …).
blackmesa_publish.exeUpload and update Workshop items.
bspzip.exePack files into a .bsp.
hlmv.exeView models.

Campaign file fields

FieldRequiredNotes
titleYesPlain text. #TOKEN only in standalone mods.
imageSourceYesimage://game/<path>, PNG or JPG.
chaptersYesOne entry per chapter. A single entry starts the map directly.
chapters[].titleYesShown on the chapter card and loading screen.
chapters[].imageSourceYesAlso the loading screen for the chapter's maps. 1280×720 or larger.
chapters[].levelNameYesThe .bsp name without extension.
author, url, descriptionNoNot shown in the menu.

Console commands

CommandUse
map <name>Load a map.
maxplayers <n>Set the player limit before loading a multiplayer map.
sv_cheats 1Allow cheat commands (needed for many below).
buildcubemapsBuild cubemaps (run mat_specular 0 first, mat_specular 1 after).
bm_generate_menu_imagesCapture multiplayer loading images from each info_observer_menu.
mat_motion_blur_enabled 0Turn off motion blur (before capturing images).
cl_drawhud 0Hide the HUD (for screenshots).
noclip, god, impulse 101Fly, invulnerability, all weapons.
developer 1Show developer messages on screen.

Launch options

OptionUse
-dev -consoleDeveloper messages, and the console at startup.
-game <folder>Run a standalone mod.
-oldgameuiThe old VGUI menu (unsupported). Needed when building cubemaps.

Black Mesa-specific entities

EntityUse
info_observer_menuCamera for a multiplayer loading image. observerid 0, 1, 2…
info_player_deathmatchDeathmatch spawn.
info_player_marine, info_player_scientistTeam Deathmatch spawns.
item_weapon_*, item_ammo_*Pickups. Hard Respawn flag for fixed-schedule respawns.
newLight_Point, newLight_Spot, newLight_DirReal-time deferred lights.

The VDC keeps a full list of Black Mesa entities.

Further reading