joedwards32 / CS2

CS2 Dedicated Server Docker Image
https://hub.docker.com/r/joedwards32/cs2
MIT License
269 stars 53 forks source link

Use DepotDownloader to reduce download size #24

Open pointydev opened 10 months ago

pointydev commented 10 months ago

As you know, the game files used by the client are also downloaded when running a CS2 server, rather than just files dedicated to that purpose. However, you can use a third party application called DepotDownloader to ignore certain files using the -filelist and -depot parameters, therefore cutting down on download size. DepotDownloader can also cache Steam Guard credentials.

The lists of files can be found here:

The asset files found in these depots can be inspected using Source 2 Viewer (aka ValveResourceFormat), which may be able to identify files not needed for DS operation.

Thanks, pointy

joedwards32 commented 10 months ago

Cool idea!

The challenge will be figuring out which files can be done away with.

Currently, the best way to get the container to start quickly is to attach a persistent volume so that you only need to download updates on container start:

-v /var/lib/docker/cs2-data:/home/steam/cs2-dedicated/