Welcome To Trip6 Gaming Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Welcome To Trip6 Gaming Forums


 
HomeSearchLatest imagesRegisterLog in

 

 sv_downloadurl help

Go down 
AuthorMessage
Loke
Admin
Loke


Number of posts : 82
Age : 41
Localisation : Vancouver, BC
Registration date : 2007-04-27

sv_downloadurl help Empty
PostSubject: sv_downloadurl help   sv_downloadurl help Icon_minitimeMon Jul 16, 2007 10:49 pm

I notice a lot of posts in a couple different forums about this. Also I have been getting emails requesting help to set this up because I have this on our servers:

sv_downloadurl explanation

SUMMARY
-------

Half-Life supports the download of custom content (maps,
skins, sounds, and so on) from a HTTP server (ie: webserver) when connecting, instead of 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
transfer rate, resulting in *much* faster downloads

3) Players who are downloading custom content do not take up a
player slot 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
of two things will occur:

1) If the server is not configured for HTTP download, the game
server will use the normal "trickle" download mechanism

2) If the server is configured for HTTP downloading, the player
will see an enhanced download dialog, and much faster downloads.
While this content is downloading, they are not connected to the
game server. Once the download finishes, they are automatically
reconnected to the game server, and ready to play.




How To Configure for your server:

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
the folder layout intact

3) 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

4) You Must create a .res file for every map in your mapcycle. The .res file must be in you HTTP website and on your game server. Place the .res file in the map directory.
Example of a .res file:

// .res entries:
maps/ts_furiatemple.bsp
models/player/fu/fu.mdl
models/player/fu1/fu1.mdl
models/player/fuchen/fuchen.mdl
models/player/Tohkarh/tohkarh.mdl
models/player/bushido/bushido.mdl
models/player/saito2/saito2.mdl
models/player/kenshin/kenshin.mdl
models/kg.mdl
models/yk.mdl
sprites/xsmoke1.spr
sprites/fz_grass_1.spr
sound/ambience/birdbest.wav
sound/ambience/waterfall3.wav
gfx/env/forestbk.tga
gfx/env/forestdn.tga
gfx/env/forestft.tga
gfx/env/forestlf.tga
gfx/env/forestrt.tga
gfx/env/forestup.tga




5) Set the sv_downloadurl cvar to
"http://yourserver/custom_content_directory/"

See Example: http://www.end-effekt.com/serverfiles/

Server Config File Commands:
sv_allowdownload 1
sv_allowupload 1
sv_downloadurl "http://www.yourserver.com/serverfiles/"




Understand Example:

Your server uses the non-standard map "de_generic", which
requires the following files:

C:\Program
Files\Steam\SteamCache\your@email.address\Counter-Strike\cstrike\maps\de
_generic.map
C:\Program
Files\Steam\SteamCache\your@email.address\Counter-Strike\cstrike\de_gene
ric.wad
C:\Program
Files\Steam\SteamCache\your@email.address\Counter-Strike\cstrike\sound\a
mbience\de_generic_a.wav
C:\Program
Files\Steam\SteamCache\your@email.address\Counter-Strike\cstrike\sound\a
mbience\de_generic_b.wav
C:\Program
Files\Steam\SteamCache\your@email.address\Counter-Strike\cstrike\sound\a
mbience\de_generic_c.wav


**** NOTE: Your Free Web Space given to you by your Cable/DSL provider WILL NOT WORK!!!

You need a hosting server plan. You will most likely need to pay for a website. Keep In mind that if you have a lot of traffic on you game server the files being transfer are from your website. So if you pay for 30gis of transfer for a web site you like MOST LIKELY go over this. I am currently using 50gigs of transfer (monthly) for 8 players.



TECHNICAL DETAILS -----------------

* The maximum length of the sv_downloadurl is 127 characters

* A username and password can be specified for the HTTP server
by embedding
them in the sv_downloadurl like so:

http://usernameassword@www.somewhere.com/

( 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)
Back to top Go down
http://trip666gaming.users-board.net
 
sv_downloadurl help
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Welcome To Trip6 Gaming Forums :: Counter-Strike Source :: General Discussion-
Jump to: