Overview
TheBspSourceConfig class provides comprehensive configuration options for controlling the BSPSource decompilation process. All configuration fields are public and can be modified directly.
Package: info.ata4.bspsrc.decompiler
Source: BspSourceConfig.java:27
Constructors
BspSourceConfig
BspSourceConfig.java:78
The configuration to copy from.
BspSourceConfig.java:83
Public Fields
General Options
The default Source engine application ID to use when auto-detection fails.
The brush decompilation mode (BRUSHPLANES, ORIGFACES, ORIGFACES_PLUS, SPLITFACES).
The output VMF format version (AUTO, NEW, OLD).
Enable debug mode with verbose logging and config dump.
Entity Options
Include areaportal entities in the output.
Include brush-based entities (func_detail, func_door, etc.).
Include env_cubemap entities.
Include func_detail entities.
Include func_occluder entities.
Include info_overlay entities.
Include point entities (lights, spawns, etc.).
Include prop_static entities.
Include func_ladder entities.
Include func_viscluster entities.
Fix entity rotation angles to proper VMF format.
Force manual areaportal mapping instead of automatic detection.
Merge adjacent detail brushes with similar properties.
Distance threshold for detail brush merging.
Maximum number of brush sides to assign to a single cubemap.
Maximum number of brush sides to assign to a single overlay.
Brush Options
Include world brushes (structural geometry).
Include displacement surfaces.
Depth in units for generated backfaces on brush planes.
Texture Options
Custom texture to apply to generated backfaces (empty = use TOOLS/TOOLSNODRAW).
Custom texture to apply to all faces (empty = use original textures).
Fix cubemap texture references to remove runtime-generated suffixes.
Fix tool texture paths (e.g., convert lowercase to uppercase).
Miscellaneous Options
Disable VMF output (useful for benchmarking or testing).
Load external lump files (.lmp) if present.
Skip protection check (allows decompiling protected maps).
Create visgroups in the VMF for organizing entities.
Include camera entities in the output.
Extract embedded files from the pakfile lump.
Skip VBSP-generated files and patched materials when unpacking.
Scale factor for VMF coordinate precision.
Scale factor for texture axis precision.
Scale factor for texture scale precision.
Public Methods
dumpToLog
BspSourceConfig.java:128
The logger to write configuration values to.
BspSourceConfig.java:132
isWriteEntities
BspSourceConfig.java:149
setWriteEntities
Value to set for both writeBrushEntities and writePointEntities.
BspSourceConfig.java:153
Usage Example
See Also
- BspSource - Main decompiler class that uses this configuration
- BspFile - BSP file handling
- BspFileReader - Reading BSP data structures