Portal 2 source code leaked, including code from canceled Half-Life 2: Episode 3


Valve’s critically acclaimed 2011 puzzle platformer Portal 2 is the latest game from the company to have its source code leaked online.
The full source code appears to have originated from a Portal research Discord server by a user who already had access to it. However, online chatter suggests that the code had been circulating privately for years by this point. It has since spread to file-sharing sites and GitHub.
This Tweet is currently unavailable. It might be loading or has been removed.
It’s Valve’s second notable leak in recent months. In August, the company suffered a data breach that exposed more than 12 terabytes of internal data, including a decade’s worth of Steam files. Regarding Portal, the leak allowed modders to replicate the mythically canceled F-Stop, a prequel to Portal.
The biggest discovery in the new leak is leftover code from Half-Life 2: Episode 3. That’s the long-canceled final chapter of the Half-Life 2 saga, not to be confused with Half-Life 3. Episode 3 leftovers aren’t new to Portal 2 — the game and its modding tools shipped with some, which gave fans a rough idea of the episode years before Valve’s Half-Life 2 20th anniversary documentary and other recent leaks.
What’s new is the actual code Valve carried over from the canceled game. That doesn’t mean there’s enough there for something playable. As it’s been confirmed many times, Valve abandoned development of Episode 3 sometime in 2008-2009. There’s a small ray of hope for a Half-Life 3, but the closest you’ll get to an Episode 3 is Valve’s VR prequel, Half-Life: Alyx.
While some may assume Valve will shrug this one off given that Portal 2 is a 15-year-old game at this point, that GitHub link probably won’t last for long. Mashable has reached out to Valve for comment but has not received a response at the time of publication.
Want more science and tech news delivered straight to your inbox? Sign up for Mashable’s Light Speed newsletter or get Mashable push alerts today.



