ValveSoftware / csgo-osx-linux

Counter-Strike: Global Offensive
http://counter-strike.net
787 stars 69 forks source link

Downloading custom files from "community" servers doesn't work [Round 2] #2047

Open fomulupa opened 5 years ago

fomulupa commented 5 years ago

I believe this is the same issue as #11, and I am opening a new issue because this is still happening for me.

System information

https://gist.github.com/fomulupa/7aca6d5b4f721e4b5e34cfd633327532

Please describe your issue in as much detail as possible:

When I try to connect to a community server (or type connect IP_ADDRESS) I expect to download the needed files and connect to the server. What happens is that it tries to download the map, fails, and I get kicked to the main menu with the message "Missing map maps/bhop_nuclear_csgo.bsp, disconnecting".

Here is the log from the console:

https://gist.github.com/fomulupa/c5eb9035665a647ae4fb624771648190

Steps for reproducing this issue:

  1. Connect to a FastDL server
megoRU commented 5 years ago

@fomulupa Hi Try this in server.cfg

sv_downloadurl "http://45.144.66.127/fastdl/csgo-ze" or sv_downloadurl "https://megolox.ru/fastdl/csgo"
sv_allowdownload "1"
sv_allowupload "1"
RusJJ commented 5 years ago

@megoRU, that's how i fixed dat on mine own.

Nuc1eoN commented 5 years ago

Ok my bug has been rightfully closed as duplicate so I am here reporting that I can reproduce this issue :)

Mathisca commented 5 years ago

Same issue here. The data is being transferred, but the download fails exactly 30 seconds after it started. Downloading works fine on small models / maps.

bubobih commented 4 years ago

Any fix about this problem? it still exist

RusJJ commented 4 years ago

This problem never were exist. Setup your FastDL.

bubobih commented 4 years ago

it exist if u set domain, if u set ip than there is no problem... so on domain some players have problems downloading... u have 10000 threads about this on net.

RusJJ commented 4 years ago

No problems since 2017.

RusJJ commented 4 years ago

Btw i dont understand you. Domain? Do you mean external dowloading url that called FastDL? ...

bubobih commented 4 years ago

if u are using ip as fdl then u shoudnt have problems but if u use http://domain.com/fdl some players have problems and get ejected to main menu with message that bsp cant be downloaded... i test it today with 1 player who has a problem and when i switch to ip then he download regulary a bsp.... many ppl complain maybe ppl have problem on your server too but u dont know about that... i didnt know half year that this can be problem and idk how many ppl get ejected and they pass my server and go to play somewehere else....

XakepSDK commented 4 years ago

I have same problem.

Downloading http://45.144.66.127/fastdl/csgo-ze//maps/ze_crazykart_v4.bsp.bz2.
Error downloading http://45.144.66.127/fastdl/csgo-ze//maps/ze_crazykart_v4.bsp.bz2
Downloading http://45.144.66.127/fastdl/csgo-ze//maps/ze_crazykart_v4.bsp.
Error downloading http://45.144.66.127/fastdl/csgo-ze//maps/ze_crazykart_v4.bsp

Server: goze.net4all.ru:27015

RusJJ commented 4 years ago

I have same problem.

Downloading http://45.144.66.127/fastdl/csgo-ze//maps/ze_crazykart_v4.bsp.bz2.
Error downloading http://45.144.66.127/fastdl/csgo-ze//maps/ze_crazykart_v4.bsp.bz2
Downloading http://45.144.66.127/fastdl/csgo-ze//maps/ze_crazykart_v4.bsp.
Error downloading http://45.144.66.127/fastdl/csgo-ze//maps/ze_crazykart_v4.bsp

Server: goze.net4all.ru:27015

Maybe try 45.144.66.127 => 45.144.66.127:80, maybe it will work. But im not sure...

iamalisajid commented 4 years ago

👍 still having this

megoRU commented 4 years ago

👍 still having this

this fix https://github.com/ValveSoftware/csgo-osx-linux/issues/2047#issuecomment-476552372

megoRU commented 4 years ago

http://45.144.66.127/fastdl/csgo-ze/

you have double "//" use this: sv_downloadurl "http://45.144.66.127/fastdl/csgo-ze"

iamalisajid commented 4 years ago

@megoRU how to set the downloadurl for a custom map residing on my own server ?

megoRU commented 4 years ago

@megoRU how to set the downloadurl for a custom map residing on my own server ?

u mean local server?

iamalisajid commented 4 years ago

@megoRU how to set the downloadurl for a custom map residing on my own server ?

u mean local server?

my own hosted server

RusJJ commented 4 years ago

@megoRU how to set the downloadurl for a custom map residing on my own server ?

u mean local server?

my own hosted server

You need any web fileserver. Or a simple web for example. Just put csgo/ contents to any folder on your web and simply put "web_address or IP + that folder location" to sv_downloadurl

karo-solutions commented 4 years ago

http://45.144.66.127/fastdl/csgo-ze/

you have double "//" use this: sv_downloadurl "http://45.144.66.127/fastdl/csgo-ze"

I also think the double // is the reason for the download error. (= the trailing slash added to the sv_downloadurl). Unfortunately you can only fix this URL if you own that server. I've found no way to overwrite this URL from client side, so I cannot validate this assumption.

As a workaround you can download those files manually and put them in your csgo folder. In my case the console shows: Error downloading https://rbz-community.de/fastdl/jail//models/[somemodel].. Using the command wget from here I was able to download all files in bulk.

Full command I've used: wget --level=inf -r -nc --cut-dirs=2 -np -R "index.html*" https://rbz-community.de/fastdl/jail/

In my case all those files are bz2 compressed. To extract all of them you can use: bzip2 -d $(find . -type f -name "*.bz2")

Move those files to [steamlocation]/steam/steamapps/common/Counter-Strike Global Offensive/csgo and merge the folders. Now you should be able to connect to the server.

LightBasileus commented 3 years ago

I'm having the same problem. Two servers fastdls that I know work on windows are not working on linux. The bsp.bz2 files fail to download. I don't believe the files are corrupted. Just not successfully downloading. The nav.bz2 files download without a problem.

Downloading http://fdl.edge-gamers.com/csgo/bhop/maps/bhop_japan.bsp.bz2.
Error downloading http://fdl.edge-gamers.com/csgo/bhop/maps/bhop_japan.bsp.bz2
Downloading http://fdl.edge-gamers.com/csgo/bhop/maps/bhop_japan.bsp.
Error downloading http://fdl.edge-gamers.com/csgo/bhop/maps/bhop_japan.bsp
Nuc1eoN commented 3 years ago

Time to fork CSGO :P

ProjectSynchro commented 2 years ago

Has any action happened on this issue? If the original date of this issue is anything to go by it's been an issue for 2 years. a comment would be nice.

Some servers don't have an index.html available which unfortunately means the workaround described in https://github.com/ValveSoftware/csgo-osx-linux/issues/2047#issuecomment-733909622 doesn't work 100% of the time.

dahlend commented 2 years ago

This has been an ongoing issue for me as well.

BlackYuzia commented 2 years ago

I complete a few tests and I think I could say next:

  1. Nevermind did you put / on the end or not in sv_downloadurl cvar. That means, no different between sv_downloadurl "p.kruzya.idor/" and sv_downloadurl "p.kruzya.idor"
    1. Because // could be ignored in url
    2. Because I test it :eyes:
  2. If you have [name].bsp.bz2 in maps/, then you get error on try download [name] file.
  3. If you have [name].bsp.bz20000 in cache/, then you also get error on try download this file., suppose no
  4. As I say in 1.1 and 1.2. I test both, with // and without it (only one /). If you have file in cache/ or/and in maps/ folder, you will get error as with //, also as with /.
kleinermob commented 1 year ago

Issue still exists, need to download it manually and extract it.