2 posts,
2 people · 3,166 views
Thread Rating: ★★★★★
| closedany way to speed up server load times? |
| Started by gfy mmf on 04-23-2008, 08:49 PM |
G
gfy mmf
Threads: 5
Joined: Apr 2008
started this thread
Posts: 22Threads: 5
Joined: Apr 2008
04-23-2008, 08:49 PM
#1
hi the downloads on my server are taking forever :( any way i can fix this
posted here
Posts: 623Threads: 57
Joined: Oct 2005
04-23-2008, 11:45 PM
#2
Enable fast downloads the and the downloading will be much faster.nn
nsv_downloadurl TutorialnnnSUMMARYn-------nnHalf-Life now supports the download of custom content (maps,nskins, sounds,nand so on) from a HTTP server (ie: webserver) when connecting,ninstead ofndownloading directly from the game server itself.nnHTTP downloading has three major benefits:nn1) There is no impact on the game server when downloadingncustom content, asna completely separate HTTP content server does the transfernn2) Players will download custom content at their maximumntransfer rate,nresulting in *much* faster downloadsnn3) Players who are downloading custom content do not take up anplayer slotnon the server while they waitnnnWHAT PLAYERS CONNECTING TO A SERVER WITH CUSTOM CONTENT WILL SEEn----------------------------------------------------------------nnWhen a player connects to a server utilizing custom content, onenof twonthings will occur:nn1) If the server is not configured for HTTP download, the gamenservernwill use the normal "trickle" download mechanismnn2) If the server is configured for HTTP downloading, the playernwillnsee an enhanced download dialog, and much faster downloads.nWhilenthis content is downloading, they are not connected to thengamenserver. Once the download finishes, they are automaticallynreconnected to the game server, and ready to play.nnnCONFIGURING YOUR SERVER TO USE FAST HTTP ASSET DOWNLOADINGn----------------------------------------------------------nn1) Make a list of all the custom files (bsp, wav, mdl, etc)nused on your servernn2) Put these files on a HTTP server (ie: webserver), keepingnthe foldernlayout intactnn3) OPTIONAL: To display a "banner image" to players thatndownload content,nplace a 340x56 pixel image in the file <custom contentndirectory>/gfx/banner.gifnn4) Set the sv_downloadurl cvar ton"http://yourserver/custom_content_directory/"nnnExample:nnYour server uses the non-standard map "de_generic", whichnrequires the following files:nnC:ProgramnFilesSteamSteamCacheyour@email.addressCou nter-Strikecstrikemapsden_generic.mapnC:ProgramnFilesSteamSteamCacheyour@email.addressCou nter-Strikecstrikede_genenric.wadnC:ProgramnFilesSteamSteamCacheyour@email.addressCou nter-Strikecstrikesoundanmbiencede_generic_a.wavnC:ProgramnFilesSteamSteamCacheyour@email.addressCou nter-Strikecstrikesoundanmbiencede_generic_b.wavnC:ProgramnFilesSteamSteamCacheyour@email.addressCou nter-Strikecstrikesoundanmbiencede_generic_c.wavnnnYou have web space (perhaps through your ISP) with the URLn"http://www.turtlerockstudios.com/~matt" that you will use tonhost yourncustom content.nnTo do this, you copy the files needed for "de_generic" to yournwebspace,nplacing them in a folder called "my_cstrike" in your webspacentop-level directory,nkeeping their directory layout intact.nnYou now have the following files in your webspace:nnnhttp://www.turtlerockstudios.com/~m.../de_generic.mapnnhttp://www.turtlerockstudios.com/~m.../de_generic.wadnnhttp://www.turtlerockstudios.com/~m...mbience/de_genenric_a.wavnnhttp://www.turtlerockstudios.com/~m...mbience/de_genenric_b.wavnnhttp://www.turtlerockstudios.com/~m...mbience/de_genenric_c.wavnnYou now set the "sv_downloadurl" cvar on your game server ton"http://www.turtlerockstudios.com/~matt/my_cstrike/". Now,nplayers who connectnto your server will automatically download the map "de_generic"nand its requirednfiles from your webspace when they connect (unless they alreadynhave it, of course).nnnTECHNICAL DETAILSn-----------------nn* The maximum length of the sv_downloadurl is 127 charactersnn* A username and password can be specified for the HTTP servernby embeddingnthem in the sv_downloadurl like so:nnhttp://usernameassword@www.somewhere.com/nn( Note - recent IE patches make disable this functionality )nn* If a connecting player has an existing file of the same name,nit will notnbe overwritten. The download file will be skipped.nn* Certain game-crtical and/or dangerous files cannot bendownloaded (ie: *.exe, *.vbs, etc)nnCredit goes to Steam Support Team, and this might not be the newest version of it, I will check and change, if nescesary.n

