Crystal Dragon — Status & Open Work
One codec and the level-grid geometry are solved. Everything visual is blocked
on the SA image codec and the palette, so nothing is published as an asset
yet. Source: docs/crystaldragon/TODO.md.
| Area | Status | Evidence |
|---|---|---|
| File naming | Confirmed. Hex file ids built by BuildFileName (hunk 0 +0x388A); levels at level × 9 + 0xCC |
data-structure.md § File naming |
SF codec |
Decoded and committed. 31/31 files exact size, 0 bytes left over, null controls 31/31 | scripts/cdlib/sf.py, test_sf.py |
| Level region table and grid | Confirmed. 23/23 levels, 83 regions, tile with 0 gap; width ±1 null control fails on every non-last region | scripts/cdlib/level.py, test_level.py |
| Cell semantics | Partial. Type = word0 & 7, 5 = wall, from code; bit 7, high bits and words 1–3 open |
cd-map-grid |
SA / SP / SC image codec |
Open. Plan: emulate Unpack under musashi |
cd-sa-codec |
SQ codec |
Open | cd-sq-codec |
| Palette | Open. No SC file ships |
cd-palette |
| First-person renderer | Hypothesis: slot-table blitter | cd-view-slots |
| Level object lists and tail | Hypothesis | cd-level-objects |
| Audio | Hypothesis | cd-audio |
Overlays 0a, c0, c1 |
Hypothesis | cd-overlays |
Open questions
Section titled “Open questions”cd-sa-codec: Does emulatingUnpack(hunk 0+0x0004) decode theSA/SP/SCcontext-modelled planar codec (+0x86/+0x296) to the frame headers’ exact sizes?cd-sq-codec: What doSQfiles01,06and0bhold once the backward bit-stream and delta modes 1–3 (+0x746) are undone?cd-palette: Where are the dungeon and UI palettes, given that noSCfile ships?cd-map-grid: What do bit 7, the high bits ofword0and words 1–3 mean; is a region’sid/x0,y0an area id or a world offset; and is level15creally a ring of nested rectangles?cd-level-ids: What are the never-shipped idslevel × 9 + 0xCD…+0xD4— save or runtime slots?cd-view-slots: Are the.SCRcompanion tables view-slot → frame/x/y tables, and which.SCRname does eachSAid carry?cd-level-objects: What are the 32-byte records at level0x0B00–0x2B00and the tail at0xB140?cd-audio: Are88–91id + length + PCM sound effects, and is12music?cd-overlays: What do overlays0a,c0andc1do, and what are their embeddedSF/SAblocks?
Corrections published
Section titled “Corrections published”- The “single 64×64 grid, width from
+0x3136” model is retracted; a level is several regions. See Level maps.
Checking in-game
Section titled “Checking in-game”The notes list no in-game checks yet. The plan’s oracles for the maps are
structural (solid borders, paired door cells, stairs linking level N to N+1)
plus the shipped Solution walkthrough; for the view, public screenshots.
Full evidence: repository TODO.