MJOLNIR Core

MJOLNIR Core is a tool for Halo Campaign Evolved that adds multiplayer functionality with features like a lobby system and custom map support.

README

MJOLNIR Core Logo

MJOLNIR Core

The Multiplayer Modding Framework for Halo Campaign Evolved

CI Deploy Hub License: MIT Discord UE5 Cloudflare Tauri

๐ŸŒ mjolnircore.com ยท ๐Ÿ’ฌ Join Discord ยท ๐Ÿ“ฆ Download Launcher


MJOLNIR brings classic competitive multiplayer to Halo Campaign Evolved: all 19 original Halo: Combat Evolved multiplayer maps, Slayer and Capture the Flag, and a framework for custom maps and content. The lobby also supports Team Slayer, King of the Hill, and Oddball when the installed map and game variant support them.

Get multiplayer and read the FAQ, download the launcher, and join the community to play or create. The current alpha supports up to 16 players, each on their own PC, and is tested on Windows with both the Steam and the Xbox app (Game Pass) versions of the game. Steam and Xbox app players can play together.

Repository Structure

mjolnir-core/
โ”œโ”€โ”€ mods/                        # UE4SS Lua mods
โ”‚   โ”œโ”€โ”€ MJOLNIRCore/             # Core runtime & UEHelpers library
โ”‚   โ”œโ”€โ”€ MJOLNIRLobby/            # MULTIPLAYER menu: host, find and join games, maps from the hub
โ”‚   โ”œโ”€โ”€ MJOLNIRLevelLoader/      # Runtime half of custom levels and converted CE maps
โ”‚   โ”œโ”€โ”€ MJOLNIRHud/              # Multiplayer HUD: kill feed, scoreboard, match chat
โ”‚   โ”œโ”€โ”€ MJOLNIRForge/            # Forge: the Monitor and its editor keys in a FORGE game
โ”‚   โ”œโ”€โ”€ MJOLNIRFlyCam/           # Free debug camera on the numpad, mouse look, HUD toggle
โ”‚   โ”œโ”€โ”€ MJOLNIRConsoleEnabler/   # Developer console enabler (~ only; Tab is the scoreboard)
โ”‚   โ”œโ”€โ”€ MJOLNIRMultiplayer/      # Mission launching, debug menu, travel probes & admin commands
โ”‚   โ”œโ”€โ”€ MJOLNIRDiscovery/        # UFunction dumper & travel logging
โ”‚   โ”œโ”€โ”€ MJOLNIRMapMenu/          # The shipped debug map menu, with custom worlds in it
โ”‚   โ”œโ”€โ”€ MJOLNIRWorldBuilder/     # Lighting and a floor for a custom world at runtime
โ”‚   โ”œโ”€โ”€ MJOLNIRCTF/              # Experience-framework game mode and CTF arena in a custom world
โ”‚   โ”œโ”€โ”€ MJOLNIRTagProbe/         # Read loaded Blam tag assets in game
โ”‚   โ”œโ”€โ”€ MJOLNIRBridge/           # Remote control: run Lua & console commands from outside
โ”‚   โ”œโ”€โ”€ MJOLNIRHudColor/         # Example code mod: recolor UE5 HUD & menu theme at runtime
โ”‚   โ””โ”€โ”€ MJOLNIRBlamConsole/      # The classic Blam console at the Unreal console, with help
โ”œโ”€โ”€ signatures/                  # UE4SS AOB scan overrides for HCE
โ”œโ”€โ”€ native/                      # C sources: the mods' native DLLs (built at release), FName trampoline, probes
โ”œโ”€โ”€ config/                      # Reference UE4SS-settings.ini + CU4 build lock
โ”œโ”€โ”€ runtime/                     # Pinned UE4SS runtime bundle inputs (ue4ss.lock.json)
โ”œโ”€โ”€ keys/                        # Public release-signing keys
โ”œโ”€โ”€ defs/                        # Exported tag definition corpus (schema only)
โ”œโ”€โ”€ changelog/                   # Public release notes, one file per tagged release
โ”œโ”€โ”€ blog/                        # Posts for mjolnircore.com/blog, one file per post
โ”œโ”€โ”€ docs/                        # Format findings and guides
โ”œโ”€โ”€ tools/ghidra/                # Ghidra reverse-engineering scripts
โ”œโ”€โ”€ tools/iostore/               # UE5 IoStore + Blam tag readers (Python)
โ”œโ”€โ”€ tools/pe/                    # PE/binary inspection, AOB signature checker
โ”œโ”€โ”€ tools/mcp/game/              # Launch, drive and screenshot the game (MCP server + CLI)
โ”œโ”€โ”€ tools/level/                 # Classic CE map conversion and remaster pipeline
โ”œโ”€โ”€ tools/ue/                    # Cooking and Unreal-side helpers
โ”œโ”€โ”€ tools/blender/               # Blender add-on for authoring custom levels
โ”œโ”€โ”€ tools/remote/                # Drive a second PC's game for multiplayer tests
โ”œโ”€โ”€ scripts/                     # Modpack, manifest-signing and install helper scripts
โ”œโ”€โ”€ crates/                      # Rust workspace
โ”‚   โ”œโ”€โ”€ ue-iostore/              # UE5 .utoc/.ucas + .pak reader, TOC writer, container packer
โ”‚   โ”œโ”€โ”€ ue-texture/              # Read and rewrite cooked Texture2D payloads (texture swaps)
โ”‚   โ”œโ”€โ”€ ue-asset/                # Cooked Unreal packages: usmap, properties, meshes, Nanite, levels
โ”‚   โ”œโ”€โ”€ blam-defs/               # Tag definition model & JSON corpus loader
โ”‚   โ”œโ”€โ”€ blam-tag/                # Blam tag reader, writer and editor
โ”‚   โ”œโ”€โ”€ blam-hsc/                # Blam script: expression tree, decompiler, compiler, opcode table
โ”‚   โ”œโ”€โ”€ blam-pack/               # Bake edited tags into `_P` override containers
โ”‚   โ”œโ”€โ”€ blam-sbsp/               # Classic CE collision BSPs as scenario_structure_bsp overrides
โ”‚   โ”œโ”€โ”€ blam-megalo/             # Megalo game variants (.mglo) the simulation loads
โ”‚   โ”œโ”€โ”€ blam-live/               # Read and patch tag payloads in the running game
โ”‚   โ”œโ”€โ”€ blam-radiosity/          # Classic CE lightmaps, re-solved at any resolution
โ”‚   โ”œโ”€โ”€ mjolnir-sign/            # Ed25519 author signatures for .mjolnir archives
โ”‚   โ””โ”€โ”€ blam-cli/                # `mjolnir` command-line tool
โ”œโ”€โ”€ packaging/                   # How the CLI is packaged for each install channel
โ”œโ”€โ”€ bucket/                      # Scoop manifest for the CLI
โ”œโ”€โ”€ HomebrewFormula/             # Homebrew formula for the CLI
โ”œโ”€โ”€ apps/
โ”‚   โ”œโ”€โ”€ launcher/                # Tauri desktop mod manager
โ”‚   โ””โ”€โ”€ tag-editor/              # Guerilla-style tag, texture, audio and script browser and editor
โ”œโ”€โ”€ unreal/                      # UE 5.5 projects: MJOLNIRMapKit, MJOLNIRMaterials
โ””โ”€โ”€ hub/                         # Cloudflare hub: mods, maps, public games, match history

Mods

A map pack from the hub plays through four of these: MJOLNIRCore, MJOLNIRLevelLoader, MJOLNIRLobby and MJOLNIRHud, which the launcher installs with it.

MJOLNIRLobby

Adds MULTIPLAYER to the main menu, on MJOLNIR's own cooked screens (the game's own widgets are the fallback when the UI container is missing). HOST GAME picks a classic map, a game type and its settings, and starts it for the fireteam the way the campaign menu's Start Game does; MAX PLAYERS goes up to 16. A game the host makes public is listed on the hub, and FIND GAMES (or a mjolnir:// join link) joins one by its connection string. A map this PC does not have is downloaded and mounted without a restart. The lobby also runs the post-game vote on the next game, shows hub names in place of platform names, and uploads match records. Its native half, built from native/lobby, binds the clicks of the Lua-made buttons, raises the fireteam cap, and makes the hub calls and joins. See docs/multiplayer_menu.md and docs/multiplayer_servers.md.

MJOLNIRLevelLoader

The runtime half of custom levels and of the converted CE maps. It reads levels/<SCENARIO>.level.json and spawns the level's Unreal decor, visual only: the simulation collides with the baked scenario, never with Unreal geometry. On a converted map it also adds the lighting, water, grass, weather and effects. On a multiplayer map it starts the game type the lobby chose, a Megalo variant (variants/*.mglo, written by mjolnir megalo write at release). Its native half, built from native/map_registry, lets a map run on a world of its own and switches the simulation to its Megalo engine for multiplayer maps. See docs/level_format.md and docs/ce_map_conversion.md.

MJOLNIRHud

The multiplayer HUD for the classic maps: an animated kill feed with the game's weapon icons, medals, score bars, the respawn countdown, name tags over teammates, and a scoreboard while Tab is held. Match chat opens on T (all) and Y (team); a line starting with / is a command, and /help lists them (the host also has /kick, /ban and /slay). On the host of a public game it records the match for the hub's match history. mjolnir_hitches logs frame hitches, and mjolnir_bench times what the foliage or a console variable costs a frame; its native half, built from native/frame_times, reads stat unit's split for it. See docs/multiplayer_hud.md.

MJOLNIRForge

Halo Reach's Forge, still inside the simulation. In a FORGE game (MJOLNIRLobby's game type of that name, host only for now) B turns you into the Monitor and back, V picks up and drops what the cursor is on, Page Up and Page Down push a held object out or pull it in, and Delete removes it. Insert places a new object from the map's palette, picked with the arrow keys in a palette panel. Its native half, built from native/forge, turns each key into the engine's own editor request on the simulation's thread. See docs/forge.md and docs/re/forge_engine.md.

MJOLNIRFlyCam

Free-flying detached camera on the numpad, with mouse look, speed boost, and automatic first-person model hiding. Camera keys live on the numpad because the game's Blam simulation reads WASD/mouse directly โ€” the player keeps responding to those even while the camera is detached.

HotkeyAction
F8Toggle FlyCam ON/OFF (auto-hides HUD and the floating first-person arms/gun)
F7Toggle HUD overlay
F9 / Numpad 0Toggle mouse look
Numpad 8/2Move camera forward / backward
Numpad 4/6Strafe camera left / right
Numpad 9/3Ascend / Descend
Numpad 5Snap camera back to the player
Left ShiftBoost speed (3x)
Numpad +/- or [ / ]Increase / Decrease base speed
MJOLNIRConsoleEnabler

Enables the UE5 developer console in the shipping build, on ~. The game also opens it on Tab; the mod moves that binding to ~, because Tab is the multiplayer scoreboard.

MJOLNIRMultiplayer

Campaign-flow mission launching, the hidden debug menu, experimental travel probes for verified campaign package paths and listen-server loading, and player administration. mjolnir_mission starts a scenario the way the game's own Debug Level Select does, through SetAndBeginCampaign, which rejects a scenario whose world is not cooked rather than crashing. Runtime travel and session preservation still require in-game verification.

CommandPurpose
mjolnir_mapsList verified CU3 root world package keys and paths
mjolnir_mission <scenario>Start A15..D40, E10..E30, a testing_* scenario, or a three-character MJOLNIR map through the campaign flow
mjolnir_debug_uiToggle the main menu's hidden Test options panel (Debug Level Select)
mjolnir_kick <name>Send a player the kick notice (see caveat below)
mjolnir_travel a15Dispatch plain travel to the A15 campaign world
mjolnir_listen a15Dispatch travel to A15 with ?listen

mjolnir_kick notifies, it does not disconnect. AGameSession::KickPlayer is a plain C++ virtual with no UFUNCTION macro, so it is absent from Unreal's reflection tables and unreachable from UE4SS โ€” the call raises "attempt to call a TrivialObject value". The only kick-shaped reflected function in the build is PlayerController:ClientWasKicked, so the command sends that and leaves the disconnect to the client. It is not enforcement.

MJOLNIRDiscovery

Diagnostic UFunction dumper and travel logging for reverse engineering. Each dump is printed and also written to a ue4ss/MJOLNIR_*.txt file.

CommandPurpose
mjolnir_scan_blamDump live BlamEngine classes, functions, and candidate instances
mjolnir_scan_worldsDump loaded Halo world objects
mjolnir_trace_networkHook co-op session, lobby, and travel lifecycle functions
mjolnir_dump_stateSnapshot live variant and Blam network component properties
MJOLNIRMapMenu

Reveals the game's shipped debug map menu (Test options, DEBUG LEVEL SELECT) and adds custom worlds to its TEST MAPS page. mjolnir_menu_debug shows the panel, mjolnir_menu_open opens MAP SELECT directly, mjolnir_menu_add <scenario> [label] adds an entry, and mjolnir_menu_list lists both pages.

MJOLNIRWorldBuilder

Furnishes a custom world after it loads with what a stock-UE cook cannot carry: lighting, since an overridden campaign world arrives without its sun, sky and fog, and a floor under the pawn. mjolnir_world_build [size_m] does both, mjolnir_world_light and mjolnir_world_floor one each, mjolnir_world_probe reports what the world holds, and mjolnir_world_auto toggles building on arrival.

MJOLNIRCTF

Installs a game mode into the game's own Experience framework at runtime and lays out a two-base Capture the Flag arena inside a custom world (mjolnir_ctf_experience, mjolnir_ctf_arena, mjolnir_ctf_status, mjolnir_ctf_reset). The Capture the Flag played on the classic maps is not this mod: it is the Megalo ctf variant MJOLNIRLevelLoader runs.

MJOLNIRTagProbe

Reads loaded Blam tag assets from inside the running game, so an override container can be checked against what the game actually loaded rather than against inference.

CommandPurpose
mjolnir_tag_classesList which Blam*TagDataAsset classes are loaded
mjolnir_tag_probe [filter]Dump loaded tag assets and their properties
mjolnir_paksReport what the mounted file tree can see
MJOLNIRBridge

Turns the running game into something a tool can drive: it watches a request file and runs console commands or arbitrary Lua on the game thread, answering back. Paired with tools/mcp/game, that gives launch, level load, live state reads, input and screenshots without a person at the keyboard. Install with scripts/install-bridge.ps1; see docs/game_automation.md.

MJOLNIRBlamConsole

The simulation DLL still carries the classic Blam console โ€” the HS compiler and all 1,695 engine functions โ€” but nothing feeds it text, so every Blam command at the Unreal console is "Command not recognized". This mod wires it: type ai_enabled, player_teleport player0 ... or blam (unit_get_health (player0)) and the result value, or the compiler's error, comes back on the UE4SS console and in an on-screen panel (blam_overlay off hides it). help <prefix> lists names with signatures, marking the 425 functions and 217 globals the release build compiled out. The native half is built from native/blam_console; see docs/blam_console.md.

MJOLNIRHudColor

Reference opt-in UE4SS Lua mod that recolors Halo Campaign Evolved's Unreal Engine 5 menus and in-game HUD at runtime without touching Blam chud tags or recooking assets. Configure presets, custom #RRGGBB colors, menu recoloring, and hotkey behavior directly from My Mods โ†’ Settings in the launcher, press F5 to cycle presets, or run mjolnir_hud_color <preset|#RRGGBB|reload> in the console. See docs/custom_hud_colors.md and docs/mod_settings_api.md.

MJOLNIRCore

Core framework initialization, UEHelpers, and the canonical ModSettings.lua settings loader (docs/mod_settings_api.md).

A mod that calls a MJOLNIR-only helper must ship its own Scripts/UEHelpers.lua. require("UEHelpers") searches the mod's own Scripts/ first and UE4SS's Mods/shared/ second. Without a local copy it silently binds to upstream's UEHelpers, which has no SafeGetPlayerName, FindObjectSafe, GetAllPlayerControllers or GetGameSession โ€” and the failure surfaces as a nil call at the first use, not at load.


Quick Start

To play, install the launcher. It installs UE4SS with the signatures and settings this game needs, the signed MJOLNIR mods and the maps, and checks them for updates. The steps below are the manual route, for working on the mods themselves.

Prerequisites
  • Halo Campaign Evolved (Steam, or the Xbox app / Game Pass)
  • RE-UE4SS 3.0.1 experimental, build d0107f63 (dwmapi.dll proxy), the one pinned in runtime/ue4ss.lock.json. Upstream no longer serves that build; runtime.zip from the latest runtime-v release carries it with the signatures and settings in place (Installation steps 1, 3 and 4)
Installation
  1. Install UE4SS into Meteorite/Binaries/Win64/ue4ss/ (Meteorite/Binaries/WinGDK/ue4ss/ on the Xbox app)
  2. Copy the mods/ folder contents into ue4ss/Mods/
  3. Copy the signatures/ folder contents into ue4ss/UE4SS_Signatures/
  4. Copy config/UE4SS-settings.ini to ue4ss/UE4SS-settings.ini
  5. Add mod entries to ue4ss/Mods/mods.txt:
    MJOLNIRCore : 1
    MJOLNIRConsoleEnabler : 1
    MJOLNIRFlyCam : 1
    
  6. Launch the game via Steam or the Xbox app

A checkout has no native DLLs and no Megalo game types: neither is committed, and a release builds both (native/*/build.ps1, mjolnir megalo write). MJOLNIRBlamConsole, MJOLNIRLevelLoader and MJOLNIRLobby load their native halves for what Lua cannot do (evaluating Blam script, running a map on its own world and under Megalo, button clicks and hub calls), so to test multiplayer from a checkout, copy its Lua over a launcher install rather than installing from scratch.

Reloading Mods

UE4SS reads mods.txt and loads Lua scripts during process startup. Restart HCE after adding, enabling, or changing a mod. UE4SS's own CTRL+R hot reload is on in the reference config/UE4SS-settings.ini; the launcher turns it off (EnableHotReloadSystem = 0) whenever it starts the game, because a reload in the middle of a match crashed the host.


The mjolnir Command Line

Reads and edits the Blam tags inside your installed game โ€” list the groups, print a tag's decoded fields, change one, and bake the result into an override container the game loads. It also bakes custom levels, writes the Megalo game variants the multiplayer maps run, re-solves classic CE lightmaps (on the GPU by default), swaps textures, and packages maps for the hub (mjolnir level, megalo, texture, map). It needs nothing but the game, and writes into your install only wh