diff --git a/modules/billing/docs/garrysmod/index.php b/modules/billing/docs/garrysmod/index.php index 86c25e3f..af99aa6d 100644 --- a/modules/billing/docs/garrysmod/index.php +++ b/modules/billing/docs/garrysmod/index.php @@ -1,68 +1,643 @@ -
Garrys Mod is available for hosting on our platform. This guide covers the basics of setting up and managing your Garrys Mod server.
- -27015- Note: When running on a VPS or dedicated server, you can use the default port or configure a custom port in your server configuration file. -
+ -To create a Garrys Mod server:
+27015/UDPGarry's Mod servers require specific ports for proper operation:
+ +| Port | +Protocol | +Purpose | +Required | +
|---|---|---|---|
| 27015 (configurable) | +UDP | +Game port | +Yes | +
| 27015 (same as game port) | +UDP | +Query/RCON port | +Yes | +
| 27005 | +UDP | +Client port | +No | +
| 26900 | +UDP | +Steam master server updater | +No | +
| 27020 | +UDP | +SourceTV port (if enabled) | +No | +
UFW (Ubuntu/Debian):
+sudo ufw allow 27015/udp comment 'GMod Game/Query Port'
+sudo ufw allow 27020/udp comment 'GMod SourceTV'
+sudo ufw allow 26900/udp comment 'Steam Master Server'
+FirewallD (CentOS/RHEL):
+sudo firewall-cmd --permanent --add-port=27015/udp
+sudo firewall-cmd --permanent --add-port=27020/udp
+sudo firewall-cmd --permanent --add-port=26900/udp
+sudo firewall-cmd --reload
+iptables:
+iptables -A INPUT -p udp --dport 27015 -j ACCEPT
+iptables -A INPUT -p udp --dport 27020 -j ACCEPT
+iptables -A INPUT -p udp --dport 26900 -j ACCEPT
+sudo apt update
+sudo apt install lib32gcc1 steamcmd # Debian/Ubuntu
+# OR for manual install:
+mkdir ~/steamcmd && cd ~/steamcmd
+wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
+tar -xvzf steamcmd_linux.tar.gz./steamcmd.sh
+login anonymous
+force_install_dir ./gmod-server
+app_update 4020 validate
+quit./steamcmd.sh
+login anonymous
+force_install_dir ./css-content
+app_update 232330 validate
+quit
+
+# Create symbolic link to CSS content
+ln -s /path/to/css-content/cstrike /path/to/gmod-server/garrysmod/addons/cstrikeAfter your server is created, you can configure it through the control panel:
+C:\steamcmd\steamcmd.exe and execute:
+ login anonymous
+force_install_dir C:\gmod-server
+app_update 4020 validate
+quitCreate or edit garrysmod/cfg/server.cfg:
// Server Identity
+hostname "My Awesome Garry's Mod Server"
+sv_password "" // Leave blank for public server
+sv_steamgroup "" // Steam Group ID (optional)
+
+// Server Rates
+sv_minrate 10000
+sv_maxrate 30000
+sv_minupdaterate 20
+sv_maxupdaterate 66
+sv_mincmdrate 20
+sv_maxcmdrate 66
+
+// Server Region
+sv_region 1 // 1 = East Coast USA
+
+// Server Visibility
+sv_lan 0 // 0 for internet, 1 for LAN only
+sv_logbans 1
+sv_logecho 1
+sv_logfile 1
+sv_log_onefile 0
+
+// RCON (Remote Console)
+rcon_password "your_secure_password"
+sv_rcon_banpenalty 0
+sv_rcon_maxfailures 5
+
+// Contact & Tags
+sv_contact "admin@example.com"
+sv_tags "sandbox,fun,friendly"
+
+// Gameplay Settings
+sbox_maxprops 300 // Max props per player
+sbox_maxragdolls 10 // Max ragdolls per player
+sbox_maxvehicles 6 // Max vehicles per player
+sbox_maxeffects 200 // Max effects per player
+sbox_maxballoons 50 // Max balloons per player
+sbox_maxlamps 20 // Max lamps per player
+sbox_maxthrusters 50 // Max thrusters per player
+sbox_maxwheels 50 // Max wheels per player
+sbox_maxhoverballs 50 // Max hoverballs per player
+sbox_maxnpcs 20 // Max NPCs per player
+sbox_maxsents 100 // Max SENTs per player
+sbox_godmode 0 // God mode (0 = off)
+sbox_noclip 1 // Allow noclip (1 = yes)
+sbox_plpldamage 0 // Player vs player damage (0 = off)
+
+// Voice Chat
+sv_alltalk 1 // 1 = everyone can hear, 0 = team only
+sv_voiceenable 1
+
+// Download Settings
+sv_allowdownload 1
+sv_allowupload 1
+sv_downloadurl "" // FastDL URL (highly recommended)
+
+// Workshop Collection
+host_workshop_collection "0" // Your Steam Workshop Collection ID
+
+// Performance
+sv_loadingurl "" // Loading screen URL (optional)
+net_maxfilesize 64 // Max downloadable file size (MB)
+
+// Server Protection
+sv_pure 0 // File consistency (usually 0 for GMod)
+lua_openscript_cl 0 // Client Lua scripts (security)
+
+// Exec ban files
+exec banned_user.cfg
+exec banned_ip.cfg
+Create garrysmod/cfg/mount.cfg to mount content from other Source games:
// Mount CS:S content (required for most servers)
+"mountcfg"
+{
+ "cstrike" "C:\css-content\cstrike"
+ "tf" "C:\tf2-content\tf"
+ "dod" "C:\dod-content\dod"
+}
+Set game mode in startup parameters:
+// Sandbox (default)
++gamemode sandbox
+
+// DarkRP
++gamemode darkrp
+
+// Trouble in Terrorist Town (TTT)
++gamemode terrortown
+
+// Prop Hunt
++gamemode prop_hunt
+| Parameter | +Description | +Example | +
|---|---|---|
| -game | +Game directory name | +-game garrysmod | +
| -console | +Enable console output | +-console | +
| -port | +Server port | +-port 27015 | +
| -maxplayers | +Maximum players | +-maxplayers 32 | +
| +map | +Starting map | ++map gm_flatgrass | +
| +gamemode | +Game mode to load | ++gamemode sandbox | +
| +exec | +Execute config file | ++exec server.cfg | +
| -tickrate | +Server tickrate | +-tickrate 66 | +
| -ip | +Bind to specific IP | +-ip 192.168.1.100 | +
| +host_workshop_collection | +Workshop collection ID | ++host_workshop_collection 123456789 | +
| +sv_setsteamaccount | +Steam Game Server Login Token | ++sv_setsteamaccount YOURTOKENHERE | +
./srcds_run -game garrysmod -console -port 27015 -maxplayers 32 \
+ +map gm_flatgrass +gamemode sandbox +exec server.cfg \
+ +host_workshop_collection YOUR_COLLECTION_ID \
+ +sv_setsteamaccount YOUR_GSLT_TOKEN -tickrate 66
+srcds.exe -game garrysmod -console -port 27015 -maxplayers 32 ^
+ +map gm_flatgrass +gamemode sandbox +exec server.cfg ^
+ +host_workshop_collection YOUR_COLLECTION_ID ^
+ +sv_setsteamaccount YOUR_GSLT_TOKEN -tickrate 66
++sv_setsteamaccount parameterIssue: Players see missing textures or error models.
+Solutions:
mount.cfgServers are automatically started after creation. You can stop/start your server from the control panel.
- -Use your server's IP address and port to connect from the game client.
- -Access your server files via FTP using the credentials provided in your control panel.
- -If you need assistance with your Garrys Mod server:
+Issue: Server shows Lua errors in console.
+Solutions:
garrysmod/lua/autorun/server/ for conflicting scriptsIssue: Workshop addons not appearing on server.
+Solutions:
+host_workshop_collection is set in startupresource.AddWorkshop() in Lua for individual addonscache/workshop/ directory permissionsIssue: Players experiencing latency.
+Solutions:
+sv_maxrate based on bandwidthIssue: Server randomly crashes or restarts.
+Solutions:
+garrysmod/ directoryIssue: Cannot connect via RCON.
+Solutions:
+rcon_password is set in server.cfgThe default GMod experience. Build anything with physics props and tools.
+Roleplay game mode where players take on jobs in a virtual city.
+Social deduction game. Traitors vs Innocents.
+Hide-and-seek with props. Hunters vs Props.
+One murderer, one detective, bystanders. Survive or solve.
+Runners navigate deadly obstacle courses while Deaths activate traps.
+garrysmod/addons/ directoryGMod servers use Lua for custom functionality:
+-- Example: garrysmod/lua/autorun/server/welcome.lua
+hook.Add("PlayerInitialSpawn", "WelcomeMessage", function(ply)
+ ply:ChatPrint("Welcome to the server, " .. ply:Nick() .. "!")
+end)
+host_workshop_collection parameterIn garrysmod/lua/autorun/server/workshop.lua:
-- Add individual Workshop items
+resource.AddWorkshop("123456789") -- Replace with Workshop ID
+resource.AddWorkshop("987654321")
+resource.AddWorkshop("555555555")
+Recommended for faster downloads of custom content:
+sv_downloadurl "http://your-fastdl-url/" in server.cfgstatus # Show players and server info
+kick [name/userid] # Kick player
+banid [minutes] [userid]# Ban player
+addip [minutes] [ip] # Ban IP address
+
+changelevel [map] # Change map immediately
+map [map] # Load specific map
+
+ulx ban [player] [time] # ULX ban command
+ulx kick [player] # ULX kick command
+ulx slay [player] # Kill player
+sbox_maxprops [number] # Set prop limit
+sbox_godmode [0/1] # Toggle god mode
+sbox_noclip [0/1] # Toggle noclip
+cleanup # Remove all props
+Insurgency: Modern Infantry Combat is available for hosting on our platform. This guide covers the basics of setting up and managing your Insurgency: Modern Infantry Combat server.
- -27015- Note: When running on a VPS or dedicated server, you can use the default port or configure a custom port in your server configuration file. -
+ -To create a Insurgency: Modern Infantry Combat server:
+27015/UDPInsurgency servers require specific ports for proper operation:
+ +| Port | +Protocol | +Purpose | +Required | +
|---|---|---|---|
| 27015 (configurable) | +UDP | +Game port | +Yes | +
| 27015 (same as game port) | +UDP | +Query/RCON port | +Yes | +
| 27005 | +UDP | +Client port | +No | +
| 26900 | +UDP | +Steam master server updater | +No | +
| 27020 | +UDP | +SourceTV port (if enabled) | +No | +
UFW (Ubuntu/Debian):
+sudo ufw allow 27015/udp comment 'Insurgency Game/Query Port'
+sudo ufw allow 27020/udp comment 'Insurgency SourceTV'
+sudo ufw allow 26900/udp comment 'Steam Master Server'
+FirewallD (CentOS/RHEL):
+sudo firewall-cmd --permanent --add-port=27015/udp
+sudo firewall-cmd --permanent --add-port=27020/udp
+sudo firewall-cmd --permanent --add-port=26900/udp
+sudo firewall-cmd --reload
+iptables:
+iptables -A INPUT -p udp --dport 27015 -j ACCEPT
+iptables -A INPUT -p udp --dport 27020 -j ACCEPT
+iptables -A INPUT -p udp --dport 26900 -j ACCEPT
+sudo apt update
+sudo apt install lib32gcc1 steamcmd # Debian/Ubuntu
+# OR for manual install:
+mkdir ~/steamcmd && cd ~/steamcmd
+wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
+tar -xvzf steamcmd_linux.tar.gz./steamcmd.sh
+login anonymous
+force_install_dir ./insurgency-server
+app_update 222880 validate
+quit# Insurgency mod files should be placed in:
+# insurgency-server/insurgency/
+# Download mod content from official sourcesAfter your server is created, you can configure it through the control panel:
+C:\steamcmd\steamcmd.exe and execute:
+ login anonymous
+force_install_dir C:\insurgency-server
+app_update 222880 validate
+quitCreate or edit insurgency/cfg/server.cfg:
// Server Identity
+hostname "Tactical Insurgency Server"
+sv_password "" // Leave blank for public server
+
+// Server Rates
+sv_minrate 10000
+sv_maxrate 30000
+sv_minupdaterate 20
+sv_maxupdaterate 66
+sv_mincmdrate 20
+sv_maxcmdrate 66
+
+// Server Region (see Region Codes)
+sv_region 1 // 1 = East Coast USA
+
+// Server Visibility
+sv_lan 0 // 0 for internet, 1 for LAN only
+sv_logbans 1
+sv_logecho 1
+sv_logfile 1
+sv_log_onefile 0
+
+// RCON (Remote Console)
+rcon_password "your_secure_password"
+sv_rcon_banpenalty 0
+sv_rcon_maxfailures 5
+
+// Contact & Tags
+sv_contact "admin@example.com"
+sv_tags "tactical,realistic,teamwork"
+
+// Insurgency-Specific Settings
+mp_timelimit 30 // Time limit per map (minutes)
+mp_roundtime 5 // Round time limit (minutes)
+mp_winlimit 0 // Rounds to win (0 = disabled)
+
+// Friendly Fire
+mp_friendlyfire 1 // 1 = enabled (realistic mode)
+mp_tkpunish 0 // TK punishment
+
+// Team Settings
+mp_autoteambalance 1
+mp_limitteams 1
+
+// Gameplay
+ins_bot_quota 0 // Number of bots (0 = none)
+ins_bot_difficulty 2 // Bot skill (0-4, 2 = medium)
+
+// Voice Chat
+sv_alltalk 0 // 0 = team only, 1 = everyone
+sv_voiceenable 1
+
+// Download Settings
+sv_allowdownload 1
+sv_allowupload 1
+sv_downloadurl "" // FastDL URL (optional)
+
+// Performance
+sv_maxcmdrate 66
+sv_maxupdaterate 66
+fps_max 300
+
+// Server Protection
+sv_pure 1 // File consistency checking
+sv_consistency 1
+
+// Exec ban files
+exec banned_user.cfg
+exec banned_ip.cfg
+Create insurgency/cfg/mapcycle.txt with your map rotation:
ins_baghdad
+ins_embassy
+ins_ministry
+ins_siege
+ins_station
+ins_almaden
+ins_heights
+ins_kashan
+Set game mode in startup parameters or console:
+// Push Mode (attacking/defending objectives)
+ins_gametype push
+
+// Strike Mode (plant/defuse objectives)
+ins_gametype strike
+
+// Firefight Mode (capture and hold)
+ins_gametype firefight
+
+// Skirmish Mode (small team tactical)
+ins_gametype skirmish
+| Parameter | +Description | +Example | +
|---|---|---|
| -game | +Game directory name | +-game insurgency | +
| -console | +Enable console output | +-console | +
| -port | +Server port | +-port 27015 | +
| -maxplayers | +Maximum players | +-maxplayers 16 | +
| +map | +Starting map | ++map ins_baghdad | +
| +exec | +Execute config file | ++exec server.cfg | +
| -tickrate | +Server tickrate | +-tickrate 66 | +
| -ip | +Bind to specific IP | +-ip 192.168.1.100 | +
| +tv_enable | +Enable SourceTV | ++tv_enable 1 | +
| +sv_lan | +LAN server mode | ++sv_lan 0 | +
./srcds_run -game insurgency -console -port 27015 -maxplayers 16 +map ins_baghdad +exec server.cfg -tickrate 66
+srcds.exe -game insurgency -console -port 27015 -maxplayers 16 +map ins_baghdad +exec server.cfg -tickrate 66
+#!/bin/bash
+cd /home/insurgency/insurgency-server
+screen -dmS insurgency ./srcds_run \
+ -game insurgency \
+ -console \
+ -port 27015 \
+ -maxplayers 16 \
+ +map ins_baghdad \
+ +exec server.cfg \
+ -tickrate 66
+Issue: Server not visible in game server browser.
+Solutions:
sv_lan 0 in server.cfgconnect IP:PORTServers are automatically started after creation. You can stop/start your server from the control panel.
- -Use your server's IP address and port to connect from the game client.
- -Access your server files via FTP using the credentials provided in your control panel.
- -If you need assistance with your Insurgency: Modern Infantry Combat server:
+Issue: Server fails to start or clients can't connect.
+Solutions:
insurgency/ directoryIssue: Players cannot connect to server.
+Solutions:
+sv_password if server is password protectedmaxplayers limit not reachedIssue: Players experiencing latency.
+Solutions:
+sv_maxrate to match server bandwidthsv_maxupdaterate (66 recommended)Issue: Bots not working or causing problems.
+Solutions:
+ins_bot_quota to desired number (0 to disable)ins_bot_difficulty (0-4)Issue: Plugins not loading correctly.
+Solutions:
+addons/sourcemod/logs for errorsObjective-based attack/defense. Attackers must capture objectives in sequence while defenders hold them.
+Plant/defuse objectives similar to Counter-Strike. One team plants explosive, other team defuses.
+Capture and hold objectives to score points. Fast-paced tactical combat.
+Small team tactical combat with limited lives. Realistic and hardcore.
+Install custom maps to insurgency/maps/ directory and add to mapcycle.txt.
Insurgency uses Source engine modding:
+ +Server administration and plugin framework.
+Required by SourceMod - install first.
+status # Show players and server info
+kick [name/userid] # Kick player
+kickid [userid] # Kick by UserID
+banid [minutes] [userid]# Ban player
+addip [minutes] [ip] # Ban IP address
+
+changelevel [map] # Change map immediately
+map [map] # Load specific map
+mp_restartgame [delay] # Restart game after delay
+
+ins_bot_add # Add bot
+ins_bot_kick # Remove bot
+Connect via RCON tool using password set in rcon_password:
rcon_password [password] # Authenticate
+rcon [command] # Execute command remotely
+