S&box Wiki

Revision Difference

Dedicated_Server#546537

<cat>Play.Intro</cat> <title>Dedicated Servers</title>⤶ ⤶ <note>There's no Linux server build yet, there will be one in the future.</note> # Downloading⤶ ⤶ You can use [SteamCMD](https://developer.valvesoftware.com/wiki/SteamCMD) to download the dedicated server.⤶ ⤶ With steamcmd setup properly, you can run:⤶ <title>Hosting a s&box Dedicated Server</title>⤶ ⤶ <note>Currently a s&box server build is in **heavy delelopment** and many basic features not implemented yet (lobby, commands, etc).</note> # Windows⤶ ⤶ ## SteamCMD⤶ ⤶ Dedicated servers can be downloaded using SteamCMD. This is a command line version of Steam.⤶ ⤶ You can download it [from this official page](https://developer.valvesoftware.com/wiki/SteamCMD).⤶ ⤶ The first time you run it it will update and you will be left at a Steam console. You will want to log in. You can log into an anonymous account by typing:⤶ ⤶ ⤶ ```⤶ login anonymous⤶ ```⤶ ⤶ ⤶ ⤶ ## Installing s&box Dedicated Server⤶ ⤶ If you want to specify a download folder then before you update enter this command (default is *steamcmd run location*\steamapps\common\):⤶ ⤶ ⤶ ```⤶ force_install_dir c:\sbox_server⤶ ```⤶ ⤶ You can then install or update the Garry's Mod Dedicated Server by using the command:⤶ ⤶ ```⤶ app_update 1892930⤶ ```⤶ ⤶ It will slowly download or update.⤶ ⤶ If you wish to verify your server, enter this instead of the above:⤶ ``` steamcmd +login anonymous +force_install_dir c:\steamcmd\sboxserver +app_update 1892930 validate +quit⤶ app_update 1892930 validate⤶ ```⤶ ⤶ Once it's done you can type 'quit' at the console to exit or just close the SteamCMD window.⤶ ⤶ ⤶ ⤶ ## Automation⤶ ⤶ You probably don't want to do that every time you want to install/update a server. Don't worry - it supports bat scripts too.⤶ ⤶ ⤶ ```⤶ steamcmd +force_install_dir c:\sbox_server +login anonymous +app_update 1892930 validate +quit⤶ ``` ⤶ ⤶ # Launching ⤶ Mainly the same as launching any other source server, specify the org+ident for game and map and it'll all download automatically.⤶ ⤶ It's mostly the same as launching any other Source 1 game-servers, specify options for game (gamemode, map, maxplayers, etc.) and all content will be downloaded automatically:⤶ ``` sbox-server.exe +gamemode facepunch.sandbox +map baks.office ``` ⤶ ⤶ ⤶ # Linux⤶ ⤶ <note>There's no Linux server build yet, there will be one in the future.</note>