Several open items in this thread are solved in an open-source toolset:
github.com/Zhincore/wwm-messiah-tools (Python wwm-* tools + Rust texture/mpk crates; format notes
in README.md and docs/). Short version of each:
Index (.mpkinfo v3) — u32 3, u32 count, then 20-byte entries:
u32 id_lo, u32 id_hi, u32 offset, u32 size, u32 packed (pack_id = packed >> 1, bit 0 = placeholder),
16-byte trailer. Sources: Resources.mpkinfo → Resources{n}.mpk, LocalData/Patch/LT{n}.mpkinfo →
LT{n}.mpk, MpkCached_*/TinyFiles_*.mpkinfo → Patch{n}.mpk, and Patch.mpkdb (SQLite; v0 id,
v1 size, v2 pack, v3 content hash, v6 offset; info0 base rows, info1 appended updates).
File ids / names (re iKasu, wq223) — the 64-bit id is two halves:
id = (MurmurHash3_x86_32(path, seed 0) << 32) | lo32, where lo32 is a tail signature of the path
without extension: low byte = length mod 256, upper three bytes = the last three characters. GUID
paths (xx/<36-char guid>) take a fast path: lo32 = first four GUID characters (big-endian) — that is
the "32-bit UUID ↔ path" link. Our hi32 is stock Murmur3 (0xE6546B64) and matches the index; we have
not seen the 0xFADDAF14 variant — possibly a different build or a different table.
Real names for GUID files — the engine's resource repository (a names file + data file: index
pages and LZ4 blocks of 64 records: GUID, name, folder, type, dependency GUIDs) maps names → GUIDs.
1,376,051 of 1,376,052 records resolve to an indexed file on a Steam global build (wwm-repository).
No collision-guessing needed for those.
"Size is logical / extraction inflates to tens of GB" (re Myro) — packs that start with EZST
are block packs: one EZST block per entry, size = physical block size. A lite/partial install keeps
only some blocks, compacted, so index offsets are invalid there: walk the blocks in order and match
them to entries by size. Reading at index offsets there yields wrong/duplicated data, likely the
inflation you saw.
EZST — no secondary encryption stage: "EZST" u32 raw_size payload; only the first
min(floor16(len), 256) payload bytes are AES-256-ECB (fixed key, from ArArgon/yysls-re), the rest is
plain; the result is one zstd frame. ZSTD magic = same, unencrypted.
Texture container 02 02 02 01 — header (pixel format, mip count, w/h, total size), then mip
records smallest first: u32 blob_size, u16 w, u16 h, u16 depth, u16 pitch, u32 raw_size + an EZST
block. BC7 dominant; format 55 with raw_size 0 = streamed/HD, no local pixels. PNG/DDS converter: messiah-texture crate / wwm-textures.
Lua "encrypted/obfuscated" (re Myro, TekMonts) — it is LuaText: u32 decoded_size + raw LZ4 block
→ a Lua 5.4 chunk with 17 inserted opcodes. Remap to stock numbering and it decompiles with a
patched unluac (MMBIN* C operand = metamethod index + 1, generic for reserves 5 registers,
NEWTABLE without EXTRAARG). wwm-lua does unpack + remap + decompile.
"messiah" files detected as png/jpg (re Myro, monowire) — .MESSIAH is a generic serialized-object
wrapper (magic + 4-byte sub-type), not only models: int 0 = texture import stub (text
<name>.png\nsize:…\nfilter:… — that is the fake "image"), int 1 = skeleton, int 3 = material,
int 8/HRMD/SEMC = mesh geometry. Mesh layout and an OBJ exporter: see the mesh thread
https://reshax.com/topic/203-messiah-meshtoobj-meshmodel/page/2/#findComment-108068.
Skinned meshes (re dsags) — skin data is its own planar vertex stream W4B_I4B (u8×4 weights,
u8×4 bone indices); the skeleton (int 1) holds bone chains with 3×4 transforms. Binding indices to
bones is not solved on our side yet either.
Done mostly by an LLM agent, with me steering.
By
Zhincore ·