A simple script that extracts CS2 radar images and metadata from the game. Requires a local CS2 installation.
Depends on ValveResourceFormat to extract the images from the proprietary compiled Valve formats used by the game.
- Install Python dependencies:
$ pip install vpk vdf pillow sortedcollections
- Install
ValveResourceFormat
:
Refer to the
releases
for precompiled binaries. In particular, you need the Decompiler
executable.
It must be present in $PATH
for the script to work.
- Set the path to your CS2 install:
$ export CS2_PATH="/path/to/cs2"
The path could be retrieved from Steam if you don't know it.
- Run the script
$ python extract.py
To run this project via Docker, you can use the prebuilt Docker image like so:
$ docker run \
-v "${CS2_PATH}:/cs2:ro" \
-v ./output:/data/output \
ghcr.io/invakid404/cs2-radar-extractor
Nix users can directly skip to step 3 when using the provided shell.nix
file.