Skip to content

saulbellowcharades439/Sts2Repairer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

sts2_repairer

Python CLI Scope

sts2_repairer is a small CLI tool for repairing common C# decompilation artifacts in a Slay the Spire 2 project export.

Requirements

  • Python 3.12 or newer
  • A decompiled/exported Slay the Spire 2 project directory

Quick Start

Run the script from this repository:

python sts2_repairer.py "C:\Path\To\Your\Project"

If you are already inside the target project directory:

python "C:\Path\To\sts2_repairer.py"

If you want to preview changes without writing files:

python sts2_repairer.py "C:\Path\To\Your\Project" --dry-run

Usage

python sts2_repairer.py [project_dir] [--dry-run]

Arguments

  • project_dir Project root directory. If omitted, the current directory is used.

  • --dry-run Scans the project and reports planned changes without modifying files.

Examples

Repair the current directory:

python sts2_repairer.py

Repair a specific exported project:

python sts2_repairer.py "C:\Users\YourName\Desktop\Slay the Spire 2"

Preview changes only:

python sts2_repairer.py "C:\Users\YourName\Desktop\Slay the Spire 2" --dry-run

Output

Typical output looks like this:

Target directory: C:\Users\YourName\Desktop\Slay the Spire 2
Applied 3 change(s):
- src/Core/Helpers/StringHelper.cs: Fix GeneratedRegex decompilation artifacts
- src/Core/Entities/Ancients/AncientDialogueSet.cs: Apply allowlist compatibility fixes
- sts2.csproj: Raise LangVersion to 13.0 for net9 projects

If no changes are needed:

Target directory: C:\Users\YourName\Desktop\Slay the Spire 2
No changes were needed.

If you use --dry-run, the script prints the same summary without writing files.

Recommended Workflow

  1. Export or decompile the project.
  2. Run sts2_repairer on the project root.
  3. Re-run with --dry-run if you want to confirm the project is already clean.
  4. Open the repaired project in your editor or build environment.

Notes

  • Point the script at the exported project root, not at the installed game binaries folder.
  • The tool is safe to run multiple times on the same project.
  • Some warnings may still remain after repair. This tool focuses on common decompilation issues that block normal project recovery.

File Location

This repository ships the tool here:

sts2_repairer.py

About

Fix common C# decompilation issues in Slay the Spire 2 project exports using a simple Python CLI tool.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages