How to make a Garry's Mod server?
Steps:
- Download SteamCMD (Download below)
- Extract SteamCMD into a separate folder on you C:\ Drive
- Run SteamCMD and let it update and check files
- Type "login anonymous"
- Create another folder on C: Drive and call it Gmod
- Once able to type again enter "force_install_dir "C:\Gmod" "
- To install Gmod server type "app_update 4020" and let download (may take a while)
- Validate the server by typing "app_update 4020 validate" (may take a while)
- Navigate to the Gmod folder and close down steam cmd.
- Inside the Gmod folder go to "garrysmod/cfg" and open server.cfg and enter the code and edit it to your preference.
- "hostname "My Garry's Mod Sandbox Server"
"rcon_password "serveradmin"
"sv_password "cupcake"
"sbox_noclip "1" //Enables noclip
"sbox_maxprops "500"
"sbox_maxeffects "15"
"sbox_maxemitters "13"
"sbox_maxthrusters "30"
"sbox_maxsents "35"
//etc.
"sbox_playershurtplayers "1" //Enables PVP Damage
- Navigate back to Gmod folder and create a new text document and name it Start
- Open the text document and enter the code below
@echo off
cls
echo Protecting srcds from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title srcds.com Watchdog
:srcds
echo (%time%) srcds started.
start /wait srcds.exe -console -game garrysmod +map de_dust +maxplayers 16
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds
13, Edit the code to run how you want such as players, map and game
14. Save the file as Start.bat
15. Run the file and your server should be operational.
Now all you have to do is change all your settings to your preference, add addons (tutorial soon) and port foward so others can connect.
Downloads/Links:
Codes required:
CFG Code:
"hostname "My Garry's Mod Sandbox Server"
"rcon_password "serveradmin"
"sv_password "cupcake"
"sbox_noclip "1" //Enables noclip
"sbox_maxprops "500"
"sbox_maxeffects "15"
"sbox_maxemitters "13"
"sbox_maxthrusters "30"
"sbox_maxsents "35"
//etc.
"sbox_playershurtplayers "1" //Enables PVP Damage
Start.bat Code:
@echo off
cls
echo Protecting srcds from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title srcds.com Watchdog
:srcds
echo (%time%) srcds started.
start /wait srcds.exe -console -game garrysmod +map de_dust +maxplayers 16
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds