Raised This Month: $51 Target: $400
 12% 

sv_downloadurl Tutorial


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
Psycho-Path
Senior Member
Join Date: Jun 2005
Old 11-28-2005 , 16:22   sv_downloadurl Tutorial
#1

SUMMARY
-------

Half-Life now 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.


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) Set the sv_downloadurl cvar to
"http://yourserver/custom_content_directory/"


Example:

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

C:\Program
Files\Steam\SteamCache\[email protected]\Cou nter-Strike\cstrike\maps\de
_generic.map
C:\Program
Files\Steam\SteamCache\[email protected]\Cou nter-Strike\cstrike\de_gene
ric.wad
C:\Program
Files\Steam\SteamCache\[email protected]\Cou nter-Strike\cstrike\sound\a
mbience\de_generic_a.wav
C:\Program
Files\Steam\SteamCache\[email protected]\Cou nter-Strike\cstrike\sound\a
mbience\de_generic_b.wav
C:\Program
Files\Steam\SteamCache\[email protected]\Cou nter-Strike\cstrike\sound\a
mbience\de_generic_c.wav


You have web space (perhaps through your ISP) with the URL
"http://www.turtlerockstudios.com/~matt" that you will use to
host your
custom content.

To do this, you copy the files needed for "de_generic" to your
webspace,
placing them in a folder called "my_cstrike" in your webspace
top-level directory,
keeping their directory layout intact.

You now have the following files in your webspace:


http://www.turtlerockstudios.com/~m.../de_generic.map

http://www.turtlerockstudios.com/~m.../de_generic.wad

http://www.turtlerockstudios.com/~m...mbience/de_gene
ric_a.wav

http://www.turtlerockstudios.com/~m...mbience/de_gene
ric_b.wav

http://www.turtlerockstudios.com/~m...mbience/de_gene
ric_c.wav

You now set the "sv_downloadurl" cvar on your game server to
"http://www.turtlerockstudios.com/~matt/my_cstrike/". Now,
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).


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://[email protected]/

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

Credit goes to Steam Support Team, and this might not be the newest version of it, I will check and change, if nescesary.

Download Maps Here
__________________
XBOX 360, hands down.
------------------------------------------------
I think I found Hawk552's alias!
Psycho-Path is offline
Psycho-Path
Senior Member
Join Date: Jun 2005
Old 11-28-2005 , 16:43  
#2

Oh and another thing, on this tut I don't want anyone posting their problems, make a new topic for that. This is also to enforce devicenull's sticky on sv_downloadurl, saying that you shouldnt post about that here. This is to help people not be temped to do so. Go to steampowered forums, or something.
__________________
XBOX 360, hands down.
------------------------------------------------
I think I found Hawk552's alias!
Psycho-Path is offline
eFrigid
Senior Member
Join Date: Aug 2005
Location: 3o3
Old 11-28-2005 , 17:37  
#3

Neat
__________________
lol
eFrigid is offline
Send a message via AIM to eFrigid Send a message via MSN to eFrigid Send a message via Skype™ to eFrigid
Old 03-05-2008, 10:33
reece
This message has been deleted by YamiKaitou. Reason: Do not bump old topics
reece
BANNED
Join Date: Feb 2008
Old 03-05-2008 , 17:02   Re: sv_downloadurl Tutorial
#4

I wasn't bumping it i wanted help.....
reece is offline
Ka NIP Shun
Member
Join Date: Oct 2006
Location: Kenosha Wisconsin
Old 03-05-2008 , 17:13   Re: sv_downloadurl Tutorial
#5

Quote:
Oh and another thing, on this tut I don't want anyone posting their problems, make a new topic for that
:/
__________________
Ka NIP Shun is offline
Send a message via AIM to Ka NIP Shun
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-05-2008 , 17:14   Re: sv_downloadurl Tutorial
#6

Look at the date... Plus, this type of question doesn't belong here anymore. Locked for bumping really old topic
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Roach
Writes love letters to sawce Daily
Join Date: Jul 2006
Location: Internet
Old 03-08-2008 , 05:10   Re: sv_downloadurl Tutorial
#7

This type of thread doesn't even belong in this forum....WHY IS IT HERE?!
__________________
Quote:
Originally Posted by Brad View Post
That sounds like a really good idea!
Now replace the word "good" with "dumb".
What was your rationale for proposing such a thing?
Roach is offline
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode