# Pokémon Stadium 2 for New 3DS A native New Nintendo 3DS port of **Pokémon Stadium 2** (N64). The game is recompiled into C with N64Recomp from the North American ROM and runs on a custom runtime, with PICA200 graphics, HLE audio, a dual-screen Transfer Pak menu, a full-speed GB Tower and two-player online battles. This project was developed with the help of Claude. A legally obtained **USA Pokémon Stadium 2 ROM** is required. This repository contains no game code, graphics, sounds or ROMs. ## Features | | | |---|---| | **Virtual Transfer Pak** | Connect Red, Blue, Yellow, Gold, Silver and Crystal versions from ROMs on the SD card, or link your installed **Virtual Console** saves directly. | | **Functional GB Tower** | Game Boy games run on a native core, with color filters and a borderless view. | | **Multiplayer** | Two-player netplay through public rooms, private rooms or a direct local connection, with text chat or stickers. | | **Five languages** | English, Spanish, French, German and Italian (see [Languages](#languages)). | | **Stereoscopic 3D** | Battles support the 3D slider. | ## Download and installation 1. Download the **CIA** or **3DSX** from the releases page. 2. Install the CIA with FBI, or launch the 3DSX from the Homebrew Launcher. 3. Copy your USA ROM to `sd:/3ds/PokemonStadium2/baserom.z64`. 4. (Optional) Copy your Game Boy ROMs to `sd:/3ds/PokemonStadium2/gb/`. The ROM must be the USA release in `.z64` (big-endian) byte order, MD5 `1561c75d11cedf356a8ddb1a4a5f9d5d`. Convert `.n64`/`.v64` dumps first. ### SD card layout ``` sd:/3ds/PokemonStadium2/ ├── baserom.z64 your USA ROM (required) ├── baserom-es.z64 ... optional language ROMs (see Languages) ├── gb/ Game Boy ROMs for the Transfer Pak and GB Tower │ ├── saves/ .sav files for those ROMs │ └── gbc_bios.bin optional Game Boy Color boot ROM ├── stadium2.fla Stadium 2 save data (created automatically) ├── transferpak.cfg menu settings (created automatically) └── dump/ logs and screenshots ``` Game Boy ROMs are also found in `sd:/roms/gb`, `sd:/roms/gbc` and `sd:/gb`. ## Controls | 3DS | In game | |---|---| | Circle Pad | N64 analog stick (also moves through menus) | | C-Stick | N64 D-Pad | | D-Pad | C buttons (C-Up, C-Down, C-Left, C-Right) | | A / B | A / B | | ZL | Z | | L / R | L / R | | Y | C-Down | | START | START | | Touch screen | Open the Transfer Pak menu (pauses the game) | | ZR | Turn the bottom screen backlight off / on | | L + X | Save a screenshot (and graphics dumps) to `dump/` | | HOME | Exit | In the Mini-Game Park, the D-Pad works as the N64 D-Pad, which those minigames use. ### GB Tower | 3DS | Action | |---|---| | D-Pad / Circle Pad | Game Boy D-Pad | | A / B | A / B | | START / SELECT | START / SELECT | | C-Stick Up | Open the GB Tower menu (also from the touch bar) | | C-Stick Right | 2x speed | | X | Next color filter: Original, Green, GB Color, GB Pocket | | Y | Switch between the tower frame and the borderless, enlarged Game Boy screen | Saves are written back to the Transfer Pak cartridge (SD save or Virtual Console) when the game saves. With `gbc_bios.bin` the Game Boy Color boot animation plays. ## Transfer Pak menu The menu opens at startup, before the game loads, and at any time during play by tapping the bottom screen. L and R switch tabs: - **Clock**: the date and time. - **Select Game Pak**: choose the Game Boy cartridge from a carousel (D-Pad, Circle Pad, the touch arrows, or drag with the stylus). The top screen shows the cover, the trainer and where the save comes from. - **A** (or tap the center cartridge) connects it, **B** removes it. - The port pairs the ROM with your installed **Virtual Console** save of the same edition and language, or with a `.sav` in `gb/saves/`. - With several VC saves of the same game, **Y** picks the next one. - **X** searches ROMs and VC saves again from scratch. - Injected VC titles are recognized too, if the same ROM revision is on the SD card. - Every real save is reported: "saved to your VC game" or "saved to the SD card". - **Options** - **Language**: switch the game language (before starting). - **Auto start**: skip the menu next time and start with the saved cartridges. - **FPS**: a frame-rate graph on the bottom screen during play. - **Log**: detailed logs in `dump/` to help find problems. - **Netplay**: online battles (see below). **START** (or *Start game*) begins; the ROM is prepared while the menu is open, so the game starts without another loading screen. During play, **Resume**, START or SELECT close the menu. ## Netplay Two players battle online in lockstep: both consoles run the game and exchange only controller input, so both must use the same ROM language, the same `stadium2.fla` and the same Transfer Pak cartridges. The host shares its save at connection time. Just like two controllers on a real N64, the **host is Player 1** and controls the menus. The guest is **Player 2**: they can play their side in battles and minigames, but menu navigation stays with the host. 1. Open the **Netplay** tab and press **Enable** (the port stays offline until you do). 2. Choose: - **Rooms**: the public room list. Each room shows its host, players, language, ping and whether you can join. **Y** refreshes, **X** joins a private room. - **Host**: create a room with a name, type (**Public**, **Private** or **Local** for your home network, which shows your IP) and an optional 4-digit PIN. Pick **Text** chat or **Stickers**. - **Join**: connect directly to a Local host by IP and port. 3. In the **Pairing Lobby** both players press **A** (Ready) and the game starts. During an online session the bottom screen becomes the session panel: ping, the chat with an on-screen keyboard (or the sticker carousel), **Chat ON/OFF** and **Leave** (tap twice). If the other player disconnects, the session ends after 5 seconds and both can keep playing alone. Rooms go through a small relay server, so no port forwarding is needed. A public server is set by default; **X** on the Netplay screen changes it. You can run your own with [`port/tools/lobby`](port/tools/lobby) (`ps2_lobby.c`, UDP port 7800). ## Languages Place `baserom-es.z64`, `baserom-fr.z64`, `baserom-de.z64` or `baserom-it.z64` next to `baserom.z64`, then pick the language in **Options > Language**. ## Reporting problems Turn on **Options > Log**, reproduce the issue and attach the files from `sd:/3ds/PokemonStadium2/dump/` (and a screenshot with **L + X**) to an issue, with your console model and the steps to reproduce it. ## Building from source Requirements: Windows with [devkitPro](https://devkitpro.org) (devkitARM, libctru, citro3d) in `C:/devkitPro`, MSYS2, CMake, Python 3.10+, Git, and WSL with Ubuntu for the [pret/pokestadiumgs](https://github.com/pret/pokestadiumgs) decompilation. ``` python port/tools/setup.py --rom path/to/baserom.z64 python port/tools/build_full.py arm --gpr32 --gen-hot port/tools/gen_hot_files.txt -j 8 ``` `setup.py` checks the ROM, N64Recomp and pokestadiumgs at tested revisions, applies the N64Recomp patches, builds the decompilation for its symbols and generates everything derived from the ROM on your machine. Menu assets that are not distributed must be supplied: see [port/assets/README.md](port/assets/README.md). Output goes to `port/build/full/`. ## Credits - [N64Recomp](https://github.com/N64Recomp/N64Recomp) and the [mstan fork](https://github.com/mstan/N64Recomp): static recompilation. - [pret/pokestadiumgs](https://github.com/pret/pokestadiumgs): the decompilation that provides the symbols. - [PokemonStadiumRecomp](https://github.com/mstan/PokemonStadiumRecomp): the Pokémon Stadium 1 port whose 3DS layer this port builds on. - [ares](https://github.com/ares-emulator/ares) and N64ModernRuntime: RSP vector unit. - Homebrew tools: devkitPro, libctru, citro3d. ## License and legal notice Licenses are component-specific: see [THIRD_PARTY.md](THIRD_PARTY.md). This is an unofficial fan project, not affiliated with Nintendo, Creatures or Game Freak. Pokémon and Pokémon Stadium 2 are trademarks of their respective owners.