(Tutorial) Decompiling maps with BSPsource

Berry

resident homo
aa
Dec 27, 2012
1,056
1,898
An updated tutorial for decompiling was requested by Open Blade, seeing as that thread is for outdated programs.

15px-Pictogram_info.png
BSPsource can be download here free: https://github.com/ata4/bspsrc/releases/tag/v1.4.0
15px-Pictogram_info.png

15px-Pictogram_info.png
If you want official maps, there's a thread of readily available-to-download vmfs for official maps here (can't guarantee updated).
15px-Pictogram_info.png


0. Download (or disregard such if you already have bspsource) and launch BSPsource.

ENvnBw7.png


1. Hit "add" and locate your file. For this example I'm going to locate polarbeam. 99% of the time, the map you want will be in this folder (assuming you use the default directory on Windows, Program Files interchangeable with Program Files (x86)):
C:\Program Files\Steam\SteamApps\common\Team Fortress 2\tf\maps\

or for pre-steampipe: ...\Steam\SteamApps\>your username<\team fortress 2\tf\maps

liriZ7c.png

After hitting Add, locate your map (check the directory trees above if you don't know where they are)

yFL7qcM.png


2. Hit "decompile" then locate where you want to save your map. I suggest you use your default hammer bsp folder to keep things tidy, which will be either of these:

Default maps should be stored in the post-steampipe map location. Assuming you installed in the default Windows directory, the directory trees should be either of these:
(Pre-steampipe:) C:\Program Files\Steam\SteamApps\>your login username<\sourcesdk_content\tf\mapsrc\
(Post-steampipe [NEW MAPS AND OFFICIAL ONES SHOULD BE HERE]:) C:\Program Files\Steam\SteamApps\common\Team Fortress 2\content\tf\mapsrc

82ScJrC.png

PZ503Sb.png


3. Your map should be decompiled into the provided location now (provided there's no errors, but I've never had any)

s1lGFEB.png
 
Last edited:

Snowshoe

L2: Junior Member
May 16, 2012
53
125
For the last 6 months, my bspsource.exe/.jar have opened BSPinfo instead of BSPsource. I have tried reinstalling it and all that jazz. All to no avail.

Does anyone know what would cause such a bizarre problem?

Use bspsrc.bat
 

wareya

L420: High Member
Jun 17, 2012
493
191
I recommend disabling areaportals when you decompile because bspsource doesn't handle areaportal merges properly. I also recommend using a version from before they batched func_details because the batching makes editing func_details harder.
 

KaydemonLP

L5: Dapper Member
Nov 17, 2015
204
63
For some reason it doesnt open. Any idea why? I do have java
 

Da Spud Lord

Occasionally I make maps
aa
Mar 23, 2017
1,339
994

Berry

resident homo
aa
Dec 27, 2012
1,056
1,898
I've replaced the download link, I swear that worked 6 years ago hahaha