Skip to content

rustcoil 0.1.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 10:03
· 26 commits to main since this release

The first release of rustcoil, a native port of Recoil (Zipper Interactive, 1999) for 64-bit Windows and Linux.

rustcoil does not emulate the game and does not ship any of it. At its first start it takes your own copy of recoil3dfx.exe, with the MFC and C runtime DLLs that came with it, and recompiles it to native code (iced-x86 + Cranelift). Windows, Glide (3dfx) and DirectX are replaced by Rust code: OpenGL for the 3D picture, cpal for sound, gilrs for gamepads.

A mission in widescreen

Getting started

  1. Download rustcoil-v0.1.0-windows-x64.zip (Windows) or rustcoil-v0.1.0-linux-x64.tar.gz (Linux, x86-64, OpenGL 3.3) below and unpack it.

  2. Give it your game. Put an image of your Recoil CD next to rustcoil.exe or into game_files. Any of these formats works:

    • .cue with its .bin files: recommended, the music comes from the CD's audio tracks
    • .iso
    • .img (CloneCD)
    • .mdf (Alcohol)

    You can also copy the contents of the CD, or your installed game folder, into game_files.

  3. Start rustcoil.exe. On the CD the game is only inside its installer's archive (data1.cab), so the first start unpacks it itself, as the CD's setup would. It then compiles the game (a few seconds). Later starts are quick.

Supported: the US version (recoil3dfx.exe, SHA-256 eba7dab7cc0514ac7998912c53542b5b707c9b907fd754a9a5db694789243658). rustcoil tells you if it finds another version. Nothing in game_files is ever deleted.

What is new compared to the original

  • No launcher, no CD check. The game starts straight into its menu. It also runs without the videos.
  • Any resolution. The game is drawn at the window's size, with anti-aliasing and texture filtering. Alt+Enter switches to fullscreen.
  • Widescreen (Hor+). Missions show more of the world at the sides, aiming and the target zoom fit the wide picture, and the HUD stays in the 4:3 middle. Menus, briefings and videos stay 4:3.
  • Smooth high frame rates. The game logic runs at a steady 60 steps a second, as the game expects (the original ran too fast on fast machines). Pictures in between are drawn at your display's refresh rate, with objects and camera moved smoothly between steps.
  • Settings menu (F10).
    • Display: fullscreen, window size, widescreen, anti-aliasing, textures, frame rate display
    • Effects: bloom, a soft glow around bright things, Off/Low/Medium/High
    • Keys: the game's own key bindings, changed in place
    • Gamepad: button bindings
  • Gamepads. The left stick drives and the right stick aims. Every button can be bound to any of the game's commands. The settings menu works by pad too.
  • A sharp aiming reticle that follows the mouse across the whole wide picture.
  • CD music played straight from your .cue/.bin image.
  • The game's videos play from its own AVI files: Indeo 5 and Cinepak decoders written in Rust (the Indeo decoder is a port of FFmpeg's and is LGPL, see COPYING-indeo.txt).
  • Frame rate display (F12).

Known limits

  • The first mission was played through by hand. The second loads and plays, but not the whole campaign has been played yet. Please report what breaks.
  • The Linux build is made by CI but has not been tried on Linux yet.
  • Multiplayer (DirectPlay, Westwood Online) has not been tested.
  • An .iso has no audio tracks: without a .cue/.bin image the game runs without music.

Settings and key bindings are saved in game_files/Recoil/registry.txt, saved games in game_files/Recoil/SavedGames. Messages go to rustcoil.log next to the program.

Built with recomp_kit. The code is MIT licensed, except crates/indeo (LGPL-2.1-or-later). Recoil and its files belong to their owners and are not part of this project.