Skip to content

decomp-assets 0.10.0: sno unpacking and its texture sheets - #9

Merged
RetroGameDeveloper merged 1 commit into
mainfrom
feat/sno-sheets
Nov 14, 2026
Merged

RetroGameDeveloper merged 1 commit into
mainfrom
feat/sno-sheets

Conversation

@RetroGameDeveloper

Copy link
Copy Markdown
Contributor

What

New n64/sno.py:

  • unpack(data, size): sno, a headerless byte-pair LZ.
  • sheet(data, indexed_only=False): texture sheets made of a header, 16-byte entries (offset, palette, width, height, format CI4/CI8) and 32-byte palette slots.

It isn't added to n64.regions: sno has no header, so it is read only where the caller knows the start and unpacked size. For example, decompdecomp reads a fork's splat config, which declares both.

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

The project's declared segments: 27 sprite sheets and 15 course texture tables, 742 textures.

Tests

tests/test_sno.py (literals, runs, bad references, sheets with palettes, rejections). Suite passes, ruff clean.

🤖 Generated with Claude Code

A snowboarding sequel packs its sprite sheets and course texture tables with
sno, which has no header: where a stream starts and how long it unpacks come
from the game's code or a project that wrote them down. `sno.unpack` and
`sno.sheet` read them for a caller that knows both (a decompilation's splat
config, read by decompdecomp); nothing scans a cartridge for them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RetroGameDeveloper
RetroGameDeveloper merged commit aa2f1d1 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