Warning: Watch out for outdated links on this page and others! Some may lead to scam sites! Contact a Valve Community Admin upon discovering a site on this page. |
Decompiling is the process of taking a compiled map file and generating a file that Hammer can open. Decompiled maps are not perfect recreations, because of format differences. This makes them useful for learning, measurement, and inspection, but not direct recompilation. The original source is ideal for reproductions or modifications.
How To Edit Gmod Maps In Hammer Game
Releasing reproductions, modifications, or approximations of another's work without permission nor credit may be considered rude to the author, is largely frowned upon, and depending on the source of the map, copyright infringement! That said, there are methods of preventing maps from being decompiled, but it isn't worth your time because none of them are 100% effective and 99% of decompilers aren't stealing anyways.
Tools
- 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:
- Warning: These tools for the Half-Life Engine are unstable and may not compile correctly in the end.
Finding Valve Maps
Most maps do not need to be extracted, as they are located in the file system rather than VPK. The map files are normally located in a maps folder, for example
commonTeam Fortress 2tfmaps
holds all the official Team Fortress 2 maps.VMEX - a HL2 map decompiler. VMEX is a simple map decompiler for Half-Life 2 Source engine maps (i.e., for HL2, HL2DM, CS:S, and DoD:S). It converts compiled.bsp map files into.vmf files which can be loaded into Hammer. The.vmf files produced can be loaded to see how various mapping techniques are used in the official Valve maps.
Gmod Hammer Editor
Note:A few games may have extra maps sectioned into other mod folders, for example
Portal 2portal2_dlc1maps
.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.
Video as wallpaper for mac. Some mappers will offer help and advice, they may even go so far as to provide examples of what you wanted to borrow from the map.
- The mapedit command can also be used to edit various AI nodes and node connections in the engine instead of Hammer. When using mapedit in this way, it is not necessary to use hammerupdateentity - any nodes changes are automatically sent to the Hammer editor as the changes are made in the engine.
- To decompile maps for The Ship, download the modified version: VMEX (v0.98e) here. A modified version of vmex was created for decompiling Left 4 Dead maps by TerabyteDragon with permission by the original author. This modification resolves an issue with static props (specifically how large the entries are in the BSP file).
- Put the map you want to test in the garrysmod garrysmod maps directory. Start up gmod and click either the Singleplayer or Create Multiplayer option. Singleplayer is generally more convenient. You should see the gmod game setup window, with a list of maps grouped into categories.
Porting newer maps to older Source games
Decompiled maps from Left 4 Dead 2, Portal 2, Counter-Strike: Global Offensive, and Alien Swarm will crash when loaded in the Hammer for Half-Life 2, Team Fortress 2, Counter-Strike: Source, and Day of Defeat: Source. The only way to get them to work is to open the map in Left 4 Dead hammer and re-save it so it becomes compatible.
See also
How To Edit Gmod Maps In Hammer Free
Retrieved from 'https://developer.valvesoftware.com/w/index.php?title=Decompiling_Maps&oldid=234259'