Skip to content

Releases

HardDaysEngine v0.7.0

Choose a tag to compare

@krj29b krj29b released this 24 Nov 01:04

HardDaysEngine v0.7.0

HardDaysEngine v0.7.0 introduces opt-in External HD Asset Packs and an OpenGL 3.3 GPU HD Compositor across all playable gameplay scenes, a ready-to-paint --hd-template exporter with authentic mog palettes and automatic recolor masks, live Classic ↔ HD (F7) switching, and artist QA tooling in both the Asset Inspector and visual audit harness. Classic Amiga presentation remains the default, and the deterministic 50 Hz simulation and replay hashes are completely unchanged.

What's New

External HD Asset Packs & Validator (ADR-071, docs/ARCHITECTURE.md §14)

  • Added a headless HD pack loader (harddaysengine.assets.HdPack) supporting 2×–8× external PNG packs organized under canonical lowercase keys (pictures/<name>.png, arenas/<name>.png, cels/<name>/frame_NNN.png) with strict pack.toml and per-asset meta.toml schemas.
  • Supports three asset color modes plus automatic 1× Amiga fallback for partial packs:
    • indexed: 8-bit paletted (0..31) HD art resolved through the live 50 Hz Amiga palette.
    • rgba: true-color RGBA HD art with optional per-knight (__blue, __yellow, __green, __red, __black) and per-region (__glen, __forest, __swamp, __wasteland) variant overrides, plus smooth GPU fade and hit/lightning flash tinting.
    • masked: true-color RGBA paired with an 8-bit .mask.png (0..31) for luminance-preserving GPU recoloring so one painted sprite or background adapts seamlessly to all player classes, combat regions, and live overworld water cycling.
  • Supports explicit sprite bleed padding, anchor_offset (mirrored symmetrically when facing left), and animated cycle_frames sequences (such as animated overworld maps).
  • Added harddaysengine --validate-hd-pack <DIR> to validate manifests, dimensions, color modes, mask bounds, and optional real-disk cross-checks (exit 0 on valid packs, 1 with actionable diagnostics).

Ready-to-Paint HD Template Exporter (harddaysengine-extract --hd-template)

  • Added --hd-template to harddaysengine-extract to export a deterministic 1× HD pack scaffold directly from the user's own .adf disks into build/ (with starter pack.toml and #-commented meta.toml reference metadata including original width, height, hot_x, hurt_tight_box, and collide.hit attack points).
  • Uses authentic runtime palettes decoded from mog and program for every cel and arena.
  • Automatically generates 8-bit .mask.png recolor masks for combat knights (kn*.ob slots 6..8, he*.ob slots 6..11), non-combat class-recolored knight cels (ki.cel, dice.cel thrower frames, hen1.c, wi1.c), all .t combat arenas (region palette slots 1..4, 16..28), and the overworld map (pictures/test_8.mask.png water-cycling and highlight indices).

OpenGL 3.3 GPU HD Compositor & Full Gameplay Scene Coverage

  • Added HdCompositor (harddaysengine.render.HdCompositor) with 6 GLSL 330 core shaders, bounded LRU GPU texture caching (256 textures / 256 MiB default), nearest or edge-directed smooth 1× fallback filtering, and retained GPU background stamping (hd_bg_fbo → hd_fight_fbo) preserving exact 2.5D painter's order, screen shake, and permanent corpses/blood without double-blending.
  • Wired HD compositing across all playable gameplay scenes:
    • Real-time combat arenas (all nine creatures, duels, Practice, Valley Guardian, Dragon intercepts) with un-recolored template base_palette separated from steady fade_reference for exact Classic brightness across all 5 knight colors and 4 regions.
    • Overworld map (test_8 masked GPU water cycling or cycle_frames sequences, ordered mi.c sprites, flying map dragon, and node menu).
    • Towns (HighWood.PIV, WaterDeep.PIV, welcome prologues, hardware pointer), shared sheets (ki.cel, po.cel), healer/mystic services, Tavern dice house, Stonehenge ritual, Wizard's tower, Valley of the Gods, knight meetings, Next Day, Game Over, and main menu / knight select.
    • Multi-buffer program intro (TITLE) and ENDING cinematics fall back cleanly to Classic mode.
  • Integrated HD presentation with faithful, scanlines, crt (with scanline beam rows locked to logical source height), surround (off, blur, solid), crop, and aspect modes (smooth and scalefx automatically bypass to faithful when an HD pack is active).

Live Toggling, Configuration & Artist QA Tooling

  • Configure HD packs via --hd-pack <DIR> / --hd-mode off|auto|on, HARDDAYSENGINE_HD_PACK_DIR, or [display] hd_pack_dir / hd_mode in config.toml (CLI > env > config).
  • Press F7 at any time during gameplay or in the inspector to toggle Classic ↔ HD instantaneously without resetting combat stamps or affecting replay recordings (also available as an HD mode row in the F10 live display preview).
  • Extended harddaysengine-inspect / --inspect-assets with --hd-pack, --hd-mode, live F7 toggling, headless HD PNG --screenshot, and scaled collide.hit hurtbox/hitbox wireframes drawn directly over the HD canvas for artist alignment QA.
  • Extended scripts/audit_shots.py with --hd-pack <DIR> and --hitboxes to generate side-by-side Classic | HD comparison contact sheets under build/audit/.
  • Verified full 1,952-tick real-disk campaign replay hash invariance across Classic, 2× HD, and live mid-campaign F7 toggles with zero leaked GPU textures.

Development & CI Improvements (ADR-072)

  • Parallelized scripts/quality_gate.py using concurrent static checks (ThreadPoolExecutor), pytest-xdist (-n auto --dist worksteal), and Python 3.12 sysmon coverage, cutting full local quality-gate runtime by ~5× without weakening any check.

Downloads & Installation

  • Windows Portable (recommended on Windows): Download HardDaysEngine-Windows-x64.zip (or HardDaysEngine-Windows-x86.zip for 32-bit Windows), extract it, copy your three original Moonstone .adf disk images into the disks/ folder, and run HardDaysEngine.exe.
  • Python / PyPI (Python 3.12+, OpenGL 3.3):
    python -m pip install --upgrade harddaysengine==0.7.0

Full Changelog: v0.6.1...v0.7.0

HardDaysEngine includes no game data. You must supply your own three original Amiga .adf disk images of Moonstone: A Hard Days Knight (1991).

HardDaysEngine v0.6.1

Choose a tag to compare

@krj29b krj29b released this 23 Nov 15:48

HardDaysEngine v0.6.1

Maintenance release of HardDaysEngine adding bundled SDL input diagnostics to the portable Windows builds and fixing cross-platform license-audit verification on Linux CI.

What's Changed

Portable Windows SDL Input Diagnostics (input-diagnostics.bat / --input-diagnostics)

  • Added --input-diagnostics dispatch to HardDaysEngine.exe (scripts/windows_launcher.py), reusing the frozen bundle's exact pygame-ce and SDL2.dll with no Python installation or extra DLLs required.
  • Bundled input-diagnostics.bat beside HardDaysEngine.exe in portable Windows releases (x64 and x86):
    • Double-click input-diagnostics.bat to capture live controller/keyboard/mouse events into input-diagnostics.jsonl beside the executable and pause on exit so you can see where the report was written.
    • Run from PowerShell / Command Prompt with any harddaysengine-input-diagnostics flags (for example .\input-diagnostics.bat --no-window --output xbox_usb.jsonl or .\HardDaysEngine.exe --input-diagnostics --help).
  • Added automated wrapper and diagnostics report smoke checks to scripts/build_windows.py and documented Windows portable usage in Start here.txt and docs/INPUT_AND_DIAGNOSTICS.md.

Cross-Platform License Audit Fix (ADR-070)

  • Embedded the full Modified (3-clause) BSD License for libjpeg / libjpeg-turbo directly in THIRD_PARTY_LICENSES.txt rather than relying on pillow's wheel license text, fixing ubuntu-latest CI verification where Linux manylinux pillow wheels ship IJG-only libjpeg.

Simulation & Gameplay Compatibility

  • No gameplay, rendering, save-file, or replay-hash changes compared to v0.6.0.

Downloads & Installation

  • Windows Portable (recommended on Windows): Download HardDaysEngine-Windows-x64.zip (or HardDaysEngine-Windows-x86.zip for 32-bit Windows), extract it, copy your three original Moonstone .adf disk images into the disks/ folder, and run HardDaysEngine.exe.
  • Python / PyPI (Python 3.12+, OpenGL 3.3):
    python -m pip install --upgrade harddaysengine==0.6.1

Full Changelog: v0.6.0...v0.6.1

HardDaysEngine includes no game data. You must supply your own three original Amiga .adf disk images of Moonstone: A Hard Days Knight (1991).