Start here

↑ ↓ to move, Enter to openKeyword search
Maps and levels

Converting a Classic CE Map

Status
2026-10-21. The 19 stock maps and the Custom Edition maps Yoyorast Island and Coldsnap convert with the one command below. A converted map is hosted from the main menu's MULTIPLAYER entry (MJOLNIRLobby, "Playing …

Rendered from the repository, where it is written as the work happens: it keeps its history, and a status line above says when it describes a design rather than something shipped.

Status: 2026-10-21. The 19 stock maps and the Custom Edition maps Yoyorast Island and Coldsnap convert with the one command below. A converted map is hosted from the main menu's MULTIPLAYER entry (MJOLNIRLobby, "Playing it"), and kills score and are recorded (two PCs, 2026-10-03). Update 2026-11-21: the same script also converts MCC's Halo 2 maps, staged by mjolnir cache stage instead of halo2ue (h2_map_conversion.md). tools/level/upgrade_ce_map.py takes a converted map further ("Upgraded maps"). First verified in game on 2026-09-30, on Blood Gulch and Sidewinder, started from the menu with nothing done by hand: own collision at CE coordinates, terrain mesh, spawns, vehicles and weapons, the Megalo engine and the Slayer script.

A classic Halo CE .map becomes a standalone multiplayer mission in Halo: Campaign Evolved: its own scenario, its own collision, its players, vehicles and weapons placed where CE put them, running under the simulation's Megalo multiplayer engine.

export HCE_PAKS=".../Halo Campaign Evolved/Meteorite/Content/Paks"
tools/level/convert_ce_map.sh maps/bloodgulch.map BGL out/bgl --install

CODE is the new scenario's three-character codename. --install writes the containers into the game and the level file into MJOLNIRLevelLoader; without it everything lands in the output folder. Those containers are loose files: if the same map is also installed from the hub, the hub's copy wins (launcher 0.24.0 and newer). Disable the hub map while testing, or install the build with mjolnir dev install (chunk_numbering.md).

Step 1 needs halo2ue-export, from the separate HalcyonRing project; it is not part of this repository. The script finds it through HALO2UE_EXPORT.

Custom Edition maps

Community maps convert the same way (TITLE="Yoyorast Island" tools/level/convert_ce_map.sh "maps/Yoyorast Island V2.map" YOY out/yoy). Their file name becomes [a-z0-9_] for file and asset names; TITLE is the menu name. Three things differ from the stock maps:

  • Protected maps (Yoyorast Island V2): a protection tool replaced every primary tag class with ztpt and every tag path with <zteam>. halo2ue repairs the index in memory (HalcyonRing map-core/src/parsers/deprotect.rs) before anything reads it. Every tag reference inside the tag data (and the BSP's own region) still carries the real class, so each tag's class is the majority of the references to it; the scenario comes from the header. The names come back by fingerprinting each tag (its data with pointers masked and references replaced by the referenced tag's fingerprint, a few rounds) against the unprotected maps in the same folder (--reference-maps). Yoyorast: all 3,091 classes and 1,261 of 1,838 names, every stock weapon, power-up and item collection among them. The rest get protected\<class>\<index>, and a second copy of a stock tag <stock path>__p<index> (placed as the stock tag). halo2ue writes the repaired index to staging/tags.json for ce_sounds.py.
  • Custom vehicles the tag map does not list are placed by the CE vehicle type halo2ue stages (vehicle_type): jeep as warthog, tank as scorpion, scout as ghost, fighter as banshee, turret as shade (vehicle_types in defs/level/ce-tag-map.json). A custom vehicle can also run as itself, cloned from a shipped one: see custom_vehicles.md.
  • Big BSPs. Coldsnap's BSP is 35,173 surfaces once its polygons are split into triangles, past a definition's 32,767. Where triangles do not fit, the split makes quads instead (32,257); see ce_terrain_collision.md. Its second BSP is a copy of the first.

Sounds a custom map keeps inside the .map (not in sounds.map) are not extracted.

Archiving halomaps.org. tools/halomaps/halomaps.py mirrors the site's multiplayer sections (the listings, each map's page, screenshots and file), keeps a JSON record per map with everything the site shows plus what tools/halomaps/cemap.py reads from the .map itself (type, build, BSP count, protection, the tags no stock map carries), and converts the best-rated unconverted map through this command (convert --next, with --pack for the map pack). Its report lists the custom weapons, vehicles, scenery and bipeds across the archive and what every conversion dropped, so the edge cases are worked in order of how many maps they touch. The exporter's resources and reference maps come from HALO2UE_RESOURCES and HALO2UE_REFERENCE_MAPS when the map is kept away from the stock folder.

What the command does

StepToolResult
1halo2ue-export (HalcyonRing)the .map staged: collision BSP, placements, netgame flags
2merge_ce_collision.py, mjolnir level collision --own-bspthe structure BSP, scenery collision included
3merge_ce_scene.py, ce_material_spec.py, build_terrain_meshes.py (mesh_rewrite + package_add), scatter_foliage.py, unreal/MJOLNIRMaterialsthe terrain, scenery, transparent sections, sky and (where CE has it) water as meshes of the map's own (pakchunk986-MJOLNIRMESH-<CODE>_P, see "The terrain, scenery and sky"), their CE materials and bitmaps (the map's bitmaps in pakchunk985-MJOLNIRCOOK-<CODE>_P), and the game's grass, tufts and shore stones on the ground (<name>.foliage.bin beside the level file; FOLIAGE=0 leaves it out)
4tools/level/gen_ce_level.pythe level file
5mjolnir level bake --standalone CODE --bsp 8=…scenario and registration containers, on the map's own empty Unreal world
6tools/level/build_spawn_point.shthe spawn-point and teleporter scenery every converted map places

The script's other settings: LIGHTMAP_ARGS (extra solver flags, e.g. --cpu), BAKE_ARGS (extra lightmap_bake flags: --max-size 1024 took Coldsnap's pack from 58.6 MB to 41.8 MB), CE_START_LIFT (the player starts' lift, 1 wu by default, lower for low ceilings), WORLD (another world .umap, or none for the canvas mission's), DELTA (moves the whole map, in wu), SOUNDS_MAP (a sounds.map other than the one beside the map) and SCORE (Slayer's score to win, 25). A failed cook stops the conversion: copying the last good cook's chunk had shipped the wrong textures without a word (Coldsnap, 2026-10-10).

The world must be a Blam world. Step 5 gives the bare MapKit world BlamWorldSettings with a DefaultScenario path (blam_world_settings in crates/blam-cli/src/level.rs). Four world subsystems are created only when the glue engine subsystem accepts the world (CU4 +0x7b93a50: the settings are a BlamWorldSettings whose DefaultScenario soft path is set):

  • HaloMaterialResponseWorldSubsystem
  • BlamMapGlueOuterSubsystem
  • BlamSynchronizationPrecreateObjectActorWorldSubsystem
  • BlamBreakableSurfaceSaveGameSubsystem

On plain WorldSettings none of them existed, and bullet impacts, tracers and surface footsteps were missing. A shipped level points DefaultScenario at its BlamScenario actor. Ours names PersistentLevel.BlamScenario, which the gate does not resolve, and with it the world has the same 35 subsystems as B40.

Build the tools first: cargo build --release -p blam-cli -p ue-asset --example mesh_rewrite -p blam-pack --example package_add --example package_override -p ue-texture --example lightmap_bake (package_override only for the CE_COOK=0 fallback). Without lightmap_bake the map converts without its baked corners and sun.

Step 3 also re-solves the map's lightmaps (mjolnir level lightmaps, crates/blam-radiosity: tool.exe's own radiosity, the sun and sky fill evaluated per texel, its rays cast on the GPU by default since 2026-10-10 and on the CPU, the reference path, with LIGHTMAP_ARGS=--cpu) at LIGHTMAP_SCALE times the shipped pages' size (auto by default: the power of two that brings the lit surfaces' median texel density to 4 per metre, no page over 2048 and 48 million texels in all; Blood Gulch comes out at 8x, Danger Canyon at 8x, Hang 'Em High at 4x); the shipped pages are 1x and blur every shadow edge, and at 2x a pillar's shadow on a base roof was still a soft blob beside the traced shadow's hard edge. LIGHTMAP_SCALE=0 keeps the shipped pages. A map's interior light is its emitting shaders' (Death Island's red and blue strips, the door glyphs): they shoot before the progressive loop, which would otherwise starve them on a large map, and their bounce fills the bases as CE's pages have them. The light tags placed objects carry go to scene_lights.json (merge_ce_scene.py --lights) but light nothing unless --placed-lights: tool.exe's own pages show no pool beside Death Island's twenty fixtures. Surfaces whose collision material is water take tool.exe's constant (230 230 255), and a rendered surface with no collision (water, strips) never blocks a ray, so the sea floor is lit through the water. The solved pages replace the shipped ones in the material spec (ce_material_spec.py --lightmaps), the bake's pages take their size, and the bake's sun channel (where CE's sun reaches) comes from the solver's <page>_sunvis.png. The solver's <page>_sunshare.png (each texel's light without the sun) goes to the materials as SunShare: the masters run CE's texture pass over it for the emissive, so CE's ambient, fill and bounce are drawn, rebuild the sunlit lightmap per channel from it and the sky's sun (environment.sun.ce_light) for the sun's albedo (at N.L no lower than 0.3, so a face turned from the sun keeps a colour for headlights and flashes: at its own N.L it had none, and Death Island's headlights stopped at a hard line where a cliff turned away), and Unreal's sun, shadowed by the terrain copy, draws every sun shadow; the lightmap's own texel-stepped shadow edge never shows inside the crisp one. Such a level has no sun mask (gen_ce_level.py --no-sun-mask): the copy's shadows are the sun's shadows, and the mask's metre-wide transition would soften them. Placed scenery stays as CE lights it: the light sampled under each object from the lightmap, shaded by its incident direction, with no Unreal sun on it. CE never shadowed scenery dynamically, and under the copy's shadows a boulder beneath a tree drew half bright and half black, and boughs shadowed each other black.

The structure BSP (step 2)

Built on BSP_03_1_Chasm_old, a small shipped BSP with one kd supernode, one cluster and one instance, of which only the file format is kept (blam_sbsp::convert::convert_own, ce_terrain_collision.md):

  • the CE collision tree goes into the world shell, which decides what is inside the world;
  • and into definition 0 behind instance 0, which the collision queries test (the instance is listed at the collision kd hierarchy's root). The two meet at one height to within f32 rounding, and an AI that the simulation found on the copy was on no sector, so level bake lowers the instance 0.001 wu under the shell (re/ai_in_multiplayer.md);
  • the BSP's static Havok body, structure_physics, is recompiled with one key per CE surface (one whole-instance key on the biggest maps, see "Limits"), and since 2026-10-12 one whole-instance key for each scenery piece behind an instance of its own. This is what players, vehicles and items stand on; nothing rebuilds it at load.

The map keeps its CE coordinates. It is built for index 0 (level collision --bsp-index 0): every kd hierarchy header and instance shape names the BSP's index, and the donor's own say 7.

A scenario of its own. The scenario is still cloned from B40's, but the bake leaves none of B40 in it (blam.single_bsp, applied after --bsp 8= has pointed slot 8 at the map's BSP):

  • structure bsps, ai pathfinding data, scenario cluster data and each PVS's and audibility's per-BSP mappings keep slot 8's element, now index 0. The cluster data's BSP reference names the map's own BSP.
  • Only zone set 0 stays, with its PVS and audibility entries. Its masks, each PVS cluster's bit vectors and its seam cluster references name BSP 0 alone.
  • The designs (B40's soft ceilings), the soft ceilings and both seams references are cleared, as are B40's other insertion points and their 36 player starts.
  • Every placement's origin BSP is 0 and it may attach to BSP 0.
  • B40's mission content goes with the rest of the clears: crates (on BSP 0 they would spawn in the map), device groups, object names, cutscene flags, cinematics, AI objectives, reference frames, UI objectives, AI hints and the script point sets (the last two name B40's BSPs by index).

The baked scenario shrinks from 7.1 MB to about 0.27 MB. CANVAS_BSPS=1 convert_ce_map.sh keeps the canvas's BSPs (index 8, blam.active_bsps only).

Scenery collision. The game ships no Blam rocks or trees whose collision a placement could borrow, so tools/level/merge_ce_collision.py adds the scenery's own collision models to the BSP's collision first:

  • the exporter stages each scenery tag's collision triangles (collision/*.json);
  • every placement's triangles go in as standalone two-sided surfaces;
  • the compiled MOPP reaches every surface, through a key of its own or, for scenery behind an instance of its own, through the instance's key, which Havok descends into the instance's own MOPP (since 2026-10-12: as surface keys, Death Island's ~96k piece surfaces shared the structure tree's coarse quantisation and players fell through the terrain), so players and vehicles stand on and run into rocks and trees as in CE;
  • mjolnir level collision puts them into the BSP tree as well (blam_sbsp::scenery), so queries that walk the tree, projectiles among them, meet them too: every leaf a scenery triangle passes through is split on the triangle's plane into two flagged copies of itself that name the triangle, the rule the simulation's line test uses for two-sided surfaces between open leaves (its polygon test takes one winding, so such a surface stops a ray only from the side its plane faces; see "Limits"). Where the scenery does not fit the BSP's 16-bit tables it goes to instances of its own, each with such a tree (until 2026-10-03 no leaf named a scenery surface, and bullets went through the Covenant shields).

Surface materials. The game picks footstep sounds, tire dust and bullet impacts from each collision surface's material. Each surface keeps its CE collision material (convert::Options::keep_materials), and mjolnir level collision writes the BSP's collision materials block with one entry per CE material. Each entry's render method is the game's own shaders\<material>, and its runtime global material index is that shader's material name looked up in globals.

CE shader material type (header +34)game material
dirt, sand, stone, snowtough_terrain_dirt, _sand, hard_terrain_stone, soft_terrain_snow
wood, leavestough_organic_wood, soft_organic_plant
metal hollow / thin, metal thickhard_metal_thin, hard_metal_thick
rubber, glass, force field, water, icetough_inorganic_rubber, brittle_glass, energy_hologram, liquid_thin_water, hard_terrain_ice
anything elsedefault_material

merge_ce_collision.py adds two corrections before the conversion:

  • Grass. CE has no grass type. Blood Gulch's ground is one "sand" shader, blended, whose secondary detail map is grass. Each of its surfaces is sampled through the render geometry: the base map's alpha at the surface's points (low alpha shows the secondary detail). Surfaces that are mostly grass get tough_terrain_grass, 1,178 of 2,423 on Blood Gulch.
  • Scenery carries no shader, so its material comes from its name: rock, wood or plant, and the Covenant shield (c_field_generator) takes the Jackal shield's energy_shield_thick_cov_jackal, an energy material made to stop small-arms fire (energy_hologram is the hologram decoy's). Whether every projectile stops on it is still to be seen in game.

Gephyrophobia has more than 8,191 surfaces, so its structure_physics uses one whole-instance key (see above). Havok contacts there may report one material even though the surfaces carry theirs. Untested.

The terrain, scenery and sky (step 3)

tools/level/merge_ce_scene.py puts everything static into the BSP's glTF.

  • Scenery: every scenery placement's model goes in at its CE position and rotation. CE's rotation (yaw, pitch, roll) is (Rz(-yaw) Ry(pitch) Rx(-roll))^-1: yaw about z, then pitch and roll about the world's y and x axes, the Halo Asset Blender Development Toolset's order. The collision merge, the lens flares and the sound emitters use the same order. Until 2026-10-08 they pitched and rolled in the object's own frame, so a placement with yaw and a tilt leaned the wrong way: Ice Fields' beacons stood on one edge. Over the 19 maps' tilted scenery, the toolset's order sits a placement's base flatter on the BSP in 58 of the 73 placements where the two differ.
  • Beacons are seated (tools/level/ce_seat.py). CE leaves some beacons rocking on one edge of their base: upright on a slope, or tilted one way on ground that falls two ways. A beacon whose base spans more than 0.1 m over the BSP is turned onto the plane fitted to the ground under its base, keeping its heading, and set 0.03 m above it, as CE's well-placed ones are. The scene and collision merges and the lens flares all seat from the same placement. On Ice Fields 8 of 51 beacons move. Flag bases, which CE puts 0.011 wu (3.4 cm) over the floor on every map, are all set down to 5 mm.
  • Scenery is lit as CE lights objects. An object has no lightmap of its own: CE samples the ground under its bounding sphere's centre and four points 0.7071 of its radius out, averages the lightmap colour L, the incident direction and the floor's base colour, and lights the object with an ambient of 0.4 L + 0.03, a light of colour L from the incident direction, and a bounce of the floor colour (times L's brightness) off the ground, which lights the faces that look down. The merge writes each placement's brightest lighting as one texel of object_lighting.png (materials <shader>__lmobj) and gives each vertex an incident direction whose dot with its normal is that vertex's share, so the environment master's bumped-lightmap term (full weight) shades it. Without it, Longest's dark steel barricades drew as flat black shapes. The page has eight columns of the same blocks: the light, CE's reflection tint for the object (clamp(3D + 0.5) × clamp(2L + 0.25), times clamp(1.5 × brightness + 0.25)), then the object's change colours A–D. A change colour comes from the tag's permutations as CE picks it: the weights are running cut-offs against a value drawn from the placement's position, and the colour is a blend between the permutation's bounds. The draw is our own hash, so the mix of colours matches CE but a given crate's colour may not.
  • Machines: placed like scenery, in their rest pose. A part a machine's device position animation moves (Infinity's beam emitters: the beam rises 1,089 wu out of the base and grows from half size to full) draws with a material of its own on a device variant of its master (M_CE_Transparent…Device), which moves it as a World Position Offset: the node's offset and scale between the animation's first and last frames, about the node's origin, by the device position. A gear runs its position from 0 to 1 over its position transition time and starts again; any other machine (doors, platforms) is drawn at the position it is placed at, because the simulation moves it and Unreal never hears of it. A part that turns, whose parent node moves, or whose frames leave the line between the first and last stays still, as do opaque parts (no opaque device master yet). The mesh's bounds scale (bounds_scale in the spec) keeps it drawn wherever the part goes. halo2ue stages the machine's device and machine fields, its placement's device flags and the animation's frames in placement.json (device).
  • Sky: the sky model (dome, ring, clouds, horizon) goes in with its origin, the viewer, at the map's centre. It is scaled so its nearest layer is 3 km away (the ring ends up about 46 km out). CE draws the sky around the camera, and so do the masters: a sky section moves its vertices with the camera (SkyFollow, World Position Offset SKY_WPO_CODE), the CE origin onto the eye, from where it lies relative to the sky mesh's actor (SkyOrigin, cm; merge_ce_scene.py writes it to scene_sky.origin.json). Left fixed, the sky was seen from wherever the player stood. The map's centre is its BSP's box centre, 525 m under Gephyrophobia's bridge, in its chasm, so the ring stood a few degrees off where CE draws it (2026-10-09).

The scene becomes meshes of the map's own: each is a shipped basic shape's mesh rewritten in the game's own serialisation (ue_mesh_write.md) and renamed to a package under the map's root, /Game/MJOLNIR/Maps/<CODE> (build_terrain_meshes.py). Each is normalised into its donor's bounds, and MJOLNIRLevelLoader spawns it at the position and scale that undo the normalisation.

MeshDonorPackageHolds
Terrain/Engine/BasicShapes/CylinderSM_<CODE>_Terrainterrain and scenery
Translucent/Engine/BasicShapes/ConeSM_<CODE>_Translucentlights, teleporter fields and the other transparent sections
Sky/Engine/BasicShapes/SphereSM_<CODE>_Skythe sky: kilometres across, it cost the transparent pieces their precision when they shared a mesh
Water/Engine/BasicShapes/CubeSM_<CODE>_WaterCE water, where the map has it (since 2026-10-10)

package_add puts a map's meshes in one container, pakchunk986-MJOLNIRMESH-<CODE>_P, so maps install side by side. Only the CE_COOK=0 fallback overrides the shipped cylinder itself (pakchunk989-MJOLNIRMESH); a cooked install removes such overrides of the cylinder and cone (989, and 987 MJOLNIRMESHT) left by older conversions.

A rewritten mesh enters Unreal's translucency pass only through its single donor slot (re/fork_renderer.md), so the transparent mesh's slot 0 is its first section.

Each mesh carries:

  • one section per glTF material, i.e. per (CE shader, lightmap page);
  • the CE lightmap UVs as a second UV channel (--lightmap-uvs);
  • CE's bump tangents;
  • the incident radiosity vector, in each vertex's tangent frame, as the vertex colour: the unit direction in rgb, and in alpha its length, which weights the bumped-lightmap term.

CE's bitmaps import with their own mip chains (DDS). CE's detail maps fade their smaller levels to neutral grey, which is what keeps detail tiling from showing at a distance; a regenerated chain would not.

Materials (step 3)

The terrain draws with real materials that reproduce CE's shaders.

How they're built and shipped. The Unreal project in unreal/MJOLNIRMaterials (UE 5.5) builds and cooks them:

  1. tools/level/ce_material_spec.py lists every bitmap a surface samples, lightmap pages and cube maps included, and one material per mesh section with the CE shader's fields as parameters.
  2. Scripts/build_ce_materials.py builds the master materials.
  3. Scripts/build_ce_level.py imports the level's bitmaps.
  4. tools/ue/cook.ps1 cooks them. The masters go into pakchunk988-MJOLNIRMAT, which ships in the CE runtime pack (tools/level/build_ce_runtime.sh). The map's own bitmaps, under /Game/MJOLNIR/Maps/<CODE>, cook into a chunk of their own (ce_material_spec.py cook_chunk), which the converter copies out as pakchunk985-MJOLNIRCOOK-<CODE>_P.
  5. At load, MJOLNIRLevelLoader makes a dynamic instance of a master per mesh slot and sets that slot's textures and parameters.

Cooked material instances are not used: the game crashes loading one.

What it took to make a stock-cooked material draw in the fork. See re/fork_renderer.md:

  • the fork's uniform buffer layouts;
  • its 44-float4 GPU-scene primitive stride;
  • r.CompileShadersForDevelopment=0.

The project's MjolnirForkLayouts plugin recreates the first two before anything compiles.

The shading. It is CE's fixed-function math, done in the bitmaps' own gamma space as the hardware did.

PassWhat the material does
TextureBase map, then the primary/secondary detail blend: by the base map's alpha for blended shaders, by the secondary map's alpha for normal ones. Then the micro detail. Each with its function: 0 2·B·D, 1 B·D, 2 B + 2D − 1. Each step clamped.
Lightmaplightmap × material colour × mix(1, N·L, incident weight). N is the bump normal, L the baked incident direction. Plus self-illumination: primary, secondary and plasma channels, each animated between its off and on colour by CE's periodic functions.
Framelightmap pass × texture pass, no 2×
Specular lightmapShaders with the "lightmap" specular flag. mix(parallel, perpendicular colour, N·E) × brightness × lightmap luminance × (R·L)⁸; ³² for "extra shiny", ×2 for "overbright".
ReflectionThe cube map, in D3D face order, sampled along the eye vector reflected about the bump normal (the vertex normal for a flat cube map). mix(c⁸, c, tint) × brightness, where tint and brightness go from their parallel to their perpendicular values by the squared view term. Added, masked by bump alpha × the texture pass's specular mask.
Alpha testOn the bump map's alpha: > 0x7F passes.
FogThe sky's outdoor atmospheric fog, or, where no cluster draws a sky, sky 0's indoor fog (Chill Out, 2026-10-13): max density × saturate((depth − start) / (opaque − start)) towards its colour.
Planar fogBelow a BSP fog plane (Damnation's shaft, Gephyrophobia's chasm, the water of Battle Creek, Chill Out and Death Island), as MCC's environment fog shaders: x = depth under the plane / opaque depth, y = distance from the eye / opaque distance, A = (1 − min((1−x)² + (1−y)², 1))², B = (1 − (1−y)²)², Pf = (eye density × (B − A) + A) × max density, the eye density being the eye's own depth under the plane / opaque depth. Everything under the plane's height is fogged, not just what lies under the plane's polygon: CE fogs every cluster of the fog region, which reaches past the polygon (MCC fogs all of Chill Out's lower floor; clipping to the polygon's footprint drew a hard-edged slab there, 2026-10-09). The surface's colour goes to the fog's by Pf, the share Unreal's lights draw included; transparents fade by 1 − Pf. tools/level/ce_fog.py reads the planes and fog tags from the map (halo2ue does not stage them) into fog.json; ce_material_spec.py puts the first plane on every environment and transparent material (PlanarFogPlane, PlanarFogColor, PlanarFogParams). Players, vehicles and weapons, drawn with the game's own materials, are not fogged. Boarding Action's red fog has no plane and is not drawn.
Corners and sunNot CE's: lightmap_bake (crates/ue-texture) traces the merged scene for each lightmap page, at up to 16 times its size (2,048 at most), into a texture of its own (<lightmap>_bake, BC1 with mips). Red is ambient occlusion within 1 m, divided by a knee of 0.85 (--ao-knee) and raised to 1.3 (--ao-curve), so the mild folds between a cliff's facets read as open while a wall's foot keeps its darkness: as traced, every fold took a dark line and the cliffs showed their triangles (Blood Gulch, 2026-10-05). --ao-smooth (world-space smoothing) is off by default; at 1 m it washed out the wall-floor corners and drew dashes along them. The masters read it through a 3 x 3 tent a texel apart. Blue is the sky's visibility: the share of --sky-rays rays that leave the level, smoothed over --sky-fine (0.5 m) of surface. CE's shade is brighter the less sky a surface sees (Blood Gulch: a median of 0.18 open to the sky, 0.53 enclosed, against a shadow level of 0.19, 2026-10-06), so on a level without the solver's SunShare the masters scale the lightmap's shadow level by it, from 1 where the surface is open to the sky up to 2.8 where it is enclosed; that tells a coarse lightmap's sun leak from lamp light. mjolnir_terrain_debug sky (layer 3) shows it. A bake the loader imports at runtime (mjolnir_terrain_shadows lightmap) goes through M_CE_LinearCopy: ImportFileAsTexture2D is always sRGB, and drawn as it was every runtime bake and sun mask arrived sRGB-decoded (128 as 55), too dark. The lightmap is multiplied by red ^ BakeAO (1.4: Blood Gulch was approved at 2.5, found a little dark across the maps at 2.0, and with the knee and curve chosen at 1.4). Green is where CE's sun reaches: the share of the colour drawn as Unreal sun light (so a player or vehicle shadows the ground) is kept to it, and taken down only as far as the lightmap's shadow level (environment.sun.lightmap_sun, which gen_ce_level.py measures on sun-facing surfaces: the lower quartile of the lightmap's luminance where the bake has shadow, since lamp-lit interiors count as shadow too, and the median where it has sun). A shadow therefore never reaches through a roof onto ground CE had in shade, and a baked shadow is not darkened twice.

Object shaders (shader_model: Covenant crates, rocks, trees, vehicles) use the same master with ModelShader on, for the terms that differ:

  • the multipurpose map's masks, in the PC order: red auxiliary, green self-illumination, blue reflection, alpha change colour;
  • the detail map applies where the detail mask says (none, or one of those four masks, plain or inverted);
  • the object's change colour (from the object lighting page) tints its light where the change-colour mask is set; this is where Covenant crates get their white, teal, red or purple panels;
  • the reflection is the cube map's colour as it is, times the tint and brightness between parallel and perpendicular, masked by the reflection mask, faded between the falloff and cutoff distances, and scaled by the object's reflection tint;
  • "detail after reflection" (flag bit 0) applies the detail function to the lit, reflected colour instead of the base map;
  • self-illumination animates between its lower and upper colour, masked by green.

Transparent chicago shaders (lights, the teleporter field) work like this:

  • up to four maps, each with its own UV scale, offset, rotation and scrolling animation;
  • each stage folds the next map in with its colour and alpha functions (current, next, multiply, double multiply, add, add-signed, subtract, blend by alpha);
  • the result is drawn with the shader's framebuffer blend: alpha blend, add, or multiply. Subtract, min and max have no Unreal blend mode and fall back to alpha blending;
  • a shader with no bitmap on any stage (Danger Canyon's and Ice Fields' light shaders reference none) draws nothing, as in CE: it is added at a zero tint. Drawn with the master's default white map, it was a solid white box;
  • a shader with CE's two-sided flag (bit 2: the Covenant shields, the teleporter shields and cones, the powerups) takes a two-sided master, M_CE_Transparent{Add,Alpha,Mul}TwoSided, since an instance cannot turn two-sided on. With one-sided masters the shields drew from one side only (playtest, 2026-10-03). halo2ue's double_sided is true for every transparent shader, so only the flag decides.

MCC's generic shaders. The Xbox drew many of these with shader_transparent_generic, up to seven register-combiner stages over four maps. The PC port could not, so a classic Custom Edition map carries Gearbox's chicago stand-in: Death Island's teleporter field is two grey dust maps tiled once, a soft green blob, where MCC draws the Xbox's wavy energy. MCC's Halo CE editing kit (HCEEK) ships the original tags, so where it has a shader_transparent_generic at a chicago shader's tag path, ce_material_spec.py draws that instead (MCC_GENERIC=0 turns it off; MCC_TAGS points elsewhere than the Steam install):

  • tools/level/mcc_tags.py reads the big-endian source tags (the generic shader and its bitmaps) and writes each bitmap as mcc_<path>.png and .dds beside the map's own, with the tag's own mip chain;
  • each map keeps a chicago map's transform and animation fields;
  • the stages go to the same transparent masters as parameters (GenericStages, GenCI/GenAI/GenCO/GenAO/GenK* per stage), where GENERIC_CODE runs them as MCC's transparent_generic_shader.psh does: four colour and four alpha inputs through their input mappings, A·B and C·D (or dot products), their sum or mux, the output mapping, and the three results written to the registers the stage names; the result is r0;
  • a shader whose first map is a cube map, or whose bitmap cannot be exported, stays the chicago one. So does one with a stage whose colour 0 follows one of the object's functions (source A-D out: the field generator's shield, the power-ups, the holo controls, the door blinker): the material cannot read the object's live state, and drawn without it the shield came out white or red where Halo PC's chicago shader and MCC both draw it purple. So does one with no stages (73 of the 97 our maps use: most skies and lights), which MCC's combiner shader would draw black; MCC must draw those another way, still to be checked.

Teleporter fields, the turret's beam tendril, the beacons, the light volumes, the waves and the night sky's ring and planet take MCC's shaders this way (15 of the 24 shaders with stages over the 19 maps).

Update 2026-10-21: since 2026-10-04, M_CE_Water follows the water tag field by field (halo2ue's tag): up to four ripple layers (contribution, angle, velocity, offset, repeats, bitmap), faded towards flat by mip level, and the bumped cube reflection as mix(c⁸, c, tint), the tint set by how squarely the camera looks down on the water. The third flag (atmospheric fog) fogs it. The second flag is drawn, as a multiply pass of its own (M_CE_WaterBackground) on a copy of the surface that merge_ce_scene.py puts first, and sky water replaces the frame (M_CE_WaterSky, opaque). Since 2026-10-10 the water is a mesh of its own (SM_<CODE>_Water), which environment.water or mjolnir_water ocean can draw as rolling water (M_CE_Ocean); CE's style is the default, but gen_ce_level.py asks for the ocean on Death Island and Yoyorast Island (OCEAN_MAPS). The list below is the first version.

Water (shader_transparent_water: Death Island, Battle Creek, Gephyrophobia, Damnation) is drawn by M_CE_Water, in the transparent mesh:

  • the reflection cube map, sampled along the view reflected about a normal bent by two panning layers of the ripple map (the shader's ripple angle, velocity and scale);
  • tinted and faded by the view angle, from the perpendicular brightness and tint (looking straight down) to the parallel ones (grazing), on a steep curve (FresnelPower 3);
  • added over what is under the water, scaled by the brightness and, when the shader's first water flag is set, by the base map's alpha: the base map is a mask, never a colour (drawn as one, the sea was an opaque white sheet, 2026-10-02). Brightness is not opacity: Battle Creek's water is 1.0 at every angle and its creek bed still shows. The second flag (the base map's colour tints the background) has no additive form and is not drawn.

halo2ue's water parser read every field after the base map at the wrong offset (its tag lookup moves the reader), so brightness, tint, ripples and the reflection map all came out zero; it reads them at their fixed offsets now.

Colour reaching the screen unchanged. Each material:

  1. decodes its result to linear;
  2. divides out the camera's exposure (EyeAdaptationInverse);
  3. hands the tonemapper CE's own colour.

The level's post-process volume (environment.post) turns the filmic curve, gamut expansion and blue correction off, so the tonemapper leaves it as it is.

Where the data comes from. halo2ue-export stages:

  • the lightmap vertices: in a cache file they follow the rendered vertices in the same blob;
  • cube maps as six faces, plus the specular colours, the three self-illumination channels, every chicago stage and the sky's fog;
  • each vehicle's team and per-game-type spawn flags, from which a match picks CE's vehicle sets (see "Vehicle sets").

Without the Unreal editor (CE_COOK=0) the converter falls back to tools/level/ce_textures.py: one composited texture per shader on a shipped material, with no lightmaps.

Ambient sound (step 3)

The game ships none of CE's ambience as Blam sound tags. Its 163 looping sounds are material, vehicle and weapon loops, and the remake's ambience lives in its own Unreal levels. CE's sounds therefore come from CE's files and play through Unreal's own audio engine, which the game runs beside its own.

  1. Extract. tools/level/ce_sounds.py <map> <sounds.map> <staging> <out> reads a Custom Edition map (cache version 609). Its sound tags are indexed: sounds.map holds each whole tag as <path> and its samples as <path>__permutations; the docstring has the layouts. The script extracts:

    • the sound scenery (halo2ue's sound_scenery placements), such as the teleporter hum;
    • the looping sounds placed objects carry as attachments (halo2ue's sounds on an entry), each an emitter at its marker: the Covenant shield generator's and uplink's hum, the teleporters' loop, Wizard's klaxons, the beam emitters. A marker on a machine's moving part moves with it (marker_motion, the part's device motion): Infinity's beam loop hangs on the beam, which rises 1089 wu every 15 s, so CE plays it for about a second as the beam fires. Held at the marker's rest it played all the time (2026-10-08). The loader moves it on the world's clock and keeps it PlayWhenSilent: with Restart it did not come back in time;
    • the background sound, the looping sounds the BSP block depends on;
    • each looping sound's tracks and detail sounds.

    Xbox ADPCM is decoded to WAV and Ogg is kept as is. A loop's permutations are joined into one _loop file, because CE plays them back to back.

  2. Import. unreal/MJOLNIRMaterials/Scripts/build_ce_sounds.py imports them under /Game/MJOLNIR/Maps/<CODE>/Sounds, which cooks with the map's own chunk (pakchunk985-MJOLNIRCOOK-<CODE>_P). Loops are marked looping, and the compression is ADPCM: the default, Bink, needs a decoder the game may not ship.

  3. Play. gen_ce_level.py --sounds writes environment.sounds, and MJOLNIRLevelLoader plays it:

    • background loops in 2D, map-wide;
    • emitters in 3D at the CE positions, falling off linearly over CE's distance bounds.
  4. Volume. The game's volume sliders set its Wwise buses, which these sounds bypass, so the loader applies the sliders itself. It reads them from the game's settings object (MeteoriteGameUserSettings, through GameUserSettings:GetGameUserSettings()) and plays each sound at its gain times VolumeMaster times one category slider: VolumeSFXAmbient (Ambient Effects) by default, VolumeMusicGameplay (Music) for a sound with "category": "music", and VolumeVODialog (Dialogue) for the event sounds below. gen_ce_level.py marks a sound as music when its CE class is music or cinematic_music. Every half second the loader re-reads the sliders, so a change made from the pause menu applies at once.

Detail sounds (random one-shots) are extracted but not yet played.

Event sounds. The game engine still has Reach's event list: game_engine_globals holds 510 events, each with a sound and announcer line, and megalogamengine_sounds names 95 mode announcements. But 336 of the 339 sound tags the events name were cut from the build, and 94 of the 95 announcements are empty. The events themselves still fire, and they reach Unreal as BlamIncidents on the game state's BPC_MeteoriteIncidentHandlerComponent (OnIncident_Event, which can be hooked), for example:

  • teleporter_used
  • respawn_tick, respawn_final_tick
  • death, suicide, player_spawn

ce_sounds.py --events <sounds.map> <out> extracts every CE announcer line (Ogg Vorbis; Unreal's importer decodes it) and the UI sounds the events need, and writes mods/MJOLNIRLevelLoader/events.json (event name to waves). build_ce_sounds.py imports them under /Game/MJOLNIR/Sounds/Events, and the loader plays an event's sound on converted multiplayer levels only. Personal events (teleport, respawn ticks, multikills and sprees, and a health pack's lap_complete) play only for the player they concern: the incident's cause or effect must be the local player's absolute index, read from its BlamPlayerStateComponent (BlamAbsolutePlayerIndex: 0 on the host, the joiner's own slot on a fireteam client; 2026-10-01).

The waves are loaded when the level is furnished, and the hook only queues the event; a 100 ms game-thread loop plays it. Voice lines (the tag's path is sound\dialog\..., cooked as sound_dialog_*) then go through the announcer queue (MJOLNIRLevelLoader/Scripts/announcer.lua):

  • Bursts collapse. A line waits 0.35 s, so a burst can settle. A higher multi-kill or spree replaces a waiting one: one grenade into a squad says "Overkill", not the four lines before it.
  • One at a time. Lines play in turn, each for the wave's own Duration. The queue never talks over MJOLNIRHud's Warfare voice, because both keep the shared variable MJOLNIR.voiceUntil.
  • Stale lines drop. A line kept waiting more than 2.5 s is dropped, apart from a game's start and game_over.
  • Effects don't wait. Respawn ticks, pickups and teleports play at once.

The engine's sound concurrency was not enough on its own: it can stop or refuse a sound but not hold one for later. Loading and playing inside the hook froze the game on the first teleport. No game-start event is raised on a converted map, so the game type's announcement ("Slayer", "King of the Hill" and so on) plays once per match, picked by the variant the menu started. It plays when the player's pawn first exists, because the opening spawn raises no player_spawn (only respawns do), or at the first player_spawn if that comes sooner.

The level file (step 4)

  • Spawn points. Under a multiplayer engine players spawn only at scenery whose multiplayer type is player spawn location; the scenario's player starts are not read. One is placed at every position a CE or Halo 2 start some game type uses (neutral team), hidden unless every game type but CTF uses it (see "Spawn sets" below).

  • Vehicles, weapons, pickups through defs/level/ce-tag-map.json; each CE tag maps to the first equivalent the game has a type for (defs/level/palette-map.json). The bake adds a type the canvas palette lacks: the shotgun and the fuel rod (Reach's flak_cannon) are not in B40's. What has no equivalent is reported as dropped: the flamethrower (none ships).

  • Map variant palette (blam.map_variant). Objects with multiplayer data exist only through the map variant, which is built from the placements whose tags a palette lists. A model variant gets an entry of its own. The bake writes a palette per category with every kind the palette map knows, so Forge can place the whole arsenal (forge.md). Grenades, the overshield and camouflage also need the game variant's map options (grenades, equipment and powerups on map), which megalo write sets.

  • Vehicles: every vehicle the CE scenario places (--game-type all), hidden until a match's vehicle set picks it (see "Vehicle sets" below). The rocket Warthog spawns as the chaingun Warthog (VEHICLE_VARIANTS is empty): as the Warthog's rocket model variant (permutation data.variant name) its turret had no Unreal actor Blueprint, so the gun was invisible and the gunner vanished (playtest, 2026-10-03). Banshees and Scorpions start 0.3 wu above CE's height and every other vehicle 0.05 wu (VEHICLE_LIFT), with the at-rest placement flag cleared so they fall into place: at CE's height on Blood Gulch's roofs the Banshees started inside them and were thrown on their sides.

  • Weapons and equipment start 0.05 wu above CE's height (ITEM_LIFT) with the at-rest flag cleared, and fall into place. CE places items 0.001 wu over the floor, and the bake creates objects at rest (placement flag 0x20), so the part of a weapon below its origin stayed in the floor (playtest, 2026-10-03). Levitating powerups (CE's levitate, on Battle Creek, Hang 'Em High, Rat Race and Timberland) stay at rest where CE put them.

  • Respawn times. Each weapon and pickup respawns after CE's time: its placement's, else its item collection's (halo2ue's collection_spawn_time), else 30 s. Vehicles respawn after 30 s and are given back 30 s after being left away from their spot. A map variant object with spawn time 0 never came back. Every respawn time is spread by 0-10 s per placement (RESPAWN_SPREAD): with flat times, every object the simulation had not placed came back in the same tick, and on Death Island that stall reset the round every ~34 s, putting every player at a spawn point without a death (2026-10-08).

  • Teleporters: a sender at every CE "teleport from" flag and a receiver at every "teleport to" flag. The simulation keeps Reach's multiplayer teleporters, which pair ends by channel. CE numbers a map's channels freely (Gephyrophobia uses 2–7, 13 and 14; Infinity 11–24), so the generator renumbers each map's channels from alpha in CE order, across the scenario's 26 (alpha to zulu), and warns about a channel missing either end. Past zulu the field takes the raw number, which pairs just as well: the simulation compares the channel byte. The first version kept only channels 0–5 and dropped the rest silently, which left Gephyrophobia with half its pads.

  • At most 32 teleporters. The simulation keeps a table of 32 teleporters, filled from the map's sender, receiver and 2-way scenery (HaloSimulation_tag_release.dll 0x1803e7670 on CU4). An end past the 32nd sends nothing, and nothing lands on it. Chiron TL-34 placed 60 ends, so about half its pads did nothing. The generator warns past 32.

  • Two-way pads. CE has no two-way teleporter. A pad that both sends and receives is two channels whose "teleport from" and "teleport to" flags sit on top of each other at both ends. All of Chiron TL-34's pads are like this, as are Gephyrophobia's, Sidewinder's, Boarding Action's and others. Where a channel's "from" flag lands within the sender's boundary of another channel's "to" flag, the reverse holds too, and the facings agree, the generator merges the two channels into one. It places a "teleporter 2way" at each pad, at the "to" flag with its facing. That halves the ends: Chiron's 60 become 30 on 15 channels.

  • Room to land. The simulation lands a player at the receiver's (or 2-way's) origin, but only if a Spartan fits there. It tests the biped's shape (radius 0.175, standing height 0.65, from 0.2 up) against the collision. A receiver that fails is skipped, and a sender with none left raises teleporter_blocked. CE has no such test and puts its "teleport to" flags at the back of their alcoves. Every Chiron TL-34 landing spot had 0.17–0.25 to the wall behind it, and pads landing at 0.166 and 0.182 never sent. The generator moves each landing end forward along its exit facing, up to 0.15, until the Spartan clears CE's collision (the staging export's bsp/collision_N) by 0.25. On Chiron 28 of 30 move, by 0.02–0.09.

    The two games turn the player differently:

    • CE turns the player to the "teleport to" flag's facing.
    • Reach keeps the facing relative to the sender, whose front faces the player walking in.

    With CE's flag facings, players had to walk in backwards to exit the right way. So each sender is turned 180° from its CE flag, and walking in head-on exits facing the receiver's direction, as in CE.

  • The post-process volume (environment.post): fixed exposure, no local exposure, no filmic curve. The CE materials then show CE's colours (re/fork_renderer.md).

  • "multiplayer": true, blam.active_bsps, blam.single_bsp, the scenario type set to multiplayer.

Capture the Flag

A map whose CE scenario has a CTF flag for each team offers CTF in the multiplayer menu ("modes": ["slayer", "ctf"]). No CTF ships in this build: there is no variant, no flag object and no flag mesh, so each piece is ours.

  • The rules are a Megalo variant, variants/ctf.mglo (mjolnir megalo write --mode ctf, crates/blam-megalo/src/ctf.rs). The script makes each team's flag on its stand (red's object type on a stand owned by red, blue's on blue's), scores a capture when the carrier stands in their own stand's boundary while their own flag is home, returns a dropped flag when its own team touches it or after 30 s, and ends the round at 3 captures. The reset, like the health pack's respawn, is counted in ticks at the simulation's 60 a second (--tick-rate; at the old default of 30 both lasted half as long). The flag incidents (flag_grabbed 110, flag_dropped 112, flag_scored 116, flag_reset 118, flag_recovered 119) carry the flag's team as their value (Unreal's CustomValue), so the loader plays CE's team lines ("Red team has the flag", "Blue team score", "Red team flag returned"). The action and condition encodings match ReachVariantTool's opcode list; they are checked against the CU4 decoder in re/megalo_variant_format.md.
  • Teams. A spawn point CTF uses is labelled ctf_spawn_red or ctf_spawn_blue by its CE start's team, one every other game type uses ctf_spawn_none, all placed neutral. The variant gives the red and blue spawn points their teams, and parks the rest on a team no player is on. The CTF-only ones are hidden, so only CTF and Assault, whose variants filter on these labels, place them (see "Spawn sets"). It waits 2 s before the first spawn (the loadout camera time), so the first tick has set the teams up; a spawn on tick 0 used them neutral.
  • The flags (tools/level/build_ctf_flag.sh) are two weapons cloned from the assault bomb, which ships whole and is carried the same way: objects\weapons\multiplayer\flag\flag for red and flag_blue for blue, entries 18 and 20 of the multiplayer object type list, which the script needs before it can create them. They differ only in their default model variant, default and blue, both variants of the bomb's model. The bomb binds no Unreal actor, so the flags borrow the oddball's BP_SkullActor. MJOLNIRLevelLoader hides the skull, removes its fire effect and whispering audio, and attaches CE's own flag mesh in its team's colours. The team is the actor's own: the simulation computes a flag's team colour but never hands it to Unreal, while an object's model variant does reach the actor (GetVariantName() on its mesh synchronization component) on every machine, because a tag's default comes with the tag (game_modes.md, 2.2). The mesh is exported by halo2ue and rewritten into /Game/MJOLNIR/CTF/SM_CE_Flag; its textures come from tools/level/ce_flag_textures.py. The stand needs no mesh: CE's own flag base scenery sits at each flag and comes in with the map.
  • Release order. The variant names every object type it creates, and the simulation wipes a variant naming one the installed list lacks: no rules at all, not a colour bug. The CE runtime pack with pakchunk990-MJOLNIRFLAGB_P and the list's entry 20 ships before, or with, the mods release whose ctf.mglo creates type 20. The lobby offers CTF only when that container is installed, and mjolnir megalo write --mode ctf --single-flag writes the one-type script (entry 18 for both teams) for a pack without it.
  • Armour colours. In a team game the loader puts every Spartan in the classic Mk V armour, whatever the player picked: only its material takes a colour. The others (Chief's default, MkIV, Blamite, Lone Wolf, the coatings) bake theirs into textures, so a Chief-armoured player stayed olive on Blue. Each mesh component's class (BPC_SkeletalMesh_C, BPC_FP_SkeletalMesh_C, ...) names the Mk V mesh it gets. The loader then gives each Spartan's armour, and the local player's first-person arms, legs and shadow, a dynamic instance with Armor Color set to red or blue. The parameter is read at global association with index 0: the plain setter writes index -1, which this layered material never reads, so it must be set by info. A respawn reuses the actor and puts the stock armour back, so the loader re-tints after every spawn.

Vehicle sets

CE decides a map's vehicles per game type. Each scenario vehicle has a team index (0 red, 1 blue) and spawn flags: bits 0x1-0x8 put it in Slayer's, CTF's, King's and Oddball's default set, bits 0x100-0x800 allow it when a game variant uses custom vehicle settings. A game variant picks a set per team: DEFAULT, NONE, one type (WARTHOGS, GHOSTS, SCORPIONS, ROCKET WARTHOGS, BANSHEES, GUN TURRETS), or CUSTOM (0-4 of each type). Placing every game type's vehicles at once put 46 on Death Island, more than the simulation keeps, and it reset the round every ~34 s (2026-10-08).

Reach does the same with Megalo labels:

  • gen_ce_level.py places every vehicle with the spawn flag "hide unless megalo required" (0x4), its CE team as the owner team (defender/attacker), and a label ce_<type>_<rank>. The type is CE's set category (a rocket Warthog stays rwarthog). Within a team, a type's vehicles rank by how many game types they are default in, and the k-th of each team share the label. The level's vehicle_sets lists every vehicle's type, team, label and CE's default and allowed game types.
  • The simulation places a hidden object only if the game variant has an object filter on its label; a filter with a team constraint places only that team's (both seen on Death Island, 2026-10-08). The variant holds 16 filters: 17 put every object out of play and lost the GPU device, and so did a filter minimum count above 0. Hence the shared labels: the stock maps' sets are symmetric, and a default set needs at most 9 filters.
  • mjolnir megalo write --vehicle-label-pool writes every label (ce_<type>_1..10) into the variant's string table and a <mode>.layout.json beside it: the bit the filters start at (they end the stream), the variant's own filters, and each label's string index.
  • When a match starts, MJOLNIRLevelLoader (vehicle_sets.lua) reads the host's vehicle settings from the settings line (vehicles.<team>, vehicles.<team>.<type>), picks each team's labels, and appends one filter per label: none of a team constraint if both teams take it, else the team's. A custom count takes the lowest ranks CE allows in the game type; filters past 16 are left out, highest ranks first, and logged. Every machine computes the same filters from the same line and level.
  • The host sets them on the RED VEHICLES and BLUE VEHICLES pages of GAME SETTINGS (MJOLNIRLobby/Scripts/settings.lua).
  • A FORGE game has no filters: the sandbox engine builds its own variant. Its map variant still lists the vehicles, with bit 0x20 of an entry's flags as the hide flag (0x2c against a palette placement's 0x0c), and the palette's placed counts include them. So the loader writes the labels a Slayer game would place to forge_vehicles.txt, cut to the room Slayer's variant has, and MJOLNIRForge's DLL clears the bit on those entries before the objects are made: at new-map, on F2 and on F6, for the map's own layout or a saved one. A save sets it again in what it writes, so a host's vehicle sets still decide in a match. Measured in FORGE: Yoyorast shows all 16, Coldsnap 21 of its 47 default vehicles, Death Island 16, with no round reset in 75 s. A layout saved there and hosted as Slayer with both sets on NONE placed no vehicles. Not tested with a client joining: a client changes nothing, and its objects are the host's.
  • Filters come after the variant's own, so a map with many labels can run out. CTF and Assault have 6 of their own, Race 2. A map's plan can give vehicles that always go together one label (ce_place_vehicles.py): Yoyorast's eleven hogs and Mongooses share six, so every game type places its whole set, where CTF used to leave out three labels and Race one. add_objectives.py --vehicle-plan applies a plan to a published pack. A shared label moves as one, so a custom set's count takes both. Coldsnap's set is far past any variant's room; the cut keeps it under what the simulation holds.

Death Island places Banshees and Warthogs when the round begins, and its Ghosts, Scorpions and Shades only when their respawn time (30-40 s) runs out, with or without labels; Infinity places everything at once. Not yet explained.

Spawn sets

CE and Halo 2 decide a map's spawns per game type too (#360). Each player start lists up to four game types: CTF, Slayer, Oddball, King, Race, All games, All except CTF, All except CTF and Race, and on Halo 2 also Headhunter, Juggernaut and Territories. Before spawn sets, a converted map placed every start Slayer or CTF used, and every game type but CTF spawned at all of them: Slayer on Blood Gulch used the 38 CTF base starts beside its own 17, and the Oddball-, King- and Race-only starts were never placed.

The vehicle sets' mechanism does it, with no script change:

  • gen_ce_level.py (spawn_plan) turns each start's game types into families: ctf, slayer, oddball, king, race, and on Halo 2 maps juggernaut. Starts at one position are one spawn point, serving every family any of them lists.
  • A spawn point every family but CTF uses is placed as before, visible: ctf_spawn_red/blue if CTF uses it too, else ctf_spawn_none.
  • A CTF-only spawn point is hidden ("hide unless megalo required") under ctf_spawn_red/blue. The CTF and Assault variants already filter on those labels (filters 2-4), so they place it and no other game type does.
  • A spawn point some, not all, of the other families use is hidden under a label from a pool, spawn_set_0..spawn_set_15, one per distinct set of families. The level's spawn_sets lists each label's families. A start CTF uses as well becomes two spawn points at one spot, one of each kind.
  • A family no start serves spawns with Slayer.
  • mjolnir megalo write --vehicle-label-pool also writes the 16 pool labels into every variant's string table and layout.json (86 labels, string index 91 at most, of 127). Launcher 0.23.0's validator accepts the variants, so no launcher release has to come first.
  • When a match starts, MJOLNIRLevelLoader (vehicle_sets.lua, spawnFilters) adds one filter per spawn set the game type's family is in, before the vehicle filters, so a full variant drops vehicles, not spawns. Families: Slayer and Team Slayer slayer; CTF and Assault ctf (no filters: the standing ones do it); King, Crazy King and Team King king; Oddball, Team Oddball, Stalker and Reverse Tag oddball; Race, Team Race, Rally and Team Rally race; Juggernaut juggernaut on Halo 2 maps and oddball on CE's (CE's Juggernaut is an Oddball ball type). FORGE shows Slayer's (forge_vehicles.txt, first).

Measured on Blood Gulch in test copies (2026-11-08), its shipped spawn points relabelled in place: Team Slayer placed 17 spawn points, all CE's Slayer starts, and every first spawn and respawn was on one of them; CTF placed the 38 base starts, owned 17 red and 21 blue, and each player respawned in their own base. A joining copy places no spawn points in either: the host decides spawns. FORGE was not tried.

A rebuilt map needs a loader that adds the filters: on an older loader a game type whose spawns are all in hidden sets has none (Slayer on Blood Gulch). So the mods release comes first, then the maps.

Halo 2's starts carry a spawn type per game type (0 both, 1 initial spawn only, 2 respawn only), staged as spawn_types and not used yet: the initial spawn flag the simulation needs for a first spawn is the scenery tag's (player_spawn), not the placement's, so a respawn-only start would need a second spawn tag in the runtime pack.

Pickups by game type

Netgame equipment lists game types the way player starts do, and both games place a pickup only in the games it lists. 229 of the 975 pickups on CE's stock maps are limited so (Wizard, Derelict, Infinity, Prisoner and Longest stack a CTF layout and a layout for everything else on one map), and 9 of Halo 2's 1,197. Until 2026-11-28 a converted map placed all of them in every game.

The spawn sets' mechanism does it, with nothing new in the variants or the loader:

  • gen_ce_level.py (item_families) turns the placement's game types into families. A pickup every family plays with is placed as before.
  • Any other pickup is placed hidden ("hide unless megalo required") under the label of the set its families make, from the same spawn_set_<k> pool, and shares a label with spawn points the same families use (set_label). The level's spawn_sets lists every set, so the loader's standing spawn-set filters place the pickups too. A set may hold ctf here: the CTF and Assault variants then get its filter like any other.
  • A pickup no family plays with (CE's Terminator, Halo 2's Territories) is not placed.
  • How the engines read the list: a slot naming the game, 12 every game, 13 every game but CTF, 14 every game but CTF and Race. Halo 2 counts Assault as CTF in all of these and reads 14 as 13 (halo2.dll 0x698ff0; CE: halo1.dll 0xaa260c). An entry that lists no game type is placed in none.
  • Filters stay inside the variant's 16 on every stock map with CE's default vehicle sets: the most is Infinity's 14 (CTF and Oddball).

Health packs are spots a script fills, labelled for the script, so a health pack limited to some game types (Battle Creek's, Longest's) is still placed in all of them.

Respawn times follow the tags: the placement's own, else its collection's, else 30 seconds, plus the spread. Halo 2's vehicles are netgame equipment too and now take their own times (10 seconds on most, 180 on Containment's Scorpions) and their "respawn on empty" time as the abandonment time, where they had a flat 30 seconds. A Halo 2 placement with a negative time appears once and never again (Uplift's two overshields), which a spawn time of 0 says here. Two things the game cannot say per placement are left to its own tags: whether the timer starts when the pickup is taken or when it is gone (the tag's spawn timer type), and Halo 2's flag that deletes the old object when the new one spawns.

The game's battle rifle is the one weapon whose tag differs from the rest there: its multiplayer object is of type "ordinary" with the timer starting "on death", where every other weapon is of type "weapon" and starts "on disturbance". Measured on Lockout (2026-11-28): a sniper rifle taken from its spot had a new one there 42 seconds later, its spawn time, while the first was still in hand. A battle rifle taken from its spot had none after 90 seconds in hand; once it was dropped and destroyed, a new one was there within 45 seconds. Halo 2 starts the timer of most of its battle rifles on pickup.

So the CE runtime pack ships that weapon tag with the other weapons' settings. tools/level/build_weapon_respawn.py (run by build_ce_runtime.sh) reads the multiplayer object of every weapon in the game's multiplayer weapon list, takes the first that is set up as a weapon as its reference, and packs an override of any that is not with the reference's type, timer start and default times: pakchunk990-MJOLNIRWRESPAWN-<type>_P. Today that is the battle rifle alone; nothing names it, so a weapon a later update ships half set up is caught the same way. With it installed (Lockout, 2026-11-28) a battle rifle taken at 01:46:07 had a new one on its spot between 25 and 50 seconds later, its spawn time being 45, while the first was still in hand. It is an override of a shipped tag, so a game update that changes the battle rifle needs the runtime rebuilt, as for the object type list.

A collection of several permutations is drawn from by weight at every spawn (Coagulation's two group_all_powerups: overshield 90, camouflage 70). One placement here is one object, so the likeliest goes in; the staging keeps the rest (collection_permutations).

Starting equipment

Both games keep what a player spawns holding in the scenario, by game type (CE scnr +0x390, Halo 2 scnr +0x128): each entry lists game types, up to six item collections and two flags. Until 2026-11-28 no conversion read it, and every map spawned players with the assault rifle and the canvas mission's four fragmentation grenades.

What the engines do with it (CE: halo1.dll 0xaa6084 and 0xaa5ef8; Halo 2: halo2.dll 0x68ab10 and 0x6aa460):

  • A player takes the first entry that lists the game. The weapons are the first collection's and the next collection's that gives a different one, so two at most.
  • The grenades start from a default and the entry's flags change them: bit 0 takes them away, bit 1 turns them into plasma grenades. Halo 2's default is two fragmentation grenades. CE's is the globals' grenade list: with the stock globals, the fragmentation maximum, which is 4 up to four players, 2 from five to eight and 1 beyond. A variant's traits hold one count for the match, so a CE map gives the middle tier, 2, which is also the globals' own multiplayer spawn count.
  • CE with no entry for the game hands out the first and fifth weapons of its globals' weapon list, the assault rifle and the pistol (Rat Race has no entries at all). Halo 2 has no such rule, and each of its 25 maps has one entry for every game.
  • A game variant can replace either weapon. The map's own kit is the default here, as it is in both games: CE's "custom" starting equipment, Halo 2's "map default".
  • CE's other choice is "generic". Its own menu describes the two: custom, "You will start the game with the weapon set that the map designers custom tailored for it"; generic, "Use the generic starting weapons across all maps." A generic variant (flag 0x20; halo1.dll 0xaa6084) skips the scenario's entries, and the player keeps what the multiplayer biped's own tag carries: the unit's weapons block of characters\cyborg_mp\cyborg_mp, an assault rifle and a pistol, with the globals' grenades.
  • Which game types use which: of the 38 variants MCC ships for Halo 1 (halo1/game_variants, flags at +0x38) six are generic: Classic Slayer Pro, CTF Pro and King Pro, whose menu descriptions end "Start with Pistol, AR and Grenades", Classic Rockets and Snipers, and Team Oddball. Slayer, CTF, King, Oddball, Juggernaut, Race and Assault, and their Classic forms, take the map's kit and say nothing of weapons. So Slayer on Blood Gulch did start with a plasma pistol and no grenades, and CTF there with an assault rifle and a pistol; "Slayer Pro" is where the assault rifle and pistol on every map came from.

Halo 2's kits: the SMG on 22 maps; the plasma rifle on Midship (plasma grenades) and Waterworks; the battle rifle and SMG on Tombstone; no grenades on Backwash and plasma grenades on Gemini. CE's differ by game on nearly every map: Blood Gulch gives CTF the assault rifle and pistol and every other game a plasma pistol and no grenades; Wizard gives CTF a shotgun and King a needler.

Halo 2 also has "player starting profile" entries (scnr +0xF8) on six maps. They are campaign leftovers that multiplayer does not read: Turf's names a battle rifle and SMG with 100 grenades of each kind, where its starting equipment, and the game, give an SMG.

How it reaches the game:

  1. Staging. mjolnir cache stage writes every Halo 2 entry into placement.json (starting_equipment, each collection with all its permutations). halo2ue does not stage CE's, so tools/level/ce_starting_equipment.py reads the map itself and writes starting_equipment.json beside the placements, with the globals' grenade counts and fallback weapons (convert_ce_map.sh runs it when it is given a .map).

  2. The level file. gen_ce_level.py (starting_kits) writes the level's starting_equipment: one kit per entry, with the families that take it (each family keeps the first entry naming it), the weapons through the tag map, the grenade counts, and for CE the fallback kit for the families no entry lists.

  3. The scenario. The simulation equips a multiplayer spawn from the scenario's first player starting profile and replaces a weapon only where the variant's traits name one (0x189b50: the kit starts as "the map's", the traits override it, profile 0 fills what is left). So level bake writes the kit most families take into profile 0: the two weapons, each with its own tag's rounds, and the grenade counts. Every scenario baked before this still carries the canvas mission's profile there (an assault rifle, a plasma rifle and four fragmentation grenades).

  4. The host's choice. GAME SETTINGS has CE's STARTING EQUIPMENT option (MJOLNIRLobby 0.35.0): CUSTOM, the default, is the map's kit; GENERIC is CE's generic kit, which gen_ce_level.py (generic_kit) writes into a CE map's level as generic_equipment from the biped's weapons that ce_starting_equipment.py staged. GENERIC travels as kit=1 on the settings line, and only then: a line without the key means CUSTOM, so an older loader still reads it. A Halo 2 map has no generic kit and keeps its own.

    Halo 2's own choice is there too (MJOLNIRLobby 0.36.0): PRIMARY WEAPON and SECONDARY WEAPON, each MAP DEFAULT, NONE or a weapon of the game's multiplayer weapon list. A named weapon travels as the variant's own trait value (trait.primary_weapon, trait.secondary_weapon: the weapon's place in the list, 255 for none), and MAP DEFAULT writes nothing. The loader needed no change: it writes the kit first and the host's line after it, so a named weapon replaces the kit's on any map, CUSTOM or GENERIC, with a kit or without. Seen on two PCs (2026-11-28): Lockout, whose kit is an SMG, with a battle rifle and a magnum; Blood Gulch CTF, whose kit is an assault rifle and a pistol, with NONE and a shotgun, each player holding the shotgun alone. The other thirteen weapons were each spawned with once, alone on Lockout, two a match: every value gave the weapon the option names. Place 13, FUEL ROD GUN, is the game's flak_cannon tag.

  5. The variant. The shipped variants still name the assault rifle, so a map without a kit plays as before. When a match starts, MJOLNIRLevelLoader writes the traits of the kit for the game's family into the variant it stages (VariantSettings.kitSettings), before the host's own settings: "the map's" (-2) for the profile's kit, and for any other kit its weapons by their place in the game's multiplayer weapon list (trait_weapons in defs/level/palette-map.json) and the grenade trait's own count. With GENERIC it writes the generic kit's instead. Each machine works this out from the same level file and settings line.

Measured 2026-11-28 on PC 1, on packs add_netgame.py made from the installed releases:

  • Lockout, Slayer: the loader logged "starting kit smg, 2 frag, 0 plasma (the map's starting profile)"; the host spawned holding an SMG with 60 rounds loaded and 240 in reserve and two fragmentation grenades, and respawned with the same after a death. With PC 3 joining, each machine's simulation had both players holding an SMG, and the joiner's loader logged the same kit.
  • Tombstone: a battle rifle (36 and 72) and an SMG. Midship: a plasma rifle, no fragmentation and two plasma grenades. Backwash: an SMG and no grenades.
  • Blood Gulch, CTF: the staged variant's traits read 0, 3 and 4, and the host held an assault rifle and a pistol with two fragmentation grenades. Slayer: a plasma pistol and no grenades.
  • Backwash's energy sword, which Halo 2 places in CTF, Slayer, Oddball and Juggernaut, was absent in King and present in Slayer ("spawn sets 1").
  • Wizard, whose tags stack two layouts: CTF placed its 2 assault rifles, 4 pistols, 2 plasma rifles, 2 rocket launchers, 2 shotguns and 2 active camouflages, and gave the host a shotgun and no grenades; Slayer placed 1 assault rifle, 2 pistols, 2 needlers, 1 plasma rifle, 2 active camouflages and 2 overshields, and gave a plasma pistol and no grenades. Neither placed the other's. That is a set holding ctf, filtered beside the CTF variant's own six.
  • The pickups the tag map newly names all came in with Unreal actors of their own: the battle rifle, the red plasma rifle, the needle rifle, the sentinel gun, the ammo box, and battle rifle and shotgun ammo.

tools/level/add_netgame.py carries all of this into a published pack: it takes the weapons, equipment, vehicle times, sets and kits of a freshly generated level, keeps everything else the pack ships, and rebakes the scenario alone.

Not done: CE's weapon sets are not in GAME SETTINGS, which also change a generic kit (Classic Rockets starts everyone with a rocket launcher); Halo 2's "random" starting weapon is not offered, the value being untried; and bots keep the weapons their squads were baked with.

FORGE runs the sandbox engine's own variant, which the loader does not patch. A FORGE player still spawns with the kit baked into the scenario's first starting profile, the one most of the map's game types share: on Blood Gulch (2026-11-28) a plasma pistol and no grenades. The host's STARTING EQUIPMENT choice does not reach it.

Health packs

This game ships no health pack (no object, no Unreal asset, none placed in the campaign), and its health never recharges, as CE's did not. So every variant the loader ships carries CE's health packs as Megalo script (crates/blam-megalo/src/powerups.rs, on by default in mjolnir megalo write):

  • Each CE health pack becomes a spot, invisible scenery labelled ce_health_pack (objects\multi\powerups\health_pack_spot), owned by the eighth team: neutral scenery with a multiplayer block takes respawns.
  • Each tick, a spot with no pack whose countdown has run out creates one: the equipment objects\multi\powerups\health_pack, multiplayer object type list entry 19, which nobody can pick up.
  • A living player whose biped comes within reach of the pack (8 feet, origin to origin, by the Get Distance action) and whose health is under 100% is healed to full (Modify Object Health); the pack goes, and comes back after 30 s. Shields are left alone.
  • The pickup raises Race's lap_complete incident, and the loader plays CE's pickup_health to that player. recharge_health would be the natural incident, but the simulation never hands it to Unreal.
  • The pack is cloned from the battle rifle ammo pickup (no CE map places battle rifle ammo), and the loader puts CE's health pack mesh (/Game/MJOLNIR/CE/Powerups/SM_CE_HealthPack) on that actor in place of its own. The pack is made 0.1 wu above its spot and falls, so the crate can come to rest tipped on its side. The mesh keeps the world's up and the crate's heading, with its base (CE's model origin) at the crate's lowest corner, which is on the ground, and is seated again 2 s and 5 s after the pack appears.

The actions are Reach's (54/55 get shields/health, 64/65 modify, 66 get distance), at the same numbers in CU4's decoder.

King and Oddball

tools/level/ce_objectives.py places CE's HillFlag polygons and OddballSpawn flags as labelled markers and adds koth and oddball to the map's modes when it has them. King and Oddball ship since mods 0.44.0; game_modes.md, section 3.4, has the rules and the tests.

Playing it

Update 2026-10-21: a converted map is hosted from the main menu's MULTIPLAYER → HOST GAME (MJOLNIRLobby), which starts it through the campaign flow's countdown. The host's game type reaches the loader as pending_variant.txt and takes precedence over the level's "variant", which stays the default; a fireteam client reads it from the insertion point index the host's travel carries. The host's game settings and vehicle sets are patched into the copy the simulation loads. mjolnir_map_registry.dll is built by the mods release and ships in MJOLNIRLevelLoader's native folder. The paragraph below is the first route, from the campaign menu.

CAMPAIGN → NEW GAME → the map (the last mission). "multiplayer": true tells MJOLNIRLevelLoader's native half to switch the simulation to the Megalo engine when that mission starts, and back before any other mission; "variant": "slayer" makes it install variants/slayer.mglo (written by --install) where the simulation's variant loader reads it. It needs native/mjolnir_map_registry.dll built from this revision. The patches and why each is needed are in re/megalo_engine.md; the manual form of the engine switch, without the variant, is:

mjolnir live engine --launch-engine 2 --map-variant-gate skip --map-variant-reset skip   # at the main menu

The level spawns its terrain and sky as soon as the world exists, behind the loading screen (waiting for the player pawn left converted maps black for 20-30 s after it), and fades in once the pawn exists.

Upgraded maps

python tools/level/upgrade_ce_map.py <CODE> takes a converted map through the B30 pipeline, for each map in tools/level/ce_upgrade_maps.json (TST, BGL, DTI, YOY, ICE, SDW, TMB, INF, GPH, BCK, RAT, DCN, and the Halo 2 maps COA, CNT, ASC and ZAN). Its stages, which --stages picks from: land (a Landscape from the ground's heights), foliage (the game's grass and debris), swap (B30's own rocks and trees for CE's natural scenery), collision (their hulls, b30_collision.py, in the BSP through merge_ce_collision.py --extra), editor (the map's Landscape world), cook, bake, assemble (the level file) and install. A map with bake_foliage has its foliage placed in the landscape world (foliage_bake.py, PR #208) instead of spawned at load. pack_remastered.py packs the result as the next version of each map's hub listing (PR #184).

Baked Flux rivers

A Fluid Flux river (an upgraded map's flux with a domain) fills from priming sources over about a minute. Baking its settled water makes it start full, as the game's own 343 Guilty Spark water does (PDA_M06_343_FluxState):

  1. Host the map and wait for flux: river filled in UE4SS.log, plus a few seconds.
  2. Run mjolnir_flux_bake in the console. It writes flux_state/ (height.exr, velocity.exr, state.json) beside the installed level file.
  3. Run python tools/level/upgrade_ce_map.py <CODE> --stages assemble, then --stages install with the game closed. Assemble copies the bake into the upgrade's work folder and sets level.flux.state; install and pack_remastered.py ship flux_state/ beside the level file.

MJOLNIRLevelLoader builds a PDA_FluxSimulationState from the EXRs and sets it as the domain's InitialState before the domain starts. Its ResetRenderTargets then loads that state rather than clearing the water, the priming sources are skipped, and CE's water is hidden at once. A bake for another domain (centre, resolution, cell or height) is ignored, by assemble and by the loader, and the river fills the old way: rebake after changing a map's flux settings or its river mesh. Battle Creek and Timberland were baked on 2026-10-19.

A map must not ship unbaked. Every Flux source costs the render thread about 0.4 ms a frame, and a river that fills spawns all its priming sources for the first minute. Timberland's 42 primers held the median frame at 34 ms for that minute at 4K (13-25 ms after), and Proving Ground's 92 at 54 ms (15 ms with its bake). The river also visibly filled in during that minute. Timberland's and Battle Creek's bakes never reached their hub packs: the scan and the launcher kept only foliage and decals then, and later rebuilds took flux.state out to pass the scan. tools/level/add_flux_state.py <pack.mjolnir>... puts a map's bake (ce_conversions/upgrade/<CODE>/flux_state) into its published pack as the next patch release, after checking that it fits the pack's domain as the loader does, and changes nothing else in the pack. add_bots.py and add_objectives.py carry flux_state/ through their rebuilds.

Limits

  • Weather and model-less skies. ce_fog.py also reads the weather palette's particle systems that the BSP's clusters use, and the weather polyhedra, into fog.json. gen_ce_level.py maps a snow system to the game's PNW falling snow (environment.weather, docs/level_format.md). Weather stops under a roof (2026-10-13): gen_ce_level.py writes a roof map from the collision BSP's ceilings that have a floor below them (weather.roofs), and the loader hides the snow while a ceiling is within 25 m above the camera. CE's own weather polyhedra (mostly single planes over a room's openings) are read but not used. A sky with no model draws its outdoor fog colour past the opaque distance (environment.sky_fog). Only Coldsnap, among the converted maps, has either. Only one fog plane is drawn, and Coldsnap has three: the crevasse's two pit fogs and a "snowyfog night" layer. Since 2026-10-13 ce_fog.py puts first the plane most of the map's clusters draw (Coldsnap: its night fog, in 121 clusters).
  • Visuals. No scenario decals on a plain conversion; CE's decal-flagged surfaces (light panels, moss) are drawn lifted 1 cm off what they lie on (merge_ce_scene.py DECAL_OFFSET, 2026-10-04). A light a placed object carries (the base beacons) is drawn as its lens flare only, never as a light, and the flare's brightness follows the object function that scales the light (Danger Canyon's beacons: a 1 s cosine; MJOLNIRLevelLoader updates it every 40 ms). On an upgraded map ("Upgraded maps"), CE's scenario decals are drawn as quads over the decal's own texture (2026-10-12), the lights CE's placed objects carry are shadowed point lights (level.lights, 2026-10-12), and a flare's pulse runs in its material (M_CE_Flare Pulse, 2026-10-18). Dynamic lights (headlights, muzzle flashes, the flashlight) light players, vehicles and weapons but not the terrain: its base colour holds only the sun's share of the baked light (object shadows), and it sits on lighting channel 1, which only the level's sun shares. mjolnir_terrain_lights on (an experiment, needing the trial masters in chunk 983) lights it too: the masters top the base colour up to the surface's albedo and take the sun's light on the top-up back out of the baked colour, the terrain joins channel 0, and the terrain's hidden shadow copy, drawn two-sided, keeps the Unreal sun out of CE's shade. The copy's sharp shadow edges and the bake's texel steps never quite meet, so with a bake the sun share is drawn only where the bake is sunlit all round and the top-up only where it is shaded all round (BakeMargin, 1.5 texels; mjolnir_terrain_lights margin <texels>); between them the colour is CE's. At margin 0 Blood Gulch's bases traced their crenellations in black around the wall foot (verified on Blood Gulch and Coldsnap, 2026-10-05). Since 2026-10-06 the default (MJOLNIRLevelLoader 0.4.0, runtime pack 1.3.0, maps 1.2.0; mjolnir_terrain_lights hybrid brings the mode above back for comparison) hands the terrain's direct light to Unreal: its base colour is CE's sunlit colour (the texel's own lightmap level where CE had sun, the level's sunlit level in CE's shade), CE's bump map is its normal, and its emissive is CE's colour less what Unreal's sun adds, never below CE's ambient. The sun mask (<stem>_sunmask, CE's lightmap seen from above at 1 m, cooked with the map and named by environment.sun_mask, tent-filtered) is the sun's light function, so CE's broad soft shadows stay and objects darken in them. A trial (mjolnir_terrain_lights on trial) reads the trial masters and a bake in the loader's bake\ folder in one respawn (two quick respawns were followed twice by a GPU crash). mjolnir_terrain_debug <layer> shows one layer of the terrain's light at a time. Keep the sun's angular size at the engine's 0.54 degrees: at 3 the virtual shadow maps leaked light in lines across shaded ground and around the first-person gun. Those lights are physical and tuned for the campaign's exposure, so the level's sun and sky are raised by environment.light_scale (256) with the exposure lowered to match (docs/level_format.md); without that a headlight turned what it reached white. Scenery has CE's object lighting (ambient, dominant light, floor bounce, reflection tint) but not its shadow colour or point lights; a self-illumination colour that takes a change colour does not take it.
  • Scenery collision stops players, vehicles and, since 2026-10-03, projectiles (checked offline, scenery_probe). Update 2026-10-21: in game on Death Island (2026-10-18), shots stop on scenery collision: the swapped B30 rocks' hulls, which reach the collision the same way as CE's scenery (merge_ce_collision.py --extra). The simulation's polygon test for such a crossing takes one winding only (FUN_1802f0170, CU4), so a two-sided surface stops a ray only from the side its plane faces: hulls wound inward stopped shots on their far wall, from inside, until they were wound outward. raytest::tree_game walks by that rule. That test shot a swapped rock, not CE's own scenery. Each node of a collision model is placed by its model node's rest pose: before halo2ue did that, a tree's canopy hull sat around its trunk at head height (Infinity, 2026-10-04), so maps converted earlier need converting again. The trees cost table space: Danger Canyon's 43,646 scenery triangles need 17 scenery instances instead of 6, and the maps that keep scenery in the BSP grow their 2D references several times over (Blood Gulch 55,634 and Boarding Action 58,539 of the 65,535 limit; a map past it moves its scenery to instances of its own). See ce_terrain_collision.md, "Scenery in the tree".
  • Object light colour. Players, vehicles and weapons are lit by the Unreal sun and sky light. On a map with a real sun (its lightmap at 0.8 or more where the bake has sun) they take that sunlit lightmap's colour, since CE lit an object by the lightmap under it; otherwise the sky's outdoor ambient colour, or the lightmaps' average when that colour lacks a channel. The sky's colour alone can be anything: Infinity's test sky is (0.5, 0.5, 0), which turned everything yellow.
  • Approximations in the materials. CE's noise, jitter and wander functions are a value noise (4, 8 and 1 changes a period: jitter as a new random value 30 times a period strobed Damnation's volume lights); the variable-period functions use their nominal period. The plasma self-illumination band's width and the "add signed" chicago functions are estimates. The reflection's view term uses the per-pixel eye vector where CE used the camera's forward vector. Water (swat, "Water" above), glass (sgla) and the reflection lightmap mask, once listed here as missing, are drawn: glass in CE's three passes since 2026-10-04 (merge_ce_scene.py extra_passes: the background tint multiplied in, the reflection added, then the diffuse pass, on M_CE_Glass{Tint,Reflection,Diffuse}, two-sided by flag bit 2), and the environment masters dim reflections in dark lightmap areas by the shader's lightmap brightness scale (LightmapReflScale, 2026-10-04). Plasma (spla, Yoyorast's energy beams) draws on M_CE_Plasma, MCC's transparent_plasma (2026-10-12).
  • Maps install side by side. Each has its own scenario, world and mesh containers. The one registration container, pakchunk996-MJOLNIRREG_P (the DT_Scenarios rows and the campaign asset's ScenarioList), is rebuilt from every installed map's record by level bake --install-test or mjolnir level register, whose code the launcher runs after a map install or removal. Only the CE_COOK=0 fallback still overrides the shipped cylinder, one such map at a time.
  • More than 8,191 surfaces (Sidewinder, Infinity, Death Island, ...): the static body lists the terrain as one whole-instance key instead of one key per surface. Verified on Sidewinder: players walk and vehicles rest on it.
  • One BSP per map. A map's second BSP is not converted (Coldsnap's is a copy of its first).
  • The canvas palette. A type B40's palette lacks gets an entry of its own at the bake (the shotgun, the battle rifle, the SMG, and the fuel rod as Reach's flak_cannon), and health packs are Megalo script ("Health packs"). What the game doesn't ship is dropped: the flamethrower, and custom weapons defs/level/ce-tag-map.json doesn't map (see ce_custom_content.md).
  • No rocket Warthog. Rocket hogs spawn as chaingun hogs until the rocket turret's tag wrapper points at an actor Blueprint (the chaingun turret's, via ue-asset tagwrap, or a rewritten mesh with CE's rocket pod).
  • Extent. Keep a map inside the canvas level's overall extent: lifted 800 wu above B40, Havok flung objects hundreds of wu.
  • Game modes. Slayer and Capture the Flag (mjolnir megalo write --mode slayer|ctf; the mods release ships variants/slayer.mglo and ctf.mglo, and --score N --out .../MJOLNIRLevelLoader/variants/slayer.mglo changes the score to win). Without the file the map runs the empty default variant: players spawn, nothing scores. --mode tick scores every player every tick, a smoke test for the interpreter. Update 2026-11-21: the mods release now ships seventeen variants: Slayer, Team Slayer, CTF, Assault, King, Crazy King, Team King, Oddball, Team Oddball, Juggernaut, Stalker, Reverse Tag, Race, Team Race, Rally, Team Rally and Pelican Warfare. The lobby offers a game type on a map whose modes lists it.