Red Three

Red Three is a PC port of Star Wars Rogue Squadron III Rebel Strike that runs the game natively with widescreen support and high resolutions.

README

Red Three

Red Three runs Star Wars: Rogue Squadron III – Rebel Strike (GameCube, USA) natively on PC. It's a static recompilation: when you build it, the game's machine code is translated from your own disc into C++ and compiled into a Windows or Linux program.

It isn't an emulator. This repository contains no game code or data; that all comes from your disc at build time.

Downloads: Windows (zip) and Linux / Steam Deck (AppImage) builds are on the Releases page. They contain the game's code in recompiled form, but none of its data: you still need your own disc image. Start the program and choose it the first time. RecompLauncher can also install it, check your disc image, and keep it up to date.

It's a fork of Red Two, which does the same for Rogue Leader.

Status

Playable from start to finish, with small QoL improvements to the original. The game boots, plays its cinematics with sound, saves to a memory card, and runs missions at 60 fps, including two-player co-op.

  • Widescreen works (16:9 tested most), with the game drawing and culling the whole wide view. HUD pieces move to the screen's corners, targeting reticles stay on their targets and HUD flashes stay on their HUD pieces.
  • Hold B for a second to skip a cutscene or movie, also ones the game itself won't let you skip yet, including the opening.
  • Two-player split screen (co-op and versus) in widescreen.
  • Cheats tab: every Rebel Strike passcode as an on/off switch, kept in the game's save as if entered in Options > Passcodes; they can be set in the launcher before the game starts.
  • High resolution up to 4K, with anti-aliasing and anisotropic filtering.

Known problems (details in docs/KNOWN_ISSUES.md):

  • A few spots may still show gaps or flicker at the screen's edges on wide screens (the opening behind Vader, a wall in Extraction from Ralltiir's opening, Dagobah's left edge).
  • On very wide screens, patches of distant ground can be missing (Yavin's lake at 21:9, the edge of the versus Death Star map), and flying low over Yavin's river can cut a band out of the far hillside.
  • Deception at Destrillion: engine glows can float beside the landing ships, and the sky can show rings of the scene.
  • Versus: a stormtrooper's targeting-computer highlight can lie on the ground beside him (Walker Rampage); Vader's TIE can glow for a second at the start of a dogfight if player 2 opens the targeting computer at once; an orange panel can show on the AT-ST cockpit's left wall.
  • In two-player split screen, the Naboo starfighter's cockpit view looks too wide.
  • The red damage arc on foot sometimes points the wrong way.
  • The AT-ST's shots don't always land in the center of its aiming reticle.
  • Frame rates above 60 are turned off for now.

What you need

  • Your own copy of Rebel Strike, USA version (GLRE64), as .iso, .gcm, .rvz or .wia. This repository contains no game code or data.
  • Python 3.
  • Windows: Visual Studio 2022 Build Tools with the C++ workload and its Clang tools, CMake 3.25 or newer, Ninja.
  • Linux: clang, lld, CMake 3.25 or newer, Ninja, and SDL3's build dependencies.

Building

  1. Get the code:

    git clone --recursive https://github.com/TypingTurtle/red_three
    cd red_three
    
  2. Extract the code Rebel Strike keeps inside its data files (the cinematics run it). Without this step those parts run slowly and the sound breaks up:

    python tools/extract_resource_code.py "<path to your disc image>" ../rescode
    
  3. Build. Use the full path to the rescode folder from step 2.

    Windows (PowerShell):

    powershell -ExecutionPolicy Bypass -File tools\build.ps1 -Disc "<path to your disc image>" -BuildDir build\rs -CMakeArgs "-DR2_GAME=GLRE64 -DR2_EXTRA_CODE=<full path to rescode>"
    

    If you also have a newer Visual Studio installed, add -VsPath "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools".

    Linux:

    tools/build_linux.sh --disc "<path to your disc image>" --build-dir build/rs -DR2_GAME=GLRE64 -DR2_EXTRA_CODE=<full path to rescode>
    

    The first build takes 30 minutes or more. Later builds only rebuild what changed.

  4. Run build\rs\red_three.exe (Windows) or build/rs/red_three (Linux). The launcher asks for your disc image the first time.

The C++ a build generates from your disc goes into build/. Don't commit or share it.

Without -DR2_GAME=GLRE64 you get Red Two for Rogue Leader instead.

Steam Deck

The Deck runs the Linux build, packed into a single AppImage file. Build it on a Linux PC, or on Windows inside WSL2 with Ubuntu 24.04 (the Deck needs SteamOS 3.6 or newer):

  1. Build and pack it in one step (it installs the packages it needs, so it asks for your password once):

    tools/steamdeck_build.sh "<path to your disc image>"
    

    This makes RedThree-x86_64.AppImage next to your disc image. The steps it runs are in the script if you'd rather do them by hand.

  2. Copy the AppImage and your disc image into the same folder on the Deck (or the disc image into ~/Emulation/roms/gc), make the AppImage executable, and add it to Steam as a non-Steam game.

Settings, saves and logs are in ~/.local/share/Red Three/ on the Deck. A ready-made AppImage is on the Releases page if you'd rather not build it.

Playing

Settings are in the launcher and in the in-game menu (F1).

  • Controllers: Xbox and PlayStation controllers and most others work. On an Xbox controller the face buttons match by letter (Xbox B is GameCube B). Buttons can be remapped on the Controls page.
  • Keyboard: WASD or the arrow keys fly, Space is A, Left Shift is B, E is X, Q is Y, R is Z, 1 and 2 are the L and R triggers, Enter is Start, T/F/G/H are the D-pad and I/J/K/L the C-stick.
  • Co-op and versus: plug in a second controller and it plays player 2. To use the keyboard for player 2 instead, set Controls → Multiplayer → Player 2 to "Keyboard"; one controller and a keyboard is then enough for two players.
  • Graphics: internal resolution, anti-aliasing and anisotropic filtering are on the Display page. HD texture packs in Dolphin's format load from the Mods page.
  • Stick response: Controls → Stick response. "GameCube" is the game's own curve, as on a GameCube or in Dolphin; "Smooth" and "Linear" are gentler near the center.
  • Sound: set to stereo with the game's surround mixed in by default. The game's own Sound Settings (Mono / Stereo / Pro Logic II) still apply on top.
  • Keys: F1 menu, F11 or Alt+Enter fullscreen, F5 save state, F8 load state, F6/F7 change save slot, F10 saves the next two frames' graphics commands and pictures to the logs folder (for bug reports). On a controller, hold Back and click the right stick for the same capture.

Reporting a problem

Open an issue with:

  • what happened, and where in the game
  • a screenshot if it's a graphics problem
  • the session log from that run: user\logs next to red_three.exe on Windows, ~/.local/share/Red Three/logs on Linux

Legal

Red Three is released under the MIT License. It covers this repository's own code only, not the game's code that a build (and the downloads) contain in recompiled form.

This repository contains no code or assets from the game. Star Wars, Rogue Leader and Rebel Strike are trademarks of Lucasfilm Ltd.; GameCube is a trademark of Nintendo. This project isn't affiliated with or endorsed by them.

Credit

A lot of this was built on Red Two's work, by gminustwo and contributors: the recompiler, the runtime, graphics, audio, input, menus and launcher. Red Three adds what Rebel Strike needs on top of that. Every commit before 354ae8b is Red Two's history. Fixes taken from other projects after the fork are marked with an asterisk (*) in the release notes and listed under Borrowed fixes.

Red Two's MIT license applies unchanged. Its original README is in docs/RED_TWO_README.md. Red Three isn't affiliated with Red Two's authors, so please report Red Three problems here, not to them.

Borrowed fixes

Taken from other projects after Red Three forked, with thanks:

  • * Red Two (gminustwo, rengar-91948):
    • ARAM is 16 MiB, as on a GameCube; the SDK's size check no longer misreads it (Red Two issue #57, commit e80431a; the same rule as Dolphin's).
    • Renderer: texture matrices loaded at any row (1dc6989), unknown blend logic ops drawn as a copy instead of stopping (db4d14f), and ripple offsets in stages that sample no texture (water reflections, Red Two issue #60, d88b057).