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
Current development is focused on bringing new maps to Counter-Strike: Online 2 & the Titanfall Engine

Installation

To use the latest version, clone from git:

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

Or to use the latest stable release, install via pip (Python 3.7+):

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/

Supported Games

The :x: emoji indicates tests are failing
The :o: emoji indicates a lack of .bsps to test

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.3.1.tar.gz (71.4 kB view details)

Uploaded Source

Built Distribution

bsp_tool-0.3.1-py3-none-any.whl (97.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bsp_tool-0.3.1.tar.gz
  • Upload date:
  • Size: 71.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for bsp_tool-0.3.1.tar.gz
Algorithm Hash digest
SHA256 552942efdbe774ef812ea1acc7716fa77401635014bbe76ced559f987e63d3dc
MD5 55c26c6731b2343d2d3e28a7194862fa
BLAKE2b-256 bbf2575491900302a72e3cfa1925b271cc5cf91b6c16d430e008e245a0a52f8f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bsp_tool-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 97.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for bsp_tool-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a6640cde9984cecba4e4f33c732e218c870469a1c147e920f65c0d1859be7ad5
MD5 16c1fc3fada1b92523a91e6a5e5264a8
BLAKE2b-256 b3985eb9331962febe45f0a2ba18a506fb6864dfd62354e781c805fef56e4c7b

See more details on using hashes here.

Supported by

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