Replace raw transmuted COM calls with typed windows crate APIs:
- DirectSoundCreate via windows::Win32::Media::Audio::DirectSound
- IDirectSoundBuffer::Play with typed method call and DSBPLAY_LOOPING
Eliminates manual vtable slot indexing and unsafe function pointer
transmutation for the DirectSound initialization path.
Add windows crate (0.62) dependency with Win32_Media_Audio_DirectSound
feature.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
refactor: reorganize openwa-core into subdirectory modules
Clear ERRORLOG.TXT before each test run, copy to testdata/logs/ when
present after a run, and report crash with first 5 lines before any
other summary output. Exit code 1 on crash detection.
Crash check runs before the log diff/validation summary to ensure it
is always visible even when the diff would also fail.
Update CLAUDE.md and replay-test skill docs.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
feat: pure Rust DisplayBase::new_headless() with in-place vtable patching
Replace the FFI-based headless DisplayBase construction with pure Rust:
new_headless() allocates and initializes all fields (slot_table, sentinel,
sprite cache chain: 0x28 wrapper -> 0x3C buffer ctrl -> 0x80020 buffer)
without calling WA's constructor.
Must use WA's vtable pointer (not our own copy) because WA checks vtable
address identity. Patch WA's headless vtable destructor slot in-place to
a Rust version that correctly frees the Rust-allocated sprite cache.
Extract patch_vtable() utility to openwa-core::vtable for reuse.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Rename DDDisplayBase -> DisplayBase across codebase. Define DisplayBase
struct with named fields from constructor analysis, DisplayBaseVtable
with 32 typed slots, SpriteCollection sub-object, and static
HEADLESS_VTABLE with all no-op stubs.
Patch WA.exe's primary DisplayBase vtable (0x6645F8) at init time:
replace 22 _purecall slots with safe Rust no-ops, benefiting both
headless (DisplayBase) and normal (DisplayGfx) modes.
Add wa_free() to wa_alloc module alongside wa_malloc().
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add -Headless flag to replay-test.ps1 that uses WA's /getlog mode for
pure-simulation replay testing. Compares output log byte-for-byte
against bots_expected.log to verify replay determinism.
Update replay-test skill docs to cover both modes.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
feat: add headless mode with launcher↔DLL event synchronization
Add OPENWA_HEADLESS=1 mode that hooks user32!MessageBoxA/W via MinHook
to auto-dismiss all message boxes, enabling fully unattended /getlog
replay processing.
Add named event synchronization (OpenWA_HooksReady) between the launcher
and DLL: launcher creates the event before injection, DLL signals it
after install_all() completes, launcher waits before ResumeThread. This
eliminates the race between hook installation and main thread startup.
Add bots_expected.log as golden reference for headless replay log diff
testing.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
GameStats is actually the base class of the display hierarchy —
DisplayGfx__Constructor calls it as its base ctor. Rename to
DDDisplayBase to reflect the inheritance relationship.
Rename GameSession.display_gfx → display since it holds a polymorphic
base class pointer (DisplayGfx in normal, DDDisplayBase in headless).
Update Ghidra: DDDisplayBase__Constructor, DDDisplayBase__Destructor,
DDDisplayBase__Vtable (0x6645F8), DDDisplayBase__HeadlessVtable (0x66A0F8).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
refactor: extract subsystem creation into construct() methods
Move transmute-heavy subsystem creation out of impl_init_hardware into
dedicated methods: DisplayGfx::construct(), GameStats::construct(),
DDNetGameWrapper::construct(), DDKeyboard::poll(), and a local
create_dssound() function for the 33-line COM init sequence.
impl_init_hardware now reads as a high-level orchestrator with only
the DDDisplay::Init retry loop and MapWindowPoints IAT call inline.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
refactor: type GameInfo pointers, merge ctor_impl, fix warnings
- Type GAME_INFO static and construct_ddgame_wrapper param as *mut GameInfo
- Merge ctor_impl into construct_ddgame_wrapper (single function now)
- Fix dangerous_implicit_autorefs in config.rs (use let gi = &mut *)
- Remove unused GameInfo import in config.rs and MissileType in validation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
feat: add install_trap! macro for fully-converted functions
Add install_trap! macro that replaces a WA function with a panic trap,
verifying that no WA.exe code calls it. Use for functions where all
callers have been replaced with Rust.
Convert DDGameWrapper__Constructor to trapped: only called from
impl_init_hardware (Rust). Remove dead naked trampoline and SAVED_RET
static.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
refactor: add WABox::from_value and struct constructors for DDKeyboard/Palette
Add WABox::from_value(val) to allocate on WA's heap and write a
fully-initialized value in one step. Add DDKeyboard::new() and
Palette::new() that return Self with all fields set, replacing
multi-line alloc+field-write sequences with one-liners.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
feat: add vcall! macro and typed vtable structs for Palette and InputCtrl
- Extend GameInfo to 0xF91C with named fields (display_width/height,
display_flags, headless_mode, speech_enabled, etc.)
- Add 6 placeholder structs: DisplayGfx, InputCtrl, GameTimer,
StreamingAudio, DDNetGameWrapper, GameStats
- Expand DDKeyboard with construction fields and 0x33C size assert
- Fix DSSound size to 0xBE0 and rename COM fields (direct_sound,
primary_buffer, init_success)
- Type GameSession pointers: DDGameWrapper, DDKeyboard, DSSound, Palette
- Fix DDKeyboard+0x4: must store ADDRESS of GameInfo+0xF918, not value
- Fix DSSound init: check Play() result, not outer DirectSoundCreate hr
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
feat: replace GameEngine__InitHardware with full Rust reimplementation
Port DDGameWrapper__Constructor (0x56DEF0) from passthrough hook to complete
Rust replacement. The original uses an implicit EDI=game_info register param
alongside 7 stdcall stack params; a naked trampoline captures EDI before any
Rust code can clobber it.
Key implementation details:
- Naked entry trampoline saves EDI→GAME_INFO, pops caller ret addr, calls cdecl
ctor_impl, then does stdcall callee-cleanup (addl $0x1C; jmpl *SAVED_RET)
- call_init_replay bridge: naked stdcall that loads EAX/ESI and calls the
usercall DDGameWrapper__InitReplay (EAX=game_info, ESI=this, plain RET)
- ddgame_constructor_call bridge: loads implicit ECX=network from static then
tail-jumps to DDGame__Constructor; its RET 0x24 returns directly to ctor_impl
- ctor_impl uses typed fields: DDGameWrapper, DDDisplay, DSSound, Palette,
GameSession (for timer_obj/net_game by name instead of raw offset arithmetic)
Also adds DDGAMEWRAPPER_INIT_REPLAY and DDGAME_INIT_GAME_STATE to address.rs.
Co-Authored-By: C…
feat: add GameSession struct and DDGameWrapper__Constructor passthrough hook
Renames DDInput__Constructor_Maybe → GameEngine__InitHardware (the function
initializes all hardware subsystems; the DDInput vtable only appears in the
headless/stats-server else-branch that gave it its wrong name).
Adds:
- GameSession struct (0x120 bytes) in openwa-core with all known field offsets
mapped from decompilation of FUN_00572F50 / GameEngine__InitHardware
- G_GAME_SESSION (0x7A0884) and four new address constants
- Passthrough hook on DDGameWrapper__Constructor (0x56DEF0) that logs
wrapper and DDGame pointers once per game session start
The hook uses a naked AT&T asm trampoline to preserve EDI, which
DDGameWrapper__Constructor passes implicitly as the 9th argument to
DDGame__Constructor. A plain extern "stdcall" hook clobbered EDI via
Rust's register allocator, causing a null-pointer crash in
PCLandscape__Constructor. The trampoline tail-calls the original via
jmp (not call), leaving EDI completely untouched.
Validated: 135 PASS, 0 FAIL. OpenWA.log shows:
[GameSess…
feat: add CTaskMissile struct, CTaskBfsIter, and missile memory dump
- CTaskMissile (0x41C bytes): fully decompiled constructor layout with
spawn_params (11 DWORDs), weapon_data (94 DWORDs), render_data (42 DWORDs).
render_data is a shifted copy of weapon_data (weapon_data[N+3] for single
shots, weapon_data[N+52] for cluster sub-pellets) — likely for frame
interpolation support in the Steam version.
- MissileType enum: Standard=2, Homing=3, Sheep=4, Cluster=5 (confirmed via
constructor switch analysis).
- CTaskBfsIter: general-purpose BFS tree walker over CTask children using
VecDeque. Replaces inline fixed-size queue arrays in validation code.
- dump_missile_tasks(): uses CTaskBfsIter, routes raw DWORD dump to
OpenWA_validation.log (not OpenWA.log).
- Validation log now cleared unconditionally on DLL load (not just when
OPENWA_VALIDATE=1).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fix: correct CTask children field names and children count display
Runtime analysis of CTask__AppendChild (0x4fdc70) and CTask__UnlinkChild
(0x4fdce0) reveals the true semantics of the children sub-struct:
+0x08 children_capacity — starts 0x10, doubles on overflow
+0x0C children_dirty — flag set to 1 when any child is unlinked
+0x10 children_watermark — insertion counter, never decremented on remove
+0x14 children_data — sparse pointer array; dead slots are nulled
The append-only watermark means CTaskFilter's "(N children)" label was
rising unboundedly as sea bubbles spawned. Fixed by computing live count
from non-null slots rather than reading children_watermark directly.
Also adds dump_ctask_children() to validation (F8 hotkey) for live
verification of these fields. Ghidra functions renamed accordingly.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
refactor: split task.rs into per-type modules under task/
Each task struct now lives in its own file. Tightly coupled types
are kept together (TurnGameCtx+CTaskTurnGame, CTaskMine+CTaskOilDrum,
SoundEmitter+CGameTask, CTaskWorm+CTaskWormVTable). mod.rs re-exports
all public types so external import paths are unchanged.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat: update debug UI with TurnGameCtx and CTaskTeam new fields
Full constructor analysis of CTaskTeam__Constructor_Maybe (0x550EB0) and
CTaskTurnGame__Constructor (0x55B2A0) revealed the layout of all 0xAC bytes:
land_height / land_height_2 (+0x10/+0x14): landscape height as Fixed16.16
from DDGame+0x5E0, duplicated; 696.0 confirmed at runtime.
_sentinel_18/28/38 (+0x18/+0x28/+0x38): always -1 at construction,
evenly spaced 0x10 bytes apart; role unknown.
team_count (+0x4C): *(byte)(GameInfo+0x44C) at construction time.
_slot_d0 (+0xA0): return value of FUN_00525f50(0), observed 15.
_hud_textbox_a/b (+0xA4/+0xA8): DDDisplay textbox handles created by
FUN_005514d0 when DDGame+0x7EF8 != 0 (display active).
Replaces the opaque _game_ctx: [u8; 0xAC] with the named TurnGameCtx struct.
Adds 9 offset checks to validation; 127/127 PASS.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat: expand CTaskTeam struct with runtime-validated field names
Memory dump analysis via replay test revealed 6 named fields inside the
previously opaque 0x4C-byte region (0x3C–0x87) and the tail (0x400–0x45F):
alive_worm_count (+0x48): decrements as worms are eliminated
last_launched_weapon (+0x60): confirmed by wkJellyWorm (lastLaunchedWeapon_dword60)
pos_x / pos_y (+0x404/+0x408): per-team Fixed16.16 position
_unknown_40c (+0x40C): Fixed16.16, same across teams (≈666.89 in test)
Also adds dump_ctaskteam_entities() to the validation module (auto-runs at 5s
in replay-test mode, F8 hotkey in interactive mode) and 5 new offset checks.
117/117 PASS.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- CTaskTeam (0x460 bytes, vtable 0x669EE4, class_type=10): per-team entity
with team_index (+0x38), _item_slots[100] (+0x88), worm_count (+0x218)
- Size confirmed from malloc(0x460) in FUN_005528c0 (the factory function)
- Secondary interface vtable at +0x30 (Ghidra 0x669F00)
- Registered in SharedData with type code 0x15 (team_index as key)
- Rename CTaskTurnGame._ctaskteam → _game_ctx with detailed comment
explaining it's the intermediate game-context base (class_type=5, vtable
0x669C44), NOT the per-team CTaskTeam — different class, different size
- Add CTaskTeam offset_of! checks in validation (team_index, worm_count)
- Add CTaskTeam inspector section in debug UI (team_index, worm_count)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat: add CTaskFire and CTaskTurnGame structs with runtime validation
- CTaskFire (0xD8 bytes, class_type=0x18): spawn coords, timer, burn_rate,
spread_counter, lifetime, slot_index fields
- CTaskTurnGame (0x2E0 bytes): 15 named fields covering timers (turn_timer
+0x18C, idle_timer +0x184, retreat_timer +0x178), team tracking
(current_team, current_worm, arena_team, arena_worm), and frame counters
(active_worm_frames, retreat_frames, _timer_scale); all offsets runtime-
validated via offset_of! checks (15 PASS)
- dump_turngame(): finds TurnGame via vtable scan + SharedDataTable, dumps
known fields and full 0x2E0-byte raw region via dump_region
- dump_region refactored from DDGame-specific to generic *const u8 base
- replay-test.ps1: fix launcher invocation (pass $waExe explicitly so
replay file is forwarded as a WA.exe arg, not misinterpreted as exe path)
- Debug UI inspector sections for CTaskFire and CTaskTurnGame
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat: add CTaskFire struct and debug inspector support
- Add CTASK_MISSILE_VTABLE (0x664438) to address.rs
- Add CTaskMissile to KNOWN_VTABLES in debug UI census
- Remove shared_data/owns_data/ddgame from CTask base inspector (same for every entity)
- Ghidra: label CTaskMissile__vtable and rename 6 overridden methods
(Init, Free, HandleMessage, PhysicsUpdate_Maybe, vt12, vt18_GetField130)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat(debugui): task tree entity census, transient filtering, scrollable inspector
- Replace SharedDataTable-based census with full DFS from CTaskTurnGame root,
so parent-hierarchy entities (CTaskTurnGame etc.) are included and the
liveness check no longer wrongly prunes them
- Filter transient entities (CTaskSeaBubble) from census by default; toolbar
checkbox toggles visibility and shows hidden count in the entity label
- Wrap inspector body in a ScrollArea so long entity trees are fully reachable
- Make census ScrollArea fill panel width (auto_shrink disabled, num_columns=3)
- Add CTASK_SEA_BUBBLE_VTABLE (0x669E88) to address.rs
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fix(debugui): clear stale entity selection when entity is destroyed
Build a live-entity snapshot once per frame and prune selected_entity and
nav_history before rendering, preventing UAF crashes when the inspected
entity is freed (match ended, worm died, etc.).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fix(launcher): replace registry WA.exe lookup with hardcoded fallback paths
Steam registry lookup was unreliable from a 32-bit process (WoW64 redirection
issues, key may not exist). Replace with a short list of hardcoded common Steam
locations; OPENWA_WA_PATH and explicit CLI arg remain the preferred override.
Also add start.ps1 (build + launch) and update start-debug.ps1 to build with
--features openwa-wormkit/debug-ui, which is required to enable the debug UI
overlay at runtime.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat: replace WormKit injection with custom launcher (openwa-launcher)
New binary crate `openwa-launcher` creates WA.exe in a suspended state,
injects openwa_wormkit.dll via CreateRemoteThread(LoadLibraryA), waits for
DllMain to complete (all hooks installed), then resumes the main thread.
This guarantees hooks are in place before a single WA instruction runs and
requires zero modifications to the game folder.
- WA.exe location: CLI arg > OPENWA_WA_PATH env var > Steam registry
- DLL location: always next to the launcher executable
- Forwards all CLI args (replay file etc.) to WA.exe
- Supports --minimized flag (used by replay-test.ps1)
- Remove deploy.ps1 / deploy-debug.ps1 (no longer needed)
- Update replay-test.ps1 to build + run via launcher; removes DLL copy step
- Update start-debug.ps1 to invoke launcher directly
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat: add egui debug UI window with entity census, inspector, and log panel
Spawns a floating egui/eframe window in the same process as WA.exe (DLL
injection) when OPENWA_DEBUG_UI=1. Shows a live entity census from the
SharedData hash table, a struct inspector with navigation history, and a
scrollable log stream.
- New crate: openwa-debugui (egui 0.28 + glow backend, winit any-thread)
- Entity type names resolved via vtable map with ClassType fallback
- Children tree reads sparse slot array (children_size = high-watermark)
- Add CTASK_MINE/OILDRUM/CLOUD_VTABLE constants to address.rs (derived
from runtime vtables: delta 0x6C0000)
- debug-ui feature gate in openwa-wormkit; deploy-debug.ps1 / start-debug.ps1
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat: add SharedData entity census and CTaskFilter RE
- Add SharedDataNode/SharedDataTable/SharedDataIter types to task.rs for
iterating the 256-bucket entity hash table at CTask.shared_data
- Add 8 new CTASK_*_VTABLE constants to address.rs (Worm, Land, TurnGame,
Team, Filter, Dirt, SpriteAnim, CPU)
- Add CTaskFilter struct (0xB4 bytes) with subscription_table[100] at +0x30;
documents the message-subscription filter pattern used per team
- Add dump_entity_census() to validation: iterates SharedData table, groups
by vtable, names all known task types; auto-runs at 5s mark and on F12
- Refactor dump_worm_tasks() to use SharedDataTable::iter()
RE findings:
- CTaskFilter overrides HandleMessage to drop messages not in its
subscription table; 4 instances per team with different message sets
- CTaskCPU is transient (only present during AI turn)
- Dead worms are removed from SharedData on death
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat: add TurnOrderWidget structs and expand DDGame field coverage
Add turn_order.rs with AnimatedItemList, TurnOrderWidget, TurnOrderAllianceGroup,
and TurnOrderTeamEntry structs for the in-game team banner health bar UI.
Retype DDGame.turn_order_widget from *mut u8 to *mut TurnOrderWidget.
DDGame fields verified via runtime DWORD dumps and Ghidra cross-references:
- team_health_ratio[6] at 0x45F0 (fixed-point, renders health bar width)
- game_speed/game_speed_target at 0x72D8/0x72DC
- rng_state_1/2 at 0x72EC/0x72F0
- viewport_width/height at 0x7380-0x738C
- camera_x/y/target at 0x73A0-0x73AC
- level_bound_min/max at 0x779C-0x77A8
- task_land (CTaskLand) at 0x54C, hud_panel at 0x534
- turn_status_text at 0x818C, turn_time_limit at 0x7EA8
Remove diagnostic dump invocations from input.rs, keep utilities for reuse.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
refactor: retype DDGame header fields based on runtime vtable analysis
The split between openwa-types (pure types/addresses) and openwa-lib
(rebase/wa_call/typed wrappers) was arbitrary and added friction when
deciding where new code belongs. Merged both into openwa-core.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
feat: replace LoadSpeechBank and LoadAllSpeechBanks with full Rust implementations
Convert DSSound_LoadSpeechBank from passthrough to full replacement that
iterates the speech line table, builds WAV paths, calls LoadSpeechWAV,
and handles fallback to default speech directory. Add new
DSSound_LoadAllSpeechBanks hook that clears the speech slot table and
iterates teams. Introduce DDGameWrapperHandle typed wrapper in openwa-lib
and add speech_team_count field to GameInfo struct.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Convert two speech passthrough hooks into full replacements that build
file paths in Rust via heapless::CString and delegate WAV playback to
WA's WavPlayer functions through naked asm wrappers (WavPlayerHandle).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
feat: add speech system types and passthrough hooks
Add SpeechLineId enum (54 variants), SpeechSlotTable, and
SpeechLineTableEntry types. Hook PlayFeSfx, PlayFanfare_CurrentTeam
(usercall EAX), and DSSound_LoadSpeechBank for logging. Add 15 new
speech/fanfare/WAV player addresses.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
refactor: replace sentinel worm pattern with TeamBlockHeader struct
Introduce TeamBlockHeader with named fields (eliminated, alliance,
active_worm, worm_count, weapon_alliance, team_name) and TeamBlockSlot0
union to replace the dual-purpose WormEntry sentinel accessor hacks.
Remove all 6 unsafe sentinel_* methods from WormEntry. Validated at
runtime: 96/96 checks pass.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
refactor: replace raw DDGame pointers with typed *mut DDGame
Change CTask.ddgame, DDGameWrapper.ddgame, and PCLandscape.ddgame from
*mut u8 to *mut DDGame. Add named struct fields for crosshair line
params (0x7324/0x732C), fill_pixel (0x7338), and level dimensions
(0x77C0-0x77C8). Remove redundant casts and raw pointer arithmetic
in sound.rs, render.rs, input.rs, and validation.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
feat: replace PostMessage replay fast-forward with DDGame+0x98B0 hook
Hook TurnManager_ProcessFrame to set DDGame.fast_forward_active=1 each
frame, enabling 50x speed processing (same mechanism as spacebar).
Add fast_forward_active field to DDGame struct. Auto-restore minimized
window via FindWindowA+ShowWindow at 2s.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
docs: document replay system architecture and spacebar advance mechanism
Fully traced the spacebar-to-advance-replay chain through Ghidra:
keyboard -> TurnGame+0x1F4 -> HurryHandler -> DDGame+0x7E41 -> GameFrameEndProcessor -> local Hurry message (0x17).
Adds 11 replay/turn function addresses and 6 DDGame replay offsets to address.rs.
Creates docs/re-notes/replay-system.md with full findings including
the Option A direct control strategy (set DDGame+0x7E41 from DLL).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
feat: replay fast-forward via PostMessage + WndProc subclass
Automatically fast-forward through entire replays during testing by
posting WM_KEYDOWN/WM_KEYUP spacebar messages with 50ms gaps. Subclasses
the game's WndProc to intercept WM_ACTIVATE/WM_ACTIVATEAPP, making WA
think it always has focus so input works even when the window is in the
background.
- Add input.rs with PostMessage loop + WndProc subclass
- Update validation auto-capture: dump at 8s, 120s safety timeout
- Update replay-test.ps1 with 150s timeout
- Add DDKeyboard::PollKeyboardState address
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
refactor: replace raw pointer arithmetic with typed structs
- DDGame: rename _param_008 to sound_enabled, expose crosshair_scale at 0x8150
- Add BungeeTrailTask overlay (fields at 0xBC-0xE4 for trail rendering)
- Add WeaponAimTask overlay (fields at 0x258, 0x264, 0x324 for crosshair)
- Update render.rs and sound.rs to use typed field access
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>