DaNNy Administrator
Browser : Bara Warn : Mesaje : 981 Euro Xzone : 11525 Reputatie : 2 Data nasterii : 17/02/1998 Data de inscriere : 18/03/2011 Varsta : 26 Localizare : In Inima Ta
| Subiect: [MF] Portal 2 Co-Op LAN Loader Mier Mai 18, 2011 2:42 pm | |
| I've written this loader (batch file) to help everyone that's having issues getting Portal 2 Co-Op to work. just put the batch file in your Portal 2 base folder, get on LAN with your friends (use a VPN for internet play) and start the loader. I recommend you use tunngle. google it. it's a great VPN and it's really easy to use. remember to open port 11155 UDP (default port). remember to keep your game up to date. if you want to have custom ingame nicknames, use skidrow's update 1 and later and edit the skidrow.ini file in your game base folder. Download Link: - Cod:
-
http://www.mediafire.com/?aa8f02wdzcbii4k Source Code: - Cod:
-
@echo off
title Portal 2 Co-Op Loader by TOne
:tip cls echo --------------- echo --- BRO TIP --- echo --------------- echo. echo F2 Key Console echo Keys 1 - 5 Change chapter (use only if you're the host) echo. echo Remember to keep your game up to date. echo. pause
:menu cls echo ----------------------------- echo --- Portal 2 Co-Op Loader --- echo ----------------------------- echo 1. Host echo 2. Client echo 3. Help (How to use) echo 4. How this loader works. echo 0. Exit echo. set input=nothing set /p input=Choice: if %input%==1 goto host if %input%==2 goto client if %input%==3 goto help if %input%==4 goto howItWorks if %input%==0 goto end goto menu
:howItWorks cls echo -------------------- echo --- How It Works --- echo -------------------- echo. echo If you're a sucker for details, this is what you want to know: echo This loader will write some lines at the end of config.cfg file, which is located in the portal2\cfg\ directory. echo These lines are: echo bind f2 "toggleconsole" echo bind 1 "changelevel map mp_coop_start" echo bind 2 "changelevel mp_coop_fling_3" echo bind 3 "changelevel mp_coop_wall_intro" echo bind 4 "changelevel mp_coop_tbeam_redirect" echo bind 5 "changelevel mp_coop_paint_come_along" echo. echo If you've already used this loader, you probably have these lines already written in there, echo but no worries. They'll be written at the end of the file, but it's all the same so... echo. echo The first keybind is used to access the developer console with the F2 key. echo Now, if you have an US layout keyboard you don't really need this keybind, but since not everyone has one... echo About the changelevel binds. These allow you, as the host, to change to those levels in the game. echo I didn't pick up random levels. These are the first levels of every chapter. These are useful because the game won't change chapters by itself. echo At the end of every chapter you'll wind up in a level known as The Hub. When this happens, just tap the key echo that corresponds to the chapter you want to play next. Just keep track of the chapter you're playing and do your math :P echo. pause goto menu
:help cls echo ------------ echo --- Help --- echo ------------ echo. echo This is how you play Portal 2 Co-Op on LAN (or VPN like tunngle): echo (Note that it must be done in this order. echo The client will search for the server BEFORE it is even created) echo Also put this loader in the Portal 2 folder, where the portal2.exe file echo is located or it won't work. echo. echo (Client) echo 1- The host tells the client their IP echo 2- Using this loader, go to the Client menu and types in the host's IP. echo The game will launch and start looking for a server on that IP. echo. echo (Host) echo 3- While the client is looking for a server on your IP, using this loader, echo go to the Server menu and select the chapter you want start at. echo When your game starts, the client will find a server on your IP and the fun begins :D echo. echo 1/2 echo. pause
cls echo ------------ echo --- Help --- echo ------------ echo. echo Now, because the game doesn't change chapters automatically at the end of the chapters, echo (at the end of every chapter you have to insert a disc echo in a projector and GlaDOS will dispose of you) echo the HOST must change chapters manually. To do that, he can type in changelevel mapname echo OR use the keys from 1 to 5 to change to the respective chapter echo (spoiler: there are 5 chapters :P) echo This is only possible because of this loader. echo. echo Note that everyone should have some ports open (if they use a router or DLS modem). echo For tunngle, the default port is 11155 UDP. echo If you're having trouble, open the game's default port. It's 27015 UDP. echo If you don't know how to do this, check out versatile's tutorial: echo http://www.youtube.com/watch?v=S8BBdJ05DVw echo. echo or search for "port forward" online. echo. echo 2/2 echo. pause goto menu
:host cls echo ------------ echo --- Host --- echo ------------ echo Chapter (1-5) echo. set chapter=nothing set /p chapter=Choice: set mapName=nothing if %chapter%==1 goto chap1 if %chapter%==2 goto chap2 if %chapter%==3 goto chap3 if %chapter%==4 goto chap4 if %chapter%==5 goto chap5 goto host
:hostStart >>portal2\cfg\config.cfg ECHO bind f2 "toggleconsole" >>portal2\cfg\config.cfg ECHO bind 1 "changelevel map mp_coop_start" >>portal2\cfg\config.cfg ECHO bind 2 "changelevel mp_coop_fling_3" >>portal2\cfg\config.cfg ECHO bind 3 "changelevel mp_coop_wall_intro" >>portal2\cfg\config.cfg ECHO bind 4 "changelevel mp_coop_tbeam_redirect" >>portal2\cfg\config.cfg ECHO bind 5 "changelevel mp_coop_paint_come_along" echo Host starting at chapter %chapter% timeout /t 2 > nul start portal2.exe -console +map mp_coop_%mapName% goto end
:chap1 set mapName=start goto hostStart
:chap2 set mapName=fling_3 goto hostStart
:chap3 set mapName=wall_intro goto hostStart
:chap4 set mapName=tbeam_redirect goto hostStart
:chap5 set mapName=paint_come_along goto hostStart
:client >>portal2\cfg\config.cfg ECHO bind f2 "toggleconsole" >>portal2\cfg\config.cfg ECHO bind 1 "changelevel map mp_coop_start" >>portal2\cfg\config.cfg ECHO bind 2 "changelevel mp_coop_fling_3" >>portal2\cfg\config.cfg ECHO bind 3 "changelevel mp_coop_wall_intro" >>portal2\cfg\config.cfg ECHO bind 4 "changelevel mp_coop_tbeam_redirect" >>portal2\cfg\config.cfg ECHO bind 5 "changelevel mp_coop_paint_come_along" cls echo -------------- echo --- Client --- echo -------------- set hostip=nothing set /p hostip=Host Ip: echo Starting... timeout /t 2 > nul start portal2.exe -console +connect %hostip%
:end cls echo Thank you for using this loader by TOne timeout /t 2 > nul enjoy. PS: if you have any questions on how to use the loader, please refere to the help section on the main menu. if that doesn't solve your problems, feel free to ask me :P EDIT: PPS: if you have a Portal 2 topic in the forums, feel free to grab my loader and pass it around. i'd apreciate it very much. | |
|