Rogue Squadron 64 Recompiled

Rogue Squadron 64 Recompiled is a port of Star Wars: Rogue Squadron for Windows, Linux, Android, and macOS with high resolutions, widescreen support, and ray tracing.

README

Rogue Squadron 64 Recompiled icon

Rogue Squadron 64 Recompiled

A static recompilation of Star Wars: Rogue Squadron (USA v1.0) for the N64 built with N64Recomp and N64ModernRuntime, rendering through a forked RT64 that understands Factor 5's custom display-list format.

Important

Heavily AI-assisted.

Most of the debugging, architectural decisions, and code here were produced with Claude.



Screenshots

Recomp screenshotRecomp screenshotRecomp screenshotRecomp screenshot
Recomp screenshotRecomp screenshotRecomp screenshotRecomp screenshot

Minimum Requirements

RequirementDetails
ROMStar Wars: Rogue Squadron (USA v1.0) .z64, .v64 or .n64 (xxHash3-64 0x6B66A44153594DEA)
OS / PlatformGraphics Backend
Windows 10+ x64Vulkan, D3D12, D3D11, D3D10
Windows 10+ x86 (32-bit)Vulkan, D3D12, D3D11, D3D10
Linux x64 (glibc 2.38+)Vulkan
Linux arm64 / armhf (glibc 2.38+)Vulkan
Linux x86 (32-bit)** (glibc 2.38+)Vulkan
Android 9+ arm64Vulkan 1.1
macOS 11+ arm64 (Apple Silicon)*Metal
macOS 11+ x86_64 (Intel)*Metal
Web browser†WebGPU

*macOS builds but hasn't been run on a Mac yet (see macOS)

**The 32-bit x86 Linux build has only been tested on a 64-bit PC with software Vulkan.

†A separate fork by n64hub/amazingalek

Per-platform minimum requirements.

Features

Graphics
  • High resolutions: high resolution options, with optional MSAA, SSAA or FXAA anti-aliasing & HDR.
  • Widescreen: extends the screen (and camera FOV) beyond the old 4:3 aspect ratio.
  • Longer draw distance: see much farther away by up to 8x the original, set with the DRAW DISTANCE slider in Display Settings. Has some caveats.
  • Frame Interpolation: smooths the game's native ~30 fps to match your monitor's refresh rate.
  • Support for Texture packs: RT64 texture-replacement packs load at startup.
  • Ray Tracing Support: reflections, shadows, dynamic lights from lasers and explosions, and light shafts through fog. Has some caveats.
  • 60+ FPS: run the game beyond the original's near 30 FPS limitations and use Vulkan to take it even higher.
  • VR Support: completely immerse yourself in the game, viewing it like never before using OpenXR.
Input
  • Keyboard and mouse: fly with the mouse and fire with the mouse buttons.
    • Menu navigation with the Mouse: ability to seamlessly select and control menu navigation exclusively with the mouse via cursor placement, LMB (Start) & RMB (Back)
  • Gamepads: any SDL-supported controller works, with gamepad lightbar support.
    • Gyro aiming: turn on GYRO STEERING in Game Settings to aim by moving the controller. Tested on a DualSense; Steam Deck and Switch Pro are untested.
  • Flight sticks and H.O.T.A.S.: use the throttle lever to set your speed, and twist or rudder roll.
  • Rumble: the game's own Rumble Pak effects play on gamepads and force-feedback joysticks. Fully adjustable in roguesq_input.json.
  • Full rebinding: press F6 in-game to rebind actions, change sensitivity, adjust deadzones, and rumble settings OR use the Controls Menu Mod. See Controls.
  • Touch controls on Android: tap menu and in-game buttons and fly with an on-screen stick. You can move and resize the buttons, and turn on 'gyro steering' to help fine-tune your aim.
Languages
  • English (en), German (de) and French (fr): picked under OPTIONS > LANGUAGE. Affects menus, mission text and subtitles while voice acting remains in English.
Multiplayer (experimental)
  • Online two-player co-op: host or join from a MULTIPLAYER page on the main menu. Your partner flies alongside you as a wingman, shares objectives, lives, and the mission result.
  • Ways to connect: there is no official server. See docs/guides/co-op-setup.md for more details.
    • Direct: works over LAN (with automatic discovery) and over the internet (with UPnP port forwarding).
    • Wi-Fi Direct (Windows 10+, Linux, Android 10+): play with no router. When there's no shared network, a nearby player who picks JOIN GAME joins the host's own Wi-Fi network automatically. (Android will ask to allow it) Linux needs NetworkManager and only hosts when it isn't already on a Wi-Fi network. Hosting on Linux or Android is untested. macOS doesn't support Wi-Fi Direct (macOS uses 'Network Sharing').
    • Steam, using the steam-relay mod (Desktop ONLY): with Steam running, HOST GAME lists your game on Steam, and JOIN GAME shows the open games to pick from (locked ones ask for their password). Steam sees the game as Spacewar (app id 480).
    • Self-hosted relay server: anyone can run rs64_relay, a small console server for Windows and Linux, and players type its address into the MULTIPLAYER address box, just like a friend's IP. The game remembers the server, HOST GAME lists games there and JOIN GAME shows them. Setup is in docs/guides/relay-server.md.
  • Setup notes:
    • Windows Firewall asks to allow the game the first time it runs. For co-op, tick Private networks (for home and LAN play) and press Allow access. If you press Cancel, co-op can't take incoming connections until you allow RogueSquadron64Recomp.exe under Windows Security > Firewall > Allow an app through firewall.
    • Steam Relay OFF by default: press F6 in the game, turn on Steam Relay in the Mods window OR toggle the mod in the in-game mod menu.
      • The Steam API library is not included: download the Steamworks SDK (version 1.65, from partner.steamgames.com, any Steam login) and copy redistributable_bin/win64/steam_api64.dll (Windows), redistributable_bin/linux64/libsteam_api.so (Linux) or redistributable_bin/osx/libsteam_api.dylib (macOS) into mods/steam-relay/. Without it, or with Steam closed, MULTIPLAYER defaults to direct connections.
    • Linux needs the native Steam package (Flatpak and Snap Steam are not supported); on Steam Deck, add the Linux build as a non-Steam game; on macOS, remove the download quarantine with xattr -d com.apple.quarantine mods/steam-relay/libsteam_api.dylib.

Note

Steam-Relay mod on Linux, Steam Deck and macOS is untested.

Mods
  • Mod support: turn mods on and off in the Mods panel of the F6 window OR the game's built-in Mod menu. (some might require resetting the game)
  • Included mods:
    • Display Settings: 'Display Settings' UI in the main menu under 'Options' -> 'Game Settings' and in the pause menu. Also contains the Ray Tracing and Fullscreen toggle.
    • Controls Menu: new Controls UI allowing the adjustment of sensitivity, acceleration, deadzone, rumble and Input Bindings. All while using in-game UI.
    • Multiplayer: online co-op (see above).
    • Larger Object Pool: doubles the number of ships, lasers, and explosions the game can track at once, so busy missions stop resetting pooled objects.
    • Long Tow Cable: the snowspeeder's tow cable is long enough to wrap an AT-AT several times.
    • Quit Prompt: a prompt in the main menu asking if you want to quit.
    • Invincibility: your craft takes no damage. (Off by default)
    • Any Craft, Any Mission: fly any ship on any level. (Off by default)

Running

Put rogue_squadron.z64 (or rogue_squadron.v64 / rogue_squadron.n64) in the working directory (the executable's folder when you double-click it) and launch. The ROM hash is checked and the ROM is imported on first launch.

Controls

Keyboard, mouse, gamepad, and flight sticks / H.O.T.A.S. all work; no controller is required. The keyboard and joystick defaults for the most part follow the PC version (Rogue Squadron 3D).

Actions are for the game's default Luke controller setting. The other controller presets in Options rearrange them.

ActionKeyboardMouseN64GamepadJoystick / H.O.T.A.S.VR Controller
Steer↑,↓,←,→ (A/D turns)Mouse X/YAnalog stickLeft stickStick X/YLS
Fire blastersSpaceLMBBA (South)Button 1 (trigger)A
Fire secondaryAltRMBC-LeftB (East)Button 2B
Fire modeX—C-DownY (North)Button 6R1 (Click down)
ThrustW—ARight triggerButton 3R2
BrakeS—ZLeft triggerButton 4L2
Speed (positional)————Throttle lever—
RollE—RRight shoulderButton 7 + twist joystick—
SpecialF—C-RightX (West)Button 5X
CockpitC—D-Pad UpD-Pad Up——
StandardV—D-Pad DownD-Pad Down——
Close viewB—D-Pad RightD-Pad Right——
Switch viewN—LBackButton 8L1 (Click down)
Look aroundQ—C-UpLeft shoulderHat—
Drop cameraZ—D-Pad LeftD-Pad Left——
Confirm (Menu)Enter / Space—AAButton 3A
BackBackspace—BBButton 1B
PauseEsc—StartStart—Menu
  • Mouse flight steering: mouse cursor is automatically captured when the game window is focused.

    • Mouse motion steers the craft, left click fires blasters, right click fires the secondary weapon.
    • The cursor displays when the window loses focus, the (F6) Controls window is open, or when RT64's (F1) inspector is up.
  • Rumble: the game's own Rumble Pak effects (hits, collisions, terrain scrapes, weapons, the death spiral, and crashing) play on gamepads and on joysticks supporting rumble or force feedback.

    • Hits get stronger with the damage taken, and the rumble keeps going through the death spiral.
    • Rumble and its individual effects can be tuned in the (F6) Controls window, or in the rumble section of roguesq_input.json.
  • Flight sticks and H.O.T.A.S.: any devices named "joystick" will be bound as a joystick.

    • A stick with exactly three axes, or a device named "throttle", gets its lever bound to Throttle.
    • The throttle sets your speed by position: full back is the craft's slowest, full forward is fastest, and middle is normal speed.
    • Other axes can be bound from the Controls window (F6)
  • DualShock 4 & DualSense Lightbar Support: lightbar color will change depending on the state of the game.

    • Colors configurable from the lightbar section in roguesq_input.json
  • DualSense Adaptive Trigger Support: Ship speed affects the resistance of the Thrust & Brake triggers. Brake trigger becomes resistive if the speed is beyond cruising speed. Thrust trigger becomes resistive if at cruise speed or less.

Tip

When binding the throttle, move the lever to the opposite position, click Rebind on 'Throttle', then push/pull it forward/back.

Twist grip or rudder pedals can do one of two things depending on how you bind them. Bind them to StickLeft/StickRight and they'll add to stick X since inputs on the same stick direction add together.

Bind them to RollLeft/RollRight and they'll give a dedicated roll axis. Hold the 'Roll' button then twist to roll.

Function Hotkeys
KeyActionBuilds
F1RT64's ImGui overlay (configuration, texture dumping, per-call debugger, render-target view)All (Release needs --hle-dev-mode)
F2Toggle ray tracingAll
F3ViewRDRAM modeAll
F4Texture replacementAll
F5In-game profiler HUDAll
F6Controls window (rebinding, joysticks, rumble, mouse)All
F7FPS counterAll
F8VR camera controls via Numpad + MouseAll (with VR Mode ON)
F9 / Shift+F9Step forward / back through the ray tracing debug viewsAll
F10Pause / resume the game on an exact frameDebug
F11Step one frame while pausedDebug
F12Write a crash dump to dumps/crash-dumps/ (Windows only)All
Print ScreenRenderDoc frame capture (set ROGUESQ_RENDERDOC=<path to renderdoc.dll>, Windows only)All
  • Can be be changed or turned off completely, under hotkeys in roguesq_input.json (details), can also be turned off for the session using --no-hotkeys.
  • The current ray tracing debug view is named in a notice at the bottom right.
  • Set ROGUESQ_FULL_DUMP=1 for a full-memory crash dump.
  • With RenderDoc loaded, F12 also takes a capture alongside the crash dump. Launching from RenderDoc works too, without ROGUESQ_RENDERDOC.
  • F1 needs RT64 developer mode, on by default in Debug (ROGUESQ_HLE_DEV_MODE=1 turns it on in Release).
  • In Debug builds the RT64 inspector owns the ImGui overlay, so press F1 before F6.
Rebinding controls

Rebind in-game under Options > Controller Settings (the Controls Menu mod, on by default), which lists the actions for the keyboard, gamepad, joystick or VR controller you open it with:

  • Every action takes two bindings. Press left or right to pick a column; the selected one is shown in braces.
  • Combos: hold one input and press another while rebinding to bind the pair, shown as A - B. While both are held, the combo replaces the second input's own binding.
  • Delete, Backspace or holding A for 2 seconds clears a binding.

Or press F6 for the Controls window:

  • Click Rebind or Add on an action, then press a key or button or move an axis. Clear removes the selected binding.
  • Joysticks / H.O.T.A.S. shows each joystick's axes live, with invert and deadzone settings.
  • Rumble holds the rumble settings, plus mouse sensitivity and axis invert.

Bindings are saved to roguesq_input.json next to the executable.

Status

Note

The game is completely playable from beginning to end.

Recomp. specific Issues

Important

Recomp. Issues are bugs involving rendering, input, hooks and added features like Frame Interpolation and Ray Tracing.

All issues should be reported/tracked via the issue tracker.

  • Shadows that are cast onto the new terrain renderer might not look 100% correct when compared with the look of the original's (Legacy) Terrain renderer. This is because of how shadow casting worked in the original along with how it did LOD. Terrain shadows are 'averaged' in the old one whereas the new one isn't, so shadows are cast more realistically.
Ray Tracing Caveats
  • With Ray Tracing on, the following levels get light-shaft haze because I genuinely think they visually work better with it:

    • Search for the Nonnah
    • Imperial Construction Yard
    • Escape from Fest
    • Battle above Taloraan
  • Stray/odd shadows in places mostly due to terrain or its edge geometry

  • Shadows popping in and out because of geometry being culled when outside the camera's frustum. (Culling viewports have been increased/offset to alleviate this.)

  • Reflections might not look completely accurate because of the nature of Screen Space Reflections

    • Battle for Calamari's intro cutscene doesn't reflect the explosion even though it is physically correct, since the explosion is near the camera's height and its mirror image falls below the screen. A potential solution would be an automated cubemap projection for each level done on the fly and have that be used as a fallback for when screen space reflections fall short.
Draw distance Caveats
  • 'Search for the Nonnah' and 'Escape from Fest' keep their fog at a high draw distance. Every other level's fog moves out with the draw distance.

    • 'Search for the Nonnah' is intended to have heavy fog since the player is meant to search the level for the objective.
    • 'Escape from Fest' needs it because the AT-PTs for the mission spawn based on Player proximity.
  • Nearby hills can show a sharp outline against the fog wall.

  • Buildings, turrets and units the game hasn't woken yet show in their starting pose, frozen until you get within the game's own range (about 1.5x).

  • There will be situations where Ties or Bombers appear to be stationary or might even move a little before being 'activated' once you get close enough to them. Since spawning of NPCs occurs based on player proximity, extending that distance could negatively affect gameplay so 'imposters'/'stand-ins' are used to display structures and NPCs at a distance in order to perserve gameplay.

  • With LEGACY TERRAIN on (Display Settings > ADVANCED), the draw distance is capped at 1.3x for performance reasons.

  • Draw distance will change on the fly relative to the intro/outro cutscene being played. Fog works in the same way. This is to maintain the original look/vision for the cutscenes. Mid-game cutscenes however will use the user's set draw distance.

Game specific Issues

Important

Game Issues are issues that have been in the game since release.

Game Issues are less of a priority since fixing them might take away the charm that those rough edges bring.

Game Issues should be fixed with Mods instead of fixing it through the recomp. which can affect all users who play expecting the base experience.

  • During cutscenes NPCs or ships might pop in and out or stop moving in general, which is very noticeable when in Widescreen since you can see beyond the game's original aspect ratio. This is normal