Skip to content

Creator Tools

References: the authoritative detail is in frontend.md; scripting has its own spec in scripting.md. This page is a curated handbook entry point.

Beyond just running games, RustyNES ships a suite of tools for TAS authors, ROM hackers, cheat writers, and the merely curious. They are all frontend-side and, where they read the emulator, read-only against the deterministic core (the overlay never advances emulator-visible state). Most are surfaced from the Tools and Debug menus.

Debugger

A Mesen2-style debugging overlay (toggle with `) layers chip-inspection panels over the running game: CPU (registers + disassembly), PPU, OAM, APU, Memory (+ a Memory Compare), Mapper, an execution Trace, Watches, Events, and an NSF panel. Chip panels need &mut Nes and a per-frame core poll, so they render only while the overlay is visible. See frontend.md § Chip panels vs tool panels and user-guide/debugger.md.

Cheats & Game Genie

The Cheats tool panel edits Game Genie and raw address/value codes. Codes are keyed on the ROM's identifying CRC32s (the header-excluded key and the full-file No-Intro key), so a code matches whichever dump variant the user has. A curated, header-robust Game Genie code database ships with the app (v2.1.3 "Codex").

ROM Info & ROM Database

  • ROM Database (editable) — view and correct the loaded ROM's per-game DB entry (mirroring / region / mapper / submapper / title), persisted to a user overlay. Mirroring applies live; header overrides apply on next load.
  • ROM Info (read-only, v2.2.0 "Capstone") — a purely observational companion: the loaded ROM's two identity CRC32s (game-DB key + No-Intro full-file key), its SHA-256, its effective DB entry, and its decoded cartridge header (mapper, region, PRG-ROM / CHR-ROM sizes). See frontend.md.

Movies & TAStudio

RustyNES records, plays, and branches input movies (.rnm), and imports foreign formats (.fm2 / .bk2 and legacy .fcm / .fmv / .mc2 / .vmv). The TAStudio piano-roll editor gives a frame-by-frame input timeline with seeking and branching. Determinism (same ROM + seed + input ⇒ byte-identical frames) is what makes movie replay exact — see testing-strategy.md for the determinism contract. The .rnm deserializer is hardened against malformed input (bounded allocations; fuzz-tested, see fuzz/).

What a movie records. Since v2.9.8 (.rnm format 3) a frame records all four controller ports, so a Four Score session replays whole; the .fm2 importer keeps pads 3 and 4 too. Since v3.5.0 (.rnm format 7, T-MOVIE-INPUT-STREAM) a frame also records every other input the core takes from a host: the expansion device on each port (Zapper aim and trigger, Vaus, Power Pad, Family Trainer, SNES mouse, Family BASIC and Subor keyboards, both Hyper Shots), the Famicom microphone, the Vs. coin acceptors and service button, the inserted FDS disk side, and Datach barcode scans (rustynes_core::ExtraInput). So a Zapper, Vs. or FDS run replays byte-identically, and a disk swap or a barcode scan made while recording is recorded rather than refused. Reset and Power Cycle are still not recorded, and are still refused while a movie records or plays.

A frame from an importer, a TAStudio blank frame or an input macro carries no non-controller input (extra is None) and leaves the machine's devices and disk as they are, so it cannot unplug a Zapper or eject a disk. The TAStudio project file (.rnmproj) keeps the whole frame since its version 2 (players 3 and 4 included); a version-1 project still loads, with players 1 and 2 only. A project is refused when its file exceeds 1 GiB (since v3.5.1), and when its input logs and markers, every branch included, would decode to more than 1 GiB of memory (since v3.6.1; checked from the declared counts before any record is decoded).

rustynes verify catches a divergent replay after the fact, because its attestation folds in the input (controller and non-controller) and the video the run produced.

Scripting (Lua)

An embedded Lua engine exposes an emulation API (memory peek/poke, frame hooks, input, drawing) for tool-assisted automation and overlays. See the dedicated Scripting (Lua) page.

RetroAchievements

A built-in RetroAchievements client (login, achievement list, hardcore mode). See RetroAchievements.