Skip to main content

Python library for analysing .bsp files

Project description

bsp_tool

Python library for analysing .bsp files

bsp_tool provides a Command Line Interface for analysing .bsp files

Installation

To use the latest unstable version, clone with git:

$ git clone git@github.com:snake-biscuits/bsp_tool.git

You can also clone with pip:

$ pip install git+https://github.com/snake-biscuits/bsp_tool.git

Or, use the latest stable release (August 2024 | 0.5.0 | Python 3.8-11):

$ pip install bsp_tool

Fair Use

Please do not use bsp_tool to copy or steal another creator's work
The primary goal of bsp_tool is to extend community mapping tools

Always

  • Ask the creator's permission before touching their work
  • Understand that by default creator's works are under copyright
  • Contact the original creator to get their permission
    • This can get complicated
    • Some creators don't hold the copyright on their works
      • often because of Company / Publisher contracts
  • Credit the original creator; once you have permission to share a derivative work
  • Support the official release

DO NOT use this tool to steal another creator's work
DO use this tool to understand the .bsp format(s) and create more specific tools

Be aware that this gets even more complicated with commercial projects

Usage

To load a .bsp file in python:

>>> import bsp_tool
>>> bsp_tool.load_bsp("map_folder/filename.bsp")
<ValveBsp filename.bsp (VBSP version 20) at 0x00...>

Full documentation: snake-biscuits.github.io/bsp_tool/ [WIP]

Thanks

  • BobTheBob
    • Identified loads of Titanfall lumps (90% of static props & loads of other lumps)
  • Call of Duty Promod Team
    • For distributing safe links to Call of Duty 4 Mod Tools
  • Chris Strahl
    • Preserving extensive documentation, mods & source code for Quake 3 & Ubertools games
  • Ficool2
    • Providing lots of current and detailed info on Source & helping track down some rarer titles
  • F1F7Y
    • Lead developer on MRVN-Radiant NetRadiant-custom fork for Respawn's Source Engine fork
  • GCFScape
    • Super handy .vpk (Valve format) browser; VTFLib / VTFEdit is also from Nem's Tools
  • JJL772
    • Published public documentation for the otherwise closed-source VBSP v25
  • John Romero
    • Supplying .map level source files for Quake
  • Maxime Dupuis
    • Helping me identify multiple lumps in Source Engine .bsps
  • MobyGames
    • Keeping records of the credits on so many games, helping to pin down engine origins
  • pakextract
    • Super useful tool for .pak files
  • PCGamingWiki
    • Archiving old patches to help install old modding tools
  • rexx
    • Donating a lot of time helping organise & gather maps from 2019 Apex Legends
  • REDxEYE
    • Being very open and actively collaborating on SourceIO & Titanfall .bsps
  • Taskinoz
    • Helping me find people that can actively use my research & tools
  • Valve Developer Wiki
    • For starting me on this path however many years ago
  • Warmist
    • Identifying physics model related structs for Titanfall 2
  • All of the Wiki Editors
    • Except for the uncited Id Tech 3 -> Treyarch NGL on CoDWiki [citation needed]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bsp_tool-0.6.0.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bsp_tool-0.6.0-py3-none-any.whl (340.9 kB view details)

Uploaded Python 3

File details

Details for the file bsp_tool-0.6.0.tar.gz.

File metadata

  • Download URL: bsp_tool-0.6.0.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for bsp_tool-0.6.0.tar.gz
Algorithm Hash digest
SHA256 f5808bb56f3a42db9a995c6c704efdc3dbafd94c0724533cced18e6eb39662d5
MD5 63aa9b5e58be11bfbe97990944e7512b
BLAKE2b-256 a07852041612ab355232f594fdabd61f42f701ba58e7cd452c392b643a2823f1

See more details on using hashes here.

File details

Details for the file bsp_tool-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: bsp_tool-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 340.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for bsp_tool-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d598a33e480c49b0b86ab9ce48c2fb97d0ad2be2eb1500c060651e84681abe97
MD5 65c7ee3e1a7d1cebee758b67b913f08d
BLAKE2b-256 ba5405cf54ad1a1f16ca88f77404811ed1e051afd23a6b4a6ed92b137b1a3312

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page