Downloading And Hosting A Dedicated Server

From Mozilla Foundation
Jump to: navigation, search

Dedicated servers are now downloaded using SteamCMD. This is SteamCMD, a command-line edition.



You can download it from this page.



It will update the first time you run this program. Log in will be required. You can create an account anonymously by typing the following:



Installing & Updating Garry's Mod Dedicated Server



If you want to specify a download folder then before you update enter this command:



You can then install or update the Garry's Mod Dedicated Server by using the command:



It will slowly download the update.



This will verify your server if you don't want to use the above.



Once it's finished, you can either type quit at console to exit or close the SteamCMD window.



Automated



It's likely that you don't want this to be the case every time you install/update a new server. You don't have to worry, it also supports command lines.



After downloading the server files and installing them, you can now start the dedicated server. You can either run srcds.exe straight or use the command-line interface.



After initial installation



After installing your server, you will need to set up your GSL Token as well as the server's location.



GSLT



Please see Steam Game Server Accounts (GSLT) for help with sv_setsteamaccount. This is mandatory. This is mandatory. Your server's ranking could be affected.



Server operator rules



Please ensure your server is compliant with Server Operator Rules.



Flag of location



Next, set the server's address. This is done using the sv_location console variables. The convar should directly correspond to a flag icon stored in the materials/flags16/ folder, without the .png extension. The current maximum length is 5 characters. The ISO 3166-1 alpha-2 country codes are used for flag icon filenames. (http://www.famfamfam.com/lab/icons/flags/)



For example, sv_location.gb would display the Great Britain flag while sv_location.us would display the USA flag. European Union has a special case: sv_location eu



Steam Workshop



Optionally you can add +host_workshop_collection to your command line to automatically install workshop addons onto your dedicated server. Please see Workshop for Dedicated Servers for help with workshop for dedicated servers.



Peer to Peer



Peer-to-peer mode can be used by dedicated servers. I'm Only Good At One Thing It can be activated by using the command line parameter -p2p. On startup the server will tell you how players can connect to such a server manually.