

These aliases create an automatic toggle for remapping your keyboardĪlias "togglekeyboard" "sv_cheats 1 key_remap_keyboard_for_player1"Īlias "key_remap_keyboard_for_player1" "in_forceuser 0 alias togglekeyboard key_remap_keyboard_for_player2 echo Keyboard remapped to Player 1"Īlias "key_remap_keyboard_for_player2" "in_forceuser 1 alias togglekeyboard key_remap_keyboard_for_player1 echo Keyboard remapped to Player 2" These aliases create an automatic toggle for remapping your controllerĪlias "remap1to2" "joy_remap_player_for_controller1 2 alias togglecontroller remap2to1 echo Xbox 360 controller 1 remapped to Player 2"Īlias "remap2to1" "joy_remap_player_for_controller1 1 alias togglecontroller remap1to2 echo Xbox 360 controller 1 remapped to Player 1" This automatically enables console so you don't have to
#PORTAL 2 PC COOP HOW TO#
None of your text editing programs probably know how to open it, but once you double-click it select " Open with notepad". If you rename it to anything else, it is not automatically executed! Hence the name "autoexec". Make sure your folder settings is set to show file extensions. Rename the file to autoexec.cfg and remove the. Text files automatically have the extension. Press right mouse button while in the cfg folder, left click on New ("uusi" in finnish) and press Text file (again "tekstitiedosto" in finnish). To create the file you need to create a new text file like this:
#PORTAL 2 PC COOP INSTALL#
In Linux or iOS the default install directories are found in Steam Support.
#PORTAL 2 PC COOP WINDOWS#
Take note of the directory: it's fairly similar in every Windows system. The most preferable way is to create a new file called autoexec.cfg in the cfg folder in your Portal 2 install directory.

You can enter noclip into the console, clip through the door, and then type noclip again to disable the cheat (unless there's a way to do it that I overlooked).Creating an autoexec.cfg otherwise known as user configuration IIRC there's one map in Chapter 5 (chamber 7 maybe?) that's impossible this way because it requires two players to take action at the same time. This sometimes breaks single-player mode, so make sure to enter in_forceuser 0 and unbind z when you're done. Then press Z to switch keyboard and mouse control among the two players. If you still want to do it for some reason, enter the following commands into the console, pressing enter after each one: bindtoggle 'z' 'in_forceuser' <- You can set Z to any key you want. If you have zero xbox controllers and/or nobody to play with, you can still play co-op with a "pass and play" style, but it's super, super awkward. iirc there's some minor glitches involving the gesture wheel and the ping tool, but in split screen you probably won't need to ping anyways (because you're sitting next to each other) No controllers / No friends Player 1 on the left/top uses the keyboard, and player 2 on the right/bottom uses the controller. Then go to the co-op menu and press X on the controller, and it should work - if not, type ss_map mp_coop_start in the console. With just one x360 controller, there's a little trick you have to do though - go to Options -> Keyboard -> Developer Console and turn it ON, then press the '~' key and paste in this: joy_remap_player_for_controller1 2Īnd press Enter. Haven't tried this, I don't own two controllers. (If that doesn't work, switch controllers with your friend). Just go to the co-op menu and press X on Player 2's controller. It works plug-and-play with two x360 controllers I think, no setup required.
