rustcoil

rustcoil is a PC port of Recoil that runs the game on modern Windows and Linux systems with widescreen and gamepad support.

README

rustcoil

Play Recoil (1999) on today's computers, on Windows and Linux.

Work in progress. This port still has lots of problems. I'm working on it.

rustcoil is not an emulator. It takes your own copy of the game and translates its program into native code for your computer when you start it. Everything the game expects from an old Windows PC (3dfx graphics, DirectX, sound, CD music) is rebuilt in Rust. You need your own copy of the game. Nothing of the game is included here.

A mission in widescreen

The first missionThe mission briefingThe main menu
Island Storm in widescreenThe mission briefingThe main menu

How to play

  1. Download the newest version from the releases page. Take the .zip for Windows or the .tar.gz for Linux, and unpack it.
  2. Put your Recoil CD next to rustcoil.exe or into the game_files folder. These work:
    • an image of the CD: .cue with its .bin files, .iso, .img or .mdf
    • the files of the CD, copied into a folder
    • your installed game folder
  3. Start rustcoil.exe (on Linux: ./rustcoil).

The first start takes a moment. rustcoil unpacks the game from the CD by itself, just like the old setup program did, and prepares it to run. After that the game starts quickly.

rustcoil never deletes anything in game_files. Once the game runs, you can remove other copies yourself.

Good to know

  • Music: The music comes from the audio tracks of the CD. Keep the .cue image with its .bin files, then you have music. An .iso has no audio tracks, so the game stays silent.
  • Version: The US version of Recoil works. If you have another one, rustcoil tells you.
  • Your saves and settings are in game_files/Recoil: saved games in SavedGames, settings and keys in registry.txt.
  • Linux needs the usual libraries for sound and gamepads. Every desktop distribution has them.

What is better than the original

  • Sharp and big: The game is drawn at the size of your window or screen, with smooth edges and filtered textures. Alt+Enter switches to fullscreen.
  • Widescreen: In missions you see more to the left and right. The HUD stays in the middle.
  • Smooth: The game runs at its correct speed and still shows as many pictures as your screen can display.
  • Settings menu (F10): All new options in one place, see below.
  • Gamepad: Drive with the left stick, aim with the right stick. Every button can be changed. The menus work with the pad too.
  • Straight into the game: No launcher and no "insert CD" message.
  • Frame rate display: F12 shows it.

The settings menu (F10)

Press F10 at any time, in the menus or in a mission. The game pauses while the menu is open. Every change works at once and is saved for the next start.

How to use it: Up and Down choose a line, Left and Right change it. Page Up and Page Down (or Tab) switch between the pages. Escape or F10 closes the menu. The mouse works too, and so does the gamepad.

Display

SettingWhat it does
FullscreenThe game fills the whole screen without a border. Alt+Enter does the same.
ResolutionThe size of the window and of the picture. "Auto" uses the window's size.
WidescreenMissions fill a wide screen and show more to the sides. The HUD stays in the middle.
Anti-aliasingSmooth edges instead of jagged ones.
TexturesSharper textures from a distance: Original, Trilinear or Anisotropic.
Frame rate displayShows how many pictures per second you get. F12 does the same.

Effects

SettingWhat it does
BloomA soft glow around fire, explosions and shots: Off, Low, Medium or High.

Fixes

Bugs of the original game, fixed. Both are on. Turn one off to see the game as it was.

SettingWhat it does
Light count fixThe game draws the glow of only the first 64 lights. Shots bring many lights, so the lighthouse's glow flickered while you fired. Now it stays.
Exhaust trail fixThe light streaks behind the tank now run behind its tracks. In the original they lie too close together.

Keys

Every command of the game with its key. Choose a command, press Enter and then the new key. Delete removes a key.

Gamepad

Every command of the game with its gamepad button. Choose a command, press A (or Enter) and then the new button. X (or Delete) removes a button. The sticks are always for driving and aiming.

Default gamepad buttons (Xbox layout):

ButtonAction
RTpulse gun
LTadvanced weapon
Adetonate
Bcenter turret
Xturret lock
Ychange view
LBweapon 1
RBmissiles
Backmap
R3center chassis
D-padmortars, proximity mines, remote mines, lasers
Startthe game's menu

Building it yourself

cargo build --release
cargo run --release -- path/to/recoil3dfx.exe

Without a path it uses the game_files folder, as described above. The tests (cargo test --release) need no game files. How it works inside: CLAUDE.md and PLAN.md.

Made with recomp_kit, with iced-x86 and Cranelift.

License

The code here is under the MIT license. The Indeo video decoder in crates/indeo is a port of FFmpeg's and is under the LGPL 2.1 or later (see crates/indeo/COPYING). Recoil and its files belong to their owners and are not part of this project.