• Command line and Gmod
    6 replies, posted
Anyone know how to launch gmod and connect to a server (by IP) all from the command line?
By command line do you mean Windows CMD or the Gmod console? Because if you mean the Gmod console, just type in "connect <[i]server ip[/i]>" [editline]11:11PM[/editline] For windows cmd, type in "cd C:\Program Files\Steam" or whatever the filepath is for your steam, then hit return. Then type in "steam.exe -applaunch 4000 [del]-connect <[i]server ip[/i]>[/del]" without the quotes. [editline]23:15[/editline] Scratch that, the -connect thing doesn't work. But launching the game does.
Cheers, I meant windows cmd, and i tried the -connect thing too :/ is there any way for me to simulate a shortcut to 'steam://connect <ip>?
I'm not sure you can do that with the steam:// protocol.
the steam://connect/<ip> works when it is made as a shortcut (i've been using it to connect for ages) but it won't work in command line :( EDIT: it's 'steam://connect/<ip>' sorry about that
Any reason you need it in a command line? Also this worked for me: [code] cd "C:\Program Files\Steam\SteamApps\username\garrysmod" hl2 -game garrysmod +connect ip:port [/code]
[QUOTE=UberMensch;21023272]Any reason you need it in a command line? Also this worked for me: [code] cd "C:\Program Files\Steam\SteamApps\username\garrysmod" hl2 -game garrysmod +connect ip:port [/code][/QUOTE] Thank you very much, good sir. Works fine now :) thanks
Sorry, you need to Log In to post a reply to this thread.