reCart — User Guide (v0.1.4 Beta)
Welcome to reCart, the clean-room .NET 8.0 ahead-of-time (AOT) static recompilation engine powering Cart (platformId: "nes") game modules under reEngine.
Beta (Pre-1.0):
reCart v0.1.4ships the cycle-paced AOT-primary6502 -> C#compiler and runtime (RP2A03CPU,RP2C02NTSC PPU, 5-channel APU, Mappers0–3), 2-member clean-roomaot-recipe.json(recipe.JumpTablesinline table lifting) &.nes/.prg/.zip/.7zsupport,--lockstep-oracle --lockstep-steps <n>differential verification, 5-backendreEngine.Host v0.6.2SDL3 player with immediate window launch + async"Preparing Native Module..."AOT progress overlay, interactive Clean-Room Media Gate (CLEAN-ROOM MEDIA GATE - reCart v0.1.4), automaticF1Video/Audio persistence + live0/8/16 pxOverscan Crop refresh, jitter-freeF3HUD, silent-idle--demo-cartclean-room cartridge, expanded CLI superset,< 2 MBdetaching launcher (reCart.exe), and 4-pillar Setup installer (reCart-Setup-v0.1.4-win-x64.exe,Foundation v0.5.5). Planned backend milestones (v0.2.0–v0.7.0) add Shared IR/RyuJIT (--jit-bringup), Blip-buffer audio &PAL/Dendy,ParallelCpuscanline PPU + GPU compositor, full mappers/peripherals, clean-room.fdsHLE & packs, and standalone raw-media boot (v1.0.0Gold).
1. What reCart Is & How It Runs Games
reCart is an ahead-of-time (AOT) static recompilation engine — not a generic compatibility emulator. When you launch a clean-room .recomp module with your own SHA-256 verified ROM (or run the built-in clean-room --demo-cart), reCart compiles native C# game code once locally on your PC inside <dataDir>\cache\ and executes hardware-timed RP2A03 / RP2C02 (NTSC 60.0988 Hz) across Mappers 0/1/2/3 (NROM, MMC1, UNROM, CNROM). If an unlifted code address is encountered under the default staticAotOnly mode, execution fails closed instead of silently falling back to an interpreter.
- 5 Aspect Ratio Modes (
Native PARDefault — Never Stretched):reCartrenders throughreEngine.Hostacrossopengl,vulkan,directx(dx12),parallelCpu, andsoftwaredefaulting tonativePar(pillarboxed NTSC8:7pixel aspect ratio), and never stretches4:3visuals across16:9displays during window resizing. Select--aspect-mode(nativePar,fourByThree,squareInteger,nativeFit,horPlus16By9) or cycle live in theF1drawer (Overscan Cropsupported via--overscan t,b,l,r).
2. Install Topology & Zero-Daemon Guarantee
- Side-by-Side Suite Root:
reCart-Setup-v0.1.4-win-x64.exeinstalls cleanly under%LOCALAPPDATA%\Programs\StreamItAll\reEngine\engines\reCart\v0.1.4\(with bundledapp\tools\{7z.exe, 7z.dll, LICENSE-7ZIP.txt}or extracted standalone fromreCart-v0.1.4-win-x64-Portable.zip), using"suiteId": "reEngine"and root-collision protection (IsReEngineDirectory) so existingreEngineinstallations are never overwritten. (DualOnline+OfflineSetup EXEs arrive inv0.5.0alongsidereEngine v0.8.0.) - Zero Background Footprint (
allowAutoStart: false): Ships with zero Windows Startup entries, zero scheduled tasks, and0 MBresident background memory when closed (--autostartflags are ignored). - Non-Destructive Upgrades & Isolated Storage: Re-installs and upgrades preserve your local
data\rom\media dumps,<dataDir>\cache\AOT assemblies,<dataDir>\config\settings.json,<dataDir>\config\settings.controls.json, and<dataDir>\saves\files.
3. First-Run Clean-Room Demo & BYO Media Flow
- Try the Built-In Clean-Room Cart (
--demo-cart): RunreCart.exe --demo-cart --backend opengl --aspect-mode nativePar(or launchdemo_ironframe_cart.bat).reCartsynthesizes clean-roomIronFrame OuterFortress (Cart) 01(ironframe-outerfortress-cart-01.recomp), compiles its.Generated.dlllocally under<dataDir>\cache\, and boots into a live interactivereEngine.Hostwindow withWASAPIaudio. - Launch Your Own
.recompModule & BYO Media (.nes,.prg,.zip,.7z): Place your legally dumped.nes/.prgcartridge file (or.zip/.7zarchive, extracted fail-closed via bundledapp\tools\7z.*with zero leftover temp folders) inside your game module's local<DataDir>\rom\directory, then launch viareEngine(reEngine.exe --open <Game.recomp> --wait, resolvingreCart,reCartOne, and legacyreNesaliases) or directly viareCart.exe --open <Game.recomp> --rom <path-to-rom>. Verified external files chosen interactively are staged cleanly into<DataDir>\rom\automatically. - Interactive Clean-Room Media Gate (
--preload-media, Missing Media, or Standalone Raw ROM): Whenever a session starts without verified ROM bytes and without--demo-cart— or when opening an unmatched standalone.nes/.prgwithout a.recompmodule —reCart.Playerkeeps<DataDir>\rom\discovery intact, displays a silent Deep Slate idle backdrop (zero unrequested demo grid or test tone), and opensFirstRunMediaGateViewwhere you can clickSelect Media..., clickSelect .recomp Module..., Drag & Drop your verified.nes/.prg/.zip/.7z/.recompfile onto the window (invalid archives retain a clear warning banner instead of crashing), or selectLaunch Demo / Test Cartto compile and run cleanly on the fly. - Instant Window & Async Background Cold AOT Compilation: On first launch,
HostSessionRunneropens the window immediately whileColdAotCacheCompilerbuilds<moduleId>.Generated.dllasynchronously into<dataDir>\cache\<moduleId>\<key>\with live progress shown onHostAotCompileOverlayView("Preparing Native Module..."); unlifted runtime traps inside interactive sessions route back safely rather than hard-crashing silently. - Read-Only Media, Saves & Persisted
F1Settings: Your originaldata\rom\.nes/.7zfiles stay strictly read-only; quick saves (*.slot0.savstate),F1Video/Audio settings (settings.json,settings.video.json,settings.audio.json), and runtime logs persist inside<dataDir>\saves\,<dataDir>\config\, and<LogDir>\. - Pack & Mod Authoring Docs (
v0.6.0): Creator workflows forassets.catalog.json, the Asset Dumper Wizard,.re*packs, and deterministichd_recipe.json/subtitle_recipe.jsonauthoring will ship underDev\docs\USER_GUIDE.Modding.mdinv0.6.0.
4. CLI Options, Controls & F1 / F3 Overlays (reEngine.Host)
4.1 Common CLI Switches
--demo-cart: Build/run the built-in clean-room IronFrame synthetic cart (ironframe-outerfortress-cart-01, silent when idle, playing a soft chime on input).--open <path>/--module <path>/--rom <path>/--disc <path>/--preload-media <path>: Load a.recomppackage or local BYO.nes/.prg/.zip/.7zcartridge.--backend <opengl|vulkan|directx|dx12|parallelCpu|software>&--require-backend [<id>]: Choose presentation backend (ExitCode = 6if required backend is unavailable).--aspect-mode <nativePar|fourByThree|squareInteger|nativeFit|horPlus16By9>,--scale <1|2|4|8>,--overscan <t,b,l,r>,--fps-mode <original|enhanced>,--target-fps <n>,--vsync/--no-vsync,--fast-forward,--fullscreen,--window,--tray-only: Configure aspect ratio (defaultnativePar), integer scale (2default), edge crop, frame pacing, and window mode.--region <auto|ntsc|pal|dendy>,--execution-tier <staticAotOnly|jitBringup|aotWithJitFallback|aotWithThreadedIr|interpreterOracle>,--force-zero-rwx,--lockstep-oracle,--lockstep-steps <n>: Select timing profile (autodefault), force zero-RWX execution, or run N-step differential AOT vsInterpreterOracleverification (staticAotOnlydefault).--open-settings,--show-fps,--enable-logs,--profile <name>,--data-dir <dir>,--config <path>,--log-dir <dir>,--save-dir <dir>,--audio-driver <drv>,--frames <n>,--dump-screenshot <png>,--dump-audio <wav>,--wait,--verify,--doctor,--version,--help: Startup overlays, diagnostics, storage overrides, captures, and synchronous launcher waits (Releasebuilds fail closed withExitCode = 2on--automation-port).
4.2 Interactive Hotkeys & 5-Tab F1 Drawer (v0.1.4)
F1: Open / Close the 5-tabSettingsdrawer (Video,Ctrl,Keys,Sys,Media) featuring liveOverscan Crop(0 -> 8 -> 16 -> 0+ right-click reset),Aspect,Mapper,Region,Execution Tier,D-Pad / Stick,Four Score (4P), andTurbo Pulserows alongside hostFast-ForwardandCutscene Skipbuttons, plus 3-tier control switching (Global 1:1,Game 1:1,Modern PCpersisted insettings.controls.json) and 4-port SDL3 gamepad + 3-slot KB/M capture (with MenuD-Pad+Left Sticknavigation isolation).F3: Toggle the jitter-free fixed-width live telemetry HUD (FPS, frame time, backend, scale, aspect mode, fast-forward state, connected pad count, execution tier, audio buffer fill).F5/F9: Quick Save (*.slot0.savstate, flushing GPU readback sync prior to capture) and Quick Load.F6/Grave&F7: Fast-Forward toggle/hold (2x) and Cutscene Skip trigger (note: inv0.6.0/reEngine v0.9.0,F6transitions cleanly to Hot-Reload.re*Packs, leavingGrave/Tabfor Fast-Forward).F11/Alt+Enter&ESC: Toggle borderless Fullscreen, cancel active keybind capture, close open drawers, or exit cleanly.
5. License & Legal
- License: Mozilla Public License Version 2.0 (see
LICENSEincluded alongsideapp\LICENSEand the repository root). - Third-Party Runtimes:
ppy.SDL3-CS(MIT),SDL3(zlib), and build-time7-Zip(GNU LGPL v2.1+with unRAR restriction /BSD-3-Clause; seeTHIRDPARTY_LICENSES.txt). - Clean-Room & Non-Affiliation:
reCartcontains zero copyrighted retail ROMs,.fdsdisk images, vendor FDS BIOS ROMs, CHR/PRG dumps, or manufacturer assets; end users supply legally owned dumps locally underdata\rom\. Nintendo, NES, Nintendo Entertainment System, Famicom, Famicom Disk System, Zapper, and Four Score are trademarks of their respective owners;reCartis an independent clean-room project with zero affiliation or endorsement.