Game server admin's helping the community setup and maintain great dedicated game servers.
----Home----Submit News ----Forum----Gallery----Guides----Downloads



Go Back   FPSadmin.com > Call of Duty > Call of Duty 2 > CoD2 General server support

Reply
 
Thread Tools Display Modes
  #1  
Old 04-21-2006, 04:33 PM
robert robert is offline
Senior Member
 
Join Date: Jan 2006
Posts: 144
Downloads: 0
Uploads: 0
Rep Power: 9
robert is on a distinguished road
[HOWTO]: downloading files and HTTP redirect

Since the release of the 1.2 patch many people have asked similar questions about the http redirect that has been added in the 1.2 patch. Of course, all these questions have been practically the same and so are the solutions so I’ve decided to document them.

What is the http redirect function?
When you are running a mod or a custom map on your server, your visitors should have the modfiles or the custom map on their computer in order to join your game. If they haven’t, they won’t be able to play on your server. The http redirect function is one of the two ways to get the files to the client.

Why would I use the http redirect function?
In the 1.0 version of Call of Duty 2 the only supported way to get modfiles or custom maps to players was through the server itself. The big disadvantage of this is speed: the downloads through the ‘basic’ download function are slow. Depending on the file size of the files to be downloaded it can take several minutes before the client is ready to join the game. Also, sending files to the client through the gameserver itself takes resources on the machine which can be used for better purposes (keeping your game lag-free, for example).

First of all, you need to know if you are able to use the http redirect. It will probably sound very logical to many of us but in order to use http redirect you need web space. If you do not have any web space, you should either rent some, or forget the idea of the http redirect function as you will not be able to use it.

How do I use the http redirect?
In order to use the http redirect, you basically need to do two things:

1. Uploading the files to your web space.
2. Editing the config file of the gameserver for http redirect usage.

1. Uploading the files to your web space
First, upload the files to your web space. Create a folder in the root of your web space called ‘main’. It’s very important that you create this folder; the http redirect will fail if the folder is not there! After you have created the folder, upload your files to it.

For example:
The website of your clan is: http://www.myclan.com
You upload your files to http://www.myclan.com/main

Naturally, you can also create some more subdirectory’s if you have an unsatisfied need for that. Just make sure that a directory called ‘main’ is in there.

A correct setup is: http://www.myclan.com/cod2/files/main
Not correct is: http://www.myclan.com/files (no ‘main’ directory)
Also not correct: http://www.myclan.com/Call of Duty 2/main (whitespace in directory name)

IIS users should add a mime-type (extension) to make IIS understand it should send the files as a download. Adding the ‘iwd’ extension should do the trick. Apache users won’t have to worry about anything.

2. Editing the config file
Now we need just to make some minor changes to the config file. There are four dvars available for http redirect:
  1. sv_allowDownload (0/1)
    Set this to "1" to permit downloads on your server
  2. sv_wwwDownload (0/1)
    Set this to "1" to permit www downloads.
  3. sv_wwwBaseURL (String URL)
    The URL where your files are (without ‘main’).
    For example: if your files are in http://www.myclan.com/main, the value for this setting should be "http://www.myclan.com".
  4. sv_wwwDlDisconnected (0/1)
    When setting this to "1" it disconnects the client from the server while downloading so it’s not using a slot on the gameserver.

I hope this well help some people getting their HTTP redirect setup correctly. If you have any questions or comments feel free to reply in this thread.

Last edited by robert; 04-22-2006 at 08:45 PM.
Reply With Quote
  #2  
Old 04-21-2006, 06:25 PM
BoSBrian's Avatar
BoSBrian BoSBrian is offline
FPSadmin -Crew-
 
Join Date: Sep 2004
Location: Ohio
Age: 43
Posts: 516
Downloads: 1
Uploads: 0
Rep Power: 12
BoSBrian will become famous soon enoughBoSBrian will become famous soon enough
Send a message via AIM to BoSBrian Send a message via MSN to BoSBrian
FANTASTIC post!

I do believe however that there is one more cvar that needs to be set for the downloads to work properly.

seta sv_allowdownload "1"

I'm pretty sure this cvar needs set whether you're doing a http redirect OR directly from the game server.
__________________

Reply With Quote
  #3  
Old 04-21-2006, 11:35 PM
Tex Tex is offline
Senior Member
 
Join Date: Jan 2005
Posts: 112
Downloads: 0
Uploads: 0
Rep Power: 10
Tex is on a distinguished road
Cool

Good job, lots of helpful info!!!!!!
__________________
<div class='wideimg'></div>
Reply With Quote
  #4  
Old 04-22-2006, 12:16 PM
OldDog's Avatar
OldDog OldDog is offline
Administrator Emeritus
 
Join Date: Oct 2003
Location: Essex Junction, Vermont
Age: 67
Posts: 1,495
Downloads: 5
Uploads: 0
Rep Power: 17
OldDog is a glorious beacon of lightOldDog is a glorious beacon of lightOldDog is a glorious beacon of lightOldDog is a glorious beacon of lightOldDog is a glorious beacon of light
I concur, robert...good job. Also, Brian is correct about the additional dvar.

Quote:
Originally Posted by BoSBrian
FANTASTIC post!

I do believe however that there is one more cvar that needs to be set for the downloads to work properly.

seta sv_allowdownload "1"

I'm pretty sure this cvar needs set whether you're doing a http redirect OR directly from the game server.
__________________

Reply With Quote
  #5  
Old 04-22-2006, 08:46 PM
robert robert is offline
Senior Member
 
Join Date: Jan 2006
Posts: 144
Downloads: 0
Uploads: 0
Rep Power: 9
robert is on a distinguished road
Thanks for the feedback

I have edited the thread.
Reply With Quote
  #6  
Old 04-24-2006, 02:02 PM
[us]Wambo [us]Wambo is offline
Junior Member
 
Join Date: Apr 2006
Posts: 3
Downloads: 0
Uploads: 0
Rep Power: 0
[us]Wambo is on a distinguished road
I need a little help (well, I need a lot of help, but let's start small)

I have my server running Decoy_02, but the redirect still doesn't work.

When you log on to the server it shows the redirect site, but then switches and starts downloading from the game server.

Any clue what I'm doing wrong

I want the redirect to go here http://wambo.unknownsoldiers.us/
which is my clan ftp space

and here are the changes I made to the server.cfg file

sv_allowDownload "1"
sv_wwwDownload "1"
sv_wwwBaseURL "http://wambo.unknownsoldiers.us"
sv_wwwDIDisconnected "1"

server ip is 69.65.0.60:28960 if you want to see what the problem is.

any help would be great

Last edited by [us]Wambo; 04-24-2006 at 02:04 PM.
Reply With Quote
  #7  
Old 04-24-2006, 02:05 PM
BoSBrian's Avatar
BoSBrian BoSBrian is offline
FPSadmin -Crew-
 
Join Date: Sep 2004
Location: Ohio
Age: 43
Posts: 516
Downloads: 1
Uploads: 0
Rep Power: 12
BoSBrian will become famous soon enoughBoSBrian will become famous soon enough
Send a message via AIM to BoSBrian Send a message via MSN to BoSBrian
Try this:

sv_wwwBaseURL "http://wambo.unknownsoldiers.us/"

You need the / at the end.
__________________

Reply With Quote
  #8  
Old 04-24-2006, 02:12 PM
[us]Wambo [us]Wambo is offline
Junior Member
 
Join Date: Apr 2006
Posts: 3
Downloads: 0
Uploads: 0
Rep Power: 0
[us]Wambo is on a distinguished road
:confused: no sorry, that didn't work :confused:

I removed the / because now when I try to join I see two of them.
Reply With Quote
  #9  
Old 04-24-2006, 04:26 PM
robert robert is offline
Senior Member
 
Join Date: Jan 2006
Posts: 144
Downloads: 0
Uploads: 0
Rep Power: 9
robert is on a distinguished road
Try to rename the 'Main' dir in your webspace to 'main' (lowercase). Just want to clear something out...
Reply With Quote
  #10  
Old 04-24-2006, 04:30 PM
[us]Wambo [us]Wambo is offline
Junior Member
 
Join Date: Apr 2006
Posts: 3
Downloads: 0
Uploads: 0
Rep Power: 0
[us]Wambo is on a distinguished road
Thanks for your help, but that didn't work....

It is working, but that's only because I have the greatest server company out there.

Not only did they get it working for me, but they host the redirect site for me.

Check them out http://www.light-speed.com/
Reply With Quote
  #11  
Old 04-24-2006, 04:46 PM
BoSBrian's Avatar
BoSBrian BoSBrian is offline
FPSadmin -Crew-
 
Join Date: Sep 2004
Location: Ohio
Age: 43
Posts: 516
Downloads: 1
Uploads: 0
Rep Power: 12
BoSBrian will become famous soon enoughBoSBrian will become famous soon enough
Send a message via AIM to BoSBrian Send a message via MSN to BoSBrian
Let us in on the solution....
__________________

Reply With Quote
  #12  
Old 04-24-2006, 06:53 PM
Ghost-Ryder Ghost-Ryder is offline
Senior Member
 
Join Date: Nov 2003
Posts: 618
Downloads: 12
Uploads: 0
Rep Power: 12
Ghost-Ryder is on a distinguished road
What is the DIR to the redirect files?
Where are the Files located on your server (witch folder)?

If you run +fs_game then you need to redirect the download to the same name folder as the +Fs_game folder.

Lets say you name the mod folder AWEMod
+fs_game AWEMod in your command line
so you need to redirect to http://www.ursite.com/AWEMod
It wont look in main if there are not in the main folder on ur server.

Last edited by Ghost-Ryder; 04-24-2006 at 07:06 PM.
Reply With Quote
  #13  
Old 05-01-2006, 01:24 AM
Diva's Avatar
Diva Diva is offline
Senior Member
 
Join Date: Nov 2003
Location: Seattle
Posts: 399
Downloads: 0
Uploads: 0
Rep Power: 12
Diva is on a distinguished road
Send a message via MSN to Diva
ok i have a question regarding the redirect

if i have my mods and maps on the webserver will it default and download everything from there automatically or do i need to set up seperate lines in the config for each map?

becasue it seems like the mod is being downloaded from the webserver it shows the addy and the map from the server just shows main/map name

Thanks
D
__________________
Adult Clan of 9 Years Recruiting (TNT) BLOWOUT
CoD Series, BF Series, and LFD


Last edited by Diva; 05-01-2006 at 01:32 AM.
Reply With Quote
  #14  
Old 05-01-2006, 09:32 AM
xGrunt xGrunt is offline
Senior Member
 
Join Date: Oct 2005
Posts: 119
Downloads: 0
Uploads: 0
Rep Power: 10
xGrunt is on a distinguished road
Only a single redirect line in the config is needed. But as Ghost-Ryder says, you need to pay attention to the directory structure of the download server and make sure the location matches the folder indicated by +set fs_game.

If you're not using +set fs_game, then you would use the /main folder.
__________________
__________________________________________
www.xodusgaming.com
COD2 Public Server 70.84.83.205:28960
Reply With Quote
  #15  
Old 05-01-2006, 10:01 AM
robert robert is offline
Senior Member
 
Join Date: Jan 2006
Posts: 144
Downloads: 0
Uploads: 0
Rep Power: 9
robert is on a distinguished road
Good point, I didn't write that +fs_game in the howto. I will update it.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I Can't See My Server In Any Browser!! nick288112 CoD UO General server Support 1 07-31-2006 03:25 PM
I can't see my server in list but i can join nick288112 CoD General server support 0 07-20-2006 09:38 PM
Having trouble seeing server in the COD in game list tbag CoD UO General server Support 12 09-26-2005 12:52 AM
New router is driving me crazy!!! 2shaggy CoD UO General server Support 19 12-29-2004 02:06 AM
Need help with CoD UO server setup machinemaintenance CoD UO General server Support 7 09-26-2004 03:35 PM


All times are GMT -4. The time now is 04:35 PM.


Powered by: vBulletin Copyright ©2000, Jelsoft Enterprises Ltd.