FRIHOSTFORUMSSEARCHFAQTOSBLOGSCOMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Call of Duty 2 server question





kizarop
I want run run cod2 server , game will be moded and with extra maps , i 'm wondering if there is posibility to automaticaly redirect clients who don't have neccesary files to forward to another server (where i'll place these files) instead of downloading from main server where game will be run. I have limited bandwidth that's why i'm asking. I saw on few servers that download of files was redirected to http://blabla , i need a mod or maybe i need to edit server config only?


//edit

your answer is:

Variables for server config that allow to http redirect (where maps, mods are placed)

sv_wwwBaseURL

Quote:
This variable is the path to your website and the root folder/directory that contains a folder labeled “uo” for United Offensive, “main” for regular Call of Duty. While the uo/main folder contains the actual files to be downloaded, it does not need to be specified in the Base URL path. This means that while the full web path to your files might be http://www.blabla.com/cod/uo/filename.pk3 or http://www.blabla.com/cod/main/filename.pk3, all the game requires is to know the base path to the “uo” or “main” folder (i.e. http://www.blabla.com/cod). Essentially, whereever you install the files on your server (in the UO folder or in the MAIN folder), you will need a matching folder name on your download site, with the files to be downloaded therein.

There have been some issues reported with this cvar regarding the use of “http://” or just “www.” in the cvar definition. As such, you may need to try both settings in order to find the correct one that works for your server. The below examples will show the usage of both options.

NOTE: Regardless of what file path settings you need to use, your web path for this cvar should always be the path to get to the “uo” or “main” folder, but never actually include those folders in the var. Meaning, whether your path is “http://www.bla.com/cod/main/filename.pk3” or it’s “http://www.blabla.com/cod/uo/filename.pk3”, the web path you input for this cvar would always be “http://www.blabla.com/cod”


sv_wwwDlDisconnected

Quote:
This variable controls whether you have people connecting to your server disconnected before the Redirect occurs or to allow them to connect and download at the same time. Due to bandwith issues, for both the client and the server, it is recommended you disconnect the player for the download; let them reconnect; 1 enables, 0 disables.


sv_wwwDownload

Quote:
This is actually the controlling cvar for HTTP Redirect. By setting this value to 1, you enable the feature, setting to 0 disables.



Example HTTP Redirect Settings

Quote:
set sv_wwwDownload 1

set sv_wwwDlDisconnected 0

set sv_wwwBaseURL "www.blabla.com/cod"

//additonal options

set sv_reconnectlimit "3"
set sv_dl_maxRate "42000" // Max download speed 42000 = 12kb


Code:
thanks to MODSonline.com


Solved , should be locked Cool
Related topics
Communication Primitives?!?!?
Php script Cod server stats
The 5 Golden Rules of Professional Design
Splitting a partition
Connect to database that is a not localhost
Need help: Error in Wordpress file
Creating files not locally?
Do you think it is necessary to go to school and work?
Uploading site, public_html folder and server question
Last call for users still using the old server 2
SMTP server question
Faith forum?
Proposal to posters on this forum
Your-IP
Reply to topic    Frihost Forum Index -> Sports and Entertainment -> Games

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.