Skip to main content

bullyfury

bullyfury is a Python toolkit for reading and rebuilding Bully: Scholarship Edition PC asset formats.

Current scope:

  • IMG v1 archives (.img + .dir)
  • IDB binary tables with lossless roundtrip support
  • IPB binary map chunks with lossless roundtrip support
  • GRIDS.DAT pedestrian/vehicle route networks
  • NFT/NIF parsing with Bully texture extraction to DDS

The package is intentionally modular so each file format can evolve on its own.

Current API

from bullyfury import BullyColFile, GridsDat, IdbFile, ImgArchive, IpbFile, NifFile, NFTFile
from bullyfury import load_bully_collectibles, load_bully_text_keys
  • ImgArchive.read(...) reads .img / .dir pairs and can rebuild archives.
  • IdbFile.read(...) parses IDB headers and keeps binary roundtrip stable.
  • IpbFile.read(...) parses IPB chunk layout and keeps binary roundtrip stable.
  • GridsDat.read(...) parses GRIDS.DAT pedestrian and car navigation graphs and can serialize them back to text.
  • grids_to_dict(...), grids_to_json(...), and write_grids_json(...) export a normalized node/link document with explicit node_id and link_id values for downstream tools.
  • BullyColFile.read(...) enumerates Bully .col submodels, exposes stable object_id, bounds, box collisions, compressed mesh geometry, and preserves the remaining payload losslessly.
  • NifFile.read(...) parses the Gamebryo header, block table, Bully NiSourceTexture / NiPixelData blocks, and extracts supported textures to DDS.
  • NifFile.material_bindings exposes geometry-to-material bindings with base_texture, normal_texture, gloss_texture, specular_color, and glossiness when present in NiTexturingProperty / NiMaterialProperty / NiSpecularProperty.
  • NFTFile.read(...) is the texture-oriented Bully alias/subtype over NifFile.
  • load_bully_collectibles() and load_bully_text_keys() expose bundled Bully text resources copied from fastman92_processor.

Notes

  • IMG v1 stores sizes in sectors, so exact unpadded file size is not always recoverable from existing archives.
  • IDB and IPB parsing currently focuses on stable binary roundtrip and conservative structure discovery.
  • Bully .col entries use COL3 magic but do not match the stock GTA SA header layout exactly; BullyColFile handles the Bully-specific container shape while the copied generic Col parser remains available for classic GTA-era files.
  • The Bully .col parser currently covers:
    • per-submodel object_id
    • local bounds
    • AABB box blocks
    • compressed mesh vertices and triangle faces
    • material IDs mapped to readable names for parsed face and box surfaces
    • LIMK face adjacency when present
    • unparsed tail records as raw bytes for future reverse engineering
  • NFT extraction now supports Bully/Gamebryo NiPixelData textures in RGB8, RGBA8, DXT1, DXT3, and DXT5_ALT form.
  • Palettised NiPixelData (PX_FMT_PAL8) is parsed, but DDS export is still pending for that variant.

GRIDS Export

from bullyfury import GridsDat, grids_to_json

grids = GridsDat.read(r"C:\Program Files (x86)\Steam\steamapps\common\Bully Scholarship Edition\Config\GRIDS.DAT")
json_text = grids_to_json(grids)

The normalized export includes:

  • top-level header counts
  • every section (PEDGRID, CARGRID)
  • every node with explicit node_id
  • every link with explicit link_id
  • node flags, width, speed, density, and attached link_ids
  • link src, dest, dist, lanes, and width

Metadata

Release files for bullyfury 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bullyfury 0.1.2
File Size Uploaded Provenance Actions
bullyfury-0.1.2.tar.gz 121.7 kB Without provenance Details for bullyfury-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bullyfury 0.1.2
File Interpreter ABI Platform Actions
bullyfury-0.1.2-py3-none-any.whl Python 3 none any Details for bullyfury-0.1.2-py3-none-any.whl

Total release size: 249.7 kB

Release files / bullyfury-0.1.2.tar.gz

Download URL bullyfury-0.1.2.tar.gz
Size 121.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f07dbdf5ad607ddad3f6a657335bc081b8e8bc7e336b2fd914f4b7e637959130
BLAKE2b-256 checksum
How to use checksums
8d0b5d91e24d7ebba379e0ca0e481be368d28c61ac5c01bd9b813964eded55b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / bullyfury-0.1.2-py3-none-any.whl

Download URL bullyfury-0.1.2-py3-none-any.whl
Size 128.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b4512bb6e8ae1603cd851be8fd5ea027303115e0496b2d40a73f43f730b0e77
BLAKE2b-256 checksum
How to use checksums
080f008eb9773e4f7957f149757101641c1e5618bad10875103fa53e58319014
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for bullyfury 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page