Tooling built to recover editable source for six 'Mech chassis that exist
in the parallel FS_Build_V4H build but not in this repo. Reverse-engineers
every compiled record type in the .mw4 package format back to the .data /
.instance / .subsystems / .damage / .contents / .torso / .engine /
.armature sources the content pipeline consumes.
Nothing here is wired into the game build. It is a standalone analysis
harness run from Linux.
Package format
--------------
"#VBD" container. Directory records are [len][name][FILETIME][origSize]
[storedSize][offset], payload base at dword 0x0C. A record is stored raw
when storedSize == origSize, otherwise LZW (9->12-bit LSB-first codes,
256=clear, 257=EOF, dict from 258), per Database.cpp:451.
GameModel records are flat /Zp4 structs following the C++ inheritance
chain Entity(0) -> Mover(28) -> MWObject(80) -> Vehicle(664) -> Mech(756),
1636 bytes total. CreateMessage records follow Replicator -> Entity ->
Mover -> MWMover -> MWObject -> Vehicle -> Mech from start=16 (the
undeclared Connection__Message header), ending at 341 and padded to 344.
tools/decompile/
----------------
datamap.py header-driven layout engine; CHAIN + ANCHORS
{Vehicle:664, Mech:756} assert the struct offsets
mw4msg.py CreateMessage reader/walker
data.py .data constants.py define/table symbol resolution
damage.py .damage contents.py .contents
smallmodel.py .torso + .engine instance.py .instance
armature.py / armature_parts.py .armature + armaturedata/armaturevideo
assembly.py joint hierarchy renderer
make_generic_doll.py builds generic MFD/Radar damage dolls
verify_*.py per-type round-trip verifiers
Verified round-trip across all 64 shared chassis:
.armature 2938/2976 pages .subsystems 7579/7585 keys
.data map 6071/6071 values .data trip 8291/8306 keys
.damage 6605/6605 keys .contents 7480/7480 keys
.torso+.engine 1280/1280 keys .instance 896/896 keys, 64/64 pages
armature_parts 1202/1202 .data, 1149/1202 .video
Layout-discovery lessons (documented in DECOMPILING.md)
-------------------------------------------------------
- Never let a field map be discovered by the values that verify it. A
value-matching pass reported 4288/4288 while mis-assigning 34 keys. The
map was rebuilt from header declaration order, anchored on uniquely
resolved fields.
- Read the factory, not the data. 12 .data fields and 5 Torso fields are
declared plain Stuff::Scalar but multiplied by Radians_Per_Degree in
Mech_Tool.cpp:889 / Torso_Tool.cpp.
- Strip typedefs before walking a header. A stray `typedef int AttributeID;`
masked a missing ClassID - two 4-byte errors cancelling out, caught only
by the ANCHORS assertion.
- A verifier that silently narrows its own input reports success. Braced
blocks must be hidden before splitting pages, replacing both CR and LF,
because a `Shadow={...}` block contains a line reading `[shadow]` and
splitlines() also splits on bare CR.
- NSWIZZLE is undefined, so the #else branch is live and orders members
differently. bool is 1 byte; char x[MaxStringLength] is 256.
- V4H carries stale Mech IDs (their Atlas is 5, ours 6), so 64 of 65 shared
chassis are off by one; --retarget-ids emits $(M_<Chassis>)/$(IDS_<Chassis>).
reports/ holds generated diffs. The two ~5 MB manifest-*.tsv intermediates
are gitignored; regenerate everything with run-comparison.sh.
Co-authored-by: Claude Opus 5 (Anthropic) <noreply@anthropic.com>
Co-authored-by: GitHub Copilot <copilot@github.com>
302 lines
12 KiB
Plaintext
302 lines
12 KiB
Plaintext
# entries: A=10419 B=10120 A_only=299 B_only=0 decoded-differ=1
|
|
+A mechs/champion/champion_cage.erf 11787B
|
|
+A mechs/champion/chp_hip.erf 6655B
|
|
+A mechs/champion/chp_hip_dam.erf 6655B
|
|
+A mechs/champion/chp_lbtoe.erf 1211B
|
|
+A mechs/champion/chp_lbtoe_dam.erf 1211B
|
|
+A mechs/champion/chp_ldleg.erf 8372B
|
|
+A mechs/champion/chp_ldleg_dam.erf 8372B
|
|
+A mechs/champion/chp_lfoot.erf 2017B
|
|
+A mechs/champion/chp_lfoot_dam.erf 2017B
|
|
+A mechs/champion/chp_lftoe.erf 2309B
|
|
+A mechs/champion/chp_lftoe_dam.erf 2309B
|
|
+A mechs/champion/chp_lgun.erf 8328B
|
|
+A mechs/champion/chp_luarm.erf 853B
|
|
+A mechs/champion/chp_luarm_dam.erf 853B
|
|
+A mechs/champion/chp_luleg.erf 10067B
|
|
+A mechs/champion/chp_luleg_dam.erf 10067B
|
|
+A mechs/champion/chp_rbtoe.erf 1211B
|
|
+A mechs/champion/chp_rbtoe_dam.erf 1211B
|
|
+A mechs/champion/chp_rdleg.erf 8372B
|
|
+A mechs/champion/chp_rdleg_dam.erf 8372B
|
|
+A mechs/champion/chp_rfoot.erf 2017B
|
|
+A mechs/champion/chp_rfoot_dam.erf 2017B
|
|
+A mechs/champion/chp_rftoe.erf 2309B
|
|
+A mechs/champion/chp_rftoe_dam.erf 2309B
|
|
+A mechs/champion/chp_rgun.erf 8328B
|
|
+A mechs/champion/chp_ruarm.erf 853B
|
|
+A mechs/champion/chp_ruarm_dam.erf 853B
|
|
+A mechs/champion/chp_ruleg.erf 10067B
|
|
+A mechs/champion/chp_ruleg_dam.erf 10067B
|
|
+A mechs/champion/chp_specialone.erf 3759B
|
|
+A mechs/champion/chp_specialone_dam.erf 1290B
|
|
+A mechs/champion/chp_specialtwo.erf 3759B
|
|
+A mechs/champion/chp_specialtwo_dam.erf 1290B
|
|
+A mechs/champion/chp_torso.erf 63022B
|
|
+A mechs/champion/chp_torso_dam.erf 63022B
|
|
+A mechs/champion/runninglights.erf 1552B
|
|
+A mechs/champion_destroyed/champion_destroyed.erf 14157B
|
|
+A mechs/dasher/das_hip.erf 51546B
|
|
+A mechs/dasher/das_hip_dam.erf 51546B
|
|
+A mechs/dasher/das_ldleg.erf 20552B
|
|
+A mechs/dasher/das_ldleg_dam.erf 20552B
|
|
+A mechs/dasher/das_lfoot.erf 11228B
|
|
+A mechs/dasher/das_lfoot_dam.erf 11228B
|
|
+A mechs/dasher/das_lgun.erf 27396B
|
|
+A mechs/dasher/das_lgun_dam.erf 783B
|
|
+A mechs/dasher/das_ltoe.erf 5172B
|
|
+A mechs/dasher/das_ltoe_dam.erf 5172B
|
|
+A mechs/dasher/das_luarm.erf 15258B
|
|
+A mechs/dasher/das_luarm_dam.erf 15258B
|
|
+A mechs/dasher/das_luleg.erf 10648B
|
|
+A mechs/dasher/das_luleg_dam.erf 10648B
|
|
+A mechs/dasher/das_rdleg.erf 20260B
|
|
+A mechs/dasher/das_rdleg_dam.erf 20260B
|
|
+A mechs/dasher/das_rfoot.erf 11228B
|
|
+A mechs/dasher/das_rfoot_dam.erf 11228B
|
|
+A mechs/dasher/das_rgun.erf 27396B
|
|
+A mechs/dasher/das_rtoe.erf 5172B
|
|
+A mechs/dasher/das_rtoe_dam.erf 5172B
|
|
+A mechs/dasher/das_ruarm.erf 15226B
|
|
+A mechs/dasher/das_ruarm_dam.erf 943B
|
|
+A mechs/dasher/das_ruleg.erf 10692B
|
|
+A mechs/dasher/das_ruleg_dam.erf 10692B
|
|
+A mechs/dasher/das_torso.erf 81366B
|
|
+A mechs/dasher/das_torso_dam.erf 81366B
|
|
+A mechs/dasher/dasher_cage.erf 12523B
|
|
+A mechs/dasher/runninglights__.erf 10824B
|
|
+A mechs/dasher_destroyed/dasher_destroyed.erf 14624B
|
|
+A mechs/griffin/grf_hip.erf 2831B
|
|
+A mechs/griffin/grf_hip_dam.erf 2831B
|
|
+A mechs/griffin/grf_lbtoe.erf 4029B
|
|
+A mechs/griffin/grf_lbtoe_dam.erf 4029B
|
|
+A mechs/griffin/grf_ldleg.erf 5784B
|
|
+A mechs/griffin/grf_ldleg_dam.erf 5784B
|
|
+A mechs/griffin/grf_lfoot.erf 791B
|
|
+A mechs/griffin/grf_lfoot_dam.erf 791B
|
|
+A mechs/griffin/grf_lftoe.erf 1479B
|
|
+A mechs/griffin/grf_lftoe_dam.erf 1479B
|
|
+A mechs/griffin/grf_lgun.erf 16111B
|
|
+A mechs/griffin/grf_lgun_dam.erf 16111B
|
|
+A mechs/griffin/grf_luarm.erf 4819B
|
|
+A mechs/griffin/grf_luarm_dam.erf 4819B
|
|
+A mechs/griffin/grf_luleg.erf 4933B
|
|
+A mechs/griffin/grf_luleg_dam.erf 4933B
|
|
+A mechs/griffin/grf_rbtoe.erf 4029B
|
|
+A mechs/griffin/grf_rbtoe_dam.erf 4029B
|
|
+A mechs/griffin/grf_rdleg.erf 5784B
|
|
+A mechs/griffin/grf_rdleg_dam.erf 5784B
|
|
+A mechs/griffin/grf_rfoot.erf 791B
|
|
+A mechs/griffin/grf_rfoot_dam.erf 791B
|
|
+A mechs/griffin/grf_rftoe.erf 1479B
|
|
+A mechs/griffin/grf_rftoe_dam.erf 1479B
|
|
+A mechs/griffin/grf_rgun.erf 14785B
|
|
+A mechs/griffin/grf_rgun_dam.erf 14785B
|
|
+A mechs/griffin/grf_ruarm.erf 4819B
|
|
+A mechs/griffin/grf_ruarm_dam.erf 4819B
|
|
+A mechs/griffin/grf_ruleg.erf 4933B
|
|
+A mechs/griffin/grf_ruleg_dam.erf 4933B
|
|
+A mechs/griffin/grf_specialone.erf 2511B
|
|
+A mechs/griffin/grf_specialone_dam.erf 2559B
|
|
+A mechs/griffin/grf_specialtwo.erf 3659B
|
|
+A mechs/griffin/grf_specialtwo_dam.erf 3707B
|
|
+A mechs/griffin/grf_torso.erf 24032B
|
|
+A mechs/griffin/grf_torso_dam.erf 24032B
|
|
+A mechs/griffin/griffin_cage.erf 13884B
|
|
+A mechs/griffin/runninglights.erf 541B
|
|
+A mechs/griffin_destroyed/griffin_destroyed.erf 16697B
|
|
+A mechs/jenner2c/jec_hip.erf 3936B
|
|
+A mechs/jenner2c/jec_hip_dam.erf 3936B
|
|
+A mechs/jenner2c/jec_lbtoe.erf 3191B
|
|
+A mechs/jenner2c/jec_lbtoe_dam.erf 3191B
|
|
+A mechs/jenner2c/jec_ldleg.erf 8438B
|
|
+A mechs/jenner2c/jec_ldleg_dam.erf 8438B
|
|
+A mechs/jenner2c/jec_lfoot.erf 2667B
|
|
+A mechs/jenner2c/jec_lfoot_dam.erf 2667B
|
|
+A mechs/jenner2c/jec_lftoe.erf 3599B
|
|
+A mechs/jenner2c/jec_lftoe_dam.erf 3599B
|
|
+A mechs/jenner2c/jec_lgun.erf 5943B
|
|
+A mechs/jenner2c/jec_lgun_dam.erf 5847B
|
|
+A mechs/jenner2c/jec_luleg.erf 13003B
|
|
+A mechs/jenner2c/jec_luleg_dam.erf 13003B
|
|
+A mechs/jenner2c/jec_rbtoe.erf 3191B
|
|
+A mechs/jenner2c/jec_rbtoe_dam.erf 3191B
|
|
+A mechs/jenner2c/jec_rdleg.erf 8438B
|
|
+A mechs/jenner2c/jec_rdleg_dam.erf 8438B
|
|
+A mechs/jenner2c/jec_rfoot.erf 2667B
|
|
+A mechs/jenner2c/jec_rfoot_dam.erf 2667B
|
|
+A mechs/jenner2c/jec_rftoe.erf 3599B
|
|
+A mechs/jenner2c/jec_rftoe_dam.erf 3599B
|
|
+A mechs/jenner2c/jec_rgun.erf 5943B
|
|
+A mechs/jenner2c/jec_rgun_dam.erf 6287B
|
|
+A mechs/jenner2c/jec_ruleg.erf 13003B
|
|
+A mechs/jenner2c/jec_ruleg_dam.erf 13003B
|
|
+A mechs/jenner2c/jec_torso.erf 39244B
|
|
+A mechs/jenner2c/jec_torso_dam.erf 39244B
|
|
+A mechs/jenner2c/jenner_2c_cage.erf 13103B
|
|
+A mechs/jenner2c/runninglights.erf 3062B
|
|
+A mechs/jenner2c_destroyed/jenner2c_destroyed.erf 11866B
|
|
+A mechs/marauder/mar_hip.erf 22691B
|
|
+A mechs/marauder/mar_hip_dam.erf 6571B
|
|
+A mechs/marauder/mar_lbtoe.erf 7962B
|
|
+A mechs/marauder/mar_ldleg.erf 39714B
|
|
+A mechs/marauder/mar_ldleg_dam.erf 11612B
|
|
+A mechs/marauder/mar_lfoot.erf 9492B
|
|
+A mechs/marauder/mar_lfoot_dam.erf 2755B
|
|
+A mechs/marauder/mar_lgun.erf 18985B
|
|
+A mechs/marauder/mar_litoe.erf 4394B
|
|
+A mechs/marauder/mar_litoe_dam.erf 1345B
|
|
+A mechs/marauder/mar_lotoe.erf 4394B
|
|
+A mechs/marauder/mar_luarm.erf 11161B
|
|
+A mechs/marauder/mar_luarm_dam.erf 9173B
|
|
+A mechs/marauder/mar_luleg.erf 8672B
|
|
+A mechs/marauder/mar_luleg_dam.erf 2499B
|
|
+A mechs/marauder/mar_rbtoe.erf 7962B
|
|
+A mechs/marauder/mar_rdleg.erf 38879B
|
|
+A mechs/marauder/mar_rdleg_dam.erf 11676B
|
|
+A mechs/marauder/mar_rfoot.erf 9594B
|
|
+A mechs/marauder/mar_rfoot_dam.erf 2755B
|
|
+A mechs/marauder/mar_rgun.erf 18341B
|
|
+A mechs/marauder/mar_ritoe.erf 4394B
|
|
+A mechs/marauder/mar_ritoe_dam.erf 1345B
|
|
+A mechs/marauder/mar_rotoe.erf 4394B
|
|
+A mechs/marauder/mar_rotoe_dam.erf 1345B
|
|
+A mechs/marauder/mar_ruarm.erf 11008B
|
|
+A mechs/marauder/mar_ruarm_dam.erf 5875B
|
|
+A mechs/marauder/mar_ruleg.erf 8672B
|
|
+A mechs/marauder/mar_ruleg_dam.erf 2499B
|
|
+A mechs/marauder/mar_specialone.erf 21560B
|
|
+A mechs/marauder/mar_specialone_dam.erf 7325B
|
|
+A mechs/marauder/mar_specialtwo.erf 15696B
|
|
+A mechs/marauder/mar_specialtwo_dam.erf 4731B
|
|
+A mechs/marauder/mar_torso.erf 54047B
|
|
+A mechs/marauder/mar_torso_dam.erf 13479B
|
|
+A mechs/marauder/marauder_cage.erf 22678B
|
|
+A mechs/marauder/runninglights.erf 541B
|
|
+A mechs/marauder_destroyed/marauder_destroyed.erf 18503B
|
|
+A mechs/thunderbolt/runninglights.erf 3062B
|
|
+A mechs/thunderbolt/thu_hip.erf 5811B
|
|
+A mechs/thunderbolt/thu_hip_dam.erf 5811B
|
|
+A mechs/thunderbolt/thu_lbtoe.erf 2723B
|
|
+A mechs/thunderbolt/thu_ldleg.erf 9171B
|
|
+A mechs/thunderbolt/thu_ldleg_dam.erf 9171B
|
|
+A mechs/thunderbolt/thu_lfoot.erf 1441B
|
|
+A mechs/thunderbolt/thu_lfoot_dam.erf 1441B
|
|
+A mechs/thunderbolt/thu_lftoe.erf 2555B
|
|
+A mechs/thunderbolt/thu_lftoe_dam.erf 2555B
|
|
+A mechs/thunderbolt/thu_lgun.erf 10687B
|
|
+A mechs/thunderbolt/thu_luarm.erf 2569B
|
|
+A mechs/thunderbolt/thu_luarm_dam.erf 2569B
|
|
+A mechs/thunderbolt/thu_luleg.erf 6794B
|
|
+A mechs/thunderbolt/thu_luleg_dam.erf 6794B
|
|
+A mechs/thunderbolt/thu_rbtoe.erf 2723B
|
|
+A mechs/thunderbolt/thu_rbtoe_dam.erf 2723B
|
|
+A mechs/thunderbolt/thu_rdleg.erf 9171B
|
|
+A mechs/thunderbolt/thu_rdleg_dam.erf 9171B
|
|
+A mechs/thunderbolt/thu_rfoot.erf 1441B
|
|
+A mechs/thunderbolt/thu_rfoot_dam.erf 1441B
|
|
+A mechs/thunderbolt/thu_rftoe.erf 2555B
|
|
+A mechs/thunderbolt/thu_rftoe_dam.erf 2555B
|
|
+A mechs/thunderbolt/thu_rgun.erf 12097B
|
|
+A mechs/thunderbolt/thu_rgun_dam.erf 12097B
|
|
+A mechs/thunderbolt/thu_ruarm.erf 2569B
|
|
+A mechs/thunderbolt/thu_ruarm_dam.erf 2569B
|
|
+A mechs/thunderbolt/thu_ruleg.erf 6794B
|
|
+A mechs/thunderbolt/thu_ruleg_dam.erf 6794B
|
|
+A mechs/thunderbolt/thu_specialone.erf 4371B
|
|
+A mechs/thunderbolt/thu_torso.erf 12695B
|
|
+A mechs/thunderbolt/thu_torso_dam.erf 12695B
|
|
+A mechs/thunderbolt/thunderbolt_cage.erf 20919B
|
|
+A mechs/thunderbolt_destroyed/thunderbolt_destroyed.erf 12593B
|
|
+A textures/@achp0.tga 1048594B
|
|
+A textures/@achp0.tga{hint} 4B
|
|
+A textures/@achp1.tga 262162B
|
|
+A textures/@achp1.tga{hint} 4B
|
|
+A textures/@achp2.tga 65554B
|
|
+A textures/@achp2.tga{hint} 4B
|
|
+A textures/@achp3.tga 16402B
|
|
+A textures/@achp3.tga{hint} 4B
|
|
+A textures/@achp4.tga 4114B
|
|
+A textures/@achp4.tga{hint} 4B
|
|
+A textures/@achp5.tga 1042B
|
|
+A textures/@achp5.tga{hint} 4B
|
|
+A textures/@agrf0.tga 1048594B
|
|
+A textures/@agrf0.tga{hint} 4B
|
|
+A textures/@agrf1.tga 262162B
|
|
+A textures/@agrf1.tga{hint} 4B
|
|
+A textures/@agrf2.tga 65554B
|
|
+A textures/@agrf2.tga{hint} 4B
|
|
+A textures/@agrf3.tga 16402B
|
|
+A textures/@agrf3.tga{hint} 4B
|
|
+A textures/@agrf4.tga 4114B
|
|
+A textures/@agrf4.tga{hint} 4B
|
|
+A textures/@agrf5.tga 1042B
|
|
+A textures/@agrf5.tga{hint} 4B
|
|
+A textures/@ajec0.tga 1048594B
|
|
+A textures/@ajec0.tga{hint} 4B
|
|
+A textures/@ajec1.tga 262162B
|
|
+A textures/@ajec1.tga{hint} 4B
|
|
+A textures/@ajec2.tga 65554B
|
|
+A textures/@ajec2.tga{hint} 4B
|
|
+A textures/@ajec3.tga 16402B
|
|
+A textures/@ajec3.tga{hint} 4B
|
|
+A textures/@ajec4.tga 4114B
|
|
+A textures/@ajec4.tga{hint} 4B
|
|
+A textures/@ajec5.tga 1042B
|
|
+A textures/@ajec5.tga{hint} 4B
|
|
+A textures/@amar0.tga 926350B
|
|
+A textures/@amar0.tga{hint} 4B
|
|
+A textures/@amar1.tga 247836B
|
|
+A textures/@amar1.tga{hint} 4B
|
|
+A textures/@amar2.tga 66075B
|
|
+A textures/@amar2.tga{hint} 4B
|
|
+A textures/@amar3.tga 16923B
|
|
+A textures/@amar3.tga{hint} 4B
|
|
+A textures/@amar4.tga 4635B
|
|
+A textures/@amar4.tga{hint} 4B
|
|
+A textures/@amar5.tga 1563B
|
|
+A textures/@amar5.tga{hint} 4B
|
|
+A textures/@athu0.tga 1048594B
|
|
+A textures/@athu0.tga{hint} 4B
|
|
+A textures/@athu1.tga 262162B
|
|
+A textures/@athu1.tga{hint} 4B
|
|
+A textures/@athu2.tga 65554B
|
|
+A textures/@athu2.tga{hint} 4B
|
|
+A textures/@athu3.tga 16402B
|
|
+A textures/@athu3.tga{hint} 4B
|
|
+A textures/@athu4.tga 4114B
|
|
+A textures/@athu4.tga{hint} 4B
|
|
+A textures/@athu5.tga 1042B
|
|
+A textures/@athu5.tga{hint} 4B
|
|
+A textures/footsteps/champion_default.tga 16428B
|
|
+A textures/footsteps/champion_default.tga{hint} 4B
|
|
+A textures/footsteps/champion_dirt.tga 16923B
|
|
+A textures/footsteps/champion_dirt.tga{hint} 4B
|
|
+A textures/footsteps/champion_snow.tga 16923B
|
|
+A textures/footsteps/champion_snow.tga{hint} 4B
|
|
+A textures/footsteps/griffin_default.tga 16428B
|
|
+A textures/footsteps/griffin_default.tga{hint} 4B
|
|
+A textures/footsteps/griffin_dirt.tga 16923B
|
|
+A textures/footsteps/griffin_dirt.tga{hint} 4B
|
|
+A textures/footsteps/griffin_snow.tga 16923B
|
|
+A textures/footsteps/griffin_snow.tga{hint} 4B
|
|
+A textures/footsteps/jenner2c_default.tga 16428B
|
|
+A textures/footsteps/jenner2c_default.tga{hint} 4B
|
|
+A textures/footsteps/jenner2c_dirt.tga 16428B
|
|
+A textures/footsteps/jenner2c_dirt.tga{hint} 4B
|
|
+A textures/footsteps/jenner2c_snow.tga 16428B
|
|
+A textures/footsteps/jenner2c_snow.tga{hint} 4B
|
|
+A textures/footsteps/marauder_default.tga 16923B
|
|
+A textures/footsteps/marauder_default.tga{hint} 4B
|
|
+A textures/footsteps/marauder_dirt.tga 16923B
|
|
+A textures/footsteps/marauder_dirt.tga{hint} 4B
|
|
+A textures/footsteps/marauder_snow.tga 16923B
|
|
+A textures/footsteps/marauder_snow.tga{hint} 4B
|
|
+A textures/footsteps/thunderbolt_default.tga 16428B
|
|
+A textures/footsteps/thunderbolt_default.tga{hint} 4B
|
|
+A textures/footsteps/thunderbolt_dirt.tga 16428B
|
|
+A textures/footsteps/thunderbolt_dirt.tga{hint} 4B
|
|
+A textures/footsteps/thunderbolt_snow.tga 16428B
|
|
+A textures/footsteps/thunderbolt_snow.tga{hint} 4B
|
|
~ textures/stockdecals/decal_49.tga A=16428B B=16428B
|