Garry's Mod Server Configuration Guide
Detailed explanation of Garry’s Mod server configuration files and settings
Introduction to Garry’s Mod Server Configuration
Properly configuring your Garry’s Mod server is essential for creating the best experience for your players. This guide walks you through the various configuration files and options available on the Wasabi Hosting Gamepanel.
Core Configuration Files
Garry’s Mod uses several key configuration files:
Basic Server.cfg Setup
The server.cfg
file is the primary configuration file for your Garry’s Mod server. Here’s a basic template:
Always change the default rcon_password! Using a default or easy-to-guess password exposes your server to potential hijacking.
Workshop Configuration
To use Workshop content on your Wasabi Hosting server:
- Create a workshop collection on Steam
- Add the collection ID to your Gamepanel startup parameters:
- Additionally, you can create a
workshop.vdf
file in the/garrysmod/settings/
directory:
Wasabi Hosting provides optimized networks for workshop downloads, but FastDL is still recommended for frequently used content.
FastDL Setup
FastDL allows players to download custom content much faster:
Create a web server
Set up a web server with sufficient storage space
Compress content
Use bzip2 to compress resource files:
Upload compressed files
Upload the compressed files to your web server, maintaining the folder structure
Configure FastDL
Add to your server.cfg:
Gamemode Configuration
Each gamemode has its own configuration files and options:
DarkRP settings are managed in these files:
/garrysmod/addons/darkrpmodification/lua/darkrp_config/settings.lua
- General settings/garrysmod/addons/darkrpmodification/lua/darkrp_config/disabled_defaults.lua
- Features to disable/garrysmod/addons/darkrpmodification/lua/darkrp_customthings/jobs.lua
- Custom jobs/garrysmod/addons/darkrpmodification/lua/darkrp_customthings/shipments.lua
- Custom shipments/garrysmod/addons/darkrpmodification/lua/darkrp_customthings/entities.lua
- Custom entities
For large DarkRP servers, consider using a properly configured MySQL database instead of SQLite for better performance with many players.
Admin Mod Configuration
MySQL Configuration
Many addons (especially DarkRP) support MySQL databases:
Store database passwords securely and never share your database credentials with anyone you don’t trust completely.
Content Mounting
To use content from other Source games (CS:S, HL2, etc.), configure the mount.cfg
file:
On a Gamepanel, you’ll need to use the SteamCMD to download this content to your server first.
Startup Parameters
Configure these in the Gamepanel’s Startup tab:
RCON Configuration
Remote Console (RCON) allows you to administer your server remotely:
-
Set a strong RCON password in server.cfg:
-
Connect to your server’s RCON using:
- An RCON tool like HLSW or SourceAdmin
- The in-game console with
rcon_password
followed byrcon
commands - Gamepanel’s built-in console
RCON passwords are transmitted in plain text unless you’re using a secure connection. Always use strong, unique passwords.
Map Rotation
Configure map rotation in your server.cfg:
Then create a mapcycle.txt
file in the /garrysmod/cfg/
directory:
Server Logging
Configure logging to track server activity:
Logs are stored in /garrysmod/logs/
Optimization Configurations
Use these settings for better server performance:
DDoS Protection
Configure basic DDoS protection:
For more comprehensive DDoS protection, consider using our Firewall Manager.
Gamemode-Specific Configuration Examples
Source Engine Mounting (Optional)
Mount content from other Source games for additional assets:
-
Ensure the content is installed on your server
On a Gamepanel, you’ll need to use the SteamCMD to download this content to your server first.
-
Configure mount points in
mount.cfg
-
Add these to your startup parameters
Configure these in the Gamepanel’s Startup tab:
Server Monitoring
Monitor your server’s health using:
- Console log analysis
- Third-party monitoring tools
- Resource utilization graphs
- Gamepanel’s built-in console
By following this configuration guide, you can create a well-optimized and properly configured Garry’s Mod server on Wasabi Hosting. If you need further assistance, contact our support team.