|
www.Create-Server.com » Tutorials » How to make clients to download your server's files faster from HTTP webserver?

Tutorials: How to make clients to download your server's files faster from HTTP webserver?
Author: 3JIou-TaTaPuH (20-05-2009, 20:39)
HTTP downloading has three major benefits:
Tags: HTTP, server, tutorial,
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. 3) If any of the custom content is not present on the HTTP content server or the case of the file name does not match then the player will disconnect from the HTTP and fall back and download any remaining content via trickle download from the server. CONFIGURING YOUR SERVER TO USE FAST HTTP ASSET DOWNLOADING 1) First of all your need choose your future webhost. If your don't have one yet. I can suggest this one e-frag.co.uk. So when your get done with registering your web server next step is: 2) Login to your webserver's FTP and create in root folder, new folder named - server (I reccomend use FileZilla as FTP manager, here is video tutorial by mahsohn - how to use FileZilla 2) Make a list of all the custom files (bsp, wav, mdl, wad etc) used on your gameserver 3) Load these files on a that new server folder, keeping the folder layout intact. 4) Open server.cfg and set the sv_downloadurl cvar to "http://yourservername/server/" . Also be sure that sv_allowdownload is "1" //sv_allowdownload Allow clients to downnload files. 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://username:password@www.somewhere.com/ (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) The command you enter into the server is: sv_downloadurl "http://yoururl /server/" use quotemarks on either side of the string and include the final "/". If the client has ANY of the files already (including the WAD) it will not be overwritten, there is no way to do that, the client must delete the out of date or offending resource himself. |
Views: 8252 Comments (7) Print
Related News...:
Information

Members of Guests cannot leave comments.

