CoD4x_Server icon indicating copy to clipboard operation
CoD4x_Server copied to clipboard

Problems with downloads

Open gasofa opened this issue 2 years ago • 15 comments

Hello guys. My name is Gasofa and I am from the SPS clan. We have recently returned to call of duty 4 and the new version of the cod4x mod is giving me a problem that I cannot solve. I have players who enter the game and download at 2 and 3 Mb/s while others redirect fails and download at 10 Kb/s Is there any way to solve this?

Greetings and thanks.

gasofa avatar Oct 01 '22 11:10 gasofa

Do they download faster using the URLs in a web browser?

bbashy avatar Oct 01 '22 11:10 bbashy

if i use this redirection

// Client Download Settings. (0=off/1=on) Used for MODs and custom maps // See included Quick Setup Guide for instructions. set sv_allowdownload "1" set sv_wwwDownload "1" set sv_wwwBaseURL "http://www.readyandplay.com/cod4-1" set sv_wwwDlDisconnected "0"

It works for me and a few others but there are people who don't

Why some yes and others no?

gasofa avatar Oct 01 '22 12:10 gasofa

Says 403 for me.

$ curl -IL http://www.readyandplay.com/cod4-1
HTTP/1.1 301 Moved Permanently
Server: aruba-proxy
Date: Sat, 01 Oct 2022 12:06:36 GMT
Content-Type: text/html
Content-Length: 168
Connection: keep-alive
Location: https://www.readyandplay.com/cod4-1
X-ServerName: ipvsproxy99.ad.aruba.it

HTTP/2 301
server: aruba-proxy
date: Sat, 01 Oct 2022 12:06:36 GMT
content-type: text/html; charset=iso-8859-1
location: http://www.readyandplay.com/cod4-1/
x-servername: ipvsproxy99.ad.aruba.it

HTTP/1.1 301 Moved Permanently
Server: aruba-proxy
Date: Sat, 01 Oct 2022 12:06:36 GMT
Content-Type: text/html
Content-Length: 168
Connection: keep-alive
Location: https://www.readyandplay.com/cod4-1/
X-ServerName: ipvsproxy99.ad.aruba.it

HTTP/2 403
server: aruba-proxy
date: Sat, 01 Oct 2022 12:06:36 GMT
content-type: text/html; charset=iso-8859-1
vary: Accept-Encoding

bbashy avatar Oct 01 '22 12:10 bbashy

Hello bbshy. I don't understand that mistake?

It can be fixed?

thanks for your help

gasofa avatar Oct 01 '22 12:10 gasofa

You need a working 'public' URL for fastdl.

What happens when you view that link in your web browser?

bbashy avatar Oct 01 '22 12:10 bbashy

Makes me Forbidden You don't have permission to access this resource.

if i give above the url

gasofa avatar Oct 01 '22 12:10 gasofa

Actually, you can do that but the full URL to the files should be working.

Do you have a URL to a mod file?

Like; https://www.readyandplay.com/cod4-1/mods/pml220/mod.ff

bbashy avatar Oct 01 '22 12:10 bbashy

try this link: here if you download the file https://www.readyandplay.com/cod4-1/mods/sps_x4/mod.ff

gasofa avatar Oct 01 '22 12:10 gasofa

when I put https:// in my server.cfg it doesn't work for me it only works with http://

gasofa avatar Oct 01 '22 12:10 gasofa

HTTPS is not supported for the URL.

Make sure there's no force HTTPS redirect on the web server because I can't download it via HTTP;

$ curl -I http://www.readyandplay.com/cod4-1/mods/sps_x4/mod.ff
HTTP/1.1 301 Moved Permanently
Server: aruba-proxy
Date: Sat, 01 Oct 2022 14:40:08 GMT
Content-Type: text/html
Content-Length: 168
Connection: keep-alive
Location: https://www.readyandplay.com/cod4-1/mods/sps_x4/mod.ff
X-ServerName: ipvsproxy99.ad.aruba.it

Seems like a problem not relating to CoD4x.

bbashy avatar Oct 01 '22 14:10 bbashy

https://user-images.githubusercontent.com/24795933/193416085-801fb3f5-f6dc-448f-9893-7f4992821f8f.mp4

gasofa avatar Oct 01 '22 15:10 gasofa

HTTPS doesn't work.

bbashy avatar Oct 01 '22 21:10 bbashy

If I put it in https it works for me, if I put it in http it works for me, it's weird that there are people who don't work in http or https

https://user-images.githubusercontent.com/24795933/193430724-8f7d967f-b0a8-4e3b-820f-4bbc69d68320.mp4

gasofa avatar Oct 01 '22 22:10 gasofa

This is the error it gives the user:

Hitch warning: 1986 msec frame time clientDownload: 0 : file "usermaps/mp_sps_old_west/mp_sps_old_west.iwd" completed clientDownload: 0 : beginning "mods/sps_x4/mod.ff" Redirecting client 'Shupeinator' to http://www.readyandplay.com/cod4-1/mods/sps_x4/mod.ff Client 'Shupeinator' reported that the http download of '' failed, falling back to a server download

gasofa avatar Oct 01 '22 23:10 gasofa

Hello bbashy. We have modified some parameters on our website and now it downloads at 30 mb/s. Thanks for everything

gasofa avatar Oct 02 '22 21:10 gasofa