Sv downloadurl: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (stub'd, added categorie(s))
(Added basic instructions)
Line 1: Line 1:
{{stub}}
{{wrongtitle|title=sv_downloadurl}}
{{wrongtitle|title=sv_downloadurl}}


Tells clients where to retrieve addons or modifications while joining the server. A more detailed guide can be found [http://forums.srcds.com/viewtopic/5240 here.]
'''Sv_downloadurl''' allows both [[SRCDS]] and [[HLDS]] to redirect download requests from clients for game files, such as maps, sounds, textures and models, to an HTTP server.
 
== Requirements ==
An HTTP server with adequate disk space and an [[SRCDS]] or [[HLDS]] server instance are only two requirements for sv_downloadurl.
 
== Configuring ==
The contents and folder hierarchy of the game server files to be download via HTTP need to copied to an HTTP server starting from the root of the game(i.e., copy /cstrike/maps/... or /tf2/maps/... from the game server to /cstrike/maps/... or /tf2/maps/... on the HTTP server).
 
Set sv_svdownloadurl to the appropriate value and ensure [[sv_allowdownload]] and [[sv_allowupload]] are both set to '1'. The recommended location for these [[cvar]]s is the [[server.cfg]] file. Be sure to replace <nowiki>DOMAIN</nowiki> with the appropriate domain or IP address in the example below.
 
<pre>
sv_downloadurl "http://DOMAIN/cstrike/"
sv_allowdownload 1
sv_allowupload 1
</pre>
 
== External Links ==
* [http://forums.srcds.com/viewtopic/5240 SRCDS Forums] &mdash; A more detailed guide.


[[Category:Console Commands]]
[[Category:Console Commands]]

Revision as of 20:37, 25 May 2009

Template:Wrongtitle

Sv_downloadurl allows both SRCDS and HLDS to redirect download requests from clients for game files, such as maps, sounds, textures and models, to an HTTP server.

Requirements

An HTTP server with adequate disk space and an SRCDS or HLDS server instance are only two requirements for sv_downloadurl.

Configuring

The contents and folder hierarchy of the game server files to be download via HTTP need to copied to an HTTP server starting from the root of the game(i.e., copy /cstrike/maps/... or /tf2/maps/... from the game server to /cstrike/maps/... or /tf2/maps/... on the HTTP server).

Set sv_svdownloadurl to the appropriate value and ensure sv_allowdownload and sv_allowupload are both set to '1'. The recommended location for these cvars is the server.cfg file. Be sure to replace DOMAIN with the appropriate domain or IP address in the example below.

sv_downloadurl "http://DOMAIN/cstrike/"
sv_allowdownload 1
sv_allowupload 1

External Links