Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Unreal Packaging?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tipoli5890-unreal-packaging)
---
name: unreal-packaging
description: >-
Package an Unreal game: RunUAT BuildCookRun to build, cook, stage and package, the cook
commandlet, Shipping or Development, packaging settings.
---
# unreal-packaging — from a project to a build someone can run
Packaging is one Automation Tool command, `BuildCookRun`, whose switches pick its stages: build,
cook, stage, package, run. Run from a terminal under a timeout, its exit code, its log and the
output it was meant to write say together whether a build exists; none of the three is enough
alone.
## Load what the situation needs
| The situation | Read |
|---|---|
| "Package the game", a first build from the command line | *The method* below, `reference/buildcookrun.md` |
| Which flags, which stages, what `-Help` is for | `reference/buildcookrun.md` §1–3 |
| Run it in CI under a clock and judge it | `reference/buildcookrun.md` §4, `scripts/uat_run.py` |
| Check a command line someone wrote | `scripts/uat_run.py lint` |
| A cook on its own; what gets cooked; works in the editor, missing packaged | `reference/cooking.md` |
| Development, Test or Shipping; the default map; the crash reporter; paks | `reference/packaging-settings.md` |
| An installed build of a source engine | `reference/packaging-settings.md` §5 |
| The build stage fails: a compile or link error | `unreal-compile-loop` |
| The ini stack, the crash folders of a packaged game | `unreal-config-logs` |
## The method
1. **Read the project first** (`unreal-project`): the `.uproject`, its target files, the engine it
associates with. A project with no game target cannot package a game.
2. **Set what the package needs**, once, in the project's ini files (`reference/packaging-settings.md`):
the map the game opens (`GameDefaultMap`), every map to cook (`MapsToCook`),
`IncludeCrashReporter=True`. Commit them.
3. **Compose and lint the command:**
```bash
python3 scripts/uat_run.py compose --project /work/CourierRun/CourierRun.uproject \
--platform Linux --config Development --stages build,cook,stage,package
```
It prints the `RunUAT ... BuildCookRun -project=... -platform=... -clientconfig=... -Build -Cook
-Stage -Package` line and lints it. Any flag beyond those comes from
`RunUAT BuildCookRun -Help` and goes in `--extra`, where it is passed on and reported as unchecked.
4. **Run it under a clock**, keeping the log and naming the output that must exist:
```bash
python3 scripts/uat_run.py run --engine "$UE_ROOT" --project /work/CourierRun/CourierRun.uproject \
--platform Linux --config Development --stages build,cook,stage,package \
--log-out build/uat.log --expect build/CourierRun-Linux --timeout 7200
```
5. **Read the verdict**, then start the build once on the target before calling it done: a package
that exists can still fail at its first map.
## The verdict
| Exit | Verdict | When |
|---|---|---|
| 0 | `PASS` | RunUAT exited 0, no `Error` or `Fatal` line in the log, every `--expect` output present |
| 2 | `FAIL` | the line failed lint (nothing ran); a non-zero exit; an `Error` or `Fatal` line (the first one is named, with its category); an `--expect` output missing |
| 3 | `UNVERIFIED` | no `RunUAT` under `--engine` or `$UE_ROOT` and no `--uat`; a timeout; an empty or missing log |
| 1 | usage | a bad flag, an unknown stage |
`lint` alone: 0 no problem, 2 a problem (an unknown configuration, a cook commandlet argument in a
UAT line, no `-project=`, a project file that is not there, a flag given twice with two values).
## Traps
- **`-platform=` for BuildCookRun, `-targetplatform=` for the cook commandlet.** `-run=cook` belongs
to the editor binary (`reference/cooking.md`), never to a UAT line.
- **The configuration is `Development`, `Test` or `Shipping`** (or `Debug`, `DebugGame`), passed as
`-clientconfig=`; "Release" is not one.
- **Name the output.** A run with no `--expect` passes on the exit code and the log alone; a stage
left out of the line leaves no output, with exit 0.
- **A stage left out reuses an old result.** `-Stage -Package` without `-Cook` stages whatever an
earlier cook left.
- **The editor is not the package.** A map opened by name, or an asset loaded only by a path
string, is missing unless something cooked references it or a list names it
(`reference/cooking.md` §2).
- **Shipping has no console.** Code that needs console commands or stats builds in Development and
fails in Shipping: package Shipping in CI before a milestone.
- **One clock per run.** A first cook compiles shaders for a long time; a hung run is ended by the
timeout and reported UNVERIFIED with its log kept, never left running.
## Related skills
- `unreal-project` → `reference/engine-discovery.md`: the descriptor, the targets and the engine, read before a build
- `unreal-compile-loop` → `reference/reading-errors.md`: when the build stage fails, the compile on its own
- `unreal-config-logs` → `reference/ini-stack.md`: the ini stack; log categories and crash folders beside it
- `unreal-automation-tests` → `reference/running-tests.md`: the tests to pass before packaging