r/Portal • • 6d ago

Portal 2 Source code leak

Post image

Portal 2 source code has apparently been leaked today including the engine code

So someone joined a discord server and dropped a gofile link with an archive named portal2_src saying that they "found this really weird code in their computer"

it seems to be legit and there's also leftovers from several other projects (stars of blood, cstrike2 (not 2023 cs2, two versions of alien swarm (infested and swarm ones), dota code although you should expect to be older code, and seemingly "paint" which is where gels were developed and tested before merging with portal2)

and someone in the server actually compiled it and it works

oh and they also leaked the devtest_fstop.vmf which is a file that was seemingly omitted out of the November 2026 map source leaks, what i could say, the main thing is that it's lab_03 and lab_intro's start mixed together

I'll update the post if this needs more information that should be clarified and because i did not 100% checked it out yet since I'm not at pc and can't do that at this time because of stuff out of my control

(not my image but it's franken turret code, but yeah, it's based on portal 1 cores)

the code doesn't feature the ifm code (sfm tool) or puzzlemaker code and this seems to be a code given to licensees since there were several things actually stripped out in these copies like the puzzlemaker itself (it's just library that's left in the archive) and also that ps3 stuff is also missing, but it's still enough to compile a build, or even a standalone build

edit: i should also mention that before that, we only had very, very little bits of the code that was included in csgo leak in iirc 2020 (a few files of entities plus gameui, so the menu code, also stuff that i dont want to mention since it's very little amount of it), and also other games like tactical intervention in 2021 (paint code)

639 Upvotes

103 comments sorted by

•

u/block_place1232 6d ago

we literally have almost every single portal 2 beta thing now its absurd

source code, maprsrc, most builds from the steam2 release and FSTOP source + mapsrc genuinely crazy

→ More replies (6)

357

u/Frostbyte501 We do what we must because we can 6d ago • Regret

they really gotta tighten that valve

76

u/OverloadedTech 6d ago

The Valve is leaking

13

u/HairAltruistic2037 6d ago

guys call gaben before it's too late

7

u/Blurropple 5d ago

All the steam's coming out

4

u/3PoundsOfFlax 6d ago

thatsthejoke.webp

3

u/that_idioticgenius 5d ago

The sun is leaking

4

u/Quark1010 6d ago

Plus it takes years for anything to come out (if it ever does at all) so i think they need a plumber

3

u/No_U1235 5d ago

Yeah, I think the steampipe is leaking again.

149

u/RashFaustinho 6d ago

Can someone explain me why the hell the entire Portal 2 is being constantly leaked? It couldn't STILL be the teraleak from months ago, isn't it?

Anyway, I hope someone uses this for making decent android ports of both games. Would like to play Portal 1 from time to time on a handled gaming device due to being so short.

125

u/Wise-Employer-3480 6d ago

This isn't new stuff, it leaked ages ago, but was gatekept by a group of people, and now finally it all is slowly being made public.

26

u/malucart 6d ago

Leaks like this are often hoarded by a small group of people for a long time. In this case they've been dripfeeding parts of the leak they had, to let the community process it or whatever. This is all unrelated to the teraleak, that only had the finished(?) playtest builds that were uploaded to Steam

30

u/Clean-Ant6404 6d ago

Most of this isn't newly leaked stuff.

1

u/rent0n86 4d ago

Portal 1 is playable on Android Source Engine

66

u/sn4rrk [He failed portal] 6d ago

year of the valve leak

23

u/Insulting_Insults 6d ago

2020s in general have been crazy for gaming leaks between this, and, going back towards the start of the decade, all those Nintendo leaks (Gigaleak and Lotcheck for Ninty, Teraleak for GF/TPC)

Plus we just had, as in literally a few days ago, the Microsoft internal Xbox GDK software leak (not as impressive as unused/prototype game content but huge for homebrew and porting and shit)

19

u/sn4rrk [He failed portal] 6d ago

watching sm64 luigi being put together in real time was truly magical

2

u/TheSnapper09 5d ago

I remember

he was real 2401

38

u/drordan 6d ago

they are hyping us for portal 3

9

u/ravercapy 6d ago

hopetrully

9

u/Old-Race5973 6d ago

w hopium

17

u/JollyAstronomer5786 6d ago

Port it to android using this

3

u/Visible_Wealth2172 5d ago

there is already an android port that they had made for the xperia play. same for many other valve games

5

u/Visible_Wealth2172 5d ago

actually wait that's portal 1 oops.

2

u/block_place1232 3d ago

it also wasn't made for the sony xperia play, you're probably thinking about MCPE

it was originally made for nvidia's shield portable platform, original versions of the source engine on android project used this port but they switched to using the leaked 2018 code

5

u/Vaxtez 6d ago

You can already play it on android via x86 -> arm apps

4

u/malucart 6d ago

switch version would prob run better

1

u/Vaxtez 6d ago

Depends on the device. My Nothing Phone 3a Lite (Mediatek Dimensity 7300, Mali G615 w/ 8GB RAM) does the PC version at 30fps medium, but I suspect those with Snapdragon SoCs might have less of an issue since they've got Turnip drivers unlike Mali users.

1

u/QwertyChouskie 5d ago

Can you load PanVK on Android like Turnip can be loaded on Android, or does PanVK only work on an upstream kernel? I'd expect PanVK to have good performance and compatibility nowadays, so if it can run on Android it should be the way to go.

2

u/AyxGon 6d ago

With CPU and battery having tortured while turning your hands into sausage

3

u/Right_Ear_2230 6d ago

Portal 2 would run perfectly fine on modern smartphones

13

u/portal2half 5d ago

if anyone is wondering, the persons name was "real gamer", they dropped the portal 2 source code and devtest_fstop before vanishing

8

u/Visible_Wealth2172 5d ago

realgamer6767676767 right

4

u/Ilovegman50573 5d ago

It is true I can confirm 

7

u/gummibarfanschannel 6d ago

i literally just joked about the portal 2 source code yesterday

5

u/Vincent394 6d ago

WHAT THE

4

u/ktwrd 6d ago

all the game coordinator code is also there

3

u/HandleDesigner5375 6d ago

can someone dm me the link?

3

u/withmorten 6d ago

found this really weird code in their computer

same or at least mention the discord server name lol

4

u/Madman8287 5d ago

It was leaked on the portal series beta research discord server

3

u/denkthomas 6d ago

i NEED this i NEED the view sway code

0

u/Ilovegman50573 5d ago

Just in case you don’t have the files yet here  https://gofile.io/d/8Xq7LQSQ

3

u/No-Hovercraft6119 6d ago

the sun valve is leaking

3

u/pingist 6d ago

man what else is there at this point? what else? what else is left of portal we haven't seen? there has to be more but i feel like this is just about it

3

u/aww_y 6d ago

valve is leaking

3

u/AnomalousMicron 5d ago

So much is happening in the last like 2 months man holy moly

3

u/sky_cap5959 4d ago

This is going to be absolutely amazing for the molding community! I remember the developer commentary for Revolution said the biggest hitch in development was getting the source code, since there's not much you can do without it.

-2

u/Igoory 4d ago

I feel like an illegally obtained source code isn't better than no source code unless what you were doing was already illegal to begin with.

4

u/MollyMouse8 6d ago

Nice. We now have everything valve has

2

u/3kh0_reddit 6d ago

In case the gofile link gets taken down, I also reuploaded it to GitHub: https://github.com/3kh0/portal-2

4

u/CorbyTheSkullie 6d ago

Upload it to other sites too, github takes dmca’s seriously

2

u/The-Ocky-Way-Ny 5d ago

your websites made my school experience so enjoyable. Thank you

2

u/3kh0_reddit 5d ago

lol glad u had fun! :D

1

u/klaykrey 6d ago

thank you bro

1

u/AndrewTheCoolAlias 6d ago

w 3kh0 :fire:

1

u/Few-Refuse3402 6d ago

Someone DM me the link to download the source code please

2

u/Ilovegman50573 6d ago

1

u/Few-Refuse3402 6d ago

Pretty cool, thank you!

2

u/Ilovegman50573 5d ago

You are welcome as a person apart of the discord server the hype was crazy when it was leaked

0

u/[deleted] 6d ago

[deleted] — view deleted comment

1

u/Dangerdenis199 6d ago

I would also like to request the link to download this

1

u/jwaxy01 6d ago

Can you dm me the link pretty please?

1

u/bookpaige69420 6d ago

lemme guess, someones already added this shit to BEEmod.

wait did that actually happen

3

u/portal2half 5d ago

unfortunately, the source code lacks puzzlemaker code

we have symbols though, so we can attempt a decompile

1

u/Top-Masterpiece3182 5d ago

That actually sucks, the puzzle maker could use some changes. Nonetheless I'm not sure what Valve would think about this

1

u/Proxin__ 6d ago

Finally we will get Portal 2 Native on Android

1

u/Hri7566 5d ago

now all we need is episode 3

1

u/Ferromag1 4d ago

Perhaps it's a deliberate slow leak to maintain attention? Not that they need it. There's a reason many are loyal to them.

1

u/MyNameIsNotMia 3d ago

Anyone have footage of devtest_fstop?

1

u/Ilovegman50573 6d ago

For all who need the link here  https://gofile.io/d/8Xq7LQSQ

1

u/2401PotatOS 6d ago

Could this be the missing link to a native Quest port? 🤓

1

u/gm_december 6d ago

Gaben’s got a bucket under ceiling leak still fucking scrambling to figure out what it is.

0

u/ProfessionalName6455 5d ago

holy shit valve, FIX YOUR GOD DAMN SECURITY! This is getting ridiculous

0

u/M7mad101010 2d ago

(Genuine question, looking forward for an answer)
How do we know that is original source code and not a decompiled code?

0

u/portal2half 1d ago

code comments.

iirctheres one in the paintgun code saying to uncomment it back out for DLC2 (when it was meant to be a paintgun expansion and not PeTI)

-4

u/Bubu-der-Uhu 5d ago

Who cares about that old stuff leaking, except Tyler McVicker, Valve archaeologist?

8

u/portal2half 5d ago

modders

they now have access to the source code so they can make their own changes to the engine

-2

u/heanzi 2d ago

i generated a humourus AI video about the best comments - enjoy!

https://www.youtube.com/watch?v=XFmLr360EVo

-13

u/ItsAllOnUHF 6d ago

Bad gamers. BAD! No Half Life 3 for you in 2027.

0

u/[deleted] 5d ago

[deleted] — view deleted comment

4

u/portal2half 5d ago

this isnt a leak related to ai's, this is from code given to licensees.