feat(bindings): decode graphics.dat sounds, music, text, fonts and palettes #435
No reviewers
Labels
No labels
area/ci-release
area/cli
area/docs
area/dungeon
area/ftl
area/graphics
area/gui
area/music
area/saves
area/tooling
port/amiga
port/dos
port/fm-towns
port/mac
port/pc98
port/sega-cd
priority/high
priority/low
priority/medium
type/bug
type/chore
type/docs
type/feature
type/research
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jqueuniet/dm2-tools!435
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/430-graphics-decoders"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #430.
By full class tuple, in wasm, FFI and Python:
graphicsSoundWav: WAV, framed SFX or console raw PCM.graphicsMusicMidi: DOS HMP to Standard MIDI File.graphicsFontPng(…, spacing): glyph sheet.graphicsTextJson(…, language):{language, text, glyph_text}. The language picks amongcls5variants; untranslated records match any.graphicsPaletteJson:[index, r, g, b]entries, or Palette16 master indices.Decoders live in
dm2_convert::graphicsover a parsedArchive.dm2 extractwrites sounds, music and fonts through them; output byte-identical on DOS EN, Mac US, Sega CD US.Differences from
dm2 extract: palettes are JSON instead of.gpl/.indices(same values, tested); text spells runes as names instead of raw font glyphs. The CLI's own outputs are unchanged.https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7