MW Tools, Most Wanted SDK

MWEncyclopedia

An engine-level reference for the 2005 game, in 78 chapters.

MWEncyclopedia is a reference book for Need for Speed: Most Wanted on PC. It covers every file format, data structure, class and subsystem in the game, built on EA Black Box's EAGL engine, so that someone with a hex editor, a disassembler and patience can understand the game the way its authors did. With it you can swap a texture, rebuild geometry, retune the pursuit AI, replace the soundtrack, or trace a value from a menu screen down to the float it reads out of a vault record.

Everything in it comes from the retail PC data and the shipped executable. It's written format first: byte layouts, the algorithms that read and write them, the runtime classes that consume them, worked examples in portable C++ and Python, and the reasoning behind why each thing is built the way it is.

How it's organised

Every chapter is a short overview followed by eight to twelve pages, each taking one mechanism and answering four questions: what it is, how it works, why it's built that way, and what happens if you change it, done right or done wrong.

Every claim that isn't self-evident carries a label. Verified means confirmed against retail bytes or the executable's code, and reproducible. Reasoned means a well-supported inference about intent or mechanism. Open marks where knowledge stops, stated plainly rather than papered over.

The example code reads and writes raw bytes rather than depending on one program, so it works in any language and outlives any tool. And the world is Z-up and stays Z-up: no parser in the book converts axes, and conversion happens only at an explicit import or export step.

The fourteen parts

PartCovers
FoundationsThe chunk container model, Joaat and Bin hashing, JDLZ compression, byte-level toolcraft
Textures and geometryTexture packs and codecs, materials, solids, vertex formats, mesh import and export
Attribute vaultsThe VPAK container, the reflection schema, car tuning, pursuit and gameplay vaults
The worldStreaming sections, scenery and the cull tree, trigger regions, the CARP road network
Audio, video, animationSound banks and codecs, music routing, engine sound, VP6 video, NIS cutscenes
Front end and savesShell scenes, fonts, the minimap, string tables, save containers
Runtime classesThe object model, the class registry, vtable anatomy, memory, the file system, the frame spine, streaming
SimulationThe vehicle pipeline, the eight mechanics, rigid bodies, tyres, collision, surfaces, damage
AI and gameplayGoals and actions, racer AI, pursuit and heat, cops and roadblocks, traffic, rubber-banding, camera, input
ProgressionSessions and modes, the Blacklist, the race rulebook, the game in playing order
RenderingThe Direct3D 9 frame order, reflections and car paint, the post chain, particles, sky, weather
CustomisationUpgrades and tuning bars, visual parts, vinyls, a car-modding walkthrough from start to finish
Scripting and networkingEmbedded Lua 5.0.1, the message vocabulary, the online services
WorkflowSafe modding, advanced reverse engineering, hash recovery, reading live state from the running game

Reference material

The book's data files are also the source that MWSDK generates its address database from, so the book and the SDK never disagree about a number.