
BattleTech: The Crescent Hawk's Inception 리버스 엔지니어링
BattleTech: The Crescent Hawk's Inception (1988년 Infocom의 MS-DOS 게임)의 리버스 엔지니어링 분석 및 Godot 4 + C# 재구축.
├── docs/ # RE documentation & findings
│ ├── CONTEXT.md # Master context (1050+ lines)
│ ├── TECHNICAL_ANALYSIS.md # Comprehensive technical analysis (3211 lines)
│ ├── MEMORY_MAP.md # Full memory map (603 lines)
│ ├── ADDRESS_REFERENCE.md # Address reference (1035 lines)
│ ├── BLD_BYTECODE.md # BLD bytecode specification (342 lines)
│ ├── WORLD_MAP_FINDINGS.md # World map analysis (321 lines)
│ ├── REBUILD_PLAN.md # Godot rebuild plan
│ ├── REBUILD_ROADMAP.md # Rebuild roadmap
│ └── STORY_TEXT.txt # Extracted full story text
│
├── tools/ # Python analysis tools
│ ├── bld/ # BLD script tools (decoder, converter, viewer)
│ ├── assets/ # Asset extraction & rendering tools
│ └── analysis/ # RE analysis tools
│
├── reko/ # Reko decompiler output
│ ├── UNBTECH.exe.c # Full C decompilation (2MB)
│ ├── UNBTECH.exe.h # Header with struct definitions
│ ├── UNBTECH_all.asm # Combined disassembly (60K lines)
│ └── segments/ # Per-segment .c/.asm/.dis files
│
├── asm/ # Assembly analysis
│ └── discoveries.asm # Manual analysis notes
│
├── json/ # BLD → JSON conversions (26 files)
│
├── spice86/ # Spice86 emulation outputs
│
├── BattleTechCHI/ # Godot 4 + C# rebuild
│
├── original/ # Original game assets (local only, not uploaded)
│ ├── bld/ cmp/ icn/ mtp/ anm/ saves/ exe/
│
├── extracted_assets/ # Rendered PPM/PNG from game assets
└── Assets/ # Converted sprite/tile sheets
재구축은 Phase 6 (ANM 통합 + 전투 ANM)에 있습니다. BattleTechCHI/Scripts/에 45개 이상의 스크립트에 걸쳐 약 8,000줄의 C# 코드.
런타임 게임 상태 내부 조사를 위한 19개의 BattleTech 전용 MCP 도구를 갖춘 Spice86 에뮬레이터:
# Start emulator with MCP server on port 8081
dotnet exec bin/Debug/net10.0/UNBATTLETECH.dll \
--Exe "/path/to/BTECH.EXE" \
--CDrive "/path/to/game/" \
--HeadlessMode Minimal --McpHttpPort 8081 --NoGui
# Read game state
curl -s -X POST http://localhost:8081/mcp/ \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"bt_get_state","arguments":{}}}'
# Convert BLD → JSON and back
python3 tools/bld/bld_json_converter.py to-json original/bld/
# Extract full story text
python3 tools/bld/extract_story.py
# Decode all BLD files with opcode analysis
python3 tools/bld/decode_bld.py
# ASCII terminal viewer for maps
python3 tools/bld/ascii_viewer.py
# Render CMP assets to PPM
python3 tools/assets/extract_assets.py
# Build C# rebuild
cd BattleTechCHI && dotnet build
# Build emulator
dotnet build UNBATTLETECH.csproj
이 저장소에는 원본 게임 에셋 (BLD, CMP, EXE 등)이 포함되어 있지 않습니다. 클린룸 재구축을 위한 리버스 엔지니어링 분석, 문서화 및 원본 소스 코드만 포함되어 있습니다. 원본 게임 에셋은 로컬 개발용으로만 original/에 유지됩니다 (gitignore 처리됨).