A 3DS port of pokemon Pinball R&S with NoSplit Screen, 60fps, screens options and mods.
  • C 71.2%
  • Python 22.1%
  • Shell 4.1%
  • GDB 1.4%
  • Linker Script 1.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-12-01 07:55:04 +01:00
docs hotfix v1.0.1: clean HOME exit (balanced APT handshake + lifecycle hook) 2026-12-01 07:55:04 +01:00
mods/plus_v1_1_6 R5 lane: PLUS mod runs on both bases — F3b portraits, F2.3 asset interception, EU dex synthesis, multi-mod conventions 2026-11-17 03:48:38 +01:00
platform hotfix v1.0.1: clean HOME exit (balanced APT handshake + lifecycle hook) 2026-12-01 07:55:04 +01:00
upstream build: convert the two decomps to git submodules pinned by upstream.lock 2026-11-28 19:53:10 +01:00
.gitignore Release art: cute banner + player setup guide with CIA QR code 2026-12-01 03:41:42 +01:00
.gitmodules build: convert the two decomps to git submodules pinned by upstream.lock 2026-11-28 19:53:10 +01:00
CREDITS.md docs: publication package — README (EN+FR), GPL-3.0 LICENSE, CREDITS, player manual (EN+FR), hardened .gitignore 2026-11-28 04:21:37 +01:00
DISCLOSURE.md docs: finalise v1.0.0 — disclosure, clean roadmap, remove stale kickoff notes 2026-12-01 06:58:00 +01:00
LICENSE docs: publication package — README (EN+FR), GPL-3.0 LICENSE, CREDITS, player manual (EN+FR), hardened .gitignore 2026-11-28 04:21:37 +01:00
PLAY-ON-3DS.md hotfix v1.0.1: clean HOME exit (balanced APT handshake + lifecycle hook) 2026-12-01 07:55:04 +01:00
PRATIQUES.md docs: player-facing install section in README (EN), FR README points to it; drop inherited CIA-identity PRATIQUES rule 2026-11-29 06:24:09 +01:00
README.fr.md hotfix v1.0.1: clean HOME exit (balanced APT handshake + lifecycle hook) 2026-12-01 07:55:04 +01:00
README.md hotfix v1.0.1: clean HOME exit (balanced APT handshake + lifecycle hook) 2026-12-01 07:55:04 +01:00

Pokémon Pinball Ruby & Sapphire — 3DS Port

A native Nintendo 3DS port of Pokémon Pinball: Ruby & Sapphire (GBA) — not an emulator. The port recompiles the decompiled game C sources with modern devkitARM and adds a 3DS presentation layer: the 240×448 GBA table is split across both 3DS screens (top + bottom, split at Y=232). Licensed GPL-3.0-or-later.

Unofficial fan project. No game content is included in this repository. Disclosure: DISCLOSURE.md.

New to the console? The English player guide and CIA QR code are in PLAY-ON-3DS.md.

Status

v1.0.1 (2026-12-01). Hotfix: clean HOME exit (APT handshake).

Milestone Date Delivered
0.6 2026-11-23 Clean rendering + Ruby/Sapphire parity
0.8 2026-11-19 PLUS mod end-to-end
0.9 2026-12-01 PLAYER runtime: SD ROM discovery by SHA-1, gamedata.bin cache + loading bar, CIA UID 0xFF000
1.0 2026-12-01 SRAM persistence, 60 fps, Sapphire parity + final presentation polish (full-screen pixel-perfect title/options, jvppbport-style boxed options, Spoink/cave palette fix, BALL SAVE banner following the ball in Latios' claws)
1.0.1 2026-12-01 Clean HOME exit: redundant aptInit() removed, APT lifecycle hook registered/unhooked, balanced libctru close handshake

The player runtime, SRAM persistence (sdmc:/3ds/pinball.sav), 60 fps presentation and Ruby/Sapphire parity are all shipped. Forward work — testing, better gyro, a polished stretched mode, and the exploratory 3D / DS studies — is in the 1.x roadmap. The beta roadmap (docs/doc_eng/arch/11-roadmap-beta.md) is historical, complete through 1.0.

Features

  • EU base by default — 5 languages (EN/FR/DE/ES/IT); needs your own clean EU GBA ROM dump at boot (no ROM is shipped).
  • US base variant (BASE=us) — needs the USA dump; non-regression baseline.
  • Native GPU rendering with a VirtuaPPU PPU fallback.
  • Full GBA m4a audio, native-rate NDSP output.
  • PLUS v1.1.6 mod lane (MOD=plus_v1_1_6).
  • Debug/training lane (DEBUG=1).
  • .3dsx, .cia and .3ds outputs.
  • 60 fps presentation (59.7 Hz GBA cadence).

Play on your 3DS

Title: Pokemon Pinball RS 3DS

Pick up one of the built files from your publish, or build it from the pinned upstream decomp sources. Published builds contain no game ROM: you must supply your own clean dump of the GBA game at boot.

For a short player-only walkthrough with the v1.0.1 CIA QR code, see PLAY-ON-3DS.md.

  • .3dsx — copy build/3ds/pinball.3dsx to sdmc:/3ds/pinball.3dsx and launch it from the Homebrew Menu (Homebrew Launcher).
  • .cia — install with FBI.
  • .3ds — CCI game-card image (FBI or a cart loader).

Put your ROM in sdmc:/3ds/pinball/ (e.g. rom.gba); the boot scan also looks in sdmc:/3ds/ and sdmc:/. Any *.gba found there is identified by size + game code + strict SHA-1 — there is no fixed filename. The first boot creates sdmc:/3ds/pinball/gamedata.bin, a validated cache that speeds up later boots and shows a loading bar; a missing or wrong file shows an error screen. The dump must match the build's region — the published builds are BASE=eu:

Build Dump Size SHA-1 Game code (0xAC)
BASE=eu (published, default) EU 16 777 216 B b8b7881e… BPPP
BASE=us USA 8 388 608 B 9fec81ce… BPPE

An EU build rejects a USA ROM and vice versa. An optional IPS sidecar with the same basename, sdmc:/3ds/pinball/rom.ips, is applied over the genuine base dump; known mods such as PLUS and DX are recognized and reported at boot. BPS patches are not supported (rom.bps is rejected), and an IPS that changes the ROM size is rejected — the base file must stay the clean size above.

On the SD card the game also touches:

  • sdmc:/3ds/pinball.sav — the GBA-format save; you can bring your own Pokémon Pinball GBA save over it.
  • sdmc:/3ds/pinball.cfg — the port settings (created at first boot).

Everything below under Requirements (build machine) applies only to rebuilding the port from the decompiled sources; players do not need it. Some build variants are not reproducible from the published repo alone: MOD=plus_v1_1_6 needs a clean USA dump plus an unpublished IPS file, and BASE=us language packs need clean EU+USA dumps (see platform/tools/README_mod.md).

Requirements (build machine)

  • Linux
  • build-essential git jq libpng-dev
  • Python ≥ 3.11
  • devkitPro: devkitARM, libctru, citro2d, citro3d, 3dstools (install via dkp-pacman; DEVKITPRO defaults to /opt/devkitpro)
  • Optional: makerom (only for the .cia target)
  • pret/agbcc installed into each decomp tree (used by the decomp only, to pre-generate assets)

Getting the source

This repository contains the port layer, patches, tools and docs ONLY. The game sources live in two public upstream decomp repositories, fetched as git submodules pinned at the exact commits recorded in platform/common/port/upstream.lock (33ad42e) and platform/common/port/upstream_eu.lock (29ae6f4) — the build hard-fails otherwise:

git clone --recurse-submodules https://forge.enmarge.art/tripop/pokemon-pinball-RB-3DS-Port.git

For an existing clone:

git submodule update --init

git submodule status shows a leading-space prefix when a submodule sits at its pin. The rest of upstream/ stays gitignored (other reference repos, not versioned here).

Setup (fresh clone → build)

  1. Install the prerequisites above (devkitPro via dkp-pacman; DEVKITPRO defaults to /opt/devkitpro).

  2. Install agbcc into each decomp per its INSTALL.md:

    git clone https://github.com/pret/agbcc
    cd agbcc && ./build.sh
    ./install.sh ../pokepinballrs
    ./install.sh ../pokepinballrsEU
    
  3. Prepare each decomp once — this generates the .4bpp/.gbapal/.bin assets the port build consumes (a pristine clone has none, and build.sh would then fall through to the decomp's agbcc-based rom goal):

    make -C upstream/pokepinballrs tools && make -C upstream/pokepinballrs -j$(nproc)
    make -C upstream/pokepinballrsEU tools && make -C upstream/pokepinballrsEU -j$(nproc)
    
  4. Build:

    ./platform/tools/build.sh all
    

    Output: build/3ds/pinball.3dsx (+ .smdh), build/pinball_port.elf.

Build variants

Variant What it needs Notes
BASE=eu (default) nothing extra No original ROM dump required on the build machine.
BASE=us US base tree Language packs need clean EU+USA dumps, otherwise English-only fallback.
DEBUG=1 nothing extra Training/debug lane. Mutually exclusive with MOD= (hard guard).
MOD=plus_v1_1_6 clean USA dump + mods/PokemonPinballRSPlus-v1.1.6.ips Neither is published here, so this variant is not reproducible from this repo alone (see platform/tools/README_mod.md).
cia target makerom ./platform/tools/build.sh cia → build/3ds/pinball.cia.

platform/tools/rom_identity.py SHA-1-gates every build: the decomp must be exactly at the pinned commit and its built ROM bit-identical to the oracle — modified ROMs hard-fail. The default EU build needs no original ROM on the build machine; the player supplies one at boot.

./platform/tools/build.sh all                 # default EU base
BASE=us ./platform/tools/build.sh all         # US base
DEBUG=1 ./platform/tools/build.sh all         # debug/training lane
MOD=plus_v1_1_6 ./platform/tools/build.sh all # PLUS mod (see table above)
./platform/tools/build.sh cia                 # .cia (needs makerom)

Install on 3DS

Player-facing install and setup: see Play on your 3DS.

Full instructions: docs/doc_eng/MANUAL.md (EN) / docs/MANUAL.md (FR).

Controls (summary)

3DS GBA
A / ZR / touch screen left flipper (A)
B / ZL right flipper (B)
SELECT + direction tilt (vanilla behaviour)
START pause
D-pad / Circle Pad / C-Stick directions
L / R passthrough
X, Y unused
HOME clean exit

Full details (including the in-game button config): docs/doc_eng/MANUAL.md.

Project layout

platform/           port layer
  3ds/                3DS target (libctru / citro2d / citro3d)
  common/             shared code (port, PPU, audio, view)
  tools/              build + verification tools (build.sh entry point)
  tests/              comparison harnesses
mods/               mod recipes
docs/               French originals + English mirrors in docs/doc_eng/
platform/tools/build.sh   build entry point

build/, upstream/, roms/, saves/ are local-only and gitignored.

Documentation

  • PLAY-ON-3DS.md — English player guide + v1.0.1 CIA QR code
  • DISCLOSURE.md — disclosure / no game content shipped
  • docs/doc_eng/ROADMAP-1x.md — 1.x roadmap (testing, gyro, stretched mode, 3D/DS studies)
  • docs/doc_eng/ARCHITECTURE.md — architecture
  • docs/doc_eng/PLAN.md — plan (historical)
  • docs/doc_eng/arch/11-roadmap-beta.md — beta roadmap (historical, complete through 1.0)
  • PRATIQUES.md — coding/verification practices
  • docs/doc_eng/LOTUS.md — AI debug harness
  • CREDITS.md — credits

License

GPL-3.0-or-later — see LICENSE.

  • Vendored VirtuaPPU: GPL-3.0-or-later (platform/common/ppu/).
  • Audio chain: CC0-1.0 (platform/common/audio/LICENSE-CC0.txt).
  • Game sources/assets are NOT included — the upstream decomp repositories keep their own terms. No Nintendo / Game Freak content is redistributed by this repository.

Credits

See CREDITS.md — pret/pokepinballrs, Scannalupi300/pokepinballrsEU, pret/agbcc, VirtuaPPU, zelda-tmc-3ds, jvppbport and others.

Disclaimer

See DISCLOSURE.md — unofficial fan project, no affiliation with Nintendo, Game Freak or The Pokémon Company, no ROM or IPS shipped.