aboutsummaryrefslogtreecommitdiff
path: root/docs
Commit message (Collapse)AuthorAgeFilesLines
* feat(player): play footsteps on ground and building floorsValentin Popov9 days2-0/+9
| | | | Select the original step effects from the hero's Control rows. A footfall follows the accepted movement and the camera rhythm. The Firing Range window starts the ground sound on the step and stays quiet when the player stops.
* feat(player): bob the cockpit view when walkingValentin Popov9 days2-0/+13
| | | | Use the 0.45 second vertical cycle observed in the GOG hero camera. The stock Firing Range window shows lift on an accepted walk and settles on release. The body and muzzle still use their own poses.
* feat(player): lower the communicator field on captureValentin Popov9 days2-0/+11
| | | | Drive the original CTLD type-13 tracks from the local capture. The Constructor window replay shows the raised and lowered field and four player projectiles stop at the mesh. Leaving resumes the authored open pose. Motion timing and exit trigger remain approximate.
* feat(player): announce a successful building captureValentin Popov9 days1-0/+6
| | | | Resolve the neutral or enemy cue through the original voice table. In a stock Constructor window replay the factory capture queues vc_nb_capt.wav before the objective notice.
* fix(player): capture buildings at the communicator floorValentin Popov9 days2-8/+9
| | | | On the stock Constructor map, walk through the factory basement to the communicator and press Enter. The first objective completes and the same path returns to ground level. The green ceiling no longer hides the floor in the contact query.
* fix(player): drown on first supported step into waterValentin Popov9 days2-0/+11
| | | | Carry the terrain surface flags through the walking collision decision. A mesh floor over water remains safe. The first accepted wet step removes the hero and produces the normal mission failure event. Verified the surface flag in the original Control DLL and walked from the stock Constructor spawn to the lake in the Vulkan window.
* fix(player): walk through cut terrain into factory basementsValentin Popov9 days2-1/+17
| | | | Use the same BAS cut surfaces for the walking sweep and the scene. The hero can descend along the building mesh and recover ground support on the way back. The stock Constructor route passes in both directions, the Firing Range bridge retains clearance, and the walk replay completes in the Vulkan window.
* chore(coverage): label shared route motion as approximateValentin Popov9 days2-4/+10
| | | | Use the same coverage label in runtime logs and simulation reports. Document the observed idle warbot handler and the parts of native locomotion still open. The stock AutoDemo keeps the same first shot and destruction times.
* fix(factory): rank researched combat designs for clan ordersValentin Popov9 days2-11/+28
| | | | Use the clan technology table to qualify candidates for SELECT_STRONGEST, then compare their projected Control endurance and weapon banks. The stock Two Fortresses factory releases 12spd1.dat in about ten seconds. Checked the selector with the original DLL, the first release and reservation in licensed tests, and the new model in the game window.
* fix(ai): follow capture passages through building doorsValentin Popov9 days2-7/+17
| | | | A stock Two Fortresses run now takes the generator after the capturer descends its authored hallway. Symmetric Res17 door links drive the CTLD animation and unsupported routes retain explicit coverage. Checked the approach and descent in the game window with Vulkan validation and verified the owner transfer in a licensed test.
* fix(ai): route capturers to authored building entrancesValentin Popov9 days2-11/+21
|
* fix(combat): keep autonomous weapons active on travel ordersValentin Popov9 days1-5/+13
|
* fix(combat): use authored range for autonomous weaponsValentin Popov9 days2-5/+18
|
* fix(render): size warbot shield pulses from mounted modelsValentin Popov9 days2-4/+16
|
* feat(render): play authored shield pulses on impactValentin Popov9 days2-4/+12
| | | | Use the Control 9 resource and impact basis to start three reusable mode-1 instances per owner. Draw the Op9 layers with the sampled MAT0 color and start the authored Op2 sound. Check the blue pulse and its expiry in a fixed-camera Vulkan run.
* feat(combat): spend directional shield charge before hull damageValentin Popov9 days2-5/+23
| | | | Resolve the nearest sector in the target basis and apply the Control 9/21 capacity before the hull modifiers. Verify power queries and depletion with the original Control DLL, then check live AutoDemo and Two Fortresses encounters from stock starts.
* feat(render): animate player weapon tracks during firingValentin Popov9 days2-0/+9
| | | | Sample the authored barrel tracks on the existing weapon clock before resolving the muzzle. Check Control phase interpolation against the original DLL and verify plasma rifle travel in a fixed-camera capture on the stock firing range.
* feat(factory): release assembled warbots above the roofValentin Popov9 days2-20/+20
| | | | Find the factory roof with a vertical ray, apply the native height offsets, and keep the departure task active through descent and apron clearance. Verify both stock Two Fortresses factories and transport delivery, and check the descent in a fixed-camera Vulkan run.
* feat(render): throw detached chassis nodes as fragmentsValentin Popov9 days2-7/+9
| | | | Pass the depleted node to an authored Op10 with a built-in mesh request. Reuse its existing draw ranges for the flight and keep the hull alive. The fixed-camera fixture shows the heavy track section separate and rotate after impact.
* feat(render): hide exhausted chassis geometryValentin Popov9 days2-2/+7
| | | | Use provider depletion and the node visibility flag to suppress the projected Vulkan ranges of a failed chassis part. The matching camera fixture shows the heavy warbot losing one track section after a hit while the rest of the hull remains visible.
* feat(combat): apply projectile hits to chassis nodesValentin Popov9 days2-13/+19
| | | | Use prepared chassis triangles to choose a loaded NDP node. Exhausted ordinary parts play their authored EXPL independently of root death. Unresolved mounted geometry keeps a sphere contact on exit. A stock side-shot fixture exhausts a heavy chassis part while the hull survives.
* feat(combat): enable the authored weapons of hostile animalsValentin Popov9 days2-5/+7
| | | | The armed Constructor creatures use the shared enemy search and fire their CTL weapon from Gun_Y. The stock start is outside range. The close encounter fixture shows the projectile in the Vulkan window and leaves the hero at 30 percent after one hit.
* feat(combat): reduce damage with Control protection coefficientsValentin Popov9 days2-5/+14
| | | | Keep the two damage coefficients in the existing tag-27 owner cache and apply the native quadratic clamp to projectile contacts. The calculation matches live GOG damage samples at single precision, and the AutoDemo window reaches combat and replacement after the change.
* fix(render): close the explosion billboard quadValentin Popov9 days1-1/+3
| | | | Use the cyclic Op3 corner order for the two triangles. A four-frame stock bunker fixture removes the missing wedge and overlap at the same camera and clock.
* feat(combat): play explosions for depleted building partsValentin Popov9 days2-0/+9
| | | | Use the EXPL referenced by the struck NDP row once the part runs out of capacity. Queue the blast at contact and keep the rest of the structure alive. The renderer shows the stock bunker effect in the Vulkan damage fixture.
* feat(combat): give idle warbots local defensive fireValentin Popov9 days2-5/+20
| | | | Free armed warbots use the existing hostile target search and fire without a movement order. A boarded warbot keeps manual firing. From the unmodified Two Fortresses start, the plant defender fires at 158.5 s and destroys the scripted capturer at 161.9 s in the Vulkan window.
* fix(combat): let projectiles damage animalsValentin Popov9 days2-2/+9
| | | | Verify the placed Constructor animal can be reached by a projectile segment, wounded and removed. The stock mission also starts in the Vulkan window.
* docs(combat): record the stock opening chronology differencesValentin Popov9 days1-0/+19
|
* feat(audio): drive chassis engine loops from actual movementValentin Popov9 days2-1/+23
| | | | Prepare the authored root-node CTL attachments and feed Control speed limits plus observed motion into FX modes 5 and 15. The stock AutoDemo window queues ground and flight engine loops from the starting scene.
* feat(repair): restore hull health on factory and hangar padsValentin Popov9 days2-0/+23
| | | | Check both authored Constructor volumes, ownership and departure in a licensed integration test. Validate Constructor in a window from stock start. Facility power, ammunition and the repair rate are open.
* feat(production): let new units clear the factory before taking ordersValentin Popov9 days2-6/+11
| | | | The exterior path reuses shared steering, terrain support, and traffic checks. The stock Two Fortresses test observes completed departures and an ore delivery. Validate a window run from mission start.
* fix(transport): load and unload at the building perimeterValentin Popov9 days2-1/+9
| | | | Verify the AI transport fills at the mine and unloads at the storage facility from stock Single.01, in the licensed test and the game window.
* fix(production): wait for a clear ground release pointValentin Popov9 days2-2/+15
| | | | Validate stock completions from Single.01 with Vulkan validation and check produced hulls against live occupancy. The licensed long transport scenario still fails at storage unloading with both the previous and the new release point.
* feat(combat): show detached assemblies after chassis destructionValentin Popov9 days2-1/+10
|
* feat(combat): play the referenced explosion on chassis destructionValentin Popov9 days2-0/+11
| | | | | | Read the version-one EXPL reference from the depleted NDP root. Retain the death position across slot reuse and show the authored billboard, light and sound after the mesh is removed. Verified the explosion sprite after a stock AutoDemo kill, with Vulkan validation clean. Node detachment, debris particles and building destruction remain open.
* feat(combat): activate mounted flash effects on autonomous shotsValentin Popov9 days2-1/+8
| | | | | | Carry the prepared effect row with each shot. Use the existing mode 4 visual effect for that component at release, with its authored geometry, lights and CPT placement. Keep the one-shot sound on its existing event path. Verified stock AutoDemo shot frames submit the authored muzzle light with Vulkan validation clean. A matched on-screen comparison and the full flash curve remain open.
* feat(combat): play spatial sounds for autonomous weapon shotsValentin Popov9 days2-2/+18
| | | | | | Carry the firing effect and muzzle position on the shot event. Resolve single-gun effects by their matching muzzle point when there is no node link. Play each one-shot as its simulation frame arrives. Verified a stock gun sound enqueues a spatial voice with the flight starting position. AutoDemo ran with Vulkan validation clean and no playback errors. Comparison by ear with the original remains open.
* feat(combat): render authored trails for autonomous projectilesValentin Popov9 days2-1/+6
| | | | | | Send simulated flight segments, clipped at their first contact, to the shared projectile trail renderer. A final trail can be presented after its projectile body is removed. The existing render pool serves both paths independently. Verified three prepared trail families and a visible laser segment from a stock AutoDemo start with Vulkan validation clean. Stock combat tests retain contact and weapon identities.
* fix(movement): drive tread material cycles from chassis travelValentin Popov9 days2-2/+19
| | | | | | Bind animated tread batches to their individual hull displacements. Preserve the authored phase sequence and derive nominal cycle length from the Control speed, scale and MAT0 duration. Checked stock tracked models in the normal AutoDemo window with Vulkan validation clean. Signed travel, stop and respawn are covered by a unit test. Per-track turning and physical cycle length are approximate.
* feat(combat): aim autonomous turrets with authored tracksValentin Popov9 days2-3/+10
| | | | | | Convert the selected target to the turret mount space and sample the authored azimuth and elevation tracks for rendering and the CPU muzzle query. Leave trigger cadence and target selection intact. Verified the stock AutoDemo launch, turret swivel with Vulkan validation clean, and a stock combat regression. Aim slew and recoil providers remain open.
* feat(movement): play authored walking cycles from chassis travelValentin Popov10 days2-5/+21
| | | | | | Select a closed forward stride from the model for explicit walking profiles. Drive it from world displacement and subtract baked forward travel before updating geometry, mounts and shadows. Verified light, medium and heavy stock model cycles and watched leg poses change from the normal AutoDemo start with Vulkan validation clean. Stop transitions and terrain-adaptive feet remain open.
* fix(movement): ground chassis on their lowest mesh pointsValentin Popov10 days2-1/+16
| | | | | | Sample the terrain under four support points in the initial chassis pose. Preserve any existing positive clearance above support and recalculate the root height after moving or turning, so a low start does not carry penetration across the route. The stock heavy AutoDemo chassis previously put its root at Z 2 with support at Z 2.9537. The same regression now passes. Verified uneven support and descent, all workspace checks, the 29-mission simulation corpus and an AutoDemo window run with clean Vulkan validation.
* feat(movement): let autonomous flyers climb above terrainValentin Popov10 days2-11/+22
| | | | | | Feed verified CanFly profiles into the shared route follower. A flyer spends movement time climbing to clear its hull before advancing, checks the terrain along the proposed leg and retains world altitude over lower ground. Ground units keep their terrain-following step. Covered takeoff, an intermediate ridge and a valley in route tests. Confirmed a stock AutoDemo flyer takes off and travels, observed the airborne scene with clean Vulkan validation, and ran the 29-mission simulation corpus. Descent and altitude-aware obstacle avoidance remain open.
* feat(movement): roll authored wheel loops from chassis travelValentin Popov10 days2-1/+18
| | | | | | Select wrapping controller rows backed by a full MSH rotation around a fixed axle. Use chassis displacement and the wheel radius to advance each loop. Sample the wheel nodes in the live component hierarchy and reset the phase when the rendered slot gets a new owner. The stock wheeled chassis samples a quarter turn after a quarter circumference and retains it while still. AutoDemo spawned the chassis and ran with clean Vulkan validation. Gait, tracks and in-place turning remain open.
* fix(movement): account for vehicle traffic along ground routesValentin Popov10 days2-8/+14
| | | | | | Ground routes now clear live vehicle bounds as well as buildings. Each movement step reserves the space it traversed for the rest of the frame. A parked vehicle can delay arrival without deleting the destination, and an obstructed detour can be replaced. Verified head-on passing, crossing during one long frame and resuming after an occupied goal clears. Workspace checks, the AutoDemo window, stock builder resupply and the 29-mission simulation corpus passed. Tight groups and airborne clearance remain approximate.
* fix(movement): route autonomous units around buildingsValentin Popov10 days2-2/+15
| | | | | | Project the bounds of live building meshes onto the ground and expand them by the vehicle radius. The shared route follower chooses exterior corners for blocked legs and can leave a footprint containing its starting position. Verified a detour on the stock factory geometry, stock builder resupply, a window run of Single.01, and 15 minutes of simulation on all 29 missions. Narrow openings, flying clearance and moving bodies remain open.
* fix(movement): carry frame time across route waypointsValentin Popov10 days2-12/+7
| | | | | | Route following now spends the same frame interval on turning and all reachable waypoints. Go, Patrol and pursuit keep their existing speeds and share this step. Stop counting the obsolete per-waypoint time loss. Verified with the corner route regression, workspace checks, release AutoDemo in a window, and two-minute AutoDemo and Single.01 smoke runs. Obstacle avoidance, locomotion animation and comparison with the original remain open.
* fix(movement): use profile requests for scripted Go speedValentin Popov10 days2-0/+27
| | | | | | | | | | | | Scripted Go used a fixed speed of 9. Feed the temporary movement controller with the current Control forward limit multiplied by the loaded Behavior Go_SpeedPercent. Missing coefficients retain the native constructor default of 1; present VAR records use the first matching row's applied value. Rebind a produced unit's Behavior profile to its new full handle so the request remains available after spawning. Share Go and PatrolPlace speed sampling in unit_speed.rs while retaining the patrol coefficient of 0.8, and move profile-loading mechanics out of lib.rs into behavior_profile.rs. Reports distinguish Go and patrol samples and keep explicit fallbacks for unresolved inputs. An unmodified GOG Behavior.dll oracle executes the native profile constructor, current-profile getter and both Go start/update paths under x87 0x007f. A hardware breakpoint records the request before the MWalker call. It confirms default, fractional and zero vectors, including the stock request 0x41e52e74 (28.647682). This is requested-speed evidence; MWalker caching, acceleration, routing and physical integration remain explicit approximations. The licensed stock mission-19 test first failed because Go never requested its Control speed, then passed with the original robot at the stock start. Existing patrol and newly produced-unit profile tests also pass. In the stock game window the raid fires at 190671 ms instead of the preceding build's roughly 327 seconds, depletes the bunker root at 193620 ms, and completes both queued retreat Go orders before ShutDown. The hero stays at the starting position. Validation: cargo fmt --all -- --check; cargo check --workspace; cargo test --workspace; release build; six focused/ignored runtime speed tests; native start/update vectors; all 29 stock --sim-report 900 runs with zero Go speed fallbacks or damage errors. World summaries remain unchanged. Full original movement and mission chronology are not accepted by this change.
* feat(diagnostics): count unit motion gaps by objectValentin Popov10 days3-0/+22
| | | | | | | | | | Track temporary-controller updates and frame time discarded at waypoint boundaries for each object slot, generation and original TMA ID. Preserve completed/dead object records, expose them in --sim-report, and print the same counters when the game window closes. Movement and RNG decisions are unchanged. A bounded Ghidra inspection identifies Go at Behavior.dll RVA 0x2b670 and the MWalker empty-state helper at 0x3dd80. Restoring the MWalker/Control handoff remains open; no fixed-step or remainder-carry rule is substituted for native behavior. Document this explicit stub and bind the addresses to the verified GOG module hash. The licensed stock AutoDemo test first failed with empty observations and now reports actual controller updates and nonzero discarded time. A normal 91-second window run also emits per-generation totals after closure. All 29 stock --sim-report 900 runs preserve the preceding commit's world and combat summaries. At 60 Hz, AutoDemo's largest recorded loss for a single object lifetime is 492516 us; losses are observations of FParkan, not original-game timings. Validation: cargo fmt --all -- --check; cargo check --workspace; cargo test --workspace; release build; focused unit and ignored licensed-stock tests; stock AutoDemo window; all 29 mission coverage runs. The native movement solver and original chronology are not accepted by this diagnostic change.
* fix(behavior): exclude depleted objects from clan resourcesValentin Popov10 days2-8/+22
| | | | | | | | | | Apply the original Behavior resource distributor's 0xfffe state guard before resource callbacks in both passes. Keep the object, distributor row, shares and previous scratch words intact. Move the two-pass driver out of lib.rs into resource_distribution.rs without changing its allocation arithmetic. The GOG Behavior.dll RVA 0x19e80 oracle preserves seeded scratch fields and performs only lookup/state callbacks for a depleted object. The licensed stock mission-19 raid reduces clan power output from 10.07 to 10 per second after bunker depletion while retaining its live world object and distributor entry. The small 0.07 contribution is below the window title's display precision. Verified the stock raid in the game window with the hero at the starting position: bunker root reaches zero at 329760 ms, Attack finishes and queued retreat begins. Destruction visuals and other Control lifecycle paths remain incomplete; this does not establish whole-mission parity. Validation: cargo fmt --all -- --check; cargo check --workspace; cargo test --workspace; release build; focused Rust and licensed-stock tests; native DLL oracle; all 29 stock missions at --sim-report 900 (existing motion_factory_5 stub allowed). No new unsupported commands or damage errors, and world summaries match the preceding commit.