Is it possible to join a Gmod Server with a .bat file?
2 replies, posted
Hey Guys,
I thought this would be the best thread for this so i´ll present you my problem here.
I tried to programm this Batch File to connect to my Server. I didn´t collect that much experiences about this
so I am looking for some help here.
The file has to:
-start Gmod
-connect to IP
-type in password
I already have a prototype of this, but it doesn´work (anyways i wouldn´t ask :D)
It already can start the garrys mod client, but it doesn´t connect to my Server.
-------------------------------------------------------------------------------------------------------------------
set gmodpath=C:\Program Files (x86)\Steam\SteamApps\common\GarrysMod
::
@echo off
echo ==================================
echo Server name
echo ==================================
echo.
echo.
echo Server Password is needed:
set /p pw=Type in here:
echo JOINING SERVER IN .....
timeout 3
====================================================================
:: DO NOT EDIT ANYTHING BELLOW THIS LINE OR YOU WILL BREAK THIS FILE ====================================================================
::
::
set IP=25.11.11.1
set PORT=27015
start "" "%gmodpath%\hl2.exe" -game=terrortown -connect=%IP% -port=%PORT% -password=%pw%
@exit
------------------------------------------------------------------------------------
Thank your for help
Floppi
explorer.exe steam://connect/ip:port/
try that one
[QUOTE=Leystryku;49515372]explorer.exe steam://connect/ip:port/
try that one[/QUOTE]
You don't need explorer.exe, just
[code]
start steam://connect/ip:port/
[/code]
Sorry, you need to Log In to post a reply to this thread.