Skip to main content

Upload your Slay the Spire 2 runs to mbgg analytics server

Project description

mbgg-sts2-uploader

CLI tool to upload your STS run history to my analytics server (give me your run histories pls).

Features

Automatic discovery - Searches your computer and finds your run history files Duplicate detection - Only uploads runs that aren't already on the server Steam ID extraction - Detects your Steam ID and sends it with the uploaded files Cross-platform - macOS, Windows Access Code - Uploads have to be authorized with an access code. Ask Andrew for the code

Installation

pip install mbgg-sts2-uploader

Usage

Recommended (prompts for access code)

mbgg-sts2-upload

Upload with access code

mbgg-sts2-upload --access-code YOUR_SECRET_CODE

Dry run, shows what would be uploaded

mbgg-sts2-upload --dry-run

All options

mbgg-sts2-upload --help

How It Works

  1. Finds run files - Searches your STS2 save directory for .run files
  2. Extracts Steam ID - Gets your Steam ID from the directory structure
  3. Computes hashes - Calculates SHA256 hash of each run file
  4. Checks server - Asks the server which runs it already has
  5. Uploads missing runs - Uploads runs that aren't already on the server

File Locations

macOS

~/Library/Application Support/SlayTheSpire2/steam/{STEAM_ID}/profile*/saves/history/*.run

Windows

%APPDATA%/SlayTheSpire2/steam/{STEAM_ID}/profile*/saves/history/*.run

Troubleshooting

"Could not find Steam ID"

Make sure you've played at least one game of Slay the Spire 2.

"No run files found"

Check that the game is installed and you have save files.

"Access denied: Invalid access code"

Your access code is incorrect. Ask Andrew for the code.

"Connection refused"

Make sure the server is running and accessible.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mbgg_sts2_uploader-0.2.3.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mbgg_sts2_uploader-0.2.3-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file mbgg_sts2_uploader-0.2.3.tar.gz.

File metadata

  • Download URL: mbgg_sts2_uploader-0.2.3.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for mbgg_sts2_uploader-0.2.3.tar.gz
Algorithm Hash digest
SHA256 87be8c786cdf65fec695a8a441adb98cb0ff6c9e9c4fdff0a9e29c63d7e7912c
MD5 23114f46d8889aa30a34602df44234e6
BLAKE2b-256 7b224b9f361425f34e5d9140d6e552ddb3a2aac8c4dbd7e90790f9531263e6bb

See more details on using hashes here.

File details

Details for the file mbgg_sts2_uploader-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for mbgg_sts2_uploader-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b78cd4c70284b4b407cbc02e95f439ea7d5228a1a0faade1ceb33b78569e2746
MD5 e5f7ae4b32c19ac34dc4536a9914f77b
BLAKE2b-256 33987d4f88c65240332091a769a3018b3323023042d8951e6c69bb4b334a0e98

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page