sts2_repairer is a small CLI tool for repairing common C# decompilation artifacts in a Slay the Spire 2 project export.
- Python 3.12 or newer
- A decompiled/exported Slay the Spire 2 project directory
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-runpython sts2_repairer.py [project_dir] [--dry-run]
-
project_dirProject root directory. If omitted, the current directory is used. -
--dry-runScans the project and reports planned changes without modifying files.
Repair the current directory:
python sts2_repairer.pyRepair 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-runTypical 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.
- Export or decompile the project.
- Run
sts2_repaireron the project root. - Re-run with
--dry-runif you want to confirm the project is already clean. - Open the repaired project in your editor or build environment.
- 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.
This repository ships the tool here:
sts2_repairer.py