Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

bugdone/packrat

Repository files navigation

This project only made sense back in the day when there were no better alternatives. See packrat.js

About

Packrat downloads the latest CSGO matchmaking demos for a set of steam accounts.

Dependencies

On Windows you need the Visual C++ Redistributable Packages for VS 2013 x86

Disclamers

C++ code is based on https://bitbucket.org/ACB/boiler hence GPL3.

Usage

Edit packrat.ini to configure the path to steam binary, demo directory and steam accounts.

If you don't have any accounts configured, it will download the demos for the currently logged in account if steam is running. Otherwise, running packrat kills the current steam process, launches steam logged in with each user and downloads the latest 8 demos (if they aren't present in that directory). Since steam pops up windows (log in window, steam window) when it starts even with -silent (which doesn't seem to work at all on linux) the most convenient way to use it is to set it up in cron/windows scheduled tasks (ie. run every night at 4:00).

It will NOT check if the downloaded demos are corrupted.

Since packrat generates the same files that the csgo client does when downloading a demo from the Watch menu (x.dem and x.dem.info), the demos should show up in the Watch menu.

Build dependencies

Building on Linux

Download Steamworks SDK (you need to create a free account) and extract it somewhere. Set the environment variable STEAMWORKS_SDK to the path where you extracted it. Cmake will use it to figure out the paths to libs and headers.

For protobuf a package named something like protobuf-dev should be available on your official distribution repository.

Once the dependencies are set, run the usual mkdir build && cd build && cmake .. && make

The broiler binary needs to find steam_appid.txt into its directory or the directory from where it is run.