Metadata-Version: 2.5
Name: madformats
Version: 0.1.1
Summary: Modding and file tools for - Madagascar the game, 2005 -
Project-URL: Repository, https://github.com/MaxStache/madagascar-game-asset-tools
Project-URL: Issues, https://github.com/MaxStache/madagascar-game-asset-tools/issues
Author: Max Stache
License-Expression: Apache-2.0
License-File: LICENSE
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Games/Entertainment
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.12
Requires-Dist: colorama>=0.4.6
Requires-Dist: numpy>=2.5.1
Requires-Dist: pillow>=12.3.0
Requires-Dist: pymemoryeditor>=2.1.0
Description-Content-Type: text/markdown

# madformats

Read, edit and write the file formats of *Madagascar* (2005, PC), a RenderWare game.

Covers `.stream` level files, RenderWare models (`.dff`, `.bsp`), animations (`.anm`), texture dictionaries (`.txd`), audio (`.rws`) and save games.

```bash
pip install madformats
```

```python
from madformats.stream import RW_StreamFile

level = RW_StreamFile.load("Levels/kingofny.stream")
level.assetByName("DG_Coin_Collectable.AI").importFrom("my_script.AI")
level.save("kingofny.stream")
```

Part of the [madagascar-game-asset-tools](https://github.com/MaxStache/madagascar-game-asset-tools) monorepo. See also `madkit` (CLI), `madlysimple` (higher-level modding helpers), `tfbscript` and `tfbpseudo` (AI scripts).
