[Steam]  news getSteamNow Cyber Cafes Support Forums Status
Here you can view your subscribed threads, work with private messages and edit your profile and preferences Registration is free! Find other members Frequently Asked Questions Search Home  
Steam Users Forums : Powered by vBulletin version 2.3.3 Steam Users Forums > Valve Back Catalog Discussions > Windows Dedicated Server > sv_downloadurl (explanation) Thread Rating: 9 votes, 3.78 average.
Pages (18): [1] 2 3 » ... Last »   Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
KaOsX
��

Registered: Nov 2003

sv_downloadurl (explanation)

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: /forums/...;threadid=51410

--
the "sv_downloadurl" cvar

============================================
Half-Life Fast HTTP Asset Downloading Instructions
V1.02 January 22, 2004


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]\Counter-Strike\cstrike\maps\de
_generic.map
C:\Program
Files\Steam\SteamCache\[email protected]\Counter-Strike\cstrike\de_gene
ric.wad
C:\Program
Files\Steam\SteamCache\[email protected]\Counter-Strike\cstrike\sound\a
mbience\de_generic_a.wav
C:\Program
Files\Steam\SteamCache\[email protected]\Counter-Strike\cstrike\sound\a
mbience\de_generic_b.wav
C:\Program
Files\Steam\SteamCache\[email protected]\Counter-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)

Report this post to a moderator | IP: Logged

Old Post 02-15-2004 11:49 PM
KaOsX is offline Click Here to See the Profile for KaOsX Click here to Send KaOsX a Private Message Find more posts by KaOsX Add KaOsX to your buddy list Edit/Delete Message Reply w/Quote
KaOsX
��

Registered: Nov 2003

thx whoever stickied this

Last edited by KaOsX on 02-16-2004 at 08:24 PM

Report this post to a moderator | IP: Logged

Old Post 02-16-2004 05:16 PM
KaOsX is offline Click Here to See the Profile for KaOsX Click here to Send KaOsX a Private Message Find more posts by KaOsX Add KaOsX to your buddy list Edit/Delete Message Reply w/Quote
]SK[
��

Registered: 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[ on 02-17-2004 at 02:24 PM

Report this post to a moderator | IP: Logged

Old Post 02-17-2004 02:00 PM
]SK[ is offline Click Here to See the Profile for ]SK[ Click here to Send ]SK[ a Private Message Find more posts by ]SK[ Add ]SK[ to your buddy list Edit/Delete Message Reply w/Quote
KaOsX
��

Registered: Nov 2003

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

Report this post to a moderator | IP: Logged

Old Post 02-17-2004 04:48 PM
KaOsX is offline Click Here to See the Profile for KaOsX Click here to Send KaOsX a Private Message Find more posts by KaOsX Add KaOsX to your buddy list Edit/Delete Message Reply w/Quote
]SK[
��

Registered: Sep 2003

So what happens to the client when they download fake files? Surly they will just fail and leave the end user puzzled?

Report this post to a moderator | IP: Logged

Old Post 02-17-2004 05:12 PM
]SK[ is offline Click Here to See the Profile for ]SK[ Click here to Send ]SK[ a Private Message Find more posts by ]SK[ Add ]SK[ to your buddy list Edit/Delete Message Reply w/Quote
KaOsX
��

Registered: Nov 2003

No, in the console it just says "Missing Riff/Wav chunks" no actual errors or user-issues are visible..

Report this post to a moderator | IP: Logged

Old Post 02-17-2004 11:36 PM
KaOsX is offline Click Here to See the Profile for KaOsX Click here to Send KaOsX a Private Message Find more posts by KaOsX Add KaOsX to your buddy list Edit/Delete Message Reply w/Quote
]SK[
��

Registered: Sep 2003

So when the file is corrected it will replace the dummy files with the correct ones?

Report this post to a moderator | IP: Logged

Old Post 02-17-2004 11:55 PM
]SK[ is offline Click Here to See the Profile for ]SK[ Click here to Send ]SK[ a Private Message Find more posts by ]SK[ Add ]SK[ to your buddy list Edit/Delete Message Reply w/Quote
KaOsX
��

Registered: Nov 2003

I'm not 100% sure but if VALVe has any sense in them it should

Report this post to a moderator | IP: Logged

Old Post 02-18-2004 02:21 AM
KaOsX is offline Click Here to See the Profile for KaOsX Click here to Send KaOsX a Private Message Find more posts by KaOsX Add KaOsX to your buddy list Edit/Delete Message Reply w/Quote
]SK[
��

Registered: Sep 2003

Whats wrong with them having a 404 error rather than giving them dummy files, eitherway they dont get to play the map in question?

Report this post to a moderator | IP: Logged

Old Post 02-18-2004 07:38 AM
]SK[ is offline Click Here to See the Profile for ]SK[ Click here to Send ]SK[ a Private Message Find more posts by ]SK[ Add ]SK[ to your buddy list Edit/Delete Message Reply w/Quote
KaOsX
��

Registered: Nov 2003

quote:
Originally posted by KaOsX
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


.. If its a map.. thats another story.. however if its a sound file.. (which is what i intended it for) than it works perfectly..

Report this post to a moderator | IP: Logged

Old Post 02-19-2004 12:44 AM
KaOsX is offline Click Here to See the Profile for KaOsX Click here to Send KaOsX a Private Message Find more posts by KaOsX Add KaOsX to your buddy list Edit/Delete Message Reply w/Quote
NPW_Thundar
��

Registered: Jan 2003

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 on 02-21-2004 at 03:25 AM

Report this post to a moderator | IP: Logged

Old Post 02-21-2004 03:21 AM
NPW_Thundar is offline Click Here to See the Profile for NPW_Thundar Click here to Send NPW_Thundar a Private Message Find more posts by NPW_Thundar Add NPW_Thundar to your buddy list Edit/Delete Message Reply w/Quote
KaOsX
��

Registered: Nov 2003

Not sure. Maybe you should try it? Your configuration sounds correct so im sorry but im clueless

Report this post to a moderator | IP: Logged

Old Post 02-21-2004 04:47 AM
KaOsX is offline Click Here to See the Profile for KaOsX Click here to Send KaOsX a Private Message Find more posts by KaOsX Add KaOsX to your buddy list Edit/Delete Message Reply w/Quote
NPW_Thundar
��

Registered: Jan 2003

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.

Report this post to a moderator | IP: Logged

Old Post 02-21-2004 06:20 AM
NPW_Thundar is offline Click Here to See the Profile for NPW_Thundar Click here to Send NPW_Thundar a Private Message Find more posts by NPW_Thundar Add NPW_Thundar to your buddy list Edit/Delete Message Reply w/Quote
KaOsX
��

Registered: Nov 2003

No, it says that that needs extra files that they will release in a few weeks.

Report this post to a moderator | IP: Logged

Old Post 02-21-2004 07:21 PM
KaOsX is offline Click Here to See the Profile for KaOsX Click here to Send KaOsX a Private Message Find more posts by KaOsX Add KaOsX to your buddy list Edit/Delete Message Reply w/Quote
]SK[
��

Registered: Sep 2003

KaOsX: Can you give me a reply to my 2nd to last post on here please?

Report this post to a moderator | IP: Logged

Old Post 02-21-2004 09:46 PM
]SK[ is offline Click Here to See the Profile for ]SK[ Click here to Send ]SK[ a Private Message Find more posts by ]SK[ Add ]SK[ to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 10:16 AM. Post New Thread    Post A Reply
Pages (18): [1] 2 3 » ... Last »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread

Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 

Home | News | Get Steam Now | Cyber Cafes | Support | ForumsStatus
© 2004 Valve Corporation. All rights reserved. Valve, the Valve logo, Half-Life, the Half-Life logo, the Lambda logo, Steam, the Steam logo, Team Fortress, the Team Fortress logo, Opposing Force, Day of Defeat, the Day of Defeat logo, Counter-Strike, the Counter-Strike logo, Source, the Source logo, Valve Source and Counter-Strike: Condition Zero are trademarks and/or registered trademarks of Valve Corporation.