• Server Hosting Guide
    26 replies, posted
Maybe this will help. We don't need 10 different threads about people asking how to get a server. [release][b]TOC[/b] I - I want a server! II - Dedicated Server install guide III - Setting up sv_downloadurl IV - Administration V - Common problems VI - Further info [/release] [b][u]I want a server![/u][/b] Great! Running a server contributes to the community, and gives you a server to your rules. You have some options: [list] [*]Run it at home – If you have the hardware and the internet connection this is a good choice [*]Buy a game server – Best option for new owners. Most hosts comes with web control panel, some even include a voice server. [*]Buy a Dedicated Server/Collocate – Advanced option, buy a server and set it up yourself. If this is what you’re planning on doing you shouldn’t need this guide. [/list] [b]I’ll run it at home[/b] Cool. There are a bunch of guides and tools for doing this, and if you’re planning to run a CSS or TF2 server the process is nearly the same. [list] [*][url=http://www.facepunch.com/showthread.php?t=581128]Slayers Dedicated Server Installer[/url] - Bunch of batch scripts to install and run the server. Very Simple. [*][url=http://planethalflife.gamespy.com/View.php?view=HL2Guides.Detail&id=4&game=3]Source Dedicated Server Guide[/url] – VERY in depth guide on server installation, administration, and theory. I know it’s written for a CSS server but a lot of it still applies. [*][url=http://wiki.garrysmod.com/?title=Dedicated_Server_Setup]Dedicated Server Setup[/url] - Great buide on the gmod wiki about server setup [*][url]http://portforward.com/[/url] - Website for forwarding ports on your router, select your router then Half Life 2 Steam Server. [*][url=http://www.assembla.com/wiki/show/SrcCon/]SrcCon[/url] My tool for setting up servers (Not exactly done but none the less =]) [/list] Some things to keep in mind are that you NEED to forward ports when behind a router. Also you will need to download a lot of content to the server (My install takes up 5+ GB), and if you have a shit connection that’s not able to handle that, forget about running the server. Check out some theoretical numbers for this [url=http://planethalflife.gamespy.com/View.php?view=HL2Guides.Detail&id=4&game=3#requirements]here[/url]. Your IP address for the server is NOT 192.168.*.* or 10.*.*.*, use [url=http://ipcake.com/]this site[/url] to find it. [b]I’ll buy a game server[/b] Also a good option my friend! Buying a game server means better reliability, but at the cost of the loss of some customization. A good server host should have: [list] [*]A Self-service method for installing addons (FTP, control panel, etc.) [*]A server control panel (i.e. TCAdmin) [*]Obvious and professional support location [*]A good reputation [/list] Our wiki has a nice list of server hosts ([url=http://wiki.garrysmod.com/wiki/?title=Index_of_Gmod_Server_Hosts]list here[/url]) but I personally recommend both [url=http://gmodhosting.com/]GmodHosting.com[/url] and [url=http://www.xenonservers.com/index.php]Xenon Servers[/url]. [b]I’ll buy dedicated server/collocate[/b] Are you still reading this? [b][u]Dedicated server install guide[/u][/b] [url=http://www.facepunch.com/showthread.php?p=16784438#post16784438]See post below[/url] [b][u]Setting up sv_downloadurl[/u][/b] A guide for this can be found on the wiki: [url]http://wiki.garrysmod.com/?title=Dedicated_Server_Setup#sv_downloadurl[/url] [b][u]Administration[/u][/b] When administrating a server it's important to keep in mind the users of the server. A server is only successful if your users are happy. Try not to be god and don't let minges do what they want. At one point or another you'll need to pick administrators to assist in doing this job while you can't. Don't just give the positions to your friends, there's no guarantee that they will do a good job. Find good users who have good manners, and know what they are doing, they will make good admins. [b][u]Common Problems and questions[/u][/b] Some common problems I’ve been seeing [b]Server uses different class tables/Invalid SteamID[/b] Update your server. If you’re using Slayers tool run the scripts for each game you have. [b]How do I install addons?[/b] Go to the orangebox\garrysmod folder, and install them like you would on your own gmod. [b]How do I install other games for my server?[/b] See this section on the wiki: [url]http://wiki.garrysmod.com/?title=Dedicated_Server_Setup#Extra_content[/url] [b][u]Further info[/u][/b] [list] [*][url=http://wiki.garrysmod.com/?title=Admin]Server Administration (GmodWiki)[/url] [*][url=http://wiki.garrysmod.com/?title=Category:Server_Hosting]Server Hosting (GmodWiki)[/url] [*][url=http://forums.srcds.com/]Srcds.com Forums[/url] [*]Server Hosting forum (But I think you’ve found it already :^)) [/list] [i]Did I miss anything?[/i]
[highlight]WIP[/highlight] Let's start with some quick FAQ: [b]Q: Why a dedicated server?[/b] [indent]A: A dedicated gives you a bit more flexibility as far as server hosting goes. It's the standard for professional hosting companies, and can take better advantage of resources than a listen server[/indent] [b]Q: Sounds difficult, is it?[/b] [indent]A: The first time around it is, but after awhile you will become use to it.[/indent] [b]Q: Why not use the one included with steam?[/b] [indent]A: That requires steam loading up GCFs, somewhat slower performance[/indent] [i]Okay what do I need?[/i] Have a look at the requirements on [url=http://planethalflife.gamespy.com/View.php?view=HL2Guides.Detail&id=4&game=3#requirements]this guide[/url] too see if you meet them. Use [url]http://speedtest.net/[/url] to check your bandwidth[/url] Meet them? Cool, you'll need a few things: [list] [*][url=http://storefront.steampowered.com/download/hldsupdatetool.exe]HLDS Update Tool[/url] (Used to download and update the server) [*]Something else? [/list] [b]Downloading[/b] There are install tools such as Slayers Installer, but making the scripts yourself is usally the better choice, since you'll know what everything does, and what to do if it breaks. So let's start by finding a place install the server. If you have a hard drive other than your regular one, using that could give you better performance. For this tutorial I'll be installing it into [i]E:\srcds[/i]. Make sure that it's an empty folder. Trust me, you don't want anything else in it. Let's run the installer that you downloaded earlier, make sure to set the install path to that folder you chose (Again in my case [i]E:\srcds[/i]), chose the right geographic location, and uncheck the readme (You don't need that =]). Right, so go back to that folder and just run HLDS by double-clicking it, and let it update itself (Run it a few times, make sure that it updates completely). [img]http://i41.tinypic.com/2dhag5i.jpg[/img] Let's make a script that will download and update the content for the server. Open up notepad and put this in: [code]hldsupdatetool.exe -command update -game garrysmod -dir "%CD%"[/code] Let's explain what that does. The [i]-command update[/i] tells hlds to update the game, [i]-game garrysmod[/i] tells hlds that it's gmod, and [i]-dir "%CD%"[/i] tell HLDS where the directory of the server is (%CD% is a system variable). Right so save that in the srcds folder (I'm going to refer to the base folder for our install as the srcds from now on) as [i]update.[b]bat[/b][/i]. [img]http://i43.tinypic.com/11t1jfb.jpg[/img] Run the batch file. HLDS will now download the needed components for the dedicated server. Note that this can take from about 30 minutes to 3 hours, all depending on your internet connection. So we wait. [img]http://i41.tinypic.com/2hydrgi.jpg[/img] Oh and if it closes run the script again, it'll pick up were it left off. Keep doing this until it doesn't download anything anymore. [img]http://i39.tinypic.com/2hxa8wm.jpg[/img] If HLDS closing becomes a problem, replace the update the srcipt with this, it'll rerun HLDS when and if it closes. To get out of loop type [b]Ctrl-C[/b] and then [b]Y[/b] and enter. [code]:start hldsupdatetool.exe -command update -game garrysmod -dir "%CD%" goto start[/code] You may also want to install content from other games, to do so add a line to [i]update.bat[/i] for the games you would like to add. [i][u]Counter-Strike: Source[/u][/i] [code]hldsupdatetool.exe -command update -game "Counter-Strike Source" -dir "%CD%" xcopy /E /Y "%CD%\cstrike" "%CD%\orangebox\cstrike\" [/code] [i]Note: The extra copy command is needed.[/i] [i][u]Day of Defeat: Source[/u][/i] [code]hldsupdatetool.exe -command update -game "dods" -dir "%CD%" [/code] [i][u]Half-Life 2: Deathmatch[/u][/i] [code]hldsupdatetool.exe -command update -game "hl2mp" -dir "%CD%" [/code] [i][u]Team Fortress 2[/u][/i] [code]hldsupdatetool.exe -command update -game "tf" -dir "%CD%" [/code] [i][u]SiN Episodes: Emergence[/u][/i] [code]hldsupdatetool.exe -command update -game "sin" -dir "%CD%" [/code] [i][u]The Ship[/u][/i] [code]hldsupdatetool.exe -command update -game "ship" -dir "%CD%" [/code] [i][u]Episode 2/Portal[/u][/i] You'll need to extract files from GCFs to use content for these games, see the wiki about this: [url]http://wiki.garrysmod.com/?title=Dedicated_Server_Setup#Extra_content[/url] After you've added the games you like to the update.bat file, run it again. It will take a very long time if you added a lot of games, so go do something else while you wait. [b]Running your server for the first time[/b] To make sure that your server is installed correctly, we're going to run it and confirm that it works. We're going to create another batch file, this time called [i]run_gmod.bat[/i] . Like you did for update.bat, open up notepad and paste this in it: [code]"%CD%\orangebox\srcds.exe" -console -game garrysmod -maxplayers 5 +hostname "compwhizii guide" -port 27015 +map gm_construct[/code] And save it as [i]run_gmod.bat[/i]. Now double click on the newly created batch file, this will run the server. You should see two command prompts open, like this: [img]http://imgkk.com/i/s3M0uJ.png[/img] The prompt on the top left is for the batch file, while the one on the bottom left is the server console. Confirm that the server is connected but opening up the steam server browser and go to the LAN tab. You should see this: [img]http://imgkk.com/i/r-F8a4.png[/img] Your server is now running. Let's close it and continue setting up the server. Go to the server console and [i]exit[/i] and hit enter. [img]http://imgkk.com/i/ECD6wX.png[/img] Let's start by creating a server configuration file, open up notepad and paste this in: [code] // Name of the server hostname "Compwhizii Guide" // RCON password, make sure this is secure rcon_password "password" // If you would like a passworded server set that here, // otherwise leave it blank sv_password "" // Leave this at zero for a internet server sv_lan 0 // God mode for players sbox_godmode 1 // Player vs Player damage sbox_plpldamage 1 // Noclip enable sbox_noclip 1 // Sandbox maxes sbox_maxprops 100 sbox_maxragdolls 5 sbox_maxvehicles 5 sbox_maxeffects 15 sbox_maxballoons 25 sbox_maxnpcs 5 sbox_maxdynamite 10 sbox_maxlamps 10 sbox_maxlights 10 sbox_maxwheels 50 sbox_maxthrusters 50 sbox_maxhoverballs 50 sbox_maxbuttons 50 sbox_maxemitters 25 sbox_maxspawners 10 sbox_maxturrets 5[/code] [highlight]WIP[/highlight]
-placeholder-
-placeholder and bump-
-placeholder- also good
-placeholder and bump- maybe I can sell this placeholder one day.. Edit one year later: The value of this placeholder has greatly appreciated, so it is now for sale. BIN: $100.
-Holderbump and place- I this guide is o.k
my server problem is so unique that no one can solve it :v: [editline]04:03PM[/editline] Holder of the place
Fuck I don't need that many placeholders.
You have not set sv_minrate... you should set it to atleat 20k to avoid noitceable lag.
I am having some trouble while downloading it stops around 2% usually, ill leave it for a few hours but it ill just stay there, sometimes it stops a t different times. Any ideas why this is happening?
Always stops at 2%? What happens when you rerun it, it just sticks there again? I don't know what to tell you, there might be something wrong with your connection.
bump for knowledge
Bump
er, is he going to finish it? I mean it says WIP, but its been 2 weeks since he's posted and 3 since he's updated the OP...
I'm really busy with other projects right now, but I'll try to find time.
oke problem!!! i did that serverupdate tool thingy already like 3 times and its still not working! i mean. its not updated Different class table how fix? D:\HLServer\HldsUpdateTool.exe -command update -game garrysmod -dir D:\HLServer
[QUOTE=darth-veger;17245719]oke problem!!! i did that serverupdate tool thingy already like 3 times and its still not working! i mean. its not updated Different class table how fix? D:\HLServer\HldsUpdateTool.exe -command update -game garrysmod -dir D:\HLServer[/QUOTE] Sometimes it doesn't like capital letters, try it like this; [code] D:\HLServer\HldsUpdateTool.exe -command update -game garrysmod -dir d:\HLServer\[/code] If that doesn't work, install it like this and copy the files out; [code] D:\HLServer\HldsUpdateTool.exe -command update -game garrysmod -dir .[/code]
I have a problem maybe someone here can help like an admin/mod [url]http://www.facepunch.com/showthread.php?t=820372[/url] it is a GetHSteamUser thing, noone is helping me yet.
can anyone help me with this? **EDIT** nevermind i figured it out
I'm not sure if I should post this here but, I did the guide on port forward for Getting a static IP so I could open ports but When ever I do the steps it never works, Any help?
I've been dreading the day that I would have to see this again. To be honest I've stopped caring about it.
Slayer's Dedicated Server Installer was updated: [url]http://www.facepunch.com/showthread.php?t=940985[/url]
Why the hell did you bump a 5+ old thread?
[QUOTE=Banana Lord.;24761961]Slayer's Dedicated Server Installer was updated: [url]http://www.facepunch.com/showthread.php?t=940985[/url][/QUOTE] thank you for alerting the past of my new thread
Missing out Ep1 content by doing [b]-game episodic[/b] in hldsupdatetool in the first posts.
[QUOTE=SGNinja101;24799126]Missing out Ep1 content by doing [b]-game episodic[/b] in hldsupdatetool in the first posts.[/QUOTE] You can't get EP1 & EP2 thought hldsupdatetool -.- you have to extract their GCF's to actually get them on your server.
Sorry, you need to Log In to post a reply to this thread.