torch_export_archive
Extract N64 ROM assets into O2R (ZIP) or OTR (StormLib) archives for modding. Specify format, version, and optional files to package.
Instructions
Extract assets from an N64 ROM into an O2R (ZIP resource archive) or OTR (StormLib archive) file using Torch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Target archive format. o2r is ZIP-based (default). otr requires Torch built with StormLib (BUILD_STORMLIB=ON). | o2r |
| single | No | Extract only a single asset YAML file (resolved relative to the matched game asset path) | |
| srcdir | No | Directory containing config.yml (defaults to cwd or ROM parent directory) | |
| destdir | No | Output directory where the archive and debug files will be written | |
| verbose | No | Enable verbose logging and diagnostic output | |
| version | No | Archive port-version string (e.g. "1.0.0"). Must be 3 uint16 numbers (0-65535 each). | |
| rom_path | Yes | Path to the N64 ROM file | |
| timeout_ms | No | Timeout in milliseconds (default 600000 = 10 minutes) | |
| torch_path | No | Optional custom path to torch binary | |
| additional_files | No | Optional additional files to package into the root of the archive (o2r only) |