Skip to content

Releases

DuckTales Recompiled v1.1.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 21:42

Full Changelog: v1.0.0...v1.1.0

DuckTales Recompiled 1.0.0

Choose a tag to compare

@uesleidev2 uesleidev2 released this 23 Nov 04:30

The first release.

Added

  • The ROM is found by its SHA-256 under any file name: in roms/ for the build and the test
    scripts, and in the first-run screen and --import-rom for players. The configure step refuses a
    ROM with another hash and names both.

  • Every setting in the menu, the enhancements included, has a "(?)" after its label with a tooltip
    saying what it does, shown to the mouse and under keyboard or controller focus (formae-ui 0.3.0).

  • The project lives on GitHub (https://github.com/formae-group/ducktales-recompiled), with releases
    there and a GitHub Actions check of the layout and the Python syntax on every push and pull
    request. The external/formae-ui submodule is fetched from github.com/formae-group/formae-ui.

  • Static recompilation of DuckTales (USA) on the NESRecomp cycle backend: the 6502 program is
    translated to C at build time and runs natively, with the interpreter kept as a fallback for code
    no route has reached.

  • ROM identity check by SHA-256, first-run import by file dialog or drag and drop, and a data folder
    in %APPDATA%\DuckTales Recompiled (DUCKTALES_DATA_DIR overrides it).

  • Dear ImGui menu in the style of Ship of Harkinian, opened with Escape: Settings (General, Graphics,
    Audio, Controls, Gameplay), Enhancements and About tabs with a category sidebar, rebindable
    keyboard and controller input, menu background opacity and controller navigation.

  • Enhancements, all off by default: jump height, no damage, infinite time, infinite lives and extra
    lives at start. Each hooks a single site guarded by a content key.

  • No sprite flicker: every sprite is shown on every frame without the 8-per-line and 64-sprite
    limits, and the HUD is never cut. On by default and presentation only.

  • No slowdown: extra CPU time per frame removes the console's lag frames. On by default.

  • Presentation: Direct3D 11, per-monitor DPI awareness, refresh-aware frame pacing (Auto, VSync,
    steady), nearest, sharp and smooth scaling, 8:7 pixel aspect, overscan crop and a clean HUD split
    line.

  • Application icon in the executable and the window title bar.

  • Release package: CPack writes DuckTalesRecompiled-<version>-win64.zip with the executable,
    SDL2, a player README (ROM import, SHA-256, controls) and every third-party licence, checked by
    tests/package_test.py; releasing steps in CONTRIBUTING.md.

  • Native runtime prototype without the cycle-level host (DUCKTALES_NATIVE).

  • Mods, off by default (docs/mods.md): .dtmod archives and loose folders from the data folder's
    mods folder replace tiles (by CHR content hash and palette), palettes (global or per land),
    music and sound effects (OGG Vorbis or WAV, by request id); earlier mods win per asset, and none of
    it changes the machine. --mods, --mods-dir, --mods-order and --mods-dump on both hosts.

  • Script mods: scripts/main.lua runs in a Lua 5.4 sandbox per mod with dt.on over the game
    events and frame, read-only dt.state, an instruction limit per callback, a 16 MiB memory cap
    and hot reload; an error or a limit stops only that mod's script. dt.toast notices over the
    presented picture, a per-mod dt.store in mods-data/<id>.ini, and dt.set for the declared
    writable fields (lives, hp, money, time), applied at the frame's end.

  • Mod Menu: Settings, Mods with Enable mods, a reorderable mod list (formae-ui 0.2.0), Open mods
    folder, Rescan, a restart note and each mod's error.

  • The player build on the native runtime: ducktales.exe runs the recompiled game on the native
    bus, draws it with the native renderer and keeps the menu, settings, bindings, presentation, No
    sprite flicker, enhancements, fast-forward and full screen of the cycle build; F8/F9 save and load
    the native machine state. Sound comes from the native synth. -DDUCKTALES_PLAYER=native|cycle
    chooses the runtime; the cycle host build is ducktales_cycle.exe. tests/native_player_test.py
    compares its picture with the cycle build's.

  • The native player keeps its pace with an unfocused window on Windows: no power throttling, the
    frame loop in the MMCSS Games class, a 1 ms timer, and an audio queue that stretches a late frame's
    samples instead of running dry.

  • Native synth for the native runtime (src/native/native_audio.c): plays each frame's APU
    register writes without emulating the APU cycle by cycle; ducktales_native --wav-out records
    it, and tests/audio_compare.py compares it with the cycle host's APU per route and per track.

  • Two sound options for the native player, both off by default (Settings, Audio; [Audio] MusicUnderEffects and OverlapEffects): Keep music under sound effects plays the music part
    an effect takes over on an extra channel, and Overlapping sound effects plays an effect the
    driver drops or cuts off on a second effect voice. Both are computed from the sound driver's RAM
    and the ROM's sound data and only mixed in; with both off the sound is unchanged sample for sample.

  • Differential verification against the TriCNES reference machine on 12 routes, including all five
    lands played to their LAND CLEAR screens, at four CPU/PPU alignments, with the oracle's results
    cached between runs.

  • Mesen2 differential harness, sprite, enhancement and window smoke tests.

  • Handwritten C for parts of the game loop and HUD, including death, respawn and the timer.
    The cycle host can check or run these routines; the default still runs the recompiled code.

  • Reverse-engineering references: memory map, functions, Scrooge's movement, game state, levels,
    rendering pipeline and sound driver.

  • Fast verification tier, tests/quick_verify.py: golden per-frame hashes recorded once from a
    verified build, the native runtime or the cycle build at alignment 0, a stop at the first
    differing frame with the fields that differ, route selection by the PRG addresses a change
    touches and starts from recorded save states. The full tests/verify_routes.py moves to nightly
    runs and releases.

  • ducktales_native --save-state F:FILE and --load-state FILE.

Changed

  • One code layout for every C, C++ and Python source: .clang-format (4 spaces, 120 columns,
    braces always, no one-line statements) and Black, applied by tools/format.py (--check to
    verify). The machine and every hash are unchanged.
  • The cycle host's --ram-hash-out numbers frames on from a loaded state (--load-state), as
    --hash-out does.
  • The menu and the first-run screen are drawn by formae-ui
    0.1.0 (external/formae-ui), Formae's menu library extracted from them for the next ports. Their
    look and behaviour are unchanged: the 16 self-test PNGs are pixel-identical.
  • The application icon is now original artwork, a treasure chest.
  • The window build links the static MSVC runtime, so players need no Visual C++ redistributable.
  • The game keeps running behind the open menu on the native player, as in other PC ports; Settings,
    General, Pause game while menu is open ([Game] MenuPausesGame, off by default) stops it, and
    the Reset and Quit questions always pause it.
  • The window build is a Windows program: no console window opens beside the game. Started from a
    terminal, it prints there; pipes and redirections work as before.
  • The README was rewritten as a technical overview with the supported ROM's hashes.
  • The pause menu no longer shows help and hint text.

Removed

  • The Formae name from the application, its files and its data folder.

You need your own DuckTales (USA) ROM, any file name, SHA-256 97d472f7b2c1088448d1644155b2650a546bad887b3cba571e16d7986824c169. Unzip, start ducktales.exe and pick the ROM. Free of charge: NESRecomp is PolyForm Noncommercial (licences in the ZIP).