Heavy Metal: F.A.K.K. 2 - Rust Port
Heavy Metal: F.A.K.K. 2 - Rust Port is a native Windows and Linux port of Heavy Metal: F.A.K.K. 2 with support for any resolution and Hor+ widescreen.
- Type: PC port
- Game: Heavy Metal: F.A.K.K. 2
- Runs on Windows and Linux
- By retro gaming tools
- Latest release v0.5.1-beta, 2026-11-29
- Source: https://github.com/retro-gaming-tools/hmf2-rust
README
Heavy Metal: F.A.K.K. 2, recompiled
A native Windows and Linux version of Heavy Metal: F.A.K.K. 2, made by translating the game's original Windows program statically into Rust, on a new runtime built on SDL3. The version is in VERSION, and releases are at https://github.com/retro-gaming-tools/hmf2-rust/releases.
The coding was done by AI (Claude, by Anthropic). The testing was done by a human.
No game data is included. You need Heavy Metal: F.A.K.K. 2 with the official patch 1.02 (any language), or its CD (with the UK patch 1.02 file for a CD that needs it). The program reads the game's files from your copy when it starts, and checks every program file by SHA-256 before it runs.
The launcher

The launcher opens before the game. Your choices are saved in fakk2-rust.settings.ini beside the program (beside the .AppImage file on Linux), and --play on the command line skips the launcher.
- Game files: where your copy of the game is. Click Choose folder... or press Enter to pick a folder, or drop a folder or disc image onto the window. The line below it says whether the game files were found and are the right version (patch 1.02), and whether they're an installed game or a CD.
- Choose a disc image or game file: pick any file of the game, or a disc image of the CD.
- Add patch 1.02: shown only for a CD whose program isn't 1.02 yet. Pick the UK patch (
hmf2uk102.zip, theHMF2_UK_102.exein it, or its unpackedDisk1folder). - Display: Window or Fullscreen.
- Language: As installed keeps the language your copy has. With a CD chosen as the game files, its other language packs are offered too.
- Field of view: how wide the view is on a wide screen. 100 degrees (the default), 90, 95 or 105 degrees cap the horizontal angle; Full height widens a wide screen by its whole aspect. A 4:3 screen always sees what the original showed.
- Left stick: Light push walks (the default) makes a light push of the controller's left stick walk and a full push run, while the game's Always run is on. Original moves at one speed however far the stick is pushed, as in the original. See Controller below.
- Resolution: Screen draws at the screen's size, or pick a fixed size (1280 x 720 up to 3840 x 2160, or the 4:3 sizes). The game's own Video menu also lists the wide sizes.
- Skip launcher next time: On starts the game straight away from then on.
--launcheron the command line, or Shift held while the port starts, brings the launcher back. - Hotkeys...: change the port's own keys (frame counter, fullscreen, HUD size) or controller buttons for them: choose a row, press the new key; Delete, Backspace or X turns a hotkey off, and Reset to defaults brings back the keys below.
- Advanced settings... (Linux) opens a second page, described below.
- Start game and Quit.
Advanced settings
Back or Escape returns to the first page.
- Files kept: where the port keeps its own files (settings, logs, the controller's binds), beside the program or in the usual Linux folders.
The two lines at the bottom give hints, such as where more languages come from.
The launcher works with the mouse, the keyboard (arrow keys to choose and change, Enter to confirm, Escape to quit) and a controller (d-pad to choose and change, A to confirm, Start to start the game, B to quit).
In the game, F11 switches between fullscreen and a window, F10 shows or hides a frame counter, and F8 steps the HUD's size through Original, 75%, 100%, 125% and 150%, with a short note saying which (100% covers the share of the screen the original HUD had at 640 x 480; the choice is kept for the next start). The hotkeys belong to the port: the game never sees them. Move or turn them off with the launcher's Hotkeys... row if you need those keys. The game's own keys stay as they were, such as F6 for a quick save and F9 to load it.
Supported versions
The port carries the programs of patch 1.02 and checks them by SHA-256:
| Version | Program | SHA-256 | Where it comes from |
|---|---|---|---|
| patch 1.02 | fakk2.exe | 681bc51c | an installed game patched to 1.02 (any language) |
| patch 1.02 | fakk/gamex86.dll | f7f54f72 | the same |
| patch 1.02 | fakk/cgamex86.dll | 0ba4dc3e | the same |
| UK patch 1.02 | fakk2.exe | 7e62194a | the UK patch HMF2_UK_102.exe |
| UK patch 1.02 | fakk/gamex86.dll | bcf1453a | the same |
| UK patch 1.02 | fakk/cgamex86.dll | 95d23329 | the same |
The UK patch's programs are the same build, rebuilt a month later. To see your files' values, run sha256sum fakk2.exe (Linux), Get-FileHash fakk2.exe (Windows PowerShell) or certutil -hashfile fakk2.exe SHA256 (Windows Command Prompt) in the game's folder; fakk2-rust.log also lists each value the port checked.
Versions 1.00 and 1.01 aren't supported: their programs differ. A CD that holds them works once the UK patch 1.02 is added (see Starting).
Starting
Pick your installed game's folder (patched to 1.02), or any file in it, in the launcher, or drop the folder on the window.
Or pick the CD: a drive, a disc image or the copied files. At Start game the port installs the game from it into game beside the program, as the original's setup would, with the language chosen in the Language row. The Europe CD already holds the 1.02 programs. A CD with an older program (such as the German one) needs the UK patch 1.02: add it with the Add patch 1.02 row, which appears for such a CD, or with --add-patch=FILE. --install-dir=DIR installs somewhere else.
What works
- Any resolution, with Hor+ widescreen: a wide screen shows more at the sides, and the HUD is scaled to the screen.
- The whole game: menus, every level, cut-scenes, saving and loading (quick save F6, quick load F9).
- Music and sound.
- Keyboard and mouse, as in the original.
- A controller, with gentle walking on the left stick.
- Installing from the CD, with the UK patch 1.02 where needed.
- The language packs on the CD.
Controller
In the game, the controller plays as below. The binds are written by the port into fakk2-rust-pad.cfg (in the port's files folder) and run at each start; binds you change in the game's own Controls menu are kept by the game.
| Control | Does |
|---|---|
| Left stick | Walk and strafe. With the game's Always run on, a light push walks and a full push runs (the launcher's Left stick row; Original runs at any tilt). With Always run off, Julie walks |
| Right stick | Look around (turns as the mouse does, with the mouse sensitivity) |
| A | Jump |
| B | Crouch |
| X | Use |
| Y | Camera look (held) |
| LT | Left hand attack |
| RT | Right hand attack |
| LB | Previous item |
| RB | Next item |
| Back | Inventory |
| Left stick click | Run or walk (held: the reverse of Always run) |
| Right stick click | Centre the view |
| D-pad up | Swords |
| D-pad right | Guns |
| D-pad down | Health |
| D-pad left | Defence (shields) |
| Start | Menu (Escape) |
In the menus, both sticks move the pointer, A clicks, and B or Start go back.
Known limits
- No multiplayer: the game has none.
- The frame rate is held at 90 frames a second; the game's movement depends on its frame time.
- The game keeps its settings in
recomp-registry.txtin the game folder, where the original used the Windows registry. - The Advanced settings page exists only on Linux.
If something doesn't work, please open an issue and attach fakk2-rust.log, which is beside the program (beside the .AppImage file on Linux). After starting again, it's fakk2-rust-previous.log.
Why the source is here
So you don't have to trust a download. Everything that makes the release is in this repository:
src/: the game's code, translated to Rust by the recompiler. Don't edit it by hand: it's regenerated.mods/: hand-written Rust that replaces some of the game's functions (see below).runtime/: the hand-written runtime: the CPU state, the Windows functions the game calls, video, sound and input on SDL3, and the launcher.recompiler/: the static recompiler that wrotesrc/.build/,build.sh,regenerate.sh: the Docker build for the release, and the check that the code matches your game..github/workflows/build.yml: GitHub builds the release from a tagged commit, with build provenance.CHANGELOG.md: what changed in each version, andchanges.sh, which shows the full diff between two versions.
Building
You need Docker, and nothing else.
./build.sh
This builds an image with pinned tools (Rust, MinGW, SDL3, appimagetool), then the Windows zip and the Linux AppImage, into dist/.
Checking the code against your game
./regenerate.sh /path/to/your/game
This builds the recompiler, runs it on your copy of the game with the settings in recomp.json, and compares the result with src/ and the rest of this repository. No difference means the published code is exactly what the recompiler makes from the game.
Checking a release
Release files built by GitHub carry a provenance attestation. With the GitHub CLI:
gh attestation verify <file> --repo retro-gaming-tools/hmf2-rust
It tells you which workflow run and which commit built the file.
Comparing versions
Each version has a tag v<version>, such as v0.5-beta.
./changes.sh 0.5-beta 0.6-beta > changes.diff
This lists the changelog entries, the commits and the files that changed, then the diff of everything written by hand: the runtime, the mods, the recompiler and the build. The translated code in src/code/ is only summarised, because a regeneration rewrites much of it. Add --code for its full diff.
Mods
Each .rs file in mods/ is hand-written Rust, and a pub fn f_XXXXXXXX(cpu: &mut Cpu) in one replaces the game's function at that address everywhere. The translated original stays callable as o_XXXXXXXX. Start a mod file with use crate::code::*; and use recomp_runtime::Cpu;. A line //! launcher: LABEL gives the mod an On/Off row in the launcher (launcher-off: for one that starts off, launcher-advanced: for one on the advanced page), and its functions then begin with if !host::mod_enabled(cpu, "FILE") { return o_XXXXXXXX(cpu); }. //! launcher-choice: LABEL = A | *B | C gives a row with several values (* marks the default), read with host::mod_choice(cpu, "FILE").
Licence
The recompiler, the runtime, the mods and the build scripts are under the MIT licence in LICENSE.
The code in src/code/ is translated from the program files of the original game, including the Microsoft C runtime it comes with. That code belongs to its rights holders, so no licence is granted for it here. This project isn't affiliated with or endorsed by them. Please buy the game.
Generated for fakk2 by the recompiler in recompiler/.