Clean, self-contained extraction of the BattleTech-specific work from the
reverse-engineering workspace -- engine + game + content + build, with nothing
from Red Planet or the raw archive dumps. Builds green (Win32) and runs the
single-player drive->animate->target->fire->damage->destroy loop out of the box.
Layout:
engine/ MUNGA + MUNGA_L4 shared 2007 engine, carrying our BT render/loader
work (bgfload/L4D3D/L4VIDEO: BSL bit-slice decode, LOD/ground/shadow
models) + image codec; the minimal rp/ headers the audio HAL needs
game/ reconstructed BT logic + surviving-original BT source + fwd shims
+ WinMain launcher
content/ full runtime tree (BTL4.RES, VIDEO/, GAUGE/, AUDIO/, eggs, BTDPL.INI)
docs/ format specs + reconstruction ledgers
reference/ raw Ghidra pseudocode (recon source-of-truth) + decomp exporter
tools/ MP console emulator + map/resource scanners
One top-level CMake builds munga_engine lib + bt410_l4 game lib + btl4.exe.
All paths relativized (186 fwd shims + ~437 CMake abs paths -> repo-relative);
DXSDK is the one external, overridable via -DDXSDK. Verified: builds to a
byte-identical 2.27MB exe and runs combat (TARGET DESTROYED, 0 crashes) against
the bundled content.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
570 lines
8.4 KiB
Plaintext
570 lines
8.4 KiB
Plaintext
[LAB_ONLY] // this file has not been approved for release
|
|
|
|
[DamageZones] // call MakeEntryList with 'dz_'
|
|
dz_door=0
|
|
dz_missle=1
|
|
dz_utorso=2
|
|
|
|
[ROOT]
|
|
JointCount=21
|
|
DZoneCount=3
|
|
Former Segment=segroot
|
|
tranx=0
|
|
trany=0
|
|
tranz=-0.2
|
|
pitch=0
|
|
yaw=-0
|
|
roll=0
|
|
joint=jointlocal
|
|
|
|
joint=jointshadow
|
|
|
|
[jointlocal]
|
|
parent=ROOT
|
|
Type=balltranslate
|
|
Former Segment=segem3
|
|
tranx=0
|
|
trany=6.20884
|
|
tranz=0
|
|
pitch=0
|
|
yaw=-0
|
|
roll=0
|
|
joint=jointhip
|
|
joint=jointlthigh
|
|
joint=jointrthigh
|
|
|
|
[jointhip]
|
|
parent=jointlocal
|
|
Type=hingex
|
|
Former Segment=seghip
|
|
tranx=1.52588e-05
|
|
trany=0.21202
|
|
tranz=0
|
|
pitch=0
|
|
yaw=-0
|
|
roll=0
|
|
joint=jointtorso
|
|
site=siteedz_hip
|
|
|
|
[jointtorso]
|
|
parent=jointhip
|
|
Type=hingey
|
|
Object=thx_cop.bgf
|
|
dzone=dz_utorso
|
|
Former Segment=segtor
|
|
tranx=-1.44946e-05
|
|
trany=0.278824
|
|
tranz=0
|
|
pitch=-5.82076e-11
|
|
yaw=-3.02591e-15
|
|
roll=0
|
|
joint=jointshakey
|
|
|
|
joint=jointeye
|
|
[jointshakey]
|
|
parent=jointtorso
|
|
Type=ball
|
|
Object=thx_tor.bgf
|
|
dzone=dz_utorso
|
|
Former Segment=segshake
|
|
tranx=-4.54291e-07
|
|
trany=0.102316
|
|
tranz=0
|
|
pitch=5.76107e-11
|
|
yaw=2.84961e-15
|
|
roll=2.32936e-26
|
|
joint=jointrshoulder
|
|
joint=jointlshoulder
|
|
site=sitelight
|
|
site=siteltorsoport
|
|
site=sitertorsoport
|
|
joint=jointmissle
|
|
site=siteedz_ltorso
|
|
site=siteedz_rtorso
|
|
site=siteedz_dtorso
|
|
site=siteedz_utorso
|
|
site=siteedz_searchlight
|
|
site=siteedz_rearrtorso
|
|
site=siteedz_rearltorso
|
|
site=siteedz_reardtorso
|
|
site=siteedz_rearutorso
|
|
|
|
[jointrshoulder]
|
|
parent=jointshakey
|
|
Type=hingex
|
|
Former Segment=segrarm
|
|
tranx=1.8
|
|
trany=2.3
|
|
tranz=0.519
|
|
pitch=2.62699e-24
|
|
yaw=1.73978e-17
|
|
roll=3.01991e-07
|
|
joint=jointrgun
|
|
site=siteedz_rarm
|
|
|
|
[jointrgun]
|
|
parent=jointrshoulder
|
|
Type=hingex
|
|
Former Segment=segrgun
|
|
tranx=1.4
|
|
trany=-1.038
|
|
tranz=0
|
|
pitch=3.38514e-10
|
|
yaw=4.5657e-10
|
|
roll=-3.96716e-09
|
|
site=sitergunport
|
|
site=siteedz_rgun
|
|
|
|
[sitergunport]
|
|
parent=jointrgun
|
|
tranx=0.233
|
|
trany=-0.38
|
|
tranz=-2.889
|
|
pitch=-3.37917e-10
|
|
yaw=-4.56569e-10
|
|
roll=7.71412e-20
|
|
|
|
[siteedz_rgun]
|
|
parent=jointrgun
|
|
tranx=0.233
|
|
trany=-0.5521
|
|
tranz=-1.12673
|
|
pitch=2.94645e-08
|
|
yaw=-4.516e-08
|
|
roll=-6.50951e-16
|
|
|
|
[siteedz_rarm]
|
|
parent=jointrshoulder
|
|
tranx=0.72898
|
|
trany=-0.34702
|
|
tranz=0
|
|
pitch=3.38514e-10
|
|
yaw=4.5657e-10
|
|
roll=-3.96716e-09
|
|
|
|
[jointlshoulder]
|
|
parent=jointshakey
|
|
Type=hingex
|
|
Former Segment=seglarm
|
|
tranx=-1.8
|
|
trany=2.3
|
|
tranz=0.519
|
|
pitch=0
|
|
yaw=-5.08938e-18
|
|
roll=-3.04723e-30
|
|
joint=jointlgun
|
|
site=siteedz_larm
|
|
|
|
[jointlgun]
|
|
parent=jointlshoulder
|
|
Type=hingex
|
|
Former Segment=seglgun
|
|
tranx=-1.104
|
|
trany=-1.401
|
|
tranz=0
|
|
pitch=8.73115e-10
|
|
yaw=-2.81024e-16
|
|
roll=3.1457e-25
|
|
site=sitelgunport
|
|
site=siteedz_lgun
|
|
|
|
[sitelgunport]
|
|
parent=jointlgun
|
|
tranx=-0.433
|
|
trany=-0.213
|
|
tranz=-2.81701
|
|
pitch=-8.72518e-10
|
|
yaw=-1.49012e-08
|
|
roll=2.98024e-08
|
|
|
|
[siteedz_lgun]
|
|
parent=jointlgun
|
|
tranx=-0.43301
|
|
trany=-0.427978
|
|
tranz=-1.21973
|
|
pitch=-8.72518e-10
|
|
yaw=-1.49012e-08
|
|
roll=2.98024e-08
|
|
|
|
[siteedz_larm]
|
|
parent=jointlshoulder
|
|
tranx=-0.73556
|
|
trany=-0.54748
|
|
tranz=0.027268
|
|
pitch=8.7311e-10
|
|
yaw=-9.19403e-16
|
|
roll=3.14188e-25
|
|
|
|
[sitelight]
|
|
parent=jointshakey
|
|
tranx=-0.001
|
|
trany=2.303
|
|
tranz=-1.32
|
|
pitch=0
|
|
yaw=-5.08938e-18
|
|
roll=-3.04723e-30
|
|
|
|
[siteltorsoport]
|
|
parent=jointshakey
|
|
tranx=-1.395
|
|
trany=1.199
|
|
tranz=-0.515
|
|
pitch=0
|
|
yaw=-5.08938e-18
|
|
roll=-3.04723e-30
|
|
|
|
[sitertorsoport]
|
|
parent=jointshakey
|
|
tranx=1.418
|
|
trany=1.199
|
|
tranz=-0.515
|
|
pitch=0
|
|
yaw=-5.08938e-18
|
|
roll=-3.04723e-30
|
|
|
|
[jointmissle]
|
|
parent=jointshakey
|
|
Type=static
|
|
Object=thx_msl.bgf
|
|
dzone=dz_missle
|
|
dzone=dz_utorso
|
|
Former Segment=segmsl
|
|
tranx=-0.8
|
|
trany=2.9
|
|
tranz=0.2
|
|
pitch=8.40779e-45
|
|
yaw=1.76403e-16
|
|
roll=1.05275e-28
|
|
joint=jointmissledoor
|
|
site=sitemissleport
|
|
site=siteedz_missle
|
|
|
|
[jointmissledoor]
|
|
parent=jointmissle
|
|
Type=hingex
|
|
dzone=dz_door
|
|
dzone=dz_utorso
|
|
Former Segment=segdoor
|
|
tranx=0
|
|
trany=1.3455
|
|
tranz=-1.25958
|
|
pitch=1.19371e-12
|
|
yaw=2.72065e-23
|
|
roll=3.01991e-07
|
|
site=siteedz_door
|
|
|
|
[siteedz_door]
|
|
parent=jointmissledoor
|
|
tranx=8.34465e-07
|
|
trany=-0.65528
|
|
tranz=-0.14564
|
|
pitch=-1.71363e-06
|
|
yaw=-5.18696e-13
|
|
roll=4.44428e-19
|
|
|
|
[sitemissleport]
|
|
parent=jointmissle
|
|
tranx=0
|
|
trany=0.249
|
|
tranz=-1.359
|
|
pitch=1.19371e-12
|
|
yaw=2.76589e-24
|
|
roll=3.01991e-07
|
|
|
|
[siteedz_missle]
|
|
parent=jointmissle
|
|
tranx=0
|
|
trany=0.6045
|
|
tranz=-0.347544
|
|
pitch=1.19371e-12
|
|
yaw=2.72065e-23
|
|
roll=3.01991e-07
|
|
|
|
[siteedz_ltorso]
|
|
parent=jointshakey
|
|
tranx=-1.39029
|
|
trany=1.595
|
|
tranz=0.197
|
|
pitch=0
|
|
yaw=-5.08938e-18
|
|
roll=-3.04723e-30
|
|
|
|
[siteedz_rtorso]
|
|
parent=jointshakey
|
|
tranx=1.4159
|
|
trany=1.59479
|
|
tranz=0.203
|
|
pitch=0
|
|
yaw=-5.08938e-18
|
|
roll=-3.04723e-30
|
|
|
|
[siteedz_dtorso]
|
|
parent=jointshakey
|
|
tranx=-3.09877e-07
|
|
trany=0.86361
|
|
tranz=-0.317355
|
|
pitch=0
|
|
yaw=-5.08938e-18
|
|
roll=-3.04723e-30
|
|
|
|
[siteedz_utorso]
|
|
parent=jointshakey
|
|
tranx=-3.09877e-07
|
|
trany=2.35727
|
|
tranz=-0.118
|
|
pitch=0
|
|
yaw=-5.08938e-18
|
|
roll=-3.04723e-30
|
|
|
|
[siteedz_searchlight]
|
|
parent=jointshakey
|
|
tranx=-0.001
|
|
trany=2.14955
|
|
tranz=-0.979
|
|
pitch=0
|
|
yaw=-5.08938e-18
|
|
roll=-3.04723e-30
|
|
|
|
[siteedz_rearrtorso]
|
|
parent=jointshakey
|
|
tranx=1.4159
|
|
trany=1.74761
|
|
tranz=1.11538
|
|
pitch=0
|
|
yaw=-5.08938e-18
|
|
roll=-3.04723e-30
|
|
|
|
[siteedz_rearltorso]
|
|
parent=jointshakey
|
|
tranx=-1.39029
|
|
trany=1.74761
|
|
tranz=1.115
|
|
pitch=0
|
|
yaw=-5.08938e-18
|
|
roll=-3.04723e-30
|
|
|
|
[siteedz_reardtorso]
|
|
parent=jointshakey
|
|
tranx=-3.09877e-07
|
|
trany=0.362578
|
|
tranz=0.95597
|
|
pitch=0
|
|
yaw=-5.08938e-18
|
|
roll=-3.04723e-30
|
|
|
|
[siteedz_rearutorso]
|
|
parent=jointshakey
|
|
tranx=-3.09877e-07
|
|
trany=1.94623
|
|
tranz=1.31159
|
|
pitch=0
|
|
yaw=-5.08938e-18
|
|
roll=-3.04723e-30
|
|
|
|
[siteedz_hip]
|
|
parent=jointhip
|
|
tranx=-1.44946e-05
|
|
trany=-0.709867
|
|
tranz=0
|
|
pitch=-5.82076e-11
|
|
yaw=-3.02591e-15
|
|
roll=0
|
|
|
|
[jointlthigh]
|
|
parent=jointlocal
|
|
Type=hingex
|
|
Former Segment=segluleg
|
|
tranx=-1.70967
|
|
trany=0.21202
|
|
tranz=0.19766
|
|
pitch=0
|
|
yaw=-0
|
|
roll=0
|
|
joint=jointlknee
|
|
site=siteedz_luleg
|
|
|
|
[jointlknee]
|
|
parent=jointlthigh
|
|
Type=hingex
|
|
Former Segment=segldleg
|
|
tranx=0
|
|
trany=-3.32122
|
|
tranz=-0.786014
|
|
pitch=0
|
|
yaw=-1.16431e-10
|
|
roll=0
|
|
joint=jointlankle
|
|
site=siteedz_ldleg
|
|
|
|
[jointlankle]
|
|
parent=jointlknee
|
|
Type=hingex
|
|
Former Segment=segem1
|
|
tranx=0
|
|
trany=-1.99533
|
|
tranz=-0.205027
|
|
pitch=1.78814e-07
|
|
yaw=-5.82099e-11
|
|
roll=5.39975e-20
|
|
joint=jointltoe
|
|
|
|
[jointltoe]
|
|
parent=jointlankle
|
|
Type=static
|
|
Former Segment=seglfot
|
|
tranx=0
|
|
trany=-1.10281
|
|
tranz=-1.58674
|
|
pitch=1.69872e-06
|
|
yaw=-2.53381e-22
|
|
roll=2.98319e-16
|
|
site=siteedz_lfoot
|
|
|
|
[siteedz_lfoot]
|
|
parent=jointltoe
|
|
tranx=0
|
|
trany=0.510973
|
|
tranz=1.58758
|
|
pitch=5.21032e-21
|
|
yaw=6.04815e-13
|
|
roll=1.72295e-08
|
|
|
|
[siteedz_ldleg]
|
|
parent=jointlknee
|
|
tranx=0
|
|
trany=-1.20664
|
|
tranz=-0.121646
|
|
pitch=1.78814e-07
|
|
yaw=-5.81435e-11
|
|
roll=1.78872e-18
|
|
|
|
[siteedz_luleg]
|
|
parent=jointlthigh
|
|
tranx=-0.000330091
|
|
trany=-1.71286
|
|
tranz=-0.49866
|
|
pitch=0
|
|
yaw=-1.1636e-10
|
|
roll=0
|
|
|
|
[jointrthigh]
|
|
parent=jointlocal
|
|
Type=hingex
|
|
Former Segment=segruleg
|
|
tranx=1.70786
|
|
trany=0.21202
|
|
tranz=0.19766
|
|
pitch=0
|
|
yaw=-0
|
|
roll=0
|
|
joint=jointrknee
|
|
site=siteedz_ruleg
|
|
|
|
[jointrknee]
|
|
parent=jointrthigh
|
|
Type=hingex
|
|
Former Segment=segrdleg
|
|
tranx=0
|
|
trany=-3.32122
|
|
tranz=-0.786015
|
|
pitch=0
|
|
yaw=-2.32823e-10
|
|
roll=-5.53097e-10
|
|
joint=jointrankle
|
|
site=siteedz_rdleg
|
|
|
|
[jointrankle]
|
|
parent=jointrknee
|
|
Type=hingex
|
|
Former Segment=segem2
|
|
tranx=0
|
|
trany=-1.99533
|
|
tranz=-0.205027
|
|
pitch=4.24682e-07
|
|
yaw=2.94097e-18
|
|
roll=3.45608e-10
|
|
joint=jointrtoe
|
|
|
|
[jointrtoe]
|
|
parent=jointrankle
|
|
Type=static
|
|
Former Segment=segrfot
|
|
tranx=0
|
|
trany=-1.10281
|
|
tranz=-1.58674
|
|
pitch=2.23525e-08
|
|
yaw=-5.81902e-10
|
|
roll=-6.40019e-09
|
|
site=siteedz_rfoot
|
|
|
|
[siteedz_rfoot]
|
|
parent=jointrtoe
|
|
tranx=0.000139952
|
|
trany=0.5105
|
|
tranz=1.58712
|
|
pitch=2.18073e-20
|
|
yaw=4.93274e-10
|
|
roll=8.84185e-11
|
|
|
|
[siteedz_rdleg]
|
|
parent=jointrknee
|
|
tranx=0
|
|
trany=-1.2067
|
|
tranz=-0.121942
|
|
pitch=4.24682e-07
|
|
yaw=2.88983e-18
|
|
roll=3.45849e-10
|
|
|
|
[siteedz_ruleg]
|
|
parent=jointrthigh
|
|
tranx=0.000139952
|
|
trany=-1.7132
|
|
tranz=-0.498218
|
|
pitch=0
|
|
yaw=-2.32823e-10
|
|
roll=-5.53097e-10
|
|
|
|
[jointshadow] // apply terrain angle to pitch and roll
|
|
parent=ROOT
|
|
Type=balltranslate
|
|
Former Segment=segshd
|
|
tranx=0
|
|
trany=0.05
|
|
tranz=0
|
|
pitch=0
|
|
yaw=0
|
|
roll=0
|
|
joint=jointtshadow
|
|
|
|
[jointtshadow] // apply torso twist to yaw
|
|
parent=jointshadow
|
|
Type=hingey
|
|
Former Segment=segtshd
|
|
tranx=0
|
|
trany=0
|
|
tranz=0
|
|
pitch=0
|
|
yaw=0
|
|
roll=0
|
|
|
|
[jointeye]
|
|
parent=jointtorso
|
|
Type=balltranslate
|
|
Former Segment=segnone
|
|
tranx=1.13
|
|
trany=3.17092
|
|
tranz=0.053
|
|
pitch=5.76107e-11
|
|
yaw=2.84961e-15
|
|
roll=2.32936e-26
|
|
site=siteeyepoint
|
|
|
|
[siteeyepoint] // moved by AddEyeJoint
|
|
parent=jointeye
|
|
tranx=0
|
|
trany=0
|
|
tranz=0
|
|
pitch=0
|
|
yaw=0
|
|
roll=0
|