Skip to content

A simple script that extracts CS2 radar images and metadata.

License

Notifications You must be signed in to change notification settings

invakid404/cs2-radar-extractor

Repository files navigation

cs2-radar-extractor

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.

Quick Start

Manual

  1. Install Python dependencies:
$ pip install vpk vdf pillow sortedcollections
  1. 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.

  1. 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.

  1. Run the script
$ python extract.py

Docker

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

Nix users can directly skip to step 3 when using the provided shell.nix file.