• How to create Portal 2 maps
    3,501 replies, posted
[img]http://www.thinkwithportals.com/images/p2logo.png[/img] In this tutorial I'll try to show you how to make Portal 2 maps. Things you'll need: - Portal 2 (duh) - Alien Swarm SDK - GCFScape (or any tool that can extract VPKs) - Patience First of all you'd like to extract your portal 2 materials/models to your alien swarm directory. To do that, just open the pak01_dir.vpk file which is located in your portal 2 directory (steamapps\common\portal 2\portal2) and extract the materials and models folders to your alien swarm directory (steamapps\common\alien swarm\swarm). After the extraction is complete you will need to "fix" the models so that hammer can load the properly. To do that just save the following text in a batch file (.bat), place it in your swarm/models directory and run it. [code]FOR /R %%a IN ("*.dx80.vtx") DO del "%%a" FOR /R %%a IN ("*.dx90.vtx") DO del "%%a" FOR /R %%a IN ("*.sw.vtx") DO del "%%a" FOR /R %%a IN ("*.vtx") DO copy "%%a" "%%~dpa%%~na.dx80.vtx" FOR /R %%a IN ("*.vtx") DO copy "%%a" "%%~dpa%%~na.dx90.vtx" FOR /R %%a IN ("*.vtx") DO copy "%%a" "%%~dpa%%~na.sw.vtx" FOR /R %%a IN ("*.dx80.dx90.sw.vtx") DO del "%%a" FOR /R %%a IN ("*.dx80.dx90.vtx") DO del "%%a" FOR /R %%a IN ("*.dx80.sw.vtx") DO del "%%a" FOR /R %%a IN ("*.dx90.sw.vtx") DO del "%%a"[/code] After this step is done you're ready to create Portal 2 maps. Just launch Hammer through the Alien Swarm SDK and create a map. Also, remember to follow [url=http://developer.valvesoftware.com/wiki/Swarm_Mapping_basics]these[/url] instructions, otherwise the map won't compile. After you've compiled the map just copy it to your portal2/maps directory and launch it through the in-game console. You can find a FGD with several entities [url=http://www.facepunch.com/threads/1081339-Portal-2-FGD-Thread]here[/url] (Cheers to DeanWinchester). Here are some interesting entities: [code]prop_tractor_beam prop_wall_projector env_portal_laser prop_floor_button info_coop_spawn[/code] You can find a coop map I made [url=http://dl.dropbox.com/u/8504765/mp_test.bsp]here[/url] and it's source [url=http://dl.dropbox.com/u/8504765/mp_test.vmf]here[/url]. I hope this helps. Credits: - Whoever made that model renaming script - The guy who made BSPSource - Valve PS: You can find interesting stuff by [url=http://nuclearvelocity.com/barracuda/bspsrc/downloads.html]decompiling[/url] existing p2 maps (you will need to fix the endings of the VMFs in order to load them in Hammer).
literally 2 seconds ago i asked enth how to make portal 2 maps
Here's a template for coop maps. It simply contains the starting area and no, it will not compile as it is. [url]http://dl.dropbox.com/u/8504765/mp_booth.vmf[/url]
I'll be sure to check it out later.
I'm just gonna wait for the proper SDK to come out, and spend the time planning maps and stuff :buddy: Pretty cool method though
[QUOTE=evlbzltyr;29325081]I'm just gonna wait for the proper SDK to come out, and spend the time planning maps and stuff :buddy: Pretty cool method though[/QUOTE] This will probably be me too, but I'll probably fuck around with this so that I can get used to the new entities before the official release.
Heh very handy, I drew down a design of a chamber and if I feel the need for the SDK is too great i'll use this. Thanks a lot.
I'll probably just stick to mapping the basic geometry of the level in the old SDK, then import the vmf when the Portal 2 SDK comes out.
ill wait for the real sdk, but this is a pretty cool method
Does anyone know where Portal 2 stores its sound files? I've looked in the directory, and the GFC files. No luck. Edit: Found how to, FYI to anyone curious. Open pak01_dir in GFCScape, don't open it.
I'll wait for the new SDK with a new Faceposer that supports Vista oh god please Valve [B]please...[/B]
eitherway it doesn't seem like you can play coop maps, only singleplayer
[QUOTE=Crazy_Farmer;29326621]eitherway it doesn't seem like you can play coop maps, only singleplayer[/QUOTE] For coop maps both people must have the map. Then in console you type "changelevel mapname" (no quotes of course)
How do you make gels able to be placed on surfaces? They work, but they don't paint onto things. I think its a script or entity that allows it but I can't find it. [img]http://cloud.steampowered.com/ugc/541766098668858996/F9B7CECAD994855141A8FC061BB975DBCDE7C0BF/[/img]
I hope some very nice custom maps come out, preferably some with more crushers, gel, funnels, bridges, and panels. Oh god the panels, there was so much potential for absolutely crazy maps with those panels. I hope someone realizes that and makes some really good maps with copious amounts of panels!
I managed to get some SP maps working in Co-op without modifying the BSPs :buddy: [url]http://cloud.steampowered.com/ugc/559780497168368075/B0FB42B5DB0D20292ECCA34ABABC86ED42F1EA6C/[/url] Will post a how-to and needed files when I've finished making all the maps co-op compatible. Cheers! PS: The maps are still fully functional in SP.
[QUOTE=NoFaTe;29327859]I managed to get some SP maps working in Co-op without modifying the BSPs :buddy: [url]http://cloud.steampowered.com/ugc/559780497168368075/B0FB42B5DB0D20292ECCA34ABABC86ED42F1EA6C/[/url] Will post a how-to and needed files when I've finished making all the maps co-op compatible. Cheers! PS: The maps are still fully functional in SP.[/QUOTE] great work. I think the first thing we need to do in the Portal 2's hammer is to make a map just to fuck around with everything. Like only portal-able surface, every goo type (Maybe gamma in a corner with non-portal-able surface.) and aerial faith plate.
[QUOTE=Feuvert;29328174]great work. I think the first thing we need to do in the Portal 2's hammer is to make a map just to fuck around with everything. Like only portal-able surface, every goo type (Maybe gamma in a corner with non-portal-able surface.) and aerial faith plate.[/QUOTE] I was thinking of making one of these for co-op, but I need to figure out how to make the gels stick onto surfaces first.
[QUOTE=boomer678;29326754]How do you make gels able to be placed on surfaces? They work, but they don't paint onto things. I think its a script or entity that allows it but I can't find it. [img_thumb]http://cloud.steampowered.com/ugc/541766098668858996/F9B7CECAD994855141A8FC061BB975DBCDE7C0BF/[/img_thumb][/QUOTE] You need to understand that the Alien Swarm SDK uses a special compiler that once used, transforms all world brushes into func_detail. Maybe that's the issue? EDIT: I'm not actually sure. I've been trying to remove the -alldetail parameter in the VBSP Compiler (expert mode enabled before compiling) but it still jolts issues.
In the name of science I ask you, what the fuck is this??! [img]http://cloud.steampowered.com/ugc/595809294185623397/3678390ED5E4E9A3BB4F0E1EA9A7A77A77BADEFF/[/img] Having fun with Boomer... I think we broke something.
[QUOTE=Murdoco;29326670]For coop maps both people must have the map. Then in console you type "changelevel mapname" (no quotes of course)[/QUOTE] me and a friend both had the map and it crashed every time i changed the level [editline]21st April 2011[/editline] [QUOTE=Fenriswolf;29327010]I hope some very nice custom maps come out, preferably some with more crushers, gel, funnels, bridges, and panels. Oh god the panels, there was so much potential for absolutely crazy maps with those panels. I hope someone realizes that and makes some really good maps with copious amounts of panels![/QUOTE] i'm hyped for it, i really hope it doesn't take months (like L4D) to get the new hammer/documentation
[QUOTE=Crazy_Farmer;29329586]me and a friend both had the map and it crashed every time i changed the level [editline]21st April 2011[/editline] i'm hyped for it, i really hope it doesn't take months (like L4D) to get the new hammer/documentation[/QUOTE] There's absolutely no reason why it would take longer than a week, but you know Valve...
[QUOTE=Legend286;29329664]There's absolutely no reason why it would take longer than a week, but you know Valve...[/QUOTE] Just look at L4D and L4D 2's SDK... Weren't they release extremely late?
I hope Valve will release the new easier hammer layout when Portal 2 SDK comes.
[QUOTE=Wormy;29329771]I hope Valve will release the new easier hammer layout when Portal 2 SDK comes.[/QUOTE] what new easier hammer layout
[QUOTE=deadoctober;29329786]what new easier hammer layout[/QUOTE] Gabe Newell said they are working on making hammer easier to work with. Even those who make maps at Valve got some problems sometimes. [url]http://www.igniq.com/2011/02/gabe-newell-wants-to-make-source-sdk-less-painful[/url]
[QUOTE=Wormy;29330024]Gabe Newell said they are working on making hammer easier to work with. Even those who make maps at Valve got some problems sometimes. [url]http://www.igniq.com/2011/02/gabe-newell-wants-to-make-source-sdk-less-painful[/url][/QUOTE] the infamous carving tool :v:
[QUOTE=Feuvert;29330285]the infamous carving tool :v:[/QUOTE] Oh god i hate that tool. It just stretches through the entire map sometimes and then i have to remove the whole thing.
holy shit it works! good job man
Awaiting mp_portal2_playground and sp_portal2_playground. Too bad I have no clue how to map.
Sorry, you need to Log In to post a reply to this thread.