Portal 2

Port 0.4.0

Portage natif de Portal 2 pour macOS.

Portal 2 Recomp (Mac) est un portage natif de Portal 2 pour macOS, compilé depuis ses sources.

Architecture

Mac OS X - macOS Mac OS X - macOS

Original game

Portal 2 Windows

Download and links

Version history

0.4.0
**Portal (experimental) joins Portal 2 and Half-Life 2**, and the recompiled code gets leaner.- **Portal** (Steam app 400), contributed by @runty (#31): Mac app and iPhone app, from the same installer or `./setup.sh --game portal1`. It needs the current Linux binaries: in the Steam console, `download_depot 400 404` (about 150 MB). The old 2013 Linux build is refused with a clear message. Experimental: the first chambers have been played on a Mac; the rest has only been loaded. If it stops with `target not recompiled`, please open an issue with the end of `~/Library/Logs/PortalNatif.log`. - **Portal saves**: `save` and quick save no longer stop the game with "target not recompiled" (#44, #45). The recompiler now recognises that form of `switch` in every game. Checked in Half-Life 2, which shares that code; not confirmed in Portal yet. - **Portal 2 Puzzle Maker** (#42, @feolaney): Build and Play works: the map compilers (VBSP, VVIS, VRAD) are recompiled too and run natively. Opt-in, from Terminal only for now: `./setup.sh --puzzle-maker` (about ten more minutes and 220 MB). See `docs/puzzlemaker.md`. - **Leaner generated code** (#33): the lifter now proves that the game…
Full changelog

**Portal (experimental) joins Portal 2 and Half-Life 2**, and the recompiled code gets leaner.- **Portal** (Steam app 400), contributed by @runty (#31): Mac app and iPhone app, from the same installer or `./setup.sh --game portal1`. It needs the current Linux binaries: in the Steam console, `download_depot 400 404` (about 150 MB). The old 2013 Linux build is refused with a clear message. Experimental: the first chambers have been played on a Mac; the rest has only been loaded. If it stops with `target not recompiled`, please open an issue with the end of `~/Library/Logs/PortalNatif.log`. - **Portal saves**: `save` and quick save no longer stop the game with "target not recompiled" (#44, #45). The recompiler now recognises that form of `switch` in every game. Checked in Half-Life 2, which shares that code; not confirmed in Portal yet. - **Portal 2 Puzzle Maker** (#42, @feolaney): Build and Play works: the map compilers (VBSP, VVIS, VRAD) are recompiled too and run natively. Opt-in, from Terminal only for now: `./setup.sh --puzzle-maker` (about ten more minutes and 220 MB). See `docs/puzzlemaker.md`. - **Leaner generated code** (#33): the lifter now proves that the game never reads x86 flags across calls, and then stops saving and reloading them around every call. Portal 2's binary is 17 % smaller, and in game the main thread uses a few percent less CPU per frame. Half-Life 2 does not pass the proof yet and keeps the previous mode. - **Native plugins** (#32, @hammerill): a server plugin built as a macOS arm64 dylib now loads where the game expects a Linux `.so`. This is how the [Portal 2 FPV drone mod](https://github.com/hammerill/portal-2-fpv) runs. See `docs/native-plugins.md`. - **Mac input** (#40, reported in #38): holding a letter key no longer opens the accent menu, and the cursor no longer grows when you shake the mouse (the app now starts with `m_rawinput 1`; your own launch options still replace the defaults). - **Without Steam running**, the game now stops with a message saying so, instead of a `SIGBUS` crash (#39). - **Half-Life 2 with Workshop items**: no longer crashes at startup (#37, reported in #35). - **iPhone audio**: sounds no longer play 9 % too fast and too high (#30). - **Runtime**: faster pthread lookups and five small fixes (#34).**Updating**: download the new installer and run it again. The generated code changed, so each game is recompiled once (about 10 minutes per game). Or `git pull` and `./setup.sh`. Saves are kept.**Opening the installer**: signed with a Developer ID and notarized by Apple. Unzip it and open **Natif Installer**.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.SHA-256 of the zip: `9677353a8d14385b9238c209102df2b163f2d3193c02fb161ba20476497b7d51`

Reply on the forum

A question or a hands-on report? Open the discussion on the forum.

Reply on the forum