Source SDK

Source SDK

Making a game based on Portal 1 engine?
I'm trying to make my own source game, and I need to use the linked_portal_doors for at least 1 game element. I am familiar with coding to a degree; however, Portal 2's source code is close-sourced by valve. I know Portal 1 had an SDK back in 2009; Is there a way to get at Portal 1's source code? If I can figure out how Valve achieved their portal effect, I'm confident I'll be able to make my own version of a linked_portal_door.
Edit: I've looked through Portal 1's game files, and the third party legal notices heavily implies that making a standalone game based off of its engine is possible, but I'm not sure how to go about doing so.
Last edited by Clockwork Brain; Feb 6, 2019 @ 7:12am
< >
Showing 1-12 of 12 comments
Wazanator Feb 3, 2019 @ 9:31am 
So I know this is odd but there's a very distinct difference between game and mod when it comes to Source.

When people say game they generally mean they are looking to enter a license deal with Valve for the engine so that they can sell it on Steam. Which if that is the case you should review this https://partner.steamgames.com/doc/sdk/uploading/distributing_source_engine and be aware of the Havok license cost.

If you are wanting to make a free mod then you can make a mod based on Portal 2 you just can't make any programming changes (in other words you can launch it from steam but it will functionally be the same as Portal 2). Otherwise you will need to use SDK Base 2013 or Alien Swarm neither of which sadly have linked_portal_doors.

Clockwork Brain Feb 3, 2019 @ 9:53am 
actually I was planning on making a free to play stand-alone game with source. Is there a way to replicate the linked_portal_doors? like, make a new entity that functions similarly?
Wazanator Feb 3, 2019 @ 11:17am 
I mean you can try and redo what they did in Portal 2 but I don't think anyone in the community ever has because of how niche of an entity it is.

You could try reaching out to Valve once you have a proof of concept working and let them know that you are wanting to use the Portal 2 engine for a 100% free product but generally they only license out 2013 and ASW for that. The only times I have seen otherwise were for mini campaigns for Portal 2 that did not require code access and even then they made owning Portal 2 a requirement.
Clockwork Brain Feb 3, 2019 @ 2:41pm 
Originally posted by Wazanator:
I mean you can try and redo what they did in Portal 2 but I don't think anyone in the community ever has because of how niche of an entity it is.
Well, portal 2 was built on Portal 1, which had an SDK in 2009. If i could get at the source code of portal 1, I'm confident I'll be able to replicate a linked_portal_door entity.
Actually, that would probably be preferable, as the area i'm placing the portal doors is on a round funnel. if I could make the portal door myself, I could make a round door that doesn't require me to put a gigantic lip on the thing to cover the corners.
Clockwork Brain Feb 5, 2019 @ 8:14pm 
So is there a way for me to do that?
Clockwork Brain Feb 5, 2019 @ 8:18pm 
If not, I suppose I could cheat and build on the larger room, copying any changes to the smaller room. I could even make another, even larger room, only cropping the far end and having the player die upon leaving the portal.
Wazanator Feb 6, 2019 @ 8:40pm 
Originally posted by Gearhart #ReworkRandomCrits:
So is there a way for me to do that?

No the Portal 1 source code is not publicy available. You could try and remake it on your own if you wanted.
Clockwork Brain Feb 7, 2019 @ 6:09am 
Originally posted by Wazanator:
Originally posted by Gearhart #ReworkRandomCrits:
So is there a way for me to do that?

No the Portal 1 source code is not publicy available. You could try and remake it on your own if you wanted.
crap. you positive about that? Because the icon in Portal's game folder is for HL2. Wouldn't that mean that Portal was a half-life mod?
No?
:steamsad:
I guess I'll just have to fake it then. Do you know of any way to have props mimic the movement of each other? So that objects moved in the normal room are reflected in the large and larger rooms, and vice versa?
Wazanator Feb 9, 2019 @ 10:38am 
Originally posted by Gearhart #ReworkRandomCrits:
Originally posted by Wazanator:

No the Portal 1 source code is not publicy available. You could try and remake it on your own if you wanted.
crap. you positive about that? Because the icon in Portal's game folder is for HL2. Wouldn't that mean that Portal was a half-life mod?
No?
:steamsad:
I guess I'll just have to fake it then. Do you know of any way to have props mimic the movement of each other? So that objects moved in the normal room are reflected in the large and larger rooms, and vice versa?

Portal was built on the Source Engine but that doesn't mean the codes available sadly.

If you are doing this with a branch that has a scripting language like vscript or lua you could probably do something where you grab the props normal room coordinates and just multiply them by the scale of the larger room.
Clockwork Brain Feb 14, 2019 @ 9:49am 
Originally posted by Wazanator:
Originally posted by Gearhart #ReworkRandomCrits:
crap. you positive about that? Because the icon in Portal's game folder is for HL2. Wouldn't that mean that Portal was a half-life mod?
No?
:steamsad:
I guess I'll just have to fake it then. Do you know of any way to have props mimic the movement of each other? So that objects moved in the normal room are reflected in the large and larger rooms, and vice versa?

Portal was built on the Source Engine but that doesn't mean the codes available sadly.

If you are doing this with a branch that has a scripting language like vscript or lua you could probably do something where you grab the props normal room coordinates and just multiply them by the scale of the larger room.
OK. how would I set something like that up?
Mandrew Nov 13, 2019 @ 9:57pm 
Here is Portal's source code: https://github.com/VSES/SourceEngine2007/

This runs on source 2007, if you plan on using it on source 2013 you will have to port it.
fry Apr 21, 2021 @ 12:14am 
Originally posted by Mandrew - Wonderland_War:
Here is Portal's source code: https://github.com/VSES/SourceEngine2007/

This runs on source 2007, if you plan on using it on source 2013 you will have to port it.
How could i run this and play portal, i already own it just i wanna see if i can try doing it like that
< >
Showing 1-12 of 12 comments
Per page: 1530 50