Files
arcattackandClaude Opus 4.8 7b7d465e5e Initial commit: bt411 -- standalone Windows BattleTech (Tesla 4.10 port)
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>
2026-07-05 21:03:40 -05:00

579 lines
8.5 KiB
Plaintext

[LAB_ONLY] // this file has not been approved for release
[DamageZones] // call MakeEntryList with 'dz_'
dz_ltorso=0
dz_rtorso=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=lox_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=lox_tor.bgf
dzone=dz_ltorso
dzone=dz_rtorso
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=siteltorsoport
site=sitertorsoport
joint=jointmissle
joint=jointlight
site=siteedz_rearrtorso
site=siteedz_rearltorso
site=siteedz_rearutorso
site=siteedz_reardtorso
site=siteedz_rtorso
site=siteedz_ltorso
site=siteedz_dtorso
site=siteedz_utorso
[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.055
trany=-0.975
tranz=0
pitch=-6.93889e-15
yaw=3.4639e-14
roll=-2.27537e-14
site=siterugunport
site=siterdgunport
site=siteedz_rgun
[siterugunport]
parent=jointrgun
tranx=0.17
trany=0.017
tranz=-3.83199
pitch=-2.73406e-11
yaw=6.98481e-10
roll=-8.81441e-14
[siterdgunport]
parent=jointrgun
tranx=0.527
trany=-0.365002
tranz=-3.833
pitch=-4.93003e-10
yaw=6.98481e-10
roll=-8.81441e-14
[siteedz_rgun]
parent=jointrgun
tranx=0.34714
trany=-0.17446
tranz=-0.58661
pitch=-3.58832e-08
yaw=-3.0268e-09
roll=-7.45067e-09
[siteedz_rarm]
parent=jointrshoulder
tranx=0.729
trany=-0.347
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.06
trany=-0.976
tranz=0
pitch=7.18212e-09
yaw=6.61305e-09
roll=-1.78814e-06
site=sitelugunport
site=siteldgunport
site=siteedz_lgun
[sitelugunport]
parent=jointlgun
tranx=-0.163
trany=0.0179996
tranz=-3.832
pitch=-1.37373e-07
yaw=1.64372e-08
roll=-1.06563e-15
[siteldgunport]
parent=jointlgun
tranx=-0.519
trany=-0.364002
tranz=-3.83301
pitch=-1.53205e-07
yaw=2.01625e-08
roll=-1.47851e-15
[siteedz_lgun]
parent=jointlgun
tranx=-0.34
trany=-0.173011
tranz=-0.587
pitch=-1.56931e-07
yaw=2.01626e-08
roll=1.69874e-06
[siteedz_larm]
parent=jointlshoulder
tranx=-0.736
trany=-0.547
tranz=0.027
pitch=8.73113e-10
yaw=-6.69603e-16
roll=3.14337e-25
[siteltorsoport]
parent=jointshakey
tranx=-1.239
trany=0.901
tranz=-0.297
pitch=0
yaw=-5.08938e-18
roll=-3.04723e-30
[sitertorsoport]
parent=jointshakey
tranx=1.271
trany=0.901
tranz=-0.297
pitch=0
yaw=-5.08938e-18
roll=-3.04723e-30
[jointmissle]
parent=jointshakey
Type=static
Former Segment=segmsl
tranx=1.526
trany=3.234
tranz=1.254
pitch=0
yaw=-5.08938e-18
roll=-3.04723e-30
site=sitemissleport
site=siteedz_missle
[sitemissleport]
parent=jointmissle
tranx=0
trany=0.253
tranz=-1.353
pitch=5.96856e-13
yaw=1.81389e-16
roll=-3.34785e-24
[siteedz_missle]
parent=jointmissle
tranx=0
trany=0.54747
tranz=-0.431995
pitch=5.96856e-13
yaw=1.81389e-16
roll=-3.34785e-24
[jointlight]
parent=jointshakey
Type=static
Former Segment=seglight
tranx=-1.4593
trany=3.23455
tranz=1.58068
pitch=8.40779e-45
yaw=1.76403e-16
roll=1.05275e-28
site=sitelight
site=siteedz_searchlight
[sitelight]
parent=jointlight
tranx=0.00030005
trany=0.29845
tranz=-0.17568
pitch=5.96856e-13
yaw=2.59024e-09
roll=5.82076e-11
[siteedz_searchlight]
parent=jointlight
tranx=0.00030005
trany=0.29845
tranz=0.00881004
pitch=5.96856e-13
yaw=2.59024e-09
roll=5.82076e-11
[siteedz_rearrtorso]
parent=jointshakey
tranx=1.271
trany=1.96701
tranz=1.46826
pitch=0
yaw=-5.08938e-18
roll=-3.04723e-30
[siteedz_rearltorso]
parent=jointshakey
tranx=-1.271
trany=1.96701
tranz=1.46826
pitch=0
yaw=-5.08938e-18
roll=-3.04723e-30
[siteedz_rearutorso]
parent=jointshakey
tranx=-3.09877e-07
trany=2.58444
tranz=2.18032
pitch=0
yaw=-5.08938e-18
roll=-3.04723e-30
[siteedz_reardtorso]
parent=jointshakey
tranx=-3.09877e-07
trany=0.59
tranz=1.26908
pitch=0
yaw=-5.08938e-18
roll=-3.04723e-30
[siteedz_rtorso]
parent=jointshakey
tranx=1.271
trany=2.10113
tranz=0.069713
pitch=0
yaw=-5.08938e-18
roll=-3.04723e-30
[siteedz_ltorso]
parent=jointshakey
tranx=-1.271
trany=2.10113
tranz=0.069713
pitch=0
yaw=-5.08938e-18
roll=-3.04723e-30
[siteedz_dtorso]
parent=jointshakey
tranx=-3.09877e-07
trany=0.17775
tranz=0
pitch=0
yaw=-5.08938e-18
roll=-3.04723e-30
[siteedz_utorso]
parent=jointshakey
tranx=-3.09877e-07
trany=2.01133
tranz=0.07
pitch=0
yaw=-5.08938e-18
roll=-3.04723e-30
[siteedz_hip]
parent=jointhip
tranx=-1.52588e-05
trany=-0.70986
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=ball
Former Segment=seglfot
tranx=-0.000330091
trany=-1.10331
tranz=-1.58662
pitch=-2.98025e-08
yaw=5.82258e-11
roll=-1.45519e-11
site=siteedz_lfoot
[siteedz_lfoot]
parent=jointltoe
tranx=0
trany=0.510651
tranz=1.587
pitch=-1.82851e-27
yaw=-1.58444e-10
roll=2.30807e-17
[siteedz_ldleg]
parent=jointlknee
tranx=0
trany=-1.20664
tranz=-0.121646
pitch=1.78814e-07
yaw=-5.81854e-11
roll=1.78872e-18
[siteedz_luleg]
parent=jointlthigh
tranx=0
trany=-1.71286
tranz=-0.49866
pitch=0
yaw=-1.16392e-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.18085e-20
yaw=4.93302e-10
roll=8.84185e-11
[siteedz_rdleg]
parent=jointrknee
tranx=0.000139952
trany=-1.20664
tranz=-0.121645
pitch=4.24682e-07
yaw=2.92171e-18
roll=3.45699e-10
[siteedz_ruleg]
parent=jointrthigh
tranx=0
trany=-1.71286
tranz=-0.49866
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=-0.251001
trany=3.05732
tranz=0.093
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