|02-15-2004, 03:49 PM||#1|
I grabbed this from the other post so that people could view it easier, thanks to the original author.
EDIT: I have just released software for you to easier use this feature! Check out my website: http://www.steampowered.com/forums/s...threadid=51410
the "sv_downloadurl" cvar
Half-Life Fast HTTP Asset Downloading Instructions
V1.02 January 22, 2004
Half-Life now supports the download of custom content (maps,
and so on) from a HTTP server (ie: webserver) when connecting,
downloading directly from the game server itself.
HTTP downloading has three major benefits:
1) There is no impact on the game server when downloading
custom content, as
a completely separate HTTP content server does the transfer
2) Players will download custom content at their maximum
resulting in *much* faster downloads
3) Players who are downloading custom content do not take up a
on the server while they wait
WHAT PLAYERS CONNECTING TO A SERVER WITH CUSTOM CONTENT WILL SEE
When a player connects to a server utilizing custom content, one
things will occur:
1) If the server is not configured for HTTP download, the game
will use the normal "trickle" download mechanism
2) If the server is configured for HTTP downloading, the player
see an enhanced download dialog, and much faster downloads.
this content is downloading, they are not connected to the
server. Once the download finishes, they are automatically
reconnected to the game server, and ready to play.
CONFIGURING YOUR SERVER TO USE FAST HTTP ASSET DOWNLOADING
1) Make a list of all the custom files (bsp, wav, mdl, etc)
used on your server
2) Put these files on a HTTP server (ie: webserver), keeping
3) OPTIONAL: To display a "banner image" to players that
place a 340x56 pixel image in the file <custom content
4) Set the sv_downloadurl cvar to
Your server uses the non-standard map "de_generic", which
requires the following files:
You have web space (perhaps through your ISP) with the URL
"http://www.turtlerockstudios.com/~matt" that you will use to
To do this, you copy the files needed for "de_generic" to your
placing them in a folder called "my_cstrike" in your webspace
keeping their directory layout intact.
You now have the following files in your webspace:
You now set the "sv_downloadurl" cvar on your game server to
players who connect
to your server will automatically download the map "de_generic"
and its required
files from your webspace when they connect (unless they already
have it, of course).
* The maximum length of the sv_downloadurl is 127 characters
* A username and password can be specified for the HTTP server
them in the sv_downloadurl like so:
( Note - recent IE patches make disable this functionality )
* If a connecting player has an existing file of the same name,
it will not
be overwritten. The download file will be skipped.
* Certain game-crtical and/or dangerous files cannot be
downloaded (ie: *.exe, *.vbs, etc)
|02-17-2004, 06:00 AM||#3|
Join Date: Sep 2003
Wow I never knew this. Great idea tbh. Question though, if it is not found on the webserver will it download from the server as normal?
Last edited by ]SK[: 02-17-2004 at 06:24 AM.
|02-17-2004, 08:48 AM||#4|
No it won't, it disconnects the client and they cannot join.. that's why I created/released the KST 404 Manager.. what it does is when a file isnt found.. instead of giving HLDS a 404 not found error.. it creates a blank file (of the name CS requested) and lets the user download it.. so no harm to CS, your server, no lost connections.. KST.KaoticElites.com
|02-18-2004, 04:44 PM||#10|
|02-20-2004, 07:21 PM||#11|
Does this still work? I am not able to get it working...I have all the files and folders setup on our web server correctly, and put the sv_downloadurl "http://npwcs.com/cstrike/" in server.cfg but server still does the trickel download we connecting. Is there anything else I need to check or change? I also tried the "http://npwcs.com/my_cstrike/" but it didnt work either, does the webserver have to have directory browsing enabled for this to work?
Last edited by NPW_Thundar: 02-20-2004 at 07:25 PM.
|02-20-2004, 10:20 PM||#13|
I got it to work... My hlds test server was out of date and didn't recognize the sv_downloadurl cmd... Directy browsing does not have to be turned on for this to work. The last question would be how do you get the OPTIONAL: To display a "banner image" to players that download content, place a 340x56 pixel image in the file <custom content directory>/gfx/banner.gif to work?
I put a custom gif in both cstrike/gfx on server and webserver and it just shows empty black box when it's downloading... Any idea there? Thanks for the help.
|Thread||Thread Starter||Forum||Replies||Last Post|
|The TFC Bug List - Fix Please||Whit||Team Fortress Classic||314||04-16-2013 05:05 AM|
|-tos and -pingboost explanation anyone?||Ap0kalipSe||Half-Life DS (Linux)||0||07-24-2004 01:50 AM|