Skip to content

decomp-assets 0.6.0: textures packed with a demolition game's own codecs - #5

Merged
RetroGameDeveloper merged 1 commit into
mainfrom
feat/blast-textures
Nov 14, 2026
Merged

RetroGameDeveloper merged 1 commit into
mainfrom
feat/blast-textures

Conversation

@RetroGameDeveloper

Copy link
Copy Markdown
Contributor

What

New N64 recogniser n64/blast_textures.py for a demolition game's texture table: 8-byte entries (offset from the table, packed size, codec) whose resources chain one after another. Codecs 1-6 are the game's own back-reference packings (RGBA16, RGBA32, IA8×2, IA16 through a 128-byte table, RGBA32 through a 256-byte table). The colour table used is the nearest one before the texture in the table (the decompilation's extractor leaves this as a TODO).

The table names no dimensions. The width is inferred from the texels: the stride where each texel is closest to the one below it, relative to strides one off, preferring a square size that scores within 1.3×. Assets are confidence='inferred', and the preview accepts another width.

Results (read-only, the user's own ROMs)

  • Both releases: 3,599 textures each.
  • Widths agree with the decompilation's hand-written dimensions for 3,367 of 3,504 (96%).
  • Contact sheet checked by eye.
  • No table found in any of the other 49 N64 ROMs; under 3 s on each.

Tests

tests/test_blast_textures.py (homemade table: codecs 1/3/5/6, back-references, width inference, width override, rejections). 158 pass, ruff clean.

🤖 Generated with Claude Code

An N64 demolition game packs ~3,600 textures with six back-reference codecs of
its own and lists them in a texture table (offset, size, codec), with the colour
tables codecs 4 and 5 read stored before the textures that use them. The table
names no dimensions, so the width is inferred: where each texel is closest to
the one below it, compared with strides one off, preferring a square that scores
nearly as well. Against one release's decompilation 96% of widths agree; the
preview takes another width.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RetroGameDeveloper
RetroGameDeveloper merged commit 6f77498 into main Nov 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant