Decompiling Maps

From Valve Developer Community
Revision as of 01:37, 7 June 2018 by Romgerman (talk | contribs) (Preparing for russian translation)
Jump to: navigation, search
Русский 简体中文 한국어

Decompiling is the process of taking a compiled level and generating a source that can be opened in a map editor. Decompiled levels mimic the original source, they are not exact reproductions. This makes them useful for learning, measurement, and inspection, but not direct recompilation. The original source is ideal for reproductions or modifications.

Releasing reproductions, modifications, or approximations of another's work without permission nor credit is frowned upon and may be considered as a copyright violation.


  • EntSpy (used to view and edit the entities of a BSP without recompiling)
  • BSPSource (open source map decompiler for Source engine maps, based on VMEX)
  • VMEX (decompiler for Source engine maps)
  • MapFool (helps porting HL1 maps to Source)
  • xwad (command-line tool to convert texture formats)

Tools for the HL1-engine:

Getting dirty

The latest decompiler is BSPSource. Since it is written in Java you need to have the Java Runtime Environment (JRE) installed, which can be downloaded from Oracle. Once installed, you are ready to decompile your first map.

Extracting Valve maps

Most maps do not need to be extracted. The .bsp files are usually located in /<game name>/<game name>/maps/.

(Note: This tutorial assumes that you have opted into the SteamPipe beta for any Orange Box titles. Games released after 2007 or games that are multiplayer titles will have already stashed their content in \steamapps\common\.)

  1. go to File >> Open.
Note.png Note: Left 4 Dead, Left 4 Dead 2, and Portal 2 also have other folders for DLCs, for examples: steamapps\common\portal2\portal2_dlc1\maps\ and steamapps\common\left 4 dead\l4d_dlc1\maps\ .

Before you go

Before you take this jump to run off and decompile a map take a second or two to think, "What am I trying to learn/do?". Read the included TXT files, you may just find the creator's e-mail, and that could be more helpful than you imagine.

Some mappers will offer up help and advice, they may even go so far as to provide perfect examples of what you were trying to "borrow" from the map.

See also