Skip to content

v0.3.0: Half-Life 2 joins Portal 2

Choose a tag to compare

@kanapitsas kanapitsas released this 08 Nov 11:31
· 16 commits to main since this release
8f5788c

Half-Life 2 (experimental) joins Portal 2. The same static recompiler turns the Linux version of Half-Life 2, with Episode One, Episode Two and Lost Coast, into a native Apple silicon app. No emulator, no Wine, no Rosetta.

Opening the installer: it is signed with a Developer ID, but Apple's notarization is still pending, so macOS will refuse it the first time. Unzip it, open it once (macOS says it cannot verify the developer), then go to System Settings > Privacy & Security, scroll down and click Open Anyway. A notarized build will replace this file when Apple answers. Or skip the installer: git clone the repository and run ./setup.sh.

  • Natif Installer finds Portal 2 and Half-Life 2 in Steam; tick the games, it builds each one on your Mac (10 to 20 minutes per game, only the Xcode command line tools are needed). Or in a terminal: ./setup.sh builds every game it finds.
  • Half-Life 2 needs its Linux binaries too: in the Steam console, download_depot 220 224 (about 320 MB). The installer tells you when they are missing.
  • Half-Life 2 runs at 120 fps with Metal on an M3 Pro at 1280×720 (the display's limit). Start the episodes from the main menu.
  • Experimental: the main game has been played for a few hours; the episodes and Lost Coast load and render but have not been played through. If it stops with target not recompiled, please open an issue with the end of ~/Library/Logs/HalfLife2Natif.log.
  • iPhone: Half-Life 2 builds with its own touch controls (./setup.sh --game hl2 --ios) and runs at 60 fps on an iPhone 15 Pro Max (short test so far). Gyro aiming is on: turn the phone to aim, the thumb for large turns. Hold the quick save button to quick load.
  • Indoors are dark by design (the maps cap exposure): use the flashlight (F) or raise Options > Video > Brightness, which now works in windowed mode.
  • Portal 2: shadows of dynamic lights on Metal (#21); same app, same saves.

You must own the games: everything is built from your own copy, and nothing from Valve is in the repository.

Unofficial fan project, not affiliated with or endorsed by Valve.