Skip to content

Python library for working with Quake 3 IBSP structures

License

Notifications You must be signed in to change notification settings

Mix-Anik/ibsplib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IBSPLib

ibsplib is Python package for working with Quake 3 IBSP structures
References were taken from http://www.mralligator.com/q3

  • Parsing IBSP
  • No dependencies
  • Typings & code completion included
  • More to come....

Installation

Available on PyPI, just:

pip install ibsplib

Usage

from pathlib import Path
from ibsplib import IBSP


bsp_path = f'{Path(__file__).parent}\\<map name>.bsp'

with open(bsp_path, 'rb') as f:
    bsp_buffer = bytearray(f.read())

bsp = IBSP(bsp_buffer)

print(f'Version: {bsp.header.version}')
print('Textures used:')

for tex in bsp.textures:
    print(f'-\t{tex.name}')

License

MIT

About

Python library for working with Quake 3 IBSP structures

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages