Sv downloadurl: Difference between revisions
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
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). | 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 <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 | 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> | <pre> | ||
sv_downloadurl "http:// | sv_downloadurl "http://example.com/cstrike/" | ||
sv_allowdownload 1 | sv_allowdownload 1 | ||
sv_allowupload 1 | sv_allowupload 1 |
Revision as of 14:32, 23 June 2014
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 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
External Links
- SRCDS Forums — A more detailed guide.