write advantages and disadvantages: Half-Life Unified SDK Map Decompiler The Half-Life…
- User
write advantages and disadvantages: Half-Life Unified SDK Map Decompiler The Half-Life Unified SDK Map Decompiler is a cross-platform map decompiler for Half-Life 1 BSP version 29 (Half-Life Alpha 0.52) and 30 files.
Unlike bspc and tools derived from it this decompiler does not support other Quake engine derivative BSP files.
Whereas bspc was written in C this tool is written in C# to make its source code more accessible and easier to maintain.
User configuration files for this application are stored in AppData/Roaming/Half-Life Unified SDK on Windows, and home/.config on Unix systems.
Only Half-Life Alpha 0.52 and original Half-Life BSP files are supported. Quake 1/2/3 and Source maps, as well as engine offshoots like Svengine and Paranoia 2 are not supported.
Due to a lack of data in the BSP file the original brushes cannot be restored. This data is stored in a lossy format, so a perfect recreation is not possible. Decompiled maps will never be 100% accurate, will be missing some geometry and will have invalid geometry in some cases.
This tool is part of the Half-Life Unified SDK. See the main Unified SDK repository for more information.
Based on Quake 3’s bspc tool: https://github.com/id-Software/Quake-III-Arena
Includes code from Sledge by Daniel ‘Logic & Trick’ Walder: https://github.com/LogicAndTrick/sledge Includes code from Sledge.Formats by Daniel ‘Logic & Trick’ Walder: https://github.com/LogicAndTrick/sledge-formats
Requirements You will need the .NET 6 or newer Desktop Runtime (the .NET SDK includes the runtime): https://dotnet.microsoft.com/en-us/download
Decompiler strategies 2 decompilers strategies are supported: Tree-based and Face-To-Brush.
Tree-based decompiler This decompiler works by processing the Binary Space Partitioning tree for hull 0 (point hull) for each brush model.
The world itself is model 0 and contains all brushes not tied to a brush entity. Each brush entity adds one brush model to the map.
The process used to generate brushes works by first calculating the bounding box for the model, then adding 8 units extra to it to account for walls on the outermost brush faces in the map.
A brush of that size is then created, and is split in 2 repeatedly by walking the BSP tree.
The resulting set of brushes is an approximate representation of the original map, but is not perfectly accurate.
- Assistant
Advantages:
- Cross-platform compatibility: The Half-Life Unified SDK Map Decompiler can be used on both Windows and Unix-like systems.
- Open-source: Being written in C#, the source code of the decompiler is accessible and easy to maintain.
- Ease of use: The decompiler has user configuration files stored in AppData/Roaming/Half-Life Unified SDK on Windows, and home/.config on Unix systems, making it easier for the user to customize.
- Two decompiler strategies supported: The decompiler has two strategies for decompiling maps, giving the user more options.
- Conversion to map source file representation: The decompiler includes the conversion of each brush to its map source file representation.
Disadvantages:
- Limited support for BSP files: The decompiler only supports Half-Life Alpha 0.52 and original Half-Life BSP files, and not other Quake-engine derivative BSP files.
- No support for other game maps: The decompiler does not support Quake 1/2/3 and Source maps, as well as engine offshoots like Svengine and Paranoia 2.