This article's documentation is for anything that uses the Source engine. Click here for more information.

Sv downloadurl: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (stub'd, added categorie(s))
(Added new section that guides the user on how to find "endlessly downloading files", aka missing files from FastDL.)
 
(17 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{stub}}
{{this is a|console variable|name=sv_downloadurl}}
{{wrongtitle|title=sv_downloadurl}}
'''sv_downloadurl''' is a [[cvar]] indicating the location of a [[FastDL]] server, to allow 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.


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.]
== Requirements ==
An HTTP server with adequate disk space for your downloadable content is all you need to set up a download server.


[[Category:Console Commands]]
== 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 <code>/cstrike/maps/...</code> from the game server to <code>/cstrike/maps/...</code> on the HTTP server).
 
Set <code>sv_svdownloadurl</code> 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.
<pre>
sv_downloadurl "http://example.com/cstrike/"
sv_allowdownload 1
sv_allowupload 1
</pre>
 
== Compression ==
To make your downloads faster and to use less disk space on your download server, you can compress your downloadable files using [[BZ2|bzip2]]. This works for Source games only.
 
== Troubleshooting ==
If you're encountering issues, such as files repeatedly downloading every time you join the server or when the map changes, you can use the following client commands to debug and display downloading information. This can help identify missing files that fail to download from your FastDL server:
<pre>
download_debug 1
developer 1
</pre>
In the console, look for red messages that begin with **"Error Downloading"**.
 
== External links ==
* [https://web.archive.org/web/20211202044502/https://forums.srcds.com/viewtopic/5240 SRCDS Forums] &mdash; A more detailed guide.
 
[[Category:Dedicated Server]]

Latest revision as of 21:55, 4 March 2025

sv_downloadurl is a console variable available in all Source Source games. sv_downloadurl is a cvar indicating the location of a FastDL server, to allow 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 and to use less disk space on your download server, you can compress your downloadable files using bzip2. This works for Source games only.

Troubleshooting

If you're encountering issues, such as files repeatedly downloading every time you join the server or when the map changes, you can use the following client commands to debug and display downloading information. This can help identify missing files that fail to download from your FastDL server:

download_debug 1
developer 1

In the console, look for red messages that begin with **"Error Downloading"**.

External links