Jump to content

Redirect for downloading files problem


sizif

Recommended Posts

Hi all,

I have created Cod4 ind patched it manually because I couldn't make it work from TCA.patches. That didn't represent any problems because everyone is using latest patch so it's done. Now I have problem with mods.

When I create mod in TCA.mods it doesn't work because game engine just needs to have mods folder in root cod4 folder in user files.

I can make it if I make mods folder in root cod4 in userfiles and run it, add command line and it works perfectly. I make mods and configurations and my brother makes maps for cod4. Problem is that mods and maps are custom and when users try to connect they download mod an map with speed of 10-12kps.

I just can't force users to pull download from another location on the same server. It's starting to make me crazy.

 

How to make redirect to work or to allow users to download at full speed.

Please help!

Link to comment
Share on other sites

Not sure if this is answer you are looking for,just fill in lines in server.cfg if you dont have those lines for redirect here you go:

 

Add the lines below to your server.cfg and put yout details where are those mods

 

set sv_allowdownload "1"

seta sv_wwwDownload "1"

seta sv_wwwBaseURL "http://server_ip_here.com/cod4_fast_dl"

seta sv_wwwDlDisconnected "0"

Link to comment
Share on other sites

Not sure if this is answer you are looking for,just fill in lines in server.cfg if you dont have those lines for redirect here you go:

 

Add the lines below to your server.cfg and put yout details where are those mods

 

set sv_allowdownload "1"

seta sv_wwwDownload "1"

seta sv_wwwBaseURL "http://server_ip_here.com/cod4_fast_dl"

seta sv_wwwDlDisconnected "0"

 

This is exactly what I'm trying to do.

Folder is located on C:download/cod4/

 

set sv_allowdownload "1"

seta sv_wwwDownload "1"

seta sv_wwwBaseURL "http://XX.XX.XXX.XX/download/cod4_fast_dl"

seta sv_wwwDlDisconnected "0"

 

...restarted server and it doesn't work. You can see that it tries but then returnes to default location. My server can view http://XX.XX.XXX.XX: -but with port, not word download. Maybe that is problem. I will try all possible combinations.

 

If You have anything that could help me, please do so.

 

Thanks!!

Link to comment
Share on other sites

I think you might have missed to add MIME types on your web server.

You need to add '.ff' and '.iwd' in this case, as 'application/octet-stream'

 

You can try this by accessing the file through your browser, if they won't download - then you most likely need to add the MIME.

 

You can add new MIME types through IIS Manager (Win) on your webserver (consult Google for how-to)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Who's Online   0 Members, 0 Anonymous, 17 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use