BSPSource: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(updated cite template.)
 
(26 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{otherlang2
{{LanguageBar}}
|ru=BSPSource:ru
[[File:BSPSource.png|thumb|right|300px|Screenshot of BSPSource.]]
}}
{{Stub}}
{{Bspsource|4}} is a GUI map decompiler for {{src|4}} games, written in {{java|4}}.


[[Image:Bspsrc.jpg|thumb|right|300px|User interface.]]
Based on [[VMEX]], it converts [[BSP]] files into [[VMF]] ones that can be loaded in [[Hammer]]. It also includes numerous bug fixes over '''VMEX''' and new features for doing the conversion, such as extracting embedded assets, processing multiple BSPs at once, and more.


[[File:BSPSource icon.png|64px|left]]'''BSPSource''' is a [[VMEX]]-based map decompiler for the [[Source]] engine. It converts [[BSP]] format files back into [[VMF]] format maps that can be loaded into [[Hammer]]. Support has been extended to newer Source games, such as {{game link|Counter-Strike: Global Offensive}}, {{game link|Left 4 Dead 2}}, and {{game link|Portal 2}}. Most of the bugs found in the latest release of VMEX have been fixed, and new features have been added.
{{Bug|Newer version (starting with 1.4.4 or later) may not launch{{cite|1}} on some systems (especially with systems with Windows 11 or localized version of the OS). Users can try to install latest version of Java and download the {{path|bspsrc-jar-only|zip}} version and run the {{file|bspsrc|jar}} file, or alternatively, use older version of BSPSource, or downgrade/upgrade/reinstall Windows.}}
{{note|Due to technical reasons, decompiling maps doesn't accurately recreate their original '''VMF''' state, often presenting issues such as invalid geometry solids, tools textures such as NPC Clip or Player Clip all replaced with either Nodraw or entirely replaced with NPC Clip or Player Clip which cause lighting issues or NPCs to get stuck, or misplaced [[areaportal]] brushes in the decompiled file. {{workaround|Decompiling the file again or more times may generate better results, such as avoiding some of these issues{{why}}.}} }}
{{note|If there is decompilation protection present, the conversion may be more difficult to work with.}}


Some of its features are:
== BSP with File Packing ==
* Extracting embedded content (protected maps may cause errors)
In the tab "Other" set tick in in "Extract embedded files". Then put downloaded files in game directory.
* BSP analysis
* Support for processing multiple files at once
* Convenient BSP file Drag & Drop
* Much more!
{{note|Decompiling maps may not always result in accurate builds. Some properties, such as keyvalues and texture settings, may not match those of the original map. A common example (bug) are misplaced [[Areaportal|areaportals]].}}


== Notes ==
== BSPInfo ==
BSPInfo is a mode of BSPSource that instead of decompiling .bsp files, analyses them. Content such as: bsp version, compression type, checksums, AppID, lumps and compile parameters. It can also extract embedded files similarly to {{Gcfscape|2}}.


If you want decompile a map ( confirmed in Counter-Strike: Global Offensive ) and have error models. It can happen because materials and models are packed inside the BSP map. To solve this issue, go to the tab "other" and ensure "Extract embedded files" is ticked. Then, after completion you should drag the folder that appears in the same path as the new .vmf appears and drag everything to your game folder and then restart hammer.
== See also ==
*{{hlusmd|4}} - GUI map decompiler for {{Gldsrc|4}}


== See also ==  
== External links ==
* [[Decompiling Maps]]
* [https://github.com/ata4/bspsrc/releases BSPSource on GitHub]
* [[Map Obfuscator]]
* [https://www.oracle.com/java/technologies/downloads Latest Java] (optional, for 1.4.4 or later. This is only required if you are using {{path|bspsrc-jar-only|zip}} (which does not have Java bundled in.)
** After installing, try to run the {{path|bspsrc|jar}} executable, or type {{code|javaw -jar "C:\your-bspsrc-folder\bspsrc.jar"}} in Command Prompt (CMD).
* [https://www.java.com/download/ Java 8] (required in order to use BSPSource 1.4.3 or earlier)


== External links ==
{{references|1=
* [https://github.com/ata4/bspsrc/releases/tag/v1.4.0 BSPSource v1.4.0 (January 1, 2020)] Download from GitHub
{{ref2|cite id=1|access-date=June 19, 2025|"[https://github.com/ata4/bspsrc/issues/180 Application not launching caused by "java.lang.IllegalArgumentException: Comparison method violates its general contract!"]". BSPSource. ''GitHub Issues''.}}
}}


[[Category:Third Party Tools]]
[[Category:Third Party Tools]]
[[Category:Level Design]]
[[Category:Level Design]]
{{sdktools|cat=0|0}}

Latest revision as of 01:14, 19 June 2025

English (en)Polski (pl)Русский (ru)Translate (Translate)
Screenshot of BSPSource.

Stub

This article or section is a stub. You can help by expanding it.

BSPSource BSPSource is a GUI map decompiler for Source Source games, written in Java Java.

Based on VMEX, it converts BSP files into VMF ones that can be loaded in Hammer. It also includes numerous bug fixes over VMEX and new features for doing the conversion, such as extracting embedded assets, processing multiple BSPs at once, and more.

Icon-Bug.pngBug:Newer version (starting with 1.4.4 or later) may not launch[1] on some systems (especially with systems with Windows 11 or localized version of the OS). Users can try to install latest version of Java and download the 🖿bspsrc-jar-only.zip version and run the 🖿bspsrc.jar file, or alternatively, use older version of BSPSource, or downgrade/upgrade/reinstall Windows.  [todo tested in ?]
Note.pngNote:Due to technical reasons, decompiling maps doesn't accurately recreate their original VMF state, often presenting issues such as invalid geometry solids, tools textures such as NPC Clip or Player Clip all replaced with either Nodraw or entirely replaced with NPC Clip or Player Clip which cause lighting issues or NPCs to get stuck, or misplaced areaportal brushes in the decompiled file.
PlacementTip.pngWorkaround:Decompiling the file again or more times may generate better results, such as avoiding some of these issues[Why?].
Note.pngNote:If there is decompilation protection present, the conversion may be more difficult to work with.

BSP with File Packing

In the tab "Other" set tick in in "Extract embedded files". Then put downloaded files in game directory.

BSPInfo

BSPInfo is a mode of BSPSource that instead of decompiling .bsp files, analyses them. Content such as: bsp version, compression type, checksums, AppID, lumps and compile parameters. It can also extract embedded files similarly to GCFScape GCFScape.

See also

External links

  • BSPSource on GitHub
  • Latest Java (optional, for 1.4.4 or later. This is only required if you are using 🖿bspsrc-jar-only.zip (which does not have Java bundled in.)
    • After installing, try to run the 🖿bspsrc.jar executable, or type javaw -jar "C:\your-bspsrc-folder\bspsrc.jar" in Command Prompt (CMD).
  • Java 8 (required in order to use BSPSource 1.4.3 or earlier)

References

References