<!-- Canonical page: https://reversedwithai.com/p/victoria-3-5a8d436a -->
Canonical page: https://reversedwithai.com/p/victoria-3-5a8d436a

# Victoria3-Tools provides save file editing and game mechanics research utilities

> A collection of Python scripts and procedures for reading, modifying, and checksum-fixing Victoria 3 save files.

Victoria3-Tools enables surgical editing of Victoria 3 .v3 save files. It includes a byte-exact reader/writer, checksum repair, and RNG reroll tools. The project is verified against version 1.13.11 and was co-authored with Claude Opus 5.

## Key facts

- Target: Victoria 3
- Category: Games and mods
- Platform: Linux
- Models: Claude
- Tools: Python, gdb, rakaly
- Outcome: Works
- Checks: Source available: not reported; Repro steps: not reported; Real hardware: not reported; Verified by others: not reported
- Author: Lexa-B
- Added: 2026-11-29
- Updated: 2026-11-29
- Sources reviewed: 2026-11-30 (automated reviewer)

## What was done

Victoria3-Tools provides a set of Python scripts and documentation for reading and editing Victoria 3 .v3 save files. The repository includes `lib/pdxsave.py`, which performs byte-exact reading and writing of save containers, compression, and checksums. The author reports that the output of this library is byte-identical to saves generated by the game. Additional components include `lib/murinv.py` for murmur3-32 operations and `lib/salt_attach.gdb`, a script for recovering the checksum salt from a running game process. The tools are verified against Victoria 3 version 1.13.11, with documentation paths oriented toward Linux Steam installations. The project includes procedures for tasks such as RNG rerolling, law enactment modification, and construction queue editing. Claude Opus 5 is credited as a co-author on the initial commits. The README documents that while edited saves use the game's format and valid checksums, edits may result in inconsistent game states. Users are advised to maintain original save files. See the [repository](https://raw.githubusercontent.com/lexa-b/victoria3-tools/HEAD/README.md) for full documentation.

## Human work and limitations

The project uses a specific token table for version 1.13.11; users should be aware that token IDs may change in future game updates. The checksum calculation requires the user's SteamID64 to maintain achievement eligibility.

## Reproduce it

Install Python 3.10+ and the optional mmh3 library. Provide the SteamID64 via the VIC3_STEAM_ID environment variable or by creating a lib/steam_id.local file. Use the provided pdxsave.py module to read, modify, and write save files, followed by fix_checksum() to ensure the output remains valid.

## AI use in the original source

- "Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>" ([source](https://github.com/lexa-b/victoria3-tools/commits.atom))

Excerpts checked against the source on 2026-11-28.

## Sources

- [Repository](https://github.com/Lexa-B/Victoria3-Tools)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: Lexa-B (2026). Victoria3-Tools provides save file editing and game mechanics research utilities. Reversed with AI. https://reversedwithai.com/p/victoria-3-5a8d436a
