Shadow Hearts: Nocturne

Shadow Hearts Nocturne is a native Windows PC port of the Shadow Hearts quadrilogy with online co-op and a mod engine.

README

πŸŒ™ Shadow Hearts: Nocturne

Stable Release Edition (main)

The Complete Native Windows PC Port of the Koudelka & Shadow Hearts Quadrilogy (PS1 + PS2)

Branch: Main Windows CI Platform Release License: MIT Games

Unified inside a single 1890s Gothic Direct2D Command Hub (Shadow Hearts Nocturne.exe), powered by native C++20 static recompilation (psxrecomp + customized ps2-native-recomp) with a Shared Engine + Per-Game game.dll architecture for 3–5 second updates, battle-tested Online & LAN Co-op, a 4-Layer Lua/C++ Mod Engine, and an interactive Grimoire Lore Library.

⬇ Download Installer (Install Shadow Hearts Nocturne.cmd) Β· πŸŒ™ Nightly Edition (nightly) Β· πŸš€ Quick Start Β· πŸ‘₯ Co-op Guide Β· πŸ“– Full Tutorials Β· πŸ›  FAQ


Tip

What the main Branch Is For main is the Stable Release branch for Shadow Hearts: Nocturne β€” recommended for most players who want the most playtested build and fewer unexpected regressions.

Want the latest features before they hit main (Covenant Director's Cut Upgrader, PAL support & xdelta3 patcher, EN/ES/IT localization, chord hotkeys, Co-op SyncHash self-heal, and Koudelka Durability Mod)? Check out the Nightly Edition (nightly) branch or switch to Channel: Nightly in Launcher β†’ Tools β†’ Updates.


⭐ If this project helps you, please star the repo β€” it helps more people find it.

"Companies move on and let classics fade into shelves and old hardware. This was built by fans who refused to let them disappearβ€”one late night and one stubborn bug at a time. If it brought back even one memory you thought was gone, a dollar goes a long way toward keeping the lights on and the servers running."

β€” NfgOdin

Donate via PayPal

Donations are voluntary gifts that support development time and Co-op relay server hosting. They are not a purchase: they buy no game content, access, builds, or perks. Everything in this repository is and will remain free and open-source.


Important

Legal Notice β€” Bring Your Own Discs (BYOD): This repository and its releases contain ZERO copyrighted game code, Sony BIOS files, disc images, extracted binaries, overlays, textures, audio, or saves. You must supply your own legally dumped NTSC-U disc images (.iso, .chd, .cso, or .bin/.cue). Each game's code is statically recompiled locally on your own PC into games\<slug>\game.dll.


Note

Active Beta Development β€” Expect Bugs! Shadow Hearts: Nocturne is an ongoing, actively developed Beta project. While all 4 games are playable and improving rapidly, you should expect occasional bugs, edge cases, or visual/Co-op quirks as we polish every corner of the Quadrilogy. Use Launcher β†’ Tools β†’ Updates β†’ Quick Update to grab fixes in 3–5 seconds, and please report any issues you hit on GitHub Issues (press F9 in-game to generate a diagnostic log)!


Table of Contents


Supported Collection Titles

#ChroniclePlatform & Required NTSC-U Serial(s)DiscsLocal Game ModuleKey Enhancements
0Koudelka (1898)PS1 SLUS-01051 / 01100 / 01101 / 011024games\koudelka\game.dllNative R3000A + GTE static recomp, D3D11 Hardware GPU (1×–8Γ—) w/ draw-state caching & device-lost recovery, PGXP Subpixel + Persp UV, Visual Remaster Pack (FXAA, Gothic Bloom, Vignette, CAS, 1898 Candlelight, 24-bit Smooth De-Dithering), SPU1 Hardware Reverb + 4-tap ADPCM interpolation, PSXSTAT3 atomic states (<2 ms handoffs), seamless 4-disc auto-swap, debounced atomic memcard.mcr, Exact Frame-Locked Co-op (up to 3P)
IShadow Hearts (1913)PS2 SLUS-203471games\sh1\game.dllFull AOT static recomp, True 16:9 Hor+ (with automatic 1:1 2D field alignment protection), βˆ’16.7 ms Judgment Ring latency pipeline, 75-Trophy live system & Gallery, Area Autosave, Offline .PKB Texture & FMV Extractor (890 PNGs + 19 FMVs), 1-Click VU1 Baker, Co-op (up to 4P)
IIShadow Hearts: Covenant (1915)PS2 SLUS-21041 (Disc 1) / SLUS-21044 (Disc 2)2games\sh2-covenant\game.dllFull AOT static recomp (SLUS_210.41 + OPENING/FIELD/BATTLE MWo3 overlays), seamless Disc 1 ↔ Disc 2 auto-swap with NTFS hardlink deduplication, True 16:9 / 21:9 / 32:9 Hor+ + HUD Anchoring, βˆ’16.7 ms Judgment Ring latency + Live Ring HUD & Strict Ring Mode, 110-Trophy Gallery, Area Autosave, Offline .PKB Extractor (~5,650 PNGs + 40 FMVs), Co-op (up to 4P)
IIIShadow Hearts: From the New World (1929)PS2 SLUS-213261games\sh3-ftnw\game.dllFull AOT static recomp (SLUS_213.26 + .CPX overlays), True Widescreen Hor+ + HUD Anchoring, βˆ’16.7 ms Judgment Ring latency + Live Ring HUD & Strict Ring Mode, Live Trophy Gallery, Area Autosave, Offline .PKB Extractor, 1×–64Γ— scaling + Depth Post-FX, Co-op (up to 4P)

How It Works (Shared Engine + game.dll Fast Updates)

Unlike older static-recompilation builds that baked the entire emulator runtime into every game's .exe, Shadow Hearts: Nocturne cleanly separates the open-source engine from your locally compiled game modules:

flowchart LR
    L["Shadow Hearts Nocturne.exe<br/>(1890s Gothic Direct2D Hub)"]
    PS1["engine/nocturne_psx.exe<br/>(Shared PS1 Runtime + D3D11 + Co-op)"]
    PS2["engine/nocturne_ps2.exe<br/>(Shared PS2 Runtime + wgpu + Co-op)"]
    K["games/koudelka/game.dll<br/>(Built once from your PS1 discs)"]
    S1["games/sh1/game.dll<br/>(Built once from your SH1 disc)"]
    S2["games/sh2-covenant/game.dll<br/>(Built once from your SH2 discs)"]
    S3["games/sh3-ftnw/game.dll<br/>(Built once from your SH3 disc)"]

    L --> PS1
    L --> PS2
    PS1 --> K
    PS2 --> S1
    PS2 --> S2
    PS2 --> S3
  • Compile each game once: Your discs are unpacked into fast SSD folders and statically recompiled into games\<slug>\game.dll one time.
  • 3–5 second Quick Updates: Clicking Quick Update in the Launcher downloads the latest SHA-256-verified shared engine binaries (Shadow Hearts Nocturne.exe, engine\nocturne_ps2.exe, engine\nocturne_psx.exe), syncs bundled mods, and restartsβ€”zero game recompiling.
  • Automatic ABI safety: Every game.dll exports an ABI version + struct layout fingerprint. If a future update ever changes the recompiler ABI, the updater detects it automatically and rebuilds only the affected game.dll (preserving 100% of your saves, settings, mods, and unpacked discs).

Highlights & Feature Showcase

🏰 4-Panel Gothic Command Hub & 1890s Archives Library
  • Quadrilogy Command Hub (Shadow Hearts Nocturne.exe): Full Mouse, Keyboard, and XInput Gamepad navigation across all 4 chronicles (Koudelka 1898, Shadow Hearts 1913, Covenant 1915, From the New World 1929) with era-specific palettes, animated Judgment Ring crests, custom box art (games\<slug>\cover.png), live save/trophy summaries, playtime tracking, Maximize/Restore & edge-drag resize with uniform scaling & persisted window geometry, a 48-bitmap LRU VRAM cache, and automatic unfocused timer pause.
  • 1890s Grimoire Archives & Lore Library: Browse Game Manuals, Strategy Guides, and Collector's Artbooks on leather-bound Grimoire tome shelves with book-open/page-flip animations, silk ribbon bookmarks, procedural page-turn audio, Hide Unshelved toggle, and an embedded PDF & CBZ Reader (WIC-accelerated with Zip-Slip protection).
  • One-Click Built-In Tools: Stable/Nightly Quick Updater (with SHA-256 verification), System Health diagnostics, HD Texture/FMV Pack & Gameplay Mod manager (drag/reorder/toggle with conflict detection & per-mod settings UI), offline .PKB extraction & AI 4Γ— upscaling, save/memcard backups, and screenshot galleries.
πŸ•― Koudelka (PS1) Native Engine & Visual Remaster Pack
  • D3D11 Hardware GPU (1×–8Γ—) + PGXP: Full hardware rasterizer with draw-state caching, automatic D3D11 device-lost recovery, PGXP Subpixel Vertex Precision + Perspective-Correct UVs (eliminates PS1 polygon wobble and texture warping), Sharp-3D filtering, and DXGI ALLOW_TEARING VSync-Off support (prevents 30 Hz TV/laptop throttling).
  • Phase 2 Visual Remaster Pack: Real-time FXAA, Gothic Bloom, Gothic Vignette, AMD CAS Sharpening, 1898 Candlelight, 24-bit Smooth De-Dithering, and 4 curated visual presetsβ€”all hot-toggleable in F1 β†’ Graphics.
  • Authentic SPU1 Hardware Audio: PS1 SPU1 Hardware Reverb (EON + vLOUT/vROUT), 4-tap smooth B-spline/Gaussian ADPCM interpolation, click-free key_on_voice(), exact 44.1 kHz ADSR & SPU IRQ9, continuous XA-ADPCM playback across Co-op checkpoints, and lock-free SoundPipe time-stretching.
  • Instant States & Safe Saves: Atomic PSXSTAT3 save states with zero-copy in-memory restore (< 2 ms handoff load skipping unused CPU VRAM upscaling), debounced atomic memcard.mcr saves, and seamless 4-disc auto-swapping.
🎨 Shadow Hearts I / II / III (PS2) Native Engine & Wave G Post-FX
  • βˆ’16.7 ms Judgment Ring Latency Pipeline: Capped post_present frame queue + zero-lock 250 Hz controller polling (poll_port(0)) for crisp, arcade-tight Judgment Ring timing.
  • High-Resolution Scaling & 16Γ— Overlay Cache: 1×–64Γ— internal resolution (with Adaptive Scale), single-pass GPU tile binning (raster_gpu), and a 4,096-entry g_overlay_cache for smooth frame pacing.
  • True Hor+ Widescreen & Ultrawide: 4:3, 16:9, 16:10, 21:9, 32:9, Auto, and HUD Anchoring (keeps battle/field HUDs sharp on ultrawide monitors), with automatic 1:1 field alignment protection on Shadow Hearts 1's pre-rendered backgrounds.
  • Depth-Aware & Modern Post-Processing (Live in F1 β†’ Graphics): Real-time SSAO, HDR Bloom, SSGI Light Bounce, Filmic Tone Mapping, Gothic Vignette, AMD CAS Sharpening, FSR 1.0 (Quality / Ultra), FXAA, Color Temperature, Animated Film Grain, CRT Aperture Grille / Shadow Mask, Mipmap LOD Bias, and Photo Mode (F4).
  • Unlocked & Monitor-Hz Frame Pacing: 30 / 60 / 120 / 144 / 240 / Match Display / Unlimited with High-FPS Speed Sync (exact 48 kHz real-time audio + automatic 60 Hz FMV lock).
πŸ‘₯ Online & LAN Turn-Authority Co-op Multiplayer

Play through Koudelka (up to 3 players) or Shadow Hearts I / II / III (up to 4 players) together over the internet or LAN!

  • Exact Frame-Locked RNG Sync & 0 ms Local Authority: The active player always has 0 ms local input latency (critical for Judgment Ring timing!), while Koudelka spectators run exact sys.frame_count lockstep (pop_exact + exact 2Γ— catch-up) so every damage roll, crit, miss, and enemy formation matches identically on both screens.
  • Smart Automatic Turn & Scene Sync:
    • Koudelka: Auto-passes control on Battle Turns (Koudelka / Edward / James) and Level-Up Bonus Points, and automatically syncs Battle Start, Battle Win β†’ Field, Cutscenes / FMVs (ov=7), and Field Room / Door Transfers (scene_ptr).
    • Shadow Hearts II & III: Live Judgment Ring Callouts (Perfect!, Strike!, Miss!) and Relay Combo baton passing between players!
  • Battle-Tested Netcode (< 1% Packet Loss, 1–2 ms Handoffs):
    • Background-threaded Delta-LZ0 compression (3.5 MB state β†’ ~200 KB in ~10 ms; zero frame hitch).
    • 48 KB in-flight UDP congestion window + 6 Mbps pacing (eliminates residential router bufferbloat).
    • Automatic Direct UDP hole-punching with seamless fallback to the public Nocturne Relay (137.131.24.235:47191, or host your own via tools/coop_relay/coop_relay.py).
    • Anti-Deadlock Guarantees: Reliable AuthorityAck retries, 2.5s silent-peer auto-nudge watchdog, and Host F6 Γ—2 instant force-reclaim.
    • Isolated Co-op Campaigns & Shared Trophies: Saves live under games\<slug>\coop_saves\<campaign>\ with atomic memory card mirroring (never touches solo saves), plus automatic partner trophy sharing.
    • Toggleable F10 Live Debug Telemetry: Press F10 anytime for real-time FPS, RTT, Direct vs. Relay path, packet loss %, jitter buffer depth, and event history (%TEMP%\nocturne_coop_live.txt, deleted immediately when toggled OFF).
🧩 4-Layer Gameplay Mod Engine & Mod Studio
  • Layer 1 β€” Virtual Disc, Texture & Video Overrides: Replace disc files (files/), HD textures (textures/), or HD FMVs (video/) non-destructively.
  • Layer 2 β€” .pnach RAM & Code Patches: Standard PCSX2-style patch=1,EE,... hex patches.
  • Layer 3 β€” Embedded Lua Script Engine: Lifecycle hooks (on_boot, on_frame, on_battle_win, on_ring_perfect, on_hotkey), 2D Gothic HUD Canvas, budgeted AOB/string RAM scanning, controller pad injection, path-jailed WAV SFX, persistent per-mod saves, and live per-mod configurable settings UI (Launcher + F1 β†’ MODS).
  • Layer 4 β€” Native C++ .dll Plugin SDK: Opt-in (allow_native_plugins = 1) via sdk/nocturne_mod_api.h.
  • Bundled Showcase Mods & Mod Studio: Ships with ready-to-toggle mods (NemetonLantern for Koudelka, ChronicleUnleashed for SH1, CrimsonFlow shared) plus Nocturne Mod Studio.cmd (6-tab visual/Lua/C++ workbench with --mod-dev auto hot-reload, F9 reload, F10 Live Modder Inspector, and 1-click .nocturne-mod export).
🎯 Judgment Ring Dojo, F1 Quick Menu, Save States & Trophies
  • Judgment Ring Dojo & Strict Ring Challenge Mode: Practice Judgment Ring timing right inside the Launcher's Ring Dojo, and toggle Live Ring HUD or Strict Ring Challenge Mode in-game for Covenant and From the New World.
  • F1 Quick Menu (Select+Start / Guide on controller): Live Graphics, Audio (Master, Music/Voices, SFX, UI Chime, Output Device, Audio Time-Stretch), Controls & Co-op, Mods, Save State browser, Photo Mode (F4), and full Trophy Gallery.
  • Area Autosave + 10 Save State Slots (0–9): Compact LZ4-compressed states with live 160Γ—112 thumbnails, area name, party level, playtime, and active disc metadata.
  • Clean Game-Only Screenshots (F12): Lossless PNG captures organized per game in %USERPROFILE%\Pictures\Shadow Hearts Nocturne\<Game>\.

System Requirements

ComponentMinimumRecommended
OSWindows 10 64-bit (1903+)Windows 10 / 11 64-bit
CPU4-core x86-64 (AVX2 helpful for compile)6+ cores (faster initial game.dll build)
RAM8 GB16 GB+
GPUDirectX 11 / 12 / Vulkan capable GPUDedicated GPU (4 GB+ VRAM for 4×–8Γ— + HD Packs)
Storage~6–12 GB per installed game + ~2 GB portable toolchainSSD (enables ~16Γ— faster virtual disc loading)
Software NeededNone! (Portable Clang, CMake, Ninja, Python, SDL2, wgpu, DXC auto-download)β€”

Quick Start (5 Minutes to Play)

  1. Download Install Shadow Hearts Nocturne.cmd (a single ~9 KB scriptβ€”no Git, Python, or Visual Studio needed!).
  2. Double-click Install Shadow Hearts Nocturne.cmd (if Windows SmartScreen appears, click More info β†’ Run anywayβ€”it's plain readable text you can inspect in Notepad).
  3. Follow the 6-Step Guided Setup Walkthrough:
    • Choose which game(s) to install (All 4 or any single game).
    • Pick your install folder (default: C:\ShadowHeartsNocturne).
    • Point the Smart ROM Scanner at the folder containing your NTSC-U disc images (.iso, .chd, .cso, or .bin/.cue).
    • Confirm your CPU compile threads & optional Desktop/Start Menu shortcut.
  4. Wait for the one-time local game.dll build to finish, then double-click **`