Sv downloadurl: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:sv_downloadurl}}
{{DISPLAYTITLE:sv_downloadurl}}


'''Sv_downloadurl''' allows both [[SRCDS]] and [[HLDS]] to get content from the server to the client faster. By default the download limit is capped in Garrysmod at 20kb/s. So to get content to clients faster, sv_downloadurl which allows the client to download files at high speeds using http.
'''sv_downloadurl''' allows both [[SRCDS]] and [[HLDS]] to get content from the server to the client faster. By default the download limit is capped in Garrysmod at 20kb/s. So to get content to clients faster, sv_downloadurl which allows the client to download files at high speeds using HTTP.


== Requirements ==
== Requirements ==
An HTTP server with adequate disk space and an [[SRCDS]] or [[HLDS]] server instance are only two requirements for sv_downloadurl.
An HTTP server with adequate disk space for your downloadable content is all you need to set up a download server.


== Configuring ==
== Configuring ==
Line 16: Line 16:
sv_allowupload 1
sv_allowupload 1
</pre>
</pre>
== Compression ==
To make your downloads faster, you can compress your downloadable files using [[w:Bzip2|bzip2]].


== External Links ==
== External Links ==

Revision as of 18:53, 13 August 2015


sv_downloadurl allows both SRCDS and HLDS to get content from the server to the client faster. By default the download limit is capped in Garrysmod at 20kb/s. So to get content to clients faster, sv_downloadurl which allows the client to download files at high speeds using HTTP.

Requirements

An HTTP server with adequate disk space for your downloadable content is all you need to set up a download server.

Configuring

The contents and folder hierarchy of the game server to be downloaded via HTTP need to copied to an HTTP server starting from the root of the game (e.g copy /cstrike/maps/... from the game server to /cstrike/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.

sv_downloadurl "http://example.com/cstrike/"
sv_allowdownload 1
sv_allowupload 1

Compression

To make your downloads faster, you can compress your downloadable files using bzip2.

External Links