CS2 icon indicating copy to clipboard operation
CS2 copied to clipboard

Use DepotDownloader to reduce download size

Open pointydev opened this issue 2 years ago • 2 comments

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:

  • Common asset files (including maps): https://steamdb.info/depot/2347770/
  • Linux binaries: https://steamdb.info/depot/2347773/
  • Windows binaries: https://steamdb.info/depot/2347771/

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

pointydev avatar Oct 13 '23 02:10 pointydev

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/

joedwards32 avatar Oct 13 '23 13:10 joedwards32