Gaming Servers - LeandroTheDev/arch_linux GitHub Wiki
FastDL Source Games
FastDL is a way to server host additional mods and files for players
Host a http server inside your source game files
cd /home/user/*SourceGam*DedicatedServer/*game*
python3 -m http.server 27000
Open the ports 2700, and set some variables to your cfg
- sv_downloadurl "http://127.0.0.1:27000" // Change the address to your public address
- sv_allowdownload 1
- sv_allowupload 1
Now players should receive the mods
-
IMPORTANT: don't host this http server inside your real folder, if you have sensitive data inside your addons folder like your database credentials, players will able to download it, my suggestion is to copy only the necessary files host in another location
No More Room in Hell
Changing cvars
If you need to change sv_bash_cost_per_sec
or any variable, you can simple create a ruleset inside nmrih/rulesets/mutators/myconfig.txt
"Rulesset"
{
"Name" "MyConfig"
"Author" "You"
"Description" "Custom Configurations"
"Base"
{
sv_bash_cost_per_sec 0,
sv_shove_cost_0
}
}
Now you should add this mutator to be called when te server starts, go to nmrih/cfg/myconfig.cfg
, and add the line:
// Example 1
sv_mutators myconfig
// Example 2
sv_mutators myconfig,myconfig2
When you run the server put the new cfg to be executed when launching
./srcds_run +exec myconfig.cfg