Portal 2 with Alien Swarm Authoring Tools

From Valve Developer Community
Jump to navigation Jump to search

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)

Tutorial

  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
  3. Locate and edit Portal 2's gameinfo.txt file (Default: ...\steamapps\common\portal 2\portal2)
    1. Scroll to the bottom and look for SearchPaths. Change it to look like:
      SearchPaths
      {
      Game |gameinfo_path|.
      "Game" "platform"
      }
    2. Save and exit.
  4. Launch the Alien Swarm Authoring Tools again and select Portal 2 in the "Current Game" drop down box and launch Hammer.
    Note.pngNote:You should see two "Search Path (GAME)" lines appear in the Messages dialog when Hammer starts:
    Search Path (GAME): ...\steamapps\common\portal 2\portal2
    Search Path (GAME): ...\steamapps\common\alien swarm\platform
  5. Press F9 to open the Run Map window, then select Expert.
    1. Change the parameters of $bsp_exe to -game $gamedir $path\$file