(Tutorial) Decompiling maps with BSPsource

Discussion in 'Tutorials & Resources' started by Berry, Jan 24, 2014.

  1. Berry

    aa Berry resident homo

    Messages:
    1,041
    Positive Ratings:
    1,679
    An updated tutorial for decompiling was requested by Open Blade, seeing as that thread is for outdated programs.

    [​IMG] BSPsource can be download here free: https://github.com/ata4/bspsrc/releases/tag/v1.4.0[​IMG]
    [​IMG]If you want official maps, there's a thread of readily available-to-download vmfs for official maps here (can't guarantee updated).[​IMG]


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

    [​IMG]

    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

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

    [​IMG]

    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

    [​IMG]
    [​IMG]

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

    [​IMG]
     
    • Thanks Thanks x 2
    Last edited: May 28, 2020
  2. Ælement

    aa Ælement Comfortably mediocre

    Messages:
    1,483
    Positive Ratings:
    1,591
    For some time, 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?
     
    Last edited: Jun 1, 2014
  3. Snowshoe

    Snowshoe L2: Junior Member

    Messages:
    53
    Positive Ratings:
    63
    Use bspsrc.bat
     
  4. Ælement

    aa Ælement Comfortably mediocre

    Messages:
    1,483
    Positive Ratings:
    1,591
    Oh bother. Turns out the path was set incorrectly. Wierd... You usually get an error message when that happens.

    Oh well, i just reset the java path and now it's working fine again.
     
  5. wareya

    wareya L7: Fancy Member

    Messages:
    493
    Positive Ratings:
    192
    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.
     
  6. KaydemonLP

    KaydemonLP L5: Dapper Member

    Messages:
    204
    Positive Ratings:
    50
    For some reason it doesnt open. Any idea why? I do have java
     
  7. kelpto18505

    kelpto18505 L1: Registered

    Messages:
    3
    Positive Ratings:
    0
    your download link to BSPsource is malware
     
  8. Da Spud Lord

    aa Da Spud Lord Occasionally I make maps

    Messages:
    1,339
    Positive Ratings:
    909
    • Agree Agree x 1
  9. Berry

    aa Berry resident homo

    Messages:
    1,041
    Positive Ratings:
    1,679
    I've replaced the download link, I swear that worked 6 years ago hahaha