# How to edit a save file (and keep the game loading it)

> Markdown version of https://stella.sh/how/reverse-engineering/edit-save-file for agents and LLMs.
> Want to edit a save file? Tell Stella (stella.sh) what you want, like more gold, and it changes your save so the game still loads it.

Tell Stella (stella.sh) which game and what you want changed. It edits your save file, keeps a copy of the old one and makes sure the game accepts it.

## What you get

- The gold, items or stats you asked for
- A save the game still loads
- Your old save, kept

## Ask Stella

> Give me 50,000 gold and 25 potions in my Lantern Hollow save.

## An example chat

**You:** Give me 50,000 gold and 25 potions in my Lantern Hollow save.

**Stella:** On it. Opening your Lantern Hollow save.

*Stella works on: Editing your save*
- Backing up slot 1
- Finding your gold and potions
- Updating the game's tamper check

**Stella:** Done. Slot 1 now has **50,000 gold** (was 1,380) and **25 potions** (was 2). The game loads it with no corrupted warning, and the rest of Mira's progress is unchanged.
Files: slot1.sav.before-gold-edit.bak

Works on Windows, Mac, Linux.

## Questions

**Does it work for any game?**
It works for most games that keep saves on your computer.

**Can I go back?**
Yes. Your old save is kept next to the new one.

**Why does my save say corrupted after editing?**
The game checks a checksum, and the edit broke it. Stella updates the checksum along with the value, so the game accepts it.

**Is Stella free?**
Yes. Free with the ChatGPT or Claude plan you already have.

## By hand

1. Find the save, often in Documents\My Games or %APPDATA% under the game's name, and copy it first.
2. Save, spend some gold, save to a second slot, and compare both in a hex editor such as ImHex to find the value.
3. If the game then calls the save corrupted, it checks a checksum: work out how it's made and update it too.

## Related

- [How to reverse engineer a file format (and get your data out)](https://stella.sh/how/reverse-engineering/reverse-engineer-a-file-format.md)
- [Turn on cheats in a Minecraft world you already made, permanently](https://stella.sh/how/game-mods/turn-on-cheats-in-minecraft-world.md)
- [Fix a Minecraft world that won't load after a crash](https://stella.sh/how/game-mods/fix-corrupted-minecraft-world.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT or Claude plan you already have.
