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

566 lines
8.4 KiB
Plaintext

[LAB_ONLY] // this file has not been approved for release
[DamageZones] // call MakeEntryList with 'dz_'
dz_larm=0
dz_lgun=1
dz_missle=2
dz_rarm=3
dz_rgun=4
dz_searchlight=5
[ROOT]
JointCount=21
DZoneCount=6
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
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
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
Object=lokdrarm.bgf
dzone=dz_rarm
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
Object=lokdrgun.bgf
dzone=dz_rgun
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.552
tranz=-1.127
pitch=1.45633e-08
yaw=-2.28083e-08
roll=-1.58903e-16
[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
Object=lokdlarm.bgf
dzone=dz_larm
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
Object=lokdlgun.bgf
dzone=dz_lgun
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.433
trany=-0.428
tranz=-1.22
pitch=-8.72518e-10
yaw=-1.49012e-08
roll=2.98024e-08
[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
Object=lokdmsl.bgf
dzone=dz_missle
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
Object=lokdligh.bgf
dzone=dz_searchlight
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