Toward a native PC port of DoDonPachi (怒首領蜂; Sega Saturn, 1997, Atlus, ported by Cave from their 1995 arcade game), a vertical shoot-'em-up in which the player's ship flies up through stages of enemy fire: hundreds of bullets on screen, a shot tapped or a laser held, bombs, combos chained from hit to hit. On the Saturn it came out in Japan only and was never re-released. The port keeps the arcade's vertical screen: played on a television lying flat it is squeezed into the middle of the picture, and the game's own vertical mode (tate) asks for a television turned on its side.
The goal is the game running natively on PC: its vertical mode upright in a tall window, with no television to turn; no loading; the game at 60 frames a second as it runs on the Saturn; its CD music as it is on the disc.
This repository documents the disc, its formats and its code, and grows
the tooling for the port. It is the sixth port built on saturnkit,
the game-agnostic toolkit for Saturn reverse engineering that grew out
of pc-virtualhydlide.
DoDonPachi is SGL code compiled with SHC, a boot program that plays a
Cinepak movie and then loads the game over itself, and a whole second
set of sprites drawn turned a quarter for the vertical mode. saturnkit
is a submodule here: clone with --recursive, or run
git submodule update --init.
This repository contains documentation and tools only. No game data,
no executables, no assets. You need your own original disc. The work is
done on the Japanese release, T-14419G V1.002 (1997-08-04), one disc, as
a .cue with one .bin per track (13 tracks) in iso/.
docs/ disc, format and code analysis, and the plan
tools/ DoDonPachi-specific tools: recomp.py, run.py, oracle.py, sheet.py,
hwlits.py, view4.py, vdp1list.py
saturnkit/ game-agnostic Saturn toolkit (submodule)
iso/, build/ your disc and everything derived from it (ignored by git)
The Python tools need only Python 3.8+; sheet.py and view4.py need
PIL and numpy. Building the recompiled C++ needs CMake, Ninja, clang and
SDL3 (MSYS2's mingw64, found at C:\msys64\mingw64\bin). The oracle
needs RetroArch with the Beetle Saturn core and the Japanese BIOS
(sega_101.bin), and ffmpeg for its recordings.
Run everything from the repository root.
C="iso/DoDonPachi (Japan).cue"
# the disc: IP.BIN, the volume, the 13 tracks; the files; the CD-DA tracks as WAV
python -m saturnkit.disc "$C" --info
python -m saturnkit.disc "$C" --list
python -m saturnkit.disc "$C" --extract build/extract
python -m saturnkit.disc "$C" --audio build/audio
# the code: the boot program and the game, both at 0x06004000
python -m saturnkit.sh2 build/extract/00AAAAAA.BIN --base 06004000 --at 0600503C --count 40
python -m saturnkit.sh2 build/extract/01AAAAAA.BIN --base 06004000 --at 0601F260 --count 40
python -m saturnkit.recomp.discover build/extract/01AAAAAA.BIN --base 06004000 --report
python tools/hwlits.py build/extract/00AAAAAA.BIN@06004000 build/extract/01AAAAAA.BIN@06004000
# the formats: a sprite file and its turned twin, as pictures
python tools/view4.py build/extract/DMAIN.DAT build/dmain.png 32 0 0x20000
python tools/view4.py build/extract/R01.DAT build/r01.png 32 0 0x20000
# the programs to C++, built with clang (MSYS2) and checked against the interpreter
python tools/recomp.py --build --test
# run it on saturnkit's runtime: headless to stage 1, pictures at chosen VBlanks; or play it
python tools/run.py -- --shot 1500,2420,3800
python tools/run.py --play # a window, the keyboard or a gamepad
python tools/vdp1list.py build/run/dump-2700.bin --near 90,60 # VDP1's commands (with -- --dump 2700)
# the oracle: Beetle Saturn in RetroArch, pressed and photographed from here
python tools/oracle.py --every 3 --quit 60 --out build/oracle/attract # the boot to the title
python tools/oracle.py --at 40:START,46:START --every 4 --quit 86 # ARCADE MODE, its title, the demo
python tools/sheet.py build/oracle/attract # the shots on one sheetSession 2: the game runs on saturnkit's runtime into stage 1, played by the user
with a pad (docs/00-sessions.md, docs/11-runtime.md). The
next steps are playing on, and the vertical mode upright
(docs/07-next-session.md).
| Doc | What |
|---|---|
| 00-sessions | what each session did |
| 01-disc-layout | IP.BIN, the tracks, the files |
| 02-data-formats | sprites and their turned twins, the sound bank, the movie |
| 03-executables | the boot program, the game, the libraries, discovery |
| 04-curiosities | a debug build on the disc, a missing track, the credits |
| 05-open-questions | what is not known yet |
| 06-attack-plan | the route and the phases |
| 07-next-session | where to start next |
| 08-the-saturn-version | Arcade and Saturn modes, the differences from the arcade, as players know them |
| 09-recompiler | the modules, discovery, the self-test |
| 10-saturnkit | what this port asks of saturnkit |
| 11-runtime | the run to stage 1, the user's games |
MIT — see LICENSE. DoDonPachi is © ATLUS/CAVE 1995, 1996, 1997; nothing of the game is in this repository.