Repository navigation
OpenNighthawk 2026-11-13
An unofficial, fan-made recompilation of F-117A Nighthawk Stealth Fighter 2.0 (MicroProse, 1991) for Windows. You must own the original game (GOG or Steam). This release contains source code only: no game files, no generated code, no prebuilt game program. Setup builds the game on your own PC from your own copy.
Install
- Install F-117A from GOG or Steam if you have not.
- Download
OpenNighthawk-setup-20261113.zip, extract it to a normal folder and double-clicksetup.cmd. 64-bit Windows, internet access, about 1.5 GB free while it builds, about 5 to 15 minutes (4 minutes 30 seconds on the author's PC). - Answer the wizard's questions (install folder, shortcuts, optional sound and picture settings), or press Enter for the defaults. It downloads its own Python, CMake, Ninja, shader compiler and the Zig compiler, checking pinned SHA-256 values, so nothing needs to be installed first. It finds your game, checks its files and never writes to it.
- Start the game from the shortcut or the Start menu. Press the ` key for settings.
To uninstall: Windows Settings, Apps, OpenNighthawk, or uninstall.cmd in the install folder. Your pilots are kept unless you say otherwise.
Windows SmartScreen or an antivirus may warn about the new program the first time it runs. Setup checks every download; if something is quarantined, setup stops with a message.
What it is
The original's machine code is translated into C and compiled natively, and its routines are being replaced by named, explained C that is checked to behave identically to the original, instruction by instruction. With fixes off it plays exactly like the DOS original; 33 switchable bug fixes are on by default (--fixes original turns them off). See the README for the full list and for how parity is checked.
What is new since 7 November
- Widescreen margins now draw what the original's 2D layer drew. Far aircraft and missile and bullet dots, gun tracers, smoke puffs, the impact blast and the falling wreck of a shot-down aircraft appear in the extra width beside the 4:3 picture, at their true place and size, in the original's painting order (scenery painted after a dot covers it, ground and sky do not). Turn them off with the environment settings
F117_WIDE_DOTS=0,F117_WIDE_TRACERS=0,F117_WIDE_PUFFS=0,F117_WIDE_WRECK=0. - Far aircraft beyond the game's own 4,800-unit limit are drawn as one-pixel dots out to the Draw distance setting's reach (12,000 units at Near, more at Far and Maximum;
F117_WIDE_FAR_AIRCRAFT=0turns it off). The original draws none there. - Data folder moved to
%APPDATA%\OpenNighthawk. The first run of this version moves your saves and recorded flights fromF117Recomp\F-117Athere (they are kept); the uninstaller and the documents follow. - Faster 4K pictures with unchanged results. The CPU setup work runs on a thread pool (late flight 28.7 to 19.5 ms, byte-identical output), and the GPU strokes use a simplified rule by default (strokes 11.9 to 3.0 ms; about 216 of 8.3 million pixels differ from the exact rule;
F117_DECAL_SIMPLE=0restores the exact one). - Hangar door-line pixels and other line-over-surface cases fixed (R38 on by default).
Checked
On the author's PC (Windows 10, RTX 3060, recorded runway flight and a late flight), build of 13 November 2026:
- 901 of 901 picture checksums identical at three draw distances, on the CPU and GPU compositors, against the reference for this build; with the far aircraft off they are identical to the earlier reference, so nothing else moved.
- Live GPU-versus-CPU picture check: 0 differing pixels in 3,421 pictures at three draw distances. CPU against GPU 4K wide shots: 0 differing pixels.
- End-of-run machine state identical to the original-parity reference (
600306c77cb04481); all 1,657 matched routines pass their lockstep check against the original code (3.5 million states, 0 mismatching); full test suite 845 of 845; host acceptance 12 of 12. - The margin dots against the game's own: the same aircraft drawn in the margin and, with the camera turned, by the game in its own picture agree in 121 of 152 paired shots; the differences are the cockpit canopy (the margin has none) and pixels on coast or sea edges. The original has no margins, so this is a comparison, not a proof.
Not yet verified (be aware)
- Setup has been run on one development PC and in a fresh standard account on it; not on a second PC or one with no Visual Studio or Python installed anywhere.
- Performance on other GPUs is untested; 4K at the farthest draw distance may dip below 60 frames a second. Speed was measured in a hidden window without the real present path.
- Gun tracers in the margin were proven by moving a real tracer into the margin; no recorded flight has a tracer ending there. Their layering rests on the original drawing them last (the display pass).
- A margin dot can be hidden under a Remastered outline that is wider than the original's one-pixel line.
Download
OpenNighthawk-setup-20261113.zip
SHA-256 363dddd80f76af1b22c4f360f7cc69419c098196e9dc43cd412b429af1d7dd77
Built from commit ccf90a881c55021ec0c6fbfb7c1d47a60b0fc0bc.