FourFury
FourFury is a Python library for reading, inspecting, extracting, and editing Grand Theft Auto IV data files. It provides typed APIs for the game's archives, world placements, collision resources, drawables, textures, navigation graphs, animation dictionaries, and related metadata.
Format support
| Format | Read | Write | Notes |
|---|---|---|---|
| RPF2 | Yes | Yes | Search, extraction, creation, and unencrypted output |
| RPF3 | Yes | No | Audio archives with hash-only member identities |
| RAGE AUD | Yes | No | Extensionless banks and streams, typed codecs, metadata, PCM/IMA decoding, WAV export, and raw Vorbis access |
| IMG3 | Yes | Yes | Search, extraction, creation, and resource padding handling |
| CUT | Yes | Lossless text | Cutscene clocks, scene and asset resolution, flags, models, effects, variations, attachments, and preserved IMG padding |
| carcols.dat | Yes | Lossless source | Vehicle colors, scanner descriptors, and 3/4-channel model combinations |
| handling.dat | Yes | Lossless source | Typed physical handling, flags, and bike, boat, and aircraft subhandling |
| VehicleExtras.dat / vehOff.csv / animgrp.dat | Yes | Lossless source | Boat boarding points, vehicle camera offsets, and vehicle animation groups |
| GXT | Yes | Yes | GTA IV text databases, named and flat layouts, hash lookup, 8/16-bit text, and cache integration |
| IDE | Yes | Yes | Lossless definitions with typed archetypes, complete vehicle rows, MLO topology, and model-bound 2DFX lights |
| IPL | Yes | Yes | Lossless sectioned text with typed GTA IV OCCL boxes |
| gta.dat | Yes | Yes | Lossless level manifests, typed directives, device paths, and multi-path entries |
| images.txt | Yes | Yes | Ordered archive lists with explicit placement-sidecar modes |
| water.dat | Yes | Yes | Lossless water triangles and quads, runtime flags, geometry queries, and neutral mesh export |
| WPL | Yes | Yes | Placements, MLO and IDE-light resolution, explicit LOD hierarchies, world portals, and instance flags |
| GTXD | Yes | Yes | Texture-parent chains and cycle detection |
| NOD | Yes | Yes | Navigation nodes, links, costs, and topology validation |
| WNV | Yes | Limited | Navigation meshes, portals, edges, cover points, and quadtrees |
| WBN | Yes | Limited | Primitive, mesh, curved-wheel, composite, and BVH collision with fixed-size edits |
| WBD | Yes | Limited | Collision dictionaries and fixed-size edits |
| TUNE | Yes | Lossless text | Fragment physics source configuration |
| WAD | Yes | No | Animation dictionaries, tracks, chunks, and decoded channels |
| WBS | Yes | No | Facial blend shapes, sparse vertex deltas, and same-container WDD/WDR bindings |
| WDD | Yes | No | Hash-addressed drawable dictionaries and neutral model projection |
| WDR | Yes | No | Drawables, skeletons, authored joint limits, and neutral model projection |
| WFT | Yes | No | Fragment drawables, articulated group bindings, physics hierarchy, embedded lights, typed collision shapes, neutral projection, and IDE light binding |
| WTD | Yes | No | Texture dictionaries and DDS export |
See DOCUMENTATION.md for examples, field behavior, writer constraints, and current limitations.
Installation
FourFury requires Python 3.11 or newer. Install the latest release from PyPI:
python -m pip install fourfury
For an editable installation:
git clone https://github.com/Hancapo/fourfury.git
cd fourfury
python -m pip install -e .
Quick start
Open an archive and read one of its entries:
from pathlib import Path
from fourfury import RpfArchive
game = Path(r"D:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto IV\GTAIV")
with RpfArchive.from_path(game / "pc/data/game.rpf") as archive:
entry = archive.find_entry("data/taskparams.txt")
if entry is not None:
print(entry.read().decode("utf-8"))
Index an entire installation when assets may live in different archives:
from fourfury import GameFileCache, GameFileType
with GameFileCache(game) as cache:
cache.scan()
asset = cache.require_asset("bm_nylamp1", kind=GameFileType.WFT)
fragment = cache.load(asset)
Episode installations can be scanned as effective base-game overlays:
from fourfury import GameEpisode
with GameFileCache.for_episode(game, GameEpisode.THE_LOST_AND_DAMNED) as cache:
cache.scan()
city = cache.map_structure
print(city.summary())
print(city.delta.changed_paths)
Documentation
The complete documentation covers every supported format, resource APIs, neutral WDR models, editing constraints, and known limitations.
Release notes live in CHANGELOG.md.
Metadata
Release files for fourfury 0.13.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fourfury-0.13.3.tar.gz | 409.5 kB | Without provenance | Details for fourfury-0.13.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fourfury-0.13.3-cp311-abi3-win_amd64.whl | CPython 3.11 | abi3 | Windows x86-64 | Details for fourfury-0.13.3-cp311-abi3-win_amd64.whl |
Total release size: 783.6 kB
Release files / fourfury-0.13.3.tar.gz
| Download URL | fourfury-0.13.3.tar.gz |
|---|---|
| Size | 409.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35168029f60be1647353970a8423ff82705f7a7132a2f97243842684e68f0f4a
|
|
BLAKE2b-256 checksum How to use checksums |
1818ef24147915a99d7dcb86bf5e65ffbe4a50ad94f8a6ead850f4a68a480fb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / fourfury-0.13.3-cp311-abi3-win_amd64.whl
| Download URL | fourfury-0.13.3-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 374.1 kB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
755ce46e0cc466246791f6a8fe2781de0d7e2e5863fd30dd616873ef419b1a88
|
|
BLAKE2b-256 checksum How to use checksums |
43ad619b1f1cd5ac0ebc5d948124cff7e87dbcb42eb08f36b206362fc9b3b793
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Security for fourfury 0.13.3
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.