Installing a dedicated server

… without any silly tools.



TF2 (for content)
	hldsupdatetool.exe -command update -game tf -dir .
CS:S (for content)
	hldsupdatetool.exe -command update -game "counter-strike source" -dir ./orangebox
**Note: Apparently gmod doesn't find non-orangebox games in the previous directory, so you need to install CS:S again here.**
Gmod
	hldsupdatetool.exe -command update -game garrysmod -dir .


  • When done, make a batch file in your C:\SRCDS\orangebox folder called “startserver.bat” or similar, then edit this.
  • Inside, you should put something like this:


srcds.exe -console -game garrysmod -port 27015 +maxplayers 6 +map gm_construct +sv_gamemode sandbox +sv_defaultgamemode sandbox


You can make different batch files for different maps, gamemodes, ports and so on.

http://xs123.xs.to/xs123/08035/desktop537.png

That’s it! It’s not difficult or long at all. You install mods and configure it as you would any other server.

Server.cfg

This is also really easy, it allows you to set limits etc.
Before we begin note that you can do any of this through the batch file too.



srcds.exe -console -game garrysmod -port 27015 +maxplayers 6 +map gm_construct +sv_gamemode sandbox +sv_defaultgamemode sandbox +sbox_maxprops 10 +sbox_maxnpcs 5


Make a file called server.cfg in C:\SRCDS\orangebox\garrysmod\cfg

Inside, put commands to be run in sequence each time a map is loaded. Here’s mine for example:



hostname "Catdaemon's test server"

sbox_maxprops 25
sbox_maxnpcs 0
sbox_maxwheels 4
sbox_maxthrusters 8
sbox_maxbuttons 6
sbox_maxeffects 4
sbox_maxemitters 2
sbox_maxragdolls 0
sbox_maxvehicles 0

sbox_godmode 0
sbox_plpldamage 0

sv_downloadurl "snip"
net_maxfilesize 64


Don’t forget the rates for server.cfg.

Also, anyone using ServerChecker or the SRCDS FPS Booster can up their server’s FPS to 512 by putting “fpsmax 700” in server.cfg.

You can also get 512 FPS by running Windows Media Player. It raises your PC’s clockrate.

Yep, the SRCDS FPS Booster and ServerChecker both have the same effect as that. However, using all three at the same time won’t work.

sorry to be nooby but, what is a command prompt?

Well, I think this beats Armpit’s.

I think this is the first time that it’s working.

Edit:

when i click “startserver.bat” it just flashes up really fast also i can’t find "srcds.exe.
"

I ended up hating the console version. I don’t care if the gui uses 5 more MB ram. I think it’s a pain typing stuff into the command prompt. And when you scroll your whole server will pause itself until you release the scroller thing. (I’ve had timeouts :v:)

The gui is much more user friendly anyway. To use the guy, simply remove “-console” from your shortcut.

Edit:

By default, the gui doesn’t output everything the console does. And it doesn’t show the startup. :frowning:

But there’s a couple of commands you can put in your auto execute cfg to make it output stuff such as lua errors and other things.

For those who do not know the advantages/disadvantages of using the command prompt over a GUI:

  • Your server can run on srcds even when steam is offline
  • Your server will chew less resource on shit like the steam dedicated server
  • If you keep your computer on non-stop for a month, you could rent out a server on that computer to somebody for a month then never touch it till the month is over, and get some cash from them
  • Steam dedi sucks
  • You need to update your server manually every time the game is updated or nobody can join the server
  • Some people get confused fucking about with admin, port forwarding, firewalls, server not showing on internet servers etc. but this happens on the steam dedi too

Here’s what I do when I’m bored:

http://img176.imageshack.us/img176/1521/101j07f7rv986amss9.jpg

http://img20.imageshack.us/img20/3687/0mrewp633u0onwjyu2.jpg

http://img20.imageshack.us/img20/2097/db9232l6l6n11n1cq9.jpg

Edit:

What

You don’t need steam to run your dedicated server in gui mode at all. Just remove the -console part from your shortcut or bat file and that’s it.

Edit:

Unless you’re installing your server with steam. In this tutorial, you’re not.

Edit:

If you’re not renting a server (doing this on your own computer) you can speed up the whole process by extracting your entire TF2 gcf file. For information on how to do that, see this thread http://forums.facepunchstudios.com/showthread.php?t=480444

But instead of doing it with ep2 and portal, you do it with tf2. It should save you some time.

Yeah I was comparing using srcds to the steam dedicated server tool :slight_smile:

I also highly recommend ServerDoc for hosting dedicated servers.

A very useful tool that I and my gameserver hoster uses.

Visit the site for yourself: http://serverdoc.com/

ServerDoc is one of the MOST useful server program I have ever used. Recommend it to anyone.

Do you need orange box too host a GMOD server?

Yes and no. No, it’s not crucial; yes, it’s nice to have the content.

sight I give up, Have no clue what I am doing in command prompt :frowning: Wish it was it had step by step pictures :frowning:

It’s really easy through command prompt though… :frowning:

Nevermind, I am using “Public_installer” I think I know what (it) I am doing.

The cheap GUI installer? D: