Portal 2 with Alien Swarm Authoring Tools: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 7: Line 7:
The [[Portal 2 Authoring Tools]] has released, however it is currently in beta. For those who would rather use the [[Alien Swarm SDK]] work-around, the instructions are listed below.
The [[Portal 2 Authoring Tools]] has released, however it is currently in beta. For those who would rather use the [[Alien Swarm SDK]] work-around, the instructions are listed below.


{{note|The directories listed below are shortened for brevity. Each directory is assumed to be in your default Steam directory (e.g. C:\Program Files\Steam)}}
{{note|The directories listed below are shortened for brevity. Each directory is assumed to be in your default Steam directory (e.g. ''C:\Program Files\Steam'').}}


== Tutorial ==
== Adding Portal 2 to SDK ==
#Download, install, and run [[Alien Swarm SDK]].
#Download, install, and run [[Alien Swarm SDK]].
#Double click ''Edit Game Configurations''
#Double click ''Edit Game Configurations''.
##Under '''Current Game Configuration'', click ''Add''
##Under '''Current Game Configuration'', click ''Add''.
##Under ''Name'' in the ''Edit Configuration'' window, type '''Portal 2'''
##Under ''Name'' in the ''Edit Configuration'' window, type '''Portal 2'''
##Under ''Directory'', type ...\steamapps\common\portal 2\portal2
##Under ''Directory'', type ''...\steamapps\common\portal 2\portal2''.
##Click OK
##Click OK.
#Locate and edit [[Portal 2]]'s '''gameinfo.txt''' file (Default: ...\steamapps\common\portal 2\portal2)
 
##Scroll to the bottom and look for ''SearchPaths''. Change it to look like:
== Configuring Hammer ==
##:<code>SearchPaths
#Search for 4 files in ''...\steamapps\common\portal 2\bin'' - '''base.fgd''', '''halflife2.fgd''', '''portal.fgd''', '''portal2.fgd'''.
##:{
##Rename '''base.fgd''' to something like '''portal2base.fgd'''.
##::Game |gameinfo_path|.
##Copy all files to ''...\steamapps\common\alien swarm\bin''.
##::"Game" "platform"
##Open '''halflife2.fgd''' and '''portal2.fgd''' and change ''@include "base.fgd"'' to ''@include "portal2base.fgd"''.
##:}</code>
#Run Hammer.
##Save and exit.
##Click on ''Tools'' and ''Options''.
#Launch the [[Authoring_Tools/SDK_(Alien_Swarm)|Alien Swarm Authoring Tools]] again and select Portal 2 in the "Current Game" drop down box and launch [[Hammer]].
##Remove '''swarm.fgd''' and add '''portal2.fgd'''.
#:{{note|You should see two "Search Path (GAME)" lines appear in the Messages dialog when Hammer starts:<br />Search Path (GAME): <code>...\steamapps\common\portal 2\portal2</code><br />Search Path (GAME): <code>...\steamapps\common\alien swarm\platform</code>}}
##Change ''Game Executable Directory'' to '''$SteamUserDir\portal 2'''.
#Press F9 to open the ''Run Map'' window, then select Expert.
##Go to ''Build Programs'' tab and change ''Game Executable'' to '''$SteamUserDir\portal 2\portal2.exe'''.
##Change the parameters of $bsp_exe to <code>-game $gamedir $path\$file</code>
 
{{note|Remember that default Swarm configuration uses vbsp to change all brushes into func_details, so tie the sealing parts to func_brush and name it ''structure_seal'', or delete -alldetail from $bsp_exe.}}


[[Category:Portal 2 Level Design]]
[[Category:Portal 2 Level Design]]
[[Category:Portal 2 Tutorials]]
[[Category:Portal 2 Tutorials]]

Revision as of 09:51, 6 March 2012

Stub

This article or section is a stub. You can help by expanding it.

Template:Otherlang2

The Portal 2 Authoring Tools has released, however it is currently in beta. For those who would rather use the Alien Swarm SDK work-around, the instructions are listed below.

Note.pngNote:The directories listed below are shortened for brevity. Each directory is assumed to be in your default Steam directory (e.g. C:\Program Files\Steam).

Adding Portal 2 to SDK

  1. Download, install, and run Alien Swarm SDK.
  2. Double click Edit Game Configurations.
    1. Under 'Current Game Configuration, click Add.
    2. Under Name in the Edit Configuration window, type Portal 2
    3. Under Directory, type ...\steamapps\common\portal 2\portal2.
    4. Click OK.

Configuring Hammer

  1. Search for 4 files in ...\steamapps\common\portal 2\bin - base.fgd, halflife2.fgd, portal.fgd, portal2.fgd.
    1. Rename base.fgd to something like portal2base.fgd.
    2. Copy all files to ...\steamapps\common\alien swarm\bin.
    3. Open halflife2.fgd and portal2.fgd and change @include "base.fgd" to @include "portal2base.fgd".
  2. Run Hammer.
    1. Click on Tools and Options.
    2. Remove swarm.fgd and add portal2.fgd.
    3. Change Game Executable Directory to $SteamUserDir\portal 2.
    4. Go to Build Programs tab and change Game Executable to $SteamUserDir\portal 2\portal2.exe.
Note.pngNote:Remember that default Swarm configuration uses vbsp to change all brushes into func_details, so tie the sealing parts to func_brush and name it structure_seal, or delete -alldetail from $bsp_exe.