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>
72 lines
1.9 KiB
Plaintext
72 lines
1.9 KiB
Plaintext
DIV-VIZ2
|
|
HEADER
|
|
(
|
|
VERSION=2:08;
|
|
DATE=31:1:96;
|
|
TIME=9:41;
|
|
UNIT=m
|
|
)
|
|
{
|
|
}
|
|
|
|
BOUNDARY
|
|
{
|
|
BBOX {-6.7591,-0.5093,-0.7988,7.059,19.0764,2.7726,0,0,0}
|
|
SPHERE {0.14995,9.28355,0.9869,12.0483}
|
|
}
|
|
OBJECT
|
|
(
|
|
)
|
|
{
|
|
LOD (DISTANCE= 0, 1200)
|
|
{
|
|
GEOGROUP
|
|
(
|
|
F_MATERIAL="btfx:firesmoke1_mtl";
|
|
VERTEX=RGB 2D_TEXTURE ;
|
|
)
|
|
{
|
|
PMESH {
|
|
VERTEX_POOL {
|
|
{2.4853, 19.0764, 0.9001, 0.561, 0.141, 0.043, -0.2, 0.6, 1}
|
|
{0.2835, 9.067, 0.4099, 0.828, 0.402, 0.101, -0.033, 0.579633, 0.697047}
|
|
{4.7859, 6.2476, 0.4281, 0.659, 0.204, 0.051, -0.194, 1, 0.5}
|
|
{4.2288, 5.4624, 0.0423, 0.624, 0.231, 0.075, -0.2, 1, 0.375}
|
|
{0.246, 9.0905, 0.4098, 0.828, 0.401, 0.101, -0.028, 0.576131, 0.698689}
|
|
{0.2186, 8.5412, 0.2181, 0.838, 0.416, 0.105, 0.035, 0.599549, 0.625282}
|
|
{-3.2767, 9.9605, 0.516, 0.659, 0.165, 0.035, -0.194, 0.2, 0.75}
|
|
{-3.7826, 11.6132, 0.3936, 0.655, 0.161, 0.031, -0.2, 0.2, 0.875}
|
|
{-0.0403, 8.0209, 0.3118, 0.84, 0.415, 0.104, 0.08, 0.544957, 0.588301}
|
|
{-4.0912, 1.976, -0.7231, 0.78, 0.408, 0.125, 0.053, 0.2, 0.25}
|
|
{-0.2212, 3.5977, -0.3671, 0.902, 0.62, 0.309, 0.285, 0.572117, 0.308143}
|
|
{-0.9121, 3.2437, 2.0354, 0.941, 0.733, 0.502, 0.153, 0.6, 0.25}
|
|
{1.0239, -0.4439, 2.7726, 1, 0.988, 0.973, 1.2, 0.6, 0}
|
|
{-6.7591, -0.4241, -0.7988, 0.976, 0.8, 0.502, 0.735, 0.2, 0}
|
|
{7.059, -0.5093, 0.0944, 0.859, 0.478, 0.137, -0.135, 1, 0}
|
|
}
|
|
CONNECTION_LIST {
|
|
{0, 1, 2}
|
|
{3, 2, 1}
|
|
{6, 5, 7}
|
|
{5, 8, 3}
|
|
{9, 8, 6}
|
|
{8, 10, 3}
|
|
{11, 10, 9}
|
|
{4, 7, 5}
|
|
{12, 9, 13}
|
|
{12, 14, 3}
|
|
{12, 11, 9}
|
|
{12, 3, 11}
|
|
{11, 3, 10}
|
|
{8, 9, 10}
|
|
{5, 6, 8}
|
|
}
|
|
CONNECTION_LIST (PCOUNT=4){
|
|
{3, 1, 4, 5}
|
|
{0, 7, 4, 1}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|