decode_assets
Decodes Unity .assets members from a PR-1 autopsy catalog into PNG textures, glTF/OBJ meshes, and WAV/OGG audio; game files remain read-only.
Instructions
Universal Asset Decoder. Reads a PR-1 autopsy catalog, cracks open Unity .assets containers, and decodes their members back into The Model (decoded=1, decoded_path set): Texture2D -> PNG (streamed pixels from sibling .resS), Mesh -> glTF .glb + .obj (plain/uncompressed; compressed noted+deferred), and AudioClip -> WAV (PCM) / OGG (bare Vorbis); FSB5-wrapped Vorbis + other codecs are noted+deferred. Read-only on game files; decoded files + DB rows are the only writes. Pass either db_path (the .autopsy.db) or game_path (whose default .autopsy/ DB is used). Optional out_dir overrides where decoded files land; asset_kinds restricts to textures, meshes, or audio.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Optional cap on textures decoded (for quick smoke runs). | |
| db_path | No | Path to the <game>.autopsy.db produced by unpack_game. | |
| out_dir | No | Optional output dir for decoded PNGs. Defaults to <db_dir>/decoded/. | |
| game_path | No | Game install dir; its default .autopsy/<name>.autopsy.db is used if db_path is omitted. | |
| asset_kinds | No | Which asset kinds to decode. 'all' (default) does textures + meshes + audio; restrict with 'textures', 'meshes', or 'audio'. |