r/Portal • • 4d ago

Portal 2 The leaked portal 2 source code

Recently portal 2‘s source code was leaked but only in the portal series beta research discord but Now here is the link to the source code https://gofile.io/d/8Xq7LQSQ

have at people of reddit

45 Upvotes

37 comments sorted by

14

u/Alastorvh 4d ago

careful this guy is spamming the link everywhere im not saying it is malware but it could be since he try his best to spread the link like crazy

11

u/MCWizardYT 4d ago

It's the exact same link that was dropped in the research discord by a random person. It has real game/engine code but is missing some things like the puzzlemaker.

Missing the puzzlemaker means that it's the same code that was legally given to developers in the past such as Galactic Cafe (Stanley Parable)

1

u/GentlemanSpiderOff Da gae core 3d ago

Downloaded all of it, it's safe.

1

u/KoolKiddo33 3d ago

Downloading vs. compiling is very different. I'm still skeptical of the src and what it builds into. Though, idk what they're talking about in the other reply (u/MCWizardYT)

2

u/MCWizardYT 3d ago

I think i was pretty clear. You're free to read through the source code. It's the same source that was legally given out to various developers upon request, that's how it was leaked (and why it doesn't contain the code for the puzzlemaker)

1

u/GentlemanSpiderOff Da gae core 3d ago

It compiles into Portal 2 without the test maker and one other thing that I forget

0

u/Ilovegman50573 4d ago

Dude it’s real I can send a screen shot of the post in the discord if you want proof

4

u/GentlemanSpiderOff Da gae core 4d ago

OH MY GOSH OH MY GOSH ITS HAPPENING

1

u/Ilovegman50573 4d ago

Indeed it is and oh I can’t wait

3

u/GentlemanSpiderOff Da gae core 4d ago

Ohhhh my god it's going to be so fun to just... LOOK AT the code. AGHHHH IM EXTRACTING IT NOW AND I CANT WAIT

1

u/Ilovegman50573 4d ago

I am compiling it Rn to test it just for fun

2

u/GentlemanSpiderOff Da gae core 4d ago

Oh, fun! How does one compile it? What tools hebehehehe

1

u/Ilovegman50573 4d ago

I am using visual studio and a little bit of ai (you can fight me if you want I’m kind of a dumbass) and it’s been annoying but I got it I think for me I had to download like visual studio from 2010 but it works

2

u/GentlemanSpiderOff Da gae core 4d ago

Yes but what to use for compiler unless it's baked into vscode? (I'm also dumbazz)

2

u/Ilovegman50573 4d ago

I don’t know for sure if you want the ai thread I can give it to you but I just asked Gemini how to compile the portal 2 source code leak and then just troubleshoot it with the ai like I said if you want the exact thread/chat I had I can send it to you

2

u/GentlemanSpiderOff Da gae core 4d ago

Already found something interesting! Apparently someone at Valve forgot to or didn't bother writing any suit code. Fun!

2

u/MCWizardYT 4d ago

Suit here might be in reference to the HEV suit from Half-Life? The Portal 2/Left 4 Dead 2 engines were the first engines in the Source series to completely drop all the Half-Life-related code (in Portal 1 you could load and play all HL2 maps and use all the guns because the entities still existed, not the case for Portal 2)

→ More replies

1

u/KoolKiddo33 3d ago

Oh man, did you download random source code without knowing compiling/building? A gambler I see

1

u/GentlemanSpiderOff Da gae core 3d ago

I'm working on that right now... Also you don't know that.

1

u/Ilovegman50573 4d ago

For the people who think it’s fake here is proof

1

u/KoolKiddo33 3d ago

I mean sure, but what did the code "leak" from? I was assuming AI-assisted decompiling since that's been super big rn, but I saw a comment in the screenshot of some code; so it couldn't have been decomp since it preserved the comment, right?

1

u/Ilovegman50573 3d ago

I don’t know for sure from what I have read though is it is most likely from a mod developer who got there hands on the code because apparently valve gave mod developers it at some point I think but I don’t know for sure

1

u/russelg 3d ago

Does anyone have the full archive? I'm mostly interested in the dota content.

2

u/portal2half 3d ago

the link in the post is the archive that was originally sent in psbr (where the source code got leaked)

2

u/russelg 3d ago

Ah! I misunderstood the screenshot from GabeFollower. Yep, seems it's all in that link. I saw the root layout and I expected a top-level dota directory. But that picture was of game/client. Thanks for the link!