# Keep a generated Unreal map and first-run settings from dirtying a Linux checkout

- **Status:** Current.
- **Engine:** ue6-main `61e2877e10`, Linux x86_64, Epic clang 23.1.5 (v27 SDK).
- **Context:** Standalone UE6. Coop Zero generates a map from JSON and places BPVerse and native actors in an editor commandlet.
- **Prerequisites:** The compiled UE6 Linux editor and engine patch listed in the slice recipe, project-local generation scripts, and a pristine project clone.

## Symptom

After the original Coop Zero scratch package, `git diff --stat` reported changes in `Config/DefaultEngine.ini` and `Content/Maps/Slice.umap`. The INI gained 15 lines in the Android File Server section. The placement commandlet rewrote the map when it saved the layout. A fresh working tree can also gain an editor INI and Linux packaging metadata. The first Step 12b attempt under shared load hit the 900-second offscreen import timeout with `rc=124`.

## Smallest example / reproduction

In a scratch clone of the original Step 12 source at `468bc90`, run the asset commandlets and inspect Git status.

```bash
COOP_BUILD_LABEL=step12-dirty-example Scripts/build_slice.sh editor
COOP_BUILD_LABEL=step12-dirty-example Scripts/build_slice.sh assets
git status --short
```

Editor startup can save a random Android File Server token while generating the map. The `all` entry point also cooks and stages project-local metadata. The slice recipe records the corrected sequence. [Slice recipe](/docs/recipes/slice-1-summary/)

## Solution

- Commit project configuration for unused Android File Server settings with `bEnablePlugin=False`, `bAllowNetworkConnection=False` and an empty `SecurityToken`. Commit the native animation modifier revision that this engine expects in the editor INI.
- Track the layout and generation code. Ignore the regenerated map file at its existing game package path. Generate it before cooking and verify that it reopens in the placement commandlet. The package-only command reports a missing map before starting UAT.
- Give the headless commandlets 1,800 seconds under the shared wrapper so the cold Vulkan startup can finish.
- Ignore the project-local `Build/Crypto.json` cache and Linux `FileOpenOrder` logs. Keep other files under `Build` eligible for source control.

## Why it works

Android File Server creates and saves a random token when its startup value is `[AUTO]`. An empty token bypasses that write, and disabling the server fits the Linux-only slice. The native animation modifier only updates the defaults when its stored revision differs from its native revision. The generated map retains its original package path, so the normal cook and startup commands resolve it after generation. The commandlets and cooker can still write their local artifacts.

## Verified

- **Evidence level:** runs in editor and runs in packaged build.
- **How:** The [slice recipe's exact sequence](/docs/recipes/slice-1-summary/) cloned `step-12` at `8fb9c751c6d69622bc48e46b0587c916a669f525`. `Scripts/build_slice.sh all` logged `SLICE_MAP actors=65 map=/Game/Maps/Slice unmanaged=0` and `BUILD SUCCESSFUL`. `Scripts/prove_slice.sh smoke` printed `Fresh package map, flock, icons and Verse objective assertions passed`. The next `git status --short` printed no lines. The checkout was then removed. Evidence is in the Coop Zero checkout at `Saved/step12b/final-console.log`.
- **Date / by:** 2026-11-25, Coop Zero Step 12b.

## Limits and assumptions

The proof uses this engine revision and the Linux Development build. A later engine may migrate other settings. Projects that use Android File Server need their own token provisioning. The clean Git status assertion checks source-tree side effects. Package bytes can vary across builds.
