# Extract Unreal Engine .pak files and pack a mod

> Markdown version of https://stella.sh/how/reverse-engineering/extract-pak-files for agents and LLMs.
> Want to change an Unreal game? Stella (stella.sh) opens its PAK files, makes your change and packs it as a mod you can remove anytime.

Games made with Unreal Engine keep everything in PAK files. Stella (stella.sh) opens them, finds what to change and makes you a small mod.

## What you get

- The change you asked for, as a mod
- The game's own files untouched
- Delete the mod to undo it

## Ask Stella

> The lanterns in this game burn out too fast. Make a mod that makes them last twice as long.

## An example chat

**You:** The lanterns in this game burn out too fast. Make a mod that makes them last twice as long.

**Stella:** On it. Looking inside the game's pak.

*Stella works on: Making a longer lanterns mod*
- Finding the burn time setting
- Doubling it in a small mod
- Leaving the game's pak alone

**Stella:** Done. **LongerLanterns_P.pak** doubles every lantern: tin goes from 3 to 6 minutes, miner's from 6 to 12. It goes in the game's Paks folder, and deleting it undoes it.
Files: LongerLanterns_P.pak

Works on Windows, Mac, Linux.

## Questions

**Can I just extract the files?**
Yes. Ask for the pictures, sounds or anything else inside.

**How do I install the mod?**
Stella puts it in the right folder for you.

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

## By hand

1. Download repak from [its GitHub releases](https://github.com/trumank/repak/releases) and run repak info on the game's pak in Content\Paks.
2. Run repak unpack, then copy only the files you change into a new folder, keeping their path inside the pak.
3. Pack it with repak pack --version V11 mod MyMod_P.pak and put it in Content\Paks\~mods.

## Related

- [Extract an Electron app's app.asar, edit it and repack it](https://stella.sh/how/reverse-engineering/extract-electron-asar.md)
- [Decompile Lua bytecode back to readable Lua source](https://stella.sh/how/reverse-engineering/decompile-lua.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.
