Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.
/ ghostbuster Public archive

Removes phantom BSP from scenario_structure_bsp tags

Notifications You must be signed in to change notification settings

Sigmmma/ghostbuster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ghostbuster

Phantom BSP is a collision artifact which sometimes appears in Halo BSP tags compiled by the HEK's tool.exe. Ghostbuster is a command-line tool which detects and fixes these artifacts in-place by modifying the tag's node structure.

This tool can produce collision holes as a side effect and phantom BSP detection is limited. The project is now archived as there are better solutions to fixing phantom BSP (fixing nearly-coplanar surfaces), so please only use Ghostbuster as a last resort.

Installation

You will need Python 3 to use this tool. Clone this repository, or simply download ghostbuster.py and requirements.txt somewhere convenient. Install dependencies with pip install --user -r requirements.txt.

Usage

Ghostbuster modifies BSP tags in-place unless the -dryrun flag is added, so it is recommended to first backup the tag if it cannot be recompiled easily. From a command line:

python3 ghostbuster.py <path to BSP tag>

Due to rounding errors and the nature of how phantom BSP are detected, the script may report and "fix" a number of false positives. This does not appear to be detrimental to the map.

About

Removes phantom BSP from scenario_structure_bsp tags

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages