go to the Main page
slide show

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:
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.
How to make clients to download your server's files faster from HTTP webserver?

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.
Tags: HTTP, server, tutorial,
Custom Search
Views: 8252  Comments (7)  Print
Related News...:

Users
Joined: 22.01.2011, ICQ:
#1: mohammed7 (27 February 2011 03:38)
i dont understand http://yourservername/server/ and i dont have that public_html plz help me.
    

Users
Joined: 20.04.2011, ICQ:
#2: DRAX (21 April 2011 10:18)
wow its working for me now , its really so fast , CRAZY download speed 25
    

Users
Joined: 29.05.2011, ICQ:
#3: bluepear (29 May 2011 03:20)
Ó ìåíÿ íåò â "server.cfg" òàêèõ ñòðîê êàê, sv_downloadurl è sv_allowdownload òåì áîëåå ó ìåíÿ AMXMODX ñåðâåð!!!
    

Users
Joined: 19.11.2010, ICQ:
#4: router (30 June 2011 08:31)
HeY Host (TaTapuH) i WanT beSt Server.cfg config PLZ provide IT**
    

Users
Joined: 25.06.2011, ICQ: qfqfqf
#5: tazebama (16 July 2011 10:31)
cooooooool
    

Users
Joined: 19.08.2011, ICQ:
#6: M00NLiGHT (23 August 2011 10:22)
Try This : www.funpic.org

It Always Works For Me
    

Users
Joined: 19.09.2011, ICQ: latvia
#7: poastcard (19 September 2011 12:52)
why i cant connect to my own server

you peoople please give me some advise in cs 1.6 and my server id or ip is 5.44.236.46

aaaaaghhhhhhhh yeah i have non steam and im using hlds and when im trying to connect to my server it says something about STEAM and bla bla bla...
please help you sick people!!!!!!!!!!!!!!!!!!!!!!!!1 02


it did not help to me and go right now to my server 5.44.236.46 27015
    
Information
Information
Members of Guests cannot leave comments.



Copyright © 2009-2010. All rights reserved.
Terms of Use - Use of this site signifies your agreement. www.Create-Server.com ™