Skip to content

Generate nested placeholder mesh references for a clean Unreal map build

Section titled “Generate nested placeholder mesh references for a clean Unreal map build”
  • Status: Current.
  • Engine: ue6-main 61e2877e10, Linux x86_64, Epic clang 23.1.5.
  • Context: Standalone UE6 commandlets, Python layout and placeholder scripts, and BPVerse subclasses of native station actors.
  • Prerequisites: A compiled project editor module, the layout JSON, the BasicShapes engine assets and the local palette.

A warm workspace can open the Slice map while a clean checkout fails during placement.

RuntimeError: Expected StaticMesh at /Game/CoopZero/Placeholder/SM_Cylinder_water. Run the asset generation scripts first.

The asset registry reports the same missing object path. During pre-kit editor startup, native constructors also warn about assets that have yet to be generated, such as CDO Constructor (CoopCharacter): Failed to find /Game/CoopZero/Placeholder/M_FarmFlat.M_FarmFlat.

Start with only tracked content. The water bowl uses a top-level blue cylinder and the nested fill {"shape": "Cylinder", "colour": "water"}. A kit scan that visits only top-level actor shapes produces SM_Cylinder_blue, then the map script fails to load SM_Cylinder_water. A workspace with that mesh already on disk can conceal the dependency.

Collect distinct shape/colour pairs from the actor and its fill. Also inspect explicit local generated mesh names referenced by visible props, refill sources and build body, top and fill parts. Skip imported or engine paths outside the kit. Generate the pair from BasicShapes and its palette material, then save it. Start map placement in a new commandlet after the kit writes its files.

In Coop Zero, run Scripts/build_slice.sh assets with the corrected Scripts/make_placeholders.py. The command wraps the import, rasterization, icon import, kit and map steps. A later Scripts/build_slice.sh pack cooks the resulting project.

The generator now reads the same kinds of mesh references the map script consumes. It creates nested meshes even when they never occur as top-level scenery. Restarting between generation and map placement allows native class defaults to resolve the asset paths from disk after the assets exist.

  • Evidence level: runs in editor.
  • How: COOP_BUILD_LABEL=step12-fresh-fixed Scripts/build_slice.sh assets exited 0 in the scratch checkout after clearing the generated content roots. It logged PLACEHOLDER_KIT meshes=26 colours=17 and SLICE_MAP actors=65 map=/Game/Maps/Slice unmanaged=0. The placement log contained no asset-registry dependency or bird fallback errors.
  • Date / by: 2026-11-25, Coop Zero Step 12.

The recipe covers the generated kit used by this layout. Imported glTF assets use a separate import commandlet. The toolkit still logs expected placeholder constructor warnings when early asset generation processes start with an empty kit.