Download only bz2 files without checking for the orig.

All other Source.Python topics and issues.
canibozz
Member
Posts: 32
Joined: Wed Apr 11, 2018 7:55 am

Download only bz2 files without checking for the orig.

Postby canibozz » Mon Apr 16, 2018 10:04 am

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
User avatar
Zeus
Junior Member
Posts: 26
Joined: Sat Mar 24, 2018 5:25 pm
Location: Chicago
Contact:

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

Postby Zeus » Mon Apr 16, 2018 7:33 pm

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?
User avatar
satoon101
Project Leader
Posts: 2540
Joined: Sat Jul 07, 2012 1:59 am

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

Postby satoon101 » Mon Apr 16, 2018 11:37 pm

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.
Image
canibozz
Member
Posts: 32
Joined: Wed Apr 11, 2018 7:55 am

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

Postby canibozz » Tue Apr 17, 2018 6:56 am

I have a fast DL server.
User avatar
satoon101
Project Leader
Posts: 2540
Joined: Sat Jul 07, 2012 1:59 am

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

Postby satoon101 » Tue Apr 17, 2018 11:15 am

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.
Image
User avatar
Kami
Global Moderator
Posts: 125
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

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

Postby Kami » Tue Apr 17, 2018 4:26 pm

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
decompile
Senior Member
Posts: 349
Joined: Sat Oct 10, 2015 10:37 am
Location: Germany
Contact:

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

Postby decompile » Wed Apr 18, 2018 2:26 pm

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.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest