SRCDS Steam group


Server Download Speed/Time
#1
Running a server, ok cool, its using a custom zombie mod, the mod uses 8 different zombies and has many custom maps.. my question is whats the fastest way i can set it up so that clients can download the server content from me super fast..

right now theyre just getting it directly from the server in its file format.. ive heard of bz2 on a webserver or something.. but im unsure.. can anyone help me out with any info? Big Grin
Reply
#2
you can set a variable called sv_downloadurl, with this you can link to your webserver where the files are located so they don't get downloaded from the server. The files on the webserver can be bzipped.

search the forums for sv_downloadurl, there are many posts about it including a tutorial
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#3
Drocona Wrote:you can set a variable called sv_downloadurl, with this you can link to your webserver where the files are located so they don't get downloaded from the server. The files on the webserver can be bzipped.

search the forums for sv_downloadurl, there are many posts about it including a tutorial

Ya ok i found those and read fully, something im not understanding here is how I can get clients to download the models/skins from the webserver.. even if theyre placed in the right sections etc.. what tells the client to download them? For downloading from the server i wrote a download script for them pointing to the directories in the server.. can change the lines and add a html link instead? (for the script)? Or is there some other way, as without the script the files would never download..
Reply
#4
The gameserver tells the client what fiiles to download.
So when you have models, example:
server path = c:\srcds\cstrike\models\player\bla\bla.vtf
sv_downloadurl= http://mywebsite.com/csrtike

so when someone connects to the server and wants to download bla.vtf the server sends the following to the client:
http://mywebsite.com/cstrike/models/player/bla/bla.vtf

If you have mani models, sounds and stuff liek that can be automated to download.
If you don't have mani you have to make the so called .res files.
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#5
Drocona Wrote:The gameserver tells the client what fiiles to download.
So when you have models, example:
server path = c:\srcds\cstrike\models\player\bla\bla.vtf
sv_downloadurl= http://mywebsite.com/csrtike

so when someone connects to the server and wants to download bla.vtf the server sends the following to the client:
http://mywebsite.com/cstrike/models/player/bla/bla.vtf

If you have mani models, sounds and stuff liek that can be automated to download.
If you don't have mani you have to make the so called .res files.

what are these so called res files? can i eat them? :O
Reply
#6
.res fstands for resource.
at every map load the server checks for the <mapname>.res and loads the files into the server specified in the .res

This is the syntax for a .res file, you have to make one for every map you have:
Code:
"resources"
{
"sound/misc/dominating.wav" "file"
"sound/misc/firstblood.wav" "file"
"sound/misc/godlike.wav" "file"
"sound/misc/headshot.wav" "file"
"sound/misc/holyshit.wav" "file"
"sound/misc/killingspree.wav" "file"
"sound/misc/ludicrouskill.wav" "file"
"sound/misc/monsterkill.wav" "file"
"sound/misc/multikill.wav" "file"
"sound/misc/prepare.wav" "file"
"sound/misc/rampage.wav" "file"
"sound/misc/ultrakill.wav" "file"
"sound/misc/unstoppable.wav" "file"
"sound/misc/wickedsick.wav" "file"
}
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#7
Ok, so i set the sv_downloadurl "http://www.whatever.com/cstrike

made DIRs in there that read; /maps, /models/player/etc

I disabled my download script, and? clients cant download still..

yes

sv_allowupload 1
sv_allowdownload 1

public access is permitted on the webserver.

when i re-enable my download script, the clients just download from the server itself, so im lost..
Reply
#8
and yes again, skins are all setup properly on server, and maps are added to all the map txts, all paths are correct
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)