Goal: recolor Halo Campaign Evolved's menus and in-game HUD at runtime, and understand how to write a clean UE4SS Lua mod for Unreal UI assets Time: about ten minutes to try the example mod; thirty minutes to write your own You need: Halo Campaign Evolved with MJOLNIR / UE4SS installed, and a text editor
If you tried editing chud color settings in the Tag Editor and saw nothing change in game, you ran into the core architectural split of Halo Campaign Evolved. This guide explains why Blam CHUD tags are inert, where the game's cyan UI and HUD theme actually lives in Unreal Engine 5, and walks through mods/MJOLNIRHudColor as a working, event-driven UE4SS Lua mod you can use directly or fork as a template.
Why editing chud tags does nothing
Halo Campaign Evolved splits work cleanly between two engines (tag_data_pipeline.md):
- Blam (
HaloSimulation_tag_release.dll) runs gameplay simulation only — weapons, vehicles, physics, damage, AI, and game rules. - Unreal Engine 5 (
HaloUI+/Script/Meteorite) owns all rendering, every frontend menu (WBP_MainMenu, campaign, settings, pause), and the entire in-game HUD (WBP_HUD_Main, shield bar, weapon/grenade cradles, motion tracker, reticles, objectives).
The shipped containers still carry 286 legacy Reach-era tags under Tags/ui/chud/ (including globals-chud_globals_definition, v_falcon_chingun, v_revenant, and spike_rifle). Those are leftovers on the simulation side: zero Unreal UI, HUD, or Blueprint assets import any Tags/ui/chud/* tag, and HaloCampaignEvolved.exe never reads CHUD color fields to draw anything.
Do you need to recook Unreal assets?
No. You only need an Unreal Engine 5 cook when authoring brand-new widget trees, textures, or material shader graphs (custom_ui.md). The shipped UI and HUD materials already expose their theme colors through standard UE5 runtime surfaces that UE4SS Lua can update directly — with zero modified game containers and instant live switching.
Where the cyan theme actually lives
Measured live against the shipping build (2026.08.11.1121610.2-Rel-i343-Meteorite-2607-CU4), the cyan-blue theme spans four UE5 layers:
1. Shared Material Parameter Collections (46+ materials at once)
/Game/UI/Shared/Material_Parameter_Collections/MPC_MetUI_ColorLibrary is imported by 46 UI and HUD materials — main menu button backgrounds and glows (M_MetUI_ButtonDefault), footer bars (M_MeteoriteFooterBar), dotted frames (M_BorderStyle_Dotted), cooldown bars, booster bars, heat meters, motion tracker blips, navpoints, and shield meter effects.
| Parameter | Shipped linear RGB | Approx. sRGB | Role |
|---|---|---|---|
MET Base Alt | (0.016, 0.144, 0.175) | #226A74 | Dark accents and backdrops |
MET Blue | (0.095, 0.407, 0.497) | #57ABBB | Primary menu and UI chrome |
MET HUD Blue | (0.084, 0.558, 0.687) | #52C5D8 | Primary in-game HUD accent |
MET Light Blue | (0.366, 0.871, 1.000) | #A3F0FF | Focus / highlight state |
Footer Color 1 | (0.376, 0.973, 0.930) | #A5FCF7 | Footer highlight |
Footer Color 2 | (0.122, 0.305, 0.292) | #629693 | Footer muted accent |
MET Blue Gray | (0.289, 0.569, 0.641) | #92C7D1 | Muted dividers and labels |
Alert Red, Alert Yellow, Dead Red | — | — | Leave untouched so warnings stay readable |
/HaloUI/Assets/MPCs/MPC_HaloUI_ColorLibrary also holds Light Blue, Gray Blue, and White Blue for M_MetUI_HUDFillingBar and M_MetUI_CooldownBar.
Setting a vector parameter takes one call through KismetMaterialLibrary:
local kml = StaticFindObject("/Script/Engine.Default__KismetMaterialLibrary")
local mpc = StaticFindObject(
"/Game/UI/Shared/Material_Parameter_Collections/MPC_MetUI_ColorLibrary.MPC_MetUI_ColorLibrary"
)
kml:SetVectorParameterValue(world, mpc, FName("MET Blue"), { R = 0.694, G = 0.254, B = 0.016, A = 1.0 })
World-load note: Unreal creates a fresh
MaterialParameterCollectionInstancefor eachUWorld. Whenever the game travels between the Frontend menu, a campaign mission, and multiplayer, re-apply the MPC parameters onPlayerController:ClientRestart.
2. CommonTextStyle Blueprint CDOs (menu and HUD text)
Text labels do not read the MPC. Instead, CommonTextBlock widgets reference small CommonTextStyle Blueprint subclasses whose Class Default Object (CDO) holds an FLinearColor in .Color:
- Menus:
BP_MeteoriteButton_Rest_TextStyle(#56ABBB),BP_MeteoriteButton_Focus_TextStyle(#A3F0FF),BP_MeteoriteButton_Disabled_TextStyle(alpha0.50),BP_MeteoriteDefault_TextStyle,BP_MetUI_*_MetBlue,BP_MetUI_*_LightBlue. - In-game HUD:
BP_Cradle_MainNumber_TextStyle(magazine count),BP_Cradle_SecondaryNumber_TextStyle(reserve count, alpha0.50),BP_Cradle_Percent,BP_InteractPrompt_Body_TextStyle,BP_MetUI_Objectives_TextStyle.
FindAllOf("CommonTextStyle") skips CDOs by default in UE4SS, so discover them with ForEachUObject and obj:IsA(ctsClass). Updating cdo.Color changes every future widget automatically (including hover/focus transitions); calling tb:SetStyle(tb.Style) on live CommonTextBlock instances refreshes screens already on viewport.
3. Per-widget in-game HUD Dynamic Material Instances
Several core HUD elements use vector parameters directly on their material instance rather than sampling the MPC:
| Material | Widget | Vector parameters | Leave untouched |
|---|---|---|---|
MI_UI_HUD_ShieldMeter | WBP_ShieldHealthBar | Shield Color, LightColor, HealthColor | OvershieldColor, BorderColor, ShieldDelayedColor, HealthDelayedColor |
MI_HUDCradleFrame_* | Weapon, Grenade, Equipment cradles | FrameColor | FrameColor_Empty (low-ammo red) |
MI_ObjectiveTrackerFrame_Solo | WBP_ObjectivesPanel | FrameColor | — |
MI_HUDCradleIcon_*, MI_EquipmentCradleIcon | Weapon, Grenade, Equipment icons | ColorA_*, ColorB_*, Color_Backdrop | Non-cyan overrides (e.g. MI_HUDCradleIcon_Infinite) |
MI_HUDCradleAmmo | Bullet pips | ColorA_*, ColorB_* | — |
MI_MotionTracker_Base | WBP_MotionTracker | EdgeColor, PlayerColor | Ally/enemy blips (user Settings) |
MI_HoldPrompt, MI_InteractPromptFrame | WBP_InteractPrompt (HoldProgressBorder) | ColorA, GradientColor_Top, GradientColor_Bottom | ColorB (white) |
Some HUD widgets (such as grenade icons and frames) start bound to a static MaterialInstanceConstant. Calling img:GetDynamicMaterial() on the live UImage promotes it to a per-widget MaterialInstanceDynamic so SetVectorParameterValue works without mutating shared cooked assets. Note that MID_MI_HoldPrompt lives on a HaloUIBorder (HoldProgressBorder) rather than a UImage, so scanning live HUD MaterialInstanceDynamic objects catches it too.
4. Direct UImage widget tints
A handful of icons tint themselves directly via Image.ColorAndOpacity or Image.Brush.TintColor — for example SquadLeaderIcon, VoiceIcon, and WarningIcon on the main menu, and InfiniteAmmoIcon* and countdown brackets on the HUD. Always filter to live runtime instances (/Engine/Transient.) and never mutate cooked templates under /Game/...:WidgetTree.
Watch out for sRGB vs. linear RGB
UE5's FLinearColor expects linear-light RGB in [0, 1], while hex colors (#RRGGBB) are sRGB. Passing 0x57 / 255 = 0.341 directly produces a washed-out pastel instead of the #57ABBB you picked (0.095 in linear light). Always run hex channels through the sRGB-to-linear transfer function first — see srgbToLinear in mods/MJOLNIRHudColor/Scripts/palette.lua.
Using the example mod (MJOLNIRHudColor)
mods/MJOLNIRHudColor implements all four layers cleanly and ships as an opt-in reference mod.
Configure from the Launcher (recommended)
MJOLNIRHudColor uses the generic Mod Settings API. Once installed in My Mods, click Settings on the MJOLNIRHudColor card to configure it visually without editing any Lua files:
MJOLNIRHudColor settings panel inside the MJOLNIR Launcher's My Mods view
- Theme preset — choose a built-in palette (
Amber,Emerald,Crimson,Violet,Tactical Monochrome),Shipped Cyan (Default), orCustom Color…. - Custom HUD color — appears automatically when Theme preset is set to
Custom Color…, with a color swatch picker and#RRGGBBinput. - Recolor frontend & pause menus — turn off to keep menus in shipped cyan while only recoloring the in-game HUD.
- F5 preset cycle hotkey — toggle the in-game
F5shortcut on or off.
Changes save to <game_binaries>/ue4ss/mjolnir-settings/MJOLNIRHudColor.json (outside the signed mod folder, so the mod stays signed) and apply automatically on startup, level travel, menu open, or immediately in-game via mjolnir_hud_color reload.
Install and try it locally
- Copy
mods/MJOLNIRHudColorinto<install>/Meteorite/Binaries/Win64/ue4ss/Mods/MJOLNIRHudColor(orWinGDKon Xbox Game Pass). - Add
MJOLNIRHudColor : 1toue4ss/Mods/mods.txtabove the; Built-in keybinds/Keybinds : 1line. - Launch Halo Campaign Evolved, or open My Mods → MJOLNIRHudColor → Settings in the launcher to pick your theme or custom hex color before launching.
Live controls
| Control | What it does |
|---|---|
F5 | Cycle built-in presets (amber → emerald → crimson → violet → white → default) when enabled in Settings |
mjolnir_hud_color <preset> | Switch to a named preset in the ~ console (e.g. mjolnir_hud_color emerald) |
mjolnir_hud_color #RRGGBB | Derive a full 6-shade theme live from any hex color (e.g. mjolnir_hud_color #FF6600) |
mjolnir_hud_color default | Restore the exact original shipped cyan values without restarting |
mjolnir_hud_color reload | Re-read ue4ss/mjolnir-settings/MJOLNIRHudColor.json immediately after editing settings in the launcher |
mjolnir_hud_color_cycle | Cycle to the next preset from the console |
Writing your own mod from this template
MJOLNIRHudColor follows the structure expected of every code mod in this repository (contributing_code_mods.md):
mods/MJOLNIRHudColor/
├── mod.json # version, summary, category, slug, and "settings" schema
└── Scripts/
├── ModSettings.lua # shared zero-dependency settings loader (byte-identical to MJOLNIRCore's copy)
├── palette.lua # pure Lua (zero UE4SS globals) — unit tested in CI
└── main.lua # thin UE4SS runtime: hooks, commands, and applies
Five patterns worth copying into any UE4SS Lua mod you write:
- Event-driven, never a per-frame loop.
main.luahas no tick loop. It applies once at startup, on/Script/Engine.PlayerController:ClientRestart(newUWorld), viaNotifyOnNewObjectwhenWBP_MainMenu_C,WBP_PauseMenu_C, orWBP_HUD_Main_Cspawns, and onWBP_GrenadeCradle_C:OnGrenadeSwapAnimMiddlePointwhen grenades swap. - Use
NotifyOnNewObjectfor Blueprint classes.RegisterHookon a/Game/...Blueprint function fails at startup if that package has not loaded yet.NotifyOnNewObjectsucceeds upfront and lets you bindBP_OnActivatedor sibling widget hooks lazily once the package is in memory. - Snapshot originals before mutating. Recording each touched parameter's shipped linear RGBA on first sight lets you switch themes repeatedly (even after the original cyan is gone) and restore
defaultcleanly. - Declare settings in
mod.json, store values outside the mod directory. Using the Mod Settings API (ModSettings.luafor Lua ornative/include/mjolnir_mod_settings.hfor native C DLLs) gives players a native UI in the launcher while keeping signed mod folders clean and update-safe. - Keep pure logic separate and unit-tested. Because
palette.luaandModSettings.luause no UE4SS globals,tools/tests/test_hud_color.luaandtools/tests/test_mod_settings.luarun them directly under plain Lua 5.4 in CI.
What this mod intentionally leaves alone
- Accessibility colors already in Settings (
DT_HudColors*— neutral/friendly/enemy crosshair, motion tracker ally/enemy blips, directional damage, subtitles, nav markers) stay under the player's own Settings choices. - Gameplay warning signals (
Alert Red,Alert Yellow,Dead Red,FrameColor_Empty,ShieldDelayedColor,HealthDelayedColor,OvershieldColor, white subtitles) are filtered out byclassifyShippedColorso combat readability is preserved regardless of theme color.
Publishing or contributing your code mod
Content mods (tags, textures, maps, sounds) upload directly to mjolnircore.com/mods/new (making_your_first_mod.md). Because UE4SS Lua mods execute arbitrary code, they ship through reviewed pull requests to this repository — see contributing_code_mods.md for the checklist (mod.json, luacheck, tools/tests/, and declaring capabilities in the PR template).