Skip to content

Sync dungeon486 spec v1 revision: full file-type coverage, go-to-file

Mike Boyer requested to merge dungeon486-spec-v1-sync into main

Syncs dungeon486-level-format.md against the upstream spec's substantial v1 revision and brings lint_dungeon486.py in line with it end to end:

  • .lvl: digit wall glyphs replace '#', repeatable wall_texture DIGIT PATH slots, six new prop glyphs, ASSET grammar now a campaign-relative path instead of a bare identifier.
  • .dungeoncfg: full directive validation (was lexical-only before) -- six required directives plus repeatable key/weapon_slot/door_style.
  • Two new file types registered and fully validated: .dungeonweapon (12 directives + melee/hitscan/projectile class rules) and .dungeonanim (ticks_per_frame + 2-8 frame directives). .ppm (palette.ppm) registered as a recognized language for the first time.
  • Campaign-relative asset paths (instrument/weapon/animation/frame references) resolved from the campaign root via a new _find_campaign_root() walk, matching the spec's final wording after two earlier interpretations were superseded by later spec updates.
  • Per-directive hover documentation for every directive-shaped format, plus Ctrl+Click go-to-file: hover_at() now resolves a directive's asset-path value to a real file and the frontend's onclick() handler gained the position-based fallback needed to actually jump there.

Also fixes a real bug found along the way: a new EXT_MAP language needs a matching plugins.json entry, or pyide_web.py's loader silently misattributes the extension to a different language.

All eight test files pass; NOTES/dungeon486-plugin.md has the full session-by-session design rationale.

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com

Merge request reports