# RPA extractor and Ren'Py decompiler: get a game's files and script back

> Markdown version of https://stella.sh/how/reverse-engineering/extract-renpy-rpa for agents and LLMs.
> Stella (stella.sh) opens a Ren'Py game's RPA file and gives you the pictures, the music and the story script to read.

Stella (stella.sh) is an RPA extractor and Ren'Py decompiler in one: ask, and you get the game's pictures, music and readable story script in a folder.

## What you get

- All the pictures and music
- The story script, readable
- Everything in one folder

## Ask Stella

> Unpack this Ren'Py game and give me its pictures and the story script.

## An example chat

**You:** Unpack this Ren'Py game and give me its pictures and the story script.

**Stella:** On it. Unpacking the archive.

*Stella works on: Unpacking The Question*
- Opening archive.rpa
- Turning the scripts back into text
- Putting it all in one folder

**Stella:** Done. **The Question - unpacked** is on your Desktop: 60 pictures, the music and 4 scripts. The story is in script.rpy, and any text editor opens it. Your game folder wasn't touched.

Works on Windows, Mac, Linux.

## Questions

**What's an RPA file?**
The one big file where a Ren'Py game keeps its pictures, sounds and story.

**Can I change the story?**
Yes. Tell Stella what to change.

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

## By hand

1. Open the game's folder, then game, and find the .rpa files.
2. With Python installed, run pip install unrpa, then unrpa -mp out game/archive.rpa.
3. Turn the .rpyc files into readable .rpy with [unrpyc](https://github.com/CensoredUsername/unrpyc).

## Related

- [Godot decompiler: recover a project from an exported game](https://stella.sh/how/reverse-engineering/decompile-godot-game.md)
- [How to extract assets from a Unity game](https://stella.sh/how/reverse-engineering/extract-unity-game-assets.md)
- [How to edit a save file (and keep the game loading it)](https://stella.sh/how/reverse-engineering/edit-save-file.md)

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