Decompiling Maps: Difference between revisions
m (It's not copyright violation unless their work is copyrighted.) |
(→Extracting Valve maps: New section) |
||
Line 15: | Line 15: | ||
The latest decompiler is called [[BSPSource]] and is written in Java. You need an updated version of the Java Runtime Environment (JRE), which can be downloaded from [http://java.sun.com/javase/downloads/ Sun] to run BSPSource. Once installed, you are ready to decompile your first map. | The latest decompiler is called [[BSPSource]] and is written in Java. You need an updated version of the Java Runtime Environment (JRE), which can be downloaded from [http://java.sun.com/javase/downloads/ Sun] to run BSPSource. Once installed, you are ready to decompile your first map. | ||
== | == Extracting Valve maps == | ||
* [[ | |||
# Install [[GCFScape]]. | |||
# After you install GCFScape, go to <code>File >> Open</code>. | |||
#* For {{hl2}}[[Half-Life 2]] maps, open '''<code>\steamapps\half-life 2 content.gcf</code>''' | |||
#* For {{ep1}}[[Half-Life 2: Episode One]] maps, open '''<code>\steamapps\half-life 2 episode one.gcf</code>''' | |||
#* For {{ep2}}[[Half-Life 2: Episode Two]] maps, open '''<code>\steamapps\episode two maps.gcf</code>''' | |||
#* For {{portal}}[[Portal]] maps, open '''<code>\steamapps\portal content.gcf</code>''' | |||
#* For {{portal2}}[[Portal 2]] maps, open {{todo|insert GCF location for Portal 2 maps}} | |||
#* For {{tf2}}[[Team Fortress 2]] maps, open '''<code>\steamapps\team fortress 2 content.gcf</code>''' | |||
#* For {{l4d}}[[Left 4 Dead]] maps, open {{todo|insert GCF location for Left 4 Dead maps}} | |||
#* For {{l4d2}}[[Left 4 Dead 2]] maps, open {{todo|insert GCF location for Left 4 Dead 2 maps}} | |||
# Browse the directory until you find a <code>\maps\</code> folder. Each location varies per game. | |||
# Right-click on the BSP file you want, then click <code>Extract</code> or drag the file from the GCF into a folder. | |||
== Before you go == | == Before you go == | ||
Line 23: | Line 35: | ||
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. | 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 == | |||
* [[Porting Half-Life maps]] | |||
[[Category:Level Design]] | [[Category:Level Design]] | ||
[[Category:Tutorials]] | [[Category:Tutorials]] |
Revision as of 12:45, 6 February 2012
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.
Tools
Getting dirty
The latest decompiler is called BSPSource and is written in Java. You need an updated version of the Java Runtime Environment (JRE), which can be downloaded from Sun to run BSPSource. Once installed, you are ready to decompile your first map.
Extracting Valve maps
- Install GCFScape.
- After you install GCFScape, go to
File >> Open
.- For
Half-Life 2 maps, open
\steamapps\half-life 2 content.gcf
- For
Half-Life 2: Episode One maps, open
\steamapps\half-life 2 episode one.gcf
- For
Half-Life 2: Episode Two maps, open
\steamapps\episode two maps.gcf
- For
Portal maps, open
\steamapps\portal content.gcf
- For
Portal 2 maps, open
Todo: insert GCF location for Portal 2 maps - For
Team Fortress 2 maps, open
\steamapps\team fortress 2 content.gcf
- For
Left 4 Dead maps, open
Todo: insert GCF location for Left 4 Dead maps - For
Left 4 Dead 2 maps, open
Todo: insert GCF location for Left 4 Dead 2 maps
- For
- Browse the directory until you find a
\maps\
folder. Each location varies per game. - Right-click on the BSP file you want, then click
Extract
or drag the file from the GCF into a folder.
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.