DigimonWorldsReCompiled

Digimon Worlds ReCompiled is a native PC port of Digimon World, Digimon World 2, and Digimon World 3 for Windows, Linux, and macOS with mod support.

README

Digimon Worlds Re:Compiled

Digimon World, Digimon World 2 and Digimon World 3 / 2003, running natively on Windows, Linux and macOS — exactly as they ran on the original PlayStation — from one launcher, with mod support.

Re:Compiled translates the games' own MIPS code (read from your discs) into native machine code and runs it against a cycle-timed model of the PlayStation hardware written in Rust. Nothing from the games is included in this repository or in its releases: you supply your own disc images, Re:Compiled verifies them, and everything else is generated on your machine. A BIOS dump from your console is optional; without one, the built-in open-source OpenBIOS starts the games.

GamesDigimon World (USA, Europe, Japan), Digimon World 2 (USA, Japan), Digimon World 3 (USA, Japan) / 2003 (Europe)
PlatformsWindows 10/11, Linux (X11/Wayland), macOS 11+ (Intel and Apple Silicon)
LanguageRust (plus Lua 5.4 for mod scripts; the optional built-in BIOS is OpenBIOS, MIT-licensed C)
You provideYour disc images (the .bin; a .cue is optional). A BIOS dump is optional

Playing

  1. Get the program. Download a release zip for your OS from Releases, or build it yourself (see Building). On Windows you can also double-click Play-Windows.bat in a source checkout: it builds whatever changed (if Rust is installed) and starts the program.

  2. Point it at your discs. On first launch, click Scan a folder for discs… and pick the folder holding your .bin images (.cue files are used if present but not needed). Each disc is identified and checked against known-good dumps (SHA-1). BIOS files in the folder are picked up too. You can also import discs individually, add a BIOS in Settings → BIOS, or drop either on the window.

    If you have more than one disc for a game (another region, or another copy), all of them are kept: click the release name under the game's title (for example Digimon World (USA) · SLUS-01032) to unroll the list and pick the one that plays.

  3. Press Play.

Your discs are never copied or modified. Saves (memory cards), settings, screenshots and generated data live in your user data folder:

OSLocation
Windows%APPDATA%\DigimonWorldsReCompiled\data
Linux~/.local/share/digimonworldsrecompiled
macOS~/Library/Application Support/DigimonWorldsReCompiled

Portable mode: put an empty file named portable.txt next to the program and everything is kept in a data folder beside it instead.

Video: Settings → Video offers sharp original pixels, smoothed scaling, or a CRT filter that draws the picture like a CRT television (scanlines whose beams widen on bright colours, a phosphor mask sized to your screen, a soft glow through the glass and screen curvature, each adjustable; 480-line menus and movies keep their full detail), plus 4:3, integer-scaled or stretched output. Widescreen (16:9, 16:10 or 21:9) shows more of the picture at the sides, with nothing stretched: the parts of the scenes that a PlayStation cuts off at the edge of its 4:3 screen (battles, fields, dungeons). Where a game drew nothing past the edge (menus, movies), the sides stay black; Digimon World 1's fields stop scrolling where the end of the map meets the edge of the wider picture. Widescreen UI also moves the menus, panels and HUD that sit against the left or right edge out to the edges of the wider picture (in Digimon World 2003, the battle menu and the enemy's health to the left, your partner's health and camera to the right). Digimon World 2003 (Europe) plays at 60 Hz by default: the European release has a 60 Hz mode of its own, and Re:Compiled switches it on, so it plays at the speed of the USA release with the same music tempo. Untick Digimon World 2003 at 60 Hz there for the original 50 Hz, which plays about 17% slower.

Updates: when a new version is released, an Update button appears at the bottom of the Games page. It shows what's new, downloads the new version and replaces the program where it is; your games, saves, settings and mods are kept, and a restart finishes it. Settings → About can turn the check off. (A copy built from source updates by pulling and rebuilding instead.)

Community: Discord · Ko-fi (also on the Games page).

Controls
PlayStationKeyboard (default)Gamepad (default)
D-padArrow keysD-pad / left stick
✕ / ○ / □ / △X / C / Z / SSouth / East / West / North (A / B / X / Y on an Xbox pad)
Start / SelectEnter / BackspaceStart / Back
L1 / L2 / R1 / R2A / Q / D / EBumpers / triggers

Keys and gamepad buttons can be rebound in Settings → Controls: click a binding, then press a key, or a button on the gamepad (a stick direction works too). Esc cancels; Delete clears a gamepad binding. Giving a gamepad button to a second PlayStation button swaps the two, so one press never means two buttons. Left stick moves like the D-pad (on by default) keeps the stick working whatever the D-pad is bound to. The first gamepad connected plays.

Mouse: in Digimon World 1 and Digimon World 2003 you can also play by clicking the picture (Settings → Controls → Mouse, on by default). The keyboard and gamepad keep working alongside it. Each click becomes the button presses you would make on the pad, so the game plays exactly as it does with a pad.

Left clickRight click
Field, dialogue✕ (○ on Japanese discs): talk, examine, next lineDigimon World 1: the menu (△). Digimon World 2003: the field menu (Start)
Menusthe option, tab or item clicked: the cursor moves there and it is pickedback / close (△; ✕ on Japanese discs)
Digimon World 1 battle (also tournaments and Vs battles)the command icon clicked; the FINISH!! sign once the finisher is ready. While a finisher charges, every click (either button) counts as an L1/R1 pressthe item menu
Digimon World 1 trainingends it early (as △)
Digimon World 2003 battlethe command, technique or item clickedback
Digimon World 2003 card battlethe folder or card clicked: the highlight moves there and it is picked. In a deck laid out to pick from, the first click highlights the card and a second click on it takes itback; No on a question
Yes/no questionsthe answer clickedNo (Digimon World 2003)
Digimon World 2003's save and load screensthe first click picks a save, a second click on it takes itback
Title screens, moviesStart (and on Digimon World 2003's title, New Game or Continue as clicked)
Digimon World 2003's language screen (European disc)the language clicked

Menus that work this way: Digimon World 1's Triangle menu, the Digimon and Player menus' tabs, the Tech tab's grid, the evolution chart, medals and cards on the Player menu, the inventory and its boxes, dialogue choices, shops, the title and memory card menus, Vs mode's mode and arena choices; Digimon World 2003's field menu and its screens (items, techniques, status and equipment, the party's panels), shops, the Digimon Lab, choices, and the battle and card battle menus. Digimon World 2 has no mouse support yet. With Widescreen UI, clicks on menus moved out to the edges reach them.

With the Save States mod (in the built-in index), 1 to 5 save the game to five slots and Shift + 1 to 5 load them. F11 switches fullscreen on and off anywhere in the launcher. While playing: Esc pause menu · F10 mods · F12 screenshot · hold Tab to fast-forward.

Memory cards are standard 128 KiB raw images (card1.mcd, card2.mcd in saves/<game>/), interchangeable with other emulators.

Supported dumps

These images are verified end-to-end (full-image SHA-1):

GameSerialFileSHA-1
Digimon World (USA)SLUS-01032Digimon World (USA).bin5611645da66183e30d11fb6c11a2784ff47e1fdb
Digimon World (Europe)SLES-02914Digimon World (Europe).bin9c2922445280309f3d9c62bb70b57d6ad6da015a
Digimon World (Japan) (Rev 1)SLPS-01797DigimonWorld (Japan) (Rev 1).bin1d10389deee8c9849136623785c256071f2f9473
Digimon World 2 (USA)SLUS-01193Digimon World 2 (USA).bind9cb009bc0006e901d8ab1365f764ab71da02115
Digimon World 2 (Japan)SLPS-02844DigimonWorld 2 (Japan).bind50dd1a95228deb4d928ed88b3f1386af1c0e64b
Digimon World 2003 (Europe)SLES-03936Digimon World 2003 (Europe) (En,Fr,De,Es,It).bin457cb233349ba841e03b33d8060f8fbcadd45cb3
Digimon World 3 (USA)SLUS-01436Digimon World 3 (USA).binf0b022f9be53cbce14640abd8f01beaadcb35208
Digimon World 3: Aratanaru Bouken no Tobira (Japan)SLPS-03446DigimonWorld 3 - Aratanaru Bouken no Tobira (Japan).bin8594fb44f601da64087a8996ffd89ab26abb11ea

Other dumps of these releases (such as Digimon World (Japan)'s first pressing, before Rev 1) are accepted with an "unverified" note. A .cue file is optional, and a wrong one never stops a disc: a .cue whose .bin was renamed opens the .bin named like the .cue; a .cue that leads to no image at all is ignored; and a .bin whose .cue names another file, or can't be read, runs on its own.

BIOS (optional)

Without a BIOS dump, games start with the built-in OpenBIOS (open source, MIT, by the PCSX-Redux authors). All three games boot, play and save with it, and a memory card it writes is byte-for-byte the same as one written through Sony's BIOS, so saves move freely between the two. The games' own code runs identically either way; adding a BIOS dumped from your console also makes the BIOS's own routines (boot sequence, kernel calls) exact, and enables fast boot. BIOS images verified: SCPH-5501 (USA, v3.0), SCPH-5502/5552 (Europe, v3.0) and SCPH-5500 (Japan, v3.0); other genuine BIOS dumps are accepted for their region. Each game uses the BIOS of its disc's region. Settings → BIOS lists the BIOS files you have added (add or remove them there) and chooses between yours and the built-in one.

Mods

The built-in mod index, with the mods made for the project, lives in its own repository: Jack-The-Gamer/DigimonWorldsReCompiled-mod-index.

The launcher has a Mods page next to Games and Settings:

  • Installed — every mod in one shared load order (drag to reorder), switched on per game (DW1 / DW2 / DW3), with options, update checks, a version picker (update or roll back), delete and a safe mode.
  • Find mods — browse mod indexes hosted on GitHub and install with one click. The Re:Compiled index is built in; add others with Indexes… (owner/repo or a link).
  • Import .zip… — install a mod you downloaded, or just drop the .zip on the window.

Mods can replace files on the (virtual) disc, patch memory, and run Lua scripts with hooks on any code address, every frame and on controller input, with their own options and save data. While a game loads, a script can also read and change the virtual disc, and read your discs of the other Digimon World games when its manifest names them, so a mod can build content from a game you own without shipping any of it. Scripts run in a sandbox with no file, network or OS access. Authors publish versions as GitHub Releases; the launcher checks for mod updates when it starts and puts an Update button on each mod that has one. F10 in game switches the running game's mods on and off.

Re:Compiled ships only a documented template; mods themselves come from mod indexes. The built-in one has, for example Turbo (hold R2, then any one or two buttons to turbo them) and Fast-Forward (L2 + R2 for double or triple speed, with the music left at normal speed). Mod authors publish their mods through a mod index of their own, which players add with Indexes…. See docs/modding.md for using, writing and publishing mods.

How it works

 your disc ──► dwrc-disc ──► identification, ISO9660, virtual disc (mod overlays)
                                   │
 your BIOS ─────────────────┐      ▼
                            ▼  dwrc-psx: the PlayStation
                     ┌──────────────────────────────────────────────┐
  dwrc-recomp ──────►│ CPU (R3000A)  GTE  GPU  SPU  CD-ROM  MDEC    │
  MIPS → native code │ DMA  timers  IRQs  pads  memory cards        │
  (Cranelift)        └──────────────────────────────────────────────┘
                                   │ frames, audio, saves
                                   ▼
                     dwrc (launcher + player)  ◄── dwrc-mods (Lua, patches, files)
  • dwrc-psx models the console: the R3000A (with a reference interpreter that handles branch/load delay slots, exceptions, the instruction cache and multiply/divide/GTE stalls), the GTE, the GPU (software rasteriser following Mednafen's hardware-verified rules), the SPU (24 ADPCM voices, ADSR, reverb), the CD-ROM controller (command timing, XA-ADPCM streaming), MDEC (FMV decoding), DMA, timers, controllers and memory cards.
  • dwrc-recomp is the static recompiler. When execution reaches a code region, every block statically reachable from it is translated to native code with Cranelift and run against the same hardware model. Overlays loaded later are translated when reached, on a background thread so the game never waits for it (blocks run on the interpreter, with identical results, until their translation is ready), and translations are dropped automatically when the game overwrites their memory. A validation mode replays every translated block through the reference interpreter and compares registers, memory traffic and COP0/GTE state.
  • dwrc-mods implements the mod platform and dwrc-modhub the mod indexes, mod updates and the program's own updates; dwrc-runtime the library, import/verification, settings and sessions; dwrc the launcher/player UI; dwrc-cli developer tools.

Details: docs/architecture.md · accuracy notes: docs/accuracy.md · tools: docs/dev-tools.md.

Verification so far
  • All three games boot through the real BIOS (or fast boot), play their FMVs with XA audio, and reach gameplay.
  • The recompiler validates with zero mismatches against the interpreter (≈224,000 checked block executions over ≈30,000 distinct blocks across the three games), and recompiled runs produce pixel-identical frames to the interpreter over minutes of scripted play.
  • The other releases (Digimon World Europe and Japan, Digimon World 2 Japan, Digimon World 3 USA and Japan) match their Redump dumps and were played on their region's console BIOS in validation mode with zero mismatches, from a new game (or an existing save) to a new in-game save that loads back in a fresh session.
  • A disc-free differential fuzz test (cargo test -p dwrc-recomp) compares random programs on both engines in CI.

Building

Requirements: Rust 1.85+ (stable).

  • Windows: install Rust with rustup-init.exe (it offers to install the Visual Studio C++ build tools), then double-click Play-Windows.bat or run cargo build --release.
  • Linux: sudo apt install build-essential pkg-config libasound2-dev libudev-dev libgtk-3-dev libxkbcommon-dev (or your distribution's equivalents), then ./Play-Linux.sh or cargo build --release.
  • macOS: install the Xcode command line tools (xcode-select --install), then double-click Play-Mac.command or run cargo build --release.

The program is target/release/DigimonWorldsReCompiled(.exe). The CI workflow in .github/workflows/build.yml builds and tests all three platforms and attaches ready-to-run zips to tagged releases. More in docs/building.md.

Project layout

crates/dwrc-disc      disc images, ISO9660, PS-X EXE, game identification
crates/dwrc-mips      R3000A instruction decoding / disassembly
crates/dwrc-psx       the PlayStation hardware model + reference interpreter
crates/dwrc-recomp    static recompiler (Cranelift) + validation
crates/dwrc-mods      mod platform (manifests, .zip install, virtual disc files, patches, Lua)
crates/dwrc-modhub    mod indexes, GitHub release updates, downloads
crates/dwrc-runtime   library, import, settings, sessions
apps/dwrc             the launcher / player (egui)
apps/dwrc-cli         developer command-line tools
mods/                 the documented mod template
assets/openbios/      the built-in BIOS (OpenBIOS, MIT) and how it is built
docs/                 documentation

Legal

Digimon is a trademark of Bandai Namco / Toei Animation. PlayStation is a trademark of Sony Interactive Entertainment. This project is not affiliated with or endorsed by either. It contains no game data and no Sony BIOS; use it only with discs (and, optionally, a BIOS) you own.

Re:Compiled's own code is dual-licensed under MIT or Apache-2.0, at your option.