Repository navigation
decomp-assets 0.10.0: sno unpacking and its texture sheets - #9
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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