Page 1 of 1

Download only bz2 files without checking for the orig.

Posted: Mon Apr 16, 2018 10:04 am
by canibozz
Hello,

i've a question regarding the downloading files proccess.
Let's say you bzipped the content so CSGO does a faster download.

Files on server:

Code: Select all

    materials/custom/blah.vtf.bz2
    materials/custom/blah.vmt.bz2


Expectation:
> dl.add_directory('materials/custom/')
> User connects
> User downloads *.bz2 files and connects.

Observed result:
> dl.add_directory('materials/custom/')
> User connects
> User downloads *.bz2 files
> User checks and skips file *.vtf, *.vmt because it already exists
-> This delays the connection process!
>User connects.

Is it possible to let CSGO only download the *.bz2 files because checking and skipping the original files takes every long.



Cheers,
CANi

Re: Download only bz2 files without checking for the orig.

Posted: Mon Apr 16, 2018 7:33 pm
by Zeus
When it checks the vtf / vmt files; is it doing some kind of hash compairison, and can the server publish those hashes that the client can consume?

Re: Download only bz2 files without checking for the orig.

Posted: Mon Apr 16, 2018 11:37 pm
by satoon101
bz2 files are only designed to be downloaded from a fast download url, not from the actual server itself. I just tested locally, and it did not even attempt to download the bz2 file directly from the server.

Re: Download only bz2 files without checking for the orig.

Posted: Tue Apr 17, 2018 6:56 am
by canibozz
I have a fast DL server.

Re: Download only bz2 files without checking for the orig.

Posted: Tue Apr 17, 2018 11:15 am
by satoon101
Right. Then you put the non-bz2 file on the server and the bz2 file on the fast download server. Then you add the non-bz2 file to the downloadables table. When a client connects, they will then download the bz2 file from the fast download server.

Re: Download only bz2 files without checking for the orig.

Posted: Tue Apr 17, 2018 4:26 pm
by Kami
If you connect and See vtf and vmt Files beeing downloaded (everytime you Join) that means those are Missing from the Download Location.

For example: you add test.vtf to your Downloadables. Now the client Looks for the download and cannot find it.

If all Files are downloaded correctly you should Not See the vtf Files anywhere in the connectscreen

Re: Download only bz2 files without checking for the orig.

Posted: Wed Apr 18, 2018 2:26 pm
by decompile
I think its kind of hardcoded into the game.

On connect it checks the "Downloadables Table" and checks for each player if the chosen file already exist on the player's harddrive or if it has to be downloaded from either the server or a fast download server.

I think he means to skip the "checks each player if the file does already exist on the players harddrive".

Not having this check, would lead into every player downloading on every map change your downloadables and would bury your bandwith.