aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* feat(ui): plot local detections on the cockpit radarValentin Popov4 days1-1/+1
| | | | Draw each current detection from the occupied unit sensor in camera-relative coordinates, with the original range scale, clan color and screen-pixel marks. Check stock Two Fortresses before and after a free-look turn and exercise the native rectangle and line callbacks.
* feat(ui): show cockpit altitude above mission sea levelValentin Popov4 days1-0/+1
|
* feat(ui): show live weapon readings in the hero cockpitValentin Popov4 days1-0/+1
|
* feat(ui): show foreign radar contacts on the satellite mapValentin Popov4 days1-0/+4
|
* feat(ui): show owned buildings on the satellite mapValentin Popov4 days1-0/+1
| | | | Use the original landscape projection and building sprites. Resolve ownership from live registered objects so a captured building appears at its existing location. Checked the original DLL and verified the factory and storage icons in the stock Field Camp window.
* feat(player): announce vehicle capture when the hero stays outsideValentin Popov4 days1-0/+1
| | | | Restore the original warbot and mobile command centre acknowledgement bank. A capture that also seats the hero remains silent. The bank and non-repeat selection were checked against the native DLL, and a walk from the normal Teleport start queued the authored voice before the objective notice.
* test(runtime): measure firing cadence after weapon deploymentValentin Popov4 days1-12/+28
| | | | The firing range check now readies each selected weapon before measuring its cycle, so mount travel no longer masks objective and capture checks. The separate Constructor check covers mount travel and muzzle pose.
* fix(control): board a captured warbot on the same EnterValentin Popov4 days1-5/+5
| | | | The native Enter branch transfers the neutral owner before requesting a cockpit switch when the pilot device works. The firing-range window captured and boarded each of its two warbots on one press, and Teleport still credited the mobile HQ without boarding.
* feat(control): replenish ammunition on repair padsValentin Popov4 days1-0/+10
|
* fix(ai): dispatch building loss to the former clanValentin Popov4 days1-0/+1
|
* fix(control): select authored drive states for mobile power demandValentin Popov4 days1-2/+2
|
* feat(audio): announce exhausted weapon ammunitionValentin Popov4 days1-1/+3
|
* feat(control): switch onboard self-repair from the cockpitValentin Popov4 days1-1/+3
|
* fix(combat): converge manual shots on the authored sight rayValentin Popov4 days1-0/+2
| | | | | | Read the ray origin and axis from the turret CTL rows. Match the Control sight query and its minimum convergence distance for compatible projectile profiles. Free look keeps using the same turret ray. Checked Control.dll RVA 0x2a610 with near, far, and clear rays. Used the stock firing range window for the changed launch vectors and replayed ordinary player inputs from the normal start through victory.
* fix(combat): continue projectile flight after piercing shieldsValentin Popov4 days1-0/+2
| | | | | | Resolve shield sphere entrances before the first physical hit. Carry leftover volume into later ticks for both player and autonomous fire and let a geometric miss pass through a warbot bounding sphere. Checked Control.dll RVAs 0x1e9f0 and 0xd0c0 in-process with a sphere-only contact. The AutoDemo corpus covers a charged stop, a pierced field, and an unchanged hull on a miss. Ran the workspace suite and AutoDemo in the game window with Vulkan validation.
* feat(movement): migrate animals between authored sitesValentin Popov4 days1-0/+14
| | | | Select shared migration sites on the ArealMap cadence and feed them to the common route follower with the animal flight clearance and Control climb limit. In The Constructor, both medusas lift off and travel around the selected site from their stock positions. The window showed the change at a fixed viewpoint with clean Vulkan validation. Path details and threat acquisition remain approximate.
* feat(factory): offer starter warbots on missions without designsValentin Popov4 days1-0/+7
| | | | Assemble compatible starter designs from local template layouts and the player clan technology table. Keep those layouts out of enemy factory fallback selection. The Constructor replay walked from spawn, captured the factory, ordered from the communicator, boarded the released warbot and won after capturing the hangar. The interactive constructor remains open.
* fix(ai): choose fast combat designs for factory ordersValentin Popov4 days1-3/+3
| | | | | | Prepare a combat catalog entry for SELECT_FASTEST alongside SELECT_STRONGEST. Rank the fast choice using the projected Control forward limit and preserve catalog order on ties. The GOG selector picks 12hel1.dat from the initial scream catalog. Both newly built small factories in Third Part now complete that design from a stock start.
* fix(ai): preserve clan job priorities through factory dispatchValentin Popov4 days1-0/+1
| | | | | | Match GOG ai.dll when refreshing the same request and starting equally weighted jobs. Resolve generated factory IDs when dispatching or awaiting production. Verified from stock starts in Two Fortresses and Third Part. Two Fortresses uses a newly built factory for a combat robot. The small factory in Third Part still lacks a compatible prepared design. The armed stock replay reached late cleanup and left a transport to pursue.
* fix(combat): select shield sectors from assembled warbot boundsValentin Popov4 days1-1/+6
| | | | Use the same assembled sphere for the charged sector and its impact pulse. Prepare the sphere in mission state so headless combat spends the same charge. Verify the sector change by calling Control.dll and observe the pulse during a stock AutoDemo encounter.
* fix(render): drive warbot muzzle flashes with firing phasesValentin Popov4 days1-1/+4
| | | | Use the first CPT node when the effect has no explicit override. Feed the autonomous weapon banks into the same phase sampling path as manual weapons. Confirm the effect constructor and phase reads in the original DLLs, and compare the two cannon flashes in a live AutoDemo window at the same clock sample.
* fix(combat): let projectiles destroy mounted warbot partsValentin Popov5 days1-1/+1
| | | | Resolve mounted model triangles through the sampled socket chain and publish the damage to the assembled Control provider. Remove the damaged geometry, stop weapons whose provider was depleted, and preserve already separated ranges when the chassis later dies. Confirmed with a licensed AutoDemo ray query and two frames around a controlled hit in the Vulkan window.
* fix(combat): charge the drive before refilling weaponsValentin Popov5 days1-2/+18
| | | | Read the resource multiplier from CTL when all authored states agree and price the latest local motion in the existing Control budget. A licensed AutoDemo flyer charges its weapons more slowly when the drive is drawing from the same supply. Control.dll oracle vectors, the AutoDemo window, and all 29 mission startup sweeps pass.
* fix(combat): propagate the loss of a warbot chassis sectionValentin Popov5 days1-232/+4
| | | | Reuse the Control provider traversal after a lethal chassis hit so attached links disappear with the failed section. The GOG Control oracle and a controlled AutoDemo hit confirm the subtree behavior. All 29 missions reached 900 simulated seconds.
* fix(fx): switch warbot smoke with the damage alarmValentin Popov5 days1-0/+12
| | | | Resolve the matching enable and disable selectors from authored CTL alarm groups. Render node-attached smoke and light only while the live Control alarm is active. Verify the native selector against both DLLs and inspect two Vulkan frames around an ordinary AutoDemo alarm. Independent mode-14 triggers and the damage stage cascade remain open.
* fix(combat): apply critical damage on the Control resource tickValentin Popov5 days1-253/+5
| | | | Use the alarm entry amount for sequential wear and disable the onboard repair device before recomputing motion limits. Match the Control.dll alarm and recovery vector. In the stock AutoDemo the affected warbot now loses its remaining movement instead of keeping its last limit. Alarm effects and the full native node cascade remain approximate.
* fix(audio): play engine loops for autonomous missilesValentin Popov5 days1-0/+7
| | | | Keep one spatial Op2 source per flight while it moves, with separate identities from manual and scene emitters. Confirm the original mode 5 phase and verify launch, overlap and teardown on the GOG AutoDemo. Flight-speed changes and a listening comparison with the original remain open.
* fix(gameplay): deploy the hero's weapons before firingValentin Popov9 days1-0/+1
| | | | Sample the CTL 24 mount tracks before the firing track advances. Preserve a single click through deployment and wait for recoil before stowing. Verified from the stock Constructor start with Vulkan validation.
* fix(combat): hold default warbot targets between scansValentin Popov9 days1-0/+1
| | | | Use the Behavior mode-2 score on root XY with the strict 500-unit boundary and preserve the first equal score. Sample the two original timer intervals with their verified CRT step. Keep the prepared hostile-unit roster and disclose the open perception and RNG ordering. In the stock Two Fortresses window the stationary defender turns its turret and fires at the approaching helicopter.
* feat(camera): free look with left Shift from the cockpitValentin Popov9 days1-0/+7
| | | | Route shifted mouse samples to the independent Control camera phases, apply yaw then pitch at the existing cockpit point, and recenter on Shift release or right click. Original World3D dispatch and Control camera calls verified wrapping, clamping, recentering, and the transform. A stock Firing Range window showed the view move and return with hull yaw and turret pitch unchanged.
* fix(input): use the original hero turret elevation rangeValentin Popov9 days1-1/+2
| | | | Apply the World3D mouse Y filter and reverse setting, update the normalized turret request, and use the authored neutral and span to share pitch with the cockpit and elevation tracks. Original World3D dispatch and Control manual mode confirmed the gain and clamp. Stock Firing Range captures show both endpoints and the licensed Constructor test checks the camera and turret together.
* fix(input): match the original hero mouse turn scaleValentin Popov9 days1-1/+4
| | | | Use the stock relative X binding and control settings, filter once per input sample, and carry the filter across collision steps. World3D dispatch confirmed both directions, saturation and angle wrapping. Mission 2 was checked from a stock spawn in a Vulkan window with two view captures. The runtime still applies the requested rotation in one step.
* fix(movement): carry hero walking velocity between ticksValentin Popov9 days1-15/+36
| | | | | | | | | | Take both horizontal limits and acceleration from the active Control profile. Apply the measured slope braking after the input update and clear velocity on a blocking wall, teleport or boarding. Keep the terrain limit during geometric sweeps so momentum cannot skip a narrow cliff. In the stock Firing Line window the hero reached the slope, stopped at its foot, backed away, and coasted on key release.
* fix(movement): limit hero ascent using the Control slope profileValentin Popov9 days1-0/+1
| | | | | | | | | | | Use the normal of the same triangle that supplies terrain support, apply the walking profile's speed envelope, and resolve support again for the shortened step. The existing immediate-speed model still omits native braking inertia. The native Control call confirms the envelope and the downhill bypass. In the stock Firing Line window the hero stopped at the west slope and could walk back. The bridge and factory walkway corpus checks passed.
* fix(audio): start node-attached laser sounds during wind-upValentin Popov9 days1-2/+7
| | | | | | | | | | | Use the weapon descriptor's Control group to select the mode-1 sound rows. Update them through the existing FX clock and spatial Op2 playback for both manual and autonomous weapons. The GOG Control/Effect entry points confirm the selector, epoch and phase threshold, including retriggering after a sample at the exact phase peak. The stock Two Fortresses helicopter started the original sound at both weapon nodes in a Vulkan window.
* fix(ai): rule out unavailable building upgradesValentin Popov9 days1-0/+1
| | | | | | | | | | | Check the class, initial stage and known research status of the next BuildDat scheme before treating Handler(58) as unresolved. Keep the existing coverage stub for candidates that still need full selection and a builder upgrade order. The native eligibility and research walks confirm both gates. The stock Two Fortresses window and 900-second simulation exercise the no-candidate branch. All 29 missions reach 900 seconds.
* fix(ai): exclude light designs from assault research queryValentin Popov9 days1-0/+1
| | | | | | | | | | Use the registered root chassis size and candidate research status to complete the negative Handler(65) branch. Keep the coverage stub when a researched candidate still requires weapon rating and AI priority. The initial native catalog matches the Rust exclusions. The stock Two Fortresses window and 900-second simulation keep the capture branch, and all 29 missions still reach 900 seconds.
* fix(combat): recognize hits absorbed by shieldsValentin Popov9 days1-2/+3
| | | | | | Use the same impact result for manual fire and autonomous weapons. A shield that spends its charge and absorbs a whole shot completes the impact without reporting an unavailable target. Keep the existing hull damage API for callers that only need remaining health. Checked in a window on the stock Two Fortresses map. The laser first ended at the shield and then reduced hull health after the sector was depleted. At 180 seconds of AutoDemo the false unavailable reports disappear and the destruction sequence is identical.
* fix(terrain): cut basements when scripted buildings finishValentin Popov9 days1-1/+2
| | | | | | Use the authored footprint to rebuild the window terrain, floor support and shadow receivers together. Keep terrain draw slots stable across the rebuild, and publish the corrected building height in the construction frame. Verified in a stock Single.02 window with Vulkan validation while the clan built a plant. Headless terrain and native overlap and removal semantics remain open.
* refactor(terrain): share BAS projection for live building posesValentin Popov9 days1-0/+4
| | | | Move the authored contour projection out of the app so the same geometry can be prepared from an initial root or a live construction pose. The licensed stock Third Part construction test builds the real factory foundation and verifies that the original ground surface drops out beneath it. Constructor's normal Vulkan start retains clean validation.
* fix(render): reveal buildings when scripted construction endsValentin Popov9 days1-1/+7
| | | | Publish completed constructions with the same fresh world snapshot that the render tick consumes. Activate their prepared render roots and collision bindings through the existing spawn path. An unmodified Third Part start shows the actual factory appearing on the site between two Vulkan frames. Terrain rebuilding for a new basement remains open.
* fix(mission): recognize the exit from the teleporter floorValentin Popov9 days1-3/+4
| | | | | | Behavior.dll at 0x18310 evaluates the cylinder with a candidate position queried through 0x14b30. Reuse the authored hero spawn clearance for the floor-level walking probe. Keep the cylinder from the licensed DLL oracle and the asset's original center. The stock Teleport input replay captures the portal, transfers to the lower passage and renders the victory at the glowing exit. Correct the focused fixture to use the actual factory and laboratory communicator floors.
* feat(mission): open the main teleporter's lower passageValentin Popov9 days1-1/+11
| | | | | | Use the authored Res17 entry and destination markers for an unboarded hero at an owned main teleporter. The original Behavior.dll entry callback at RVA 0x18ac0 checks the owner, hero and generators, then transfers to the marked destination. Original SHA-256 ddfbdbde07832358fe6e35e01c8dba9b58e7313789498b6049ed51d4ed9baf99. Verified with the licensed transfer regression and a Vulkan input replay from the untouched Teleport mission start through the capture, transfer and lower passage. Generator selection and the hero contact point remain approximate.
* feat(factory): order schemes with selected internal partsValentin Popov9 days1-36/+12
| | | | On the stock Constructor map, walk to the factory communicator, claim it, order the revised scheme, and walk back outside. The released custom robot advances the production objective. Check that an unresearched part prevents a new custom order before it uses the free quota.
* feat(player): carry inertia across manual flight inputsValentin Popov9 days1-142/+2
| | | | Use the current Control linear limits and the acceleration ramp exercised through the GOG Control DLL at RVA 0x153c0. On the stock Teleport map, walk to the helicopter, board, climb and move forward, release the controls to coast into a hover, then descend.
* feat(player): drive boarded ground warbots with chassis limitsValentin Popov9 days1-0/+1
| | | | Check the stock Two Fortresses bunker exit, approach and boarding in the game window. Forward input uses the live cap and a chassis with a zero lateral cap holds its position on sideways input.
* fix(player): use the Control forward limit for walkingValentin Popov9 days1-2/+14
| | | | Read the live Control profile for walking along the body's heading. The stock Firing Range window advances at roughly 14 units per second while the key is held. Size collision sweeps from actual requested displacement so the stock factory entrance, passage and exit still work.
* feat(player): play footsteps on ground and building floorsValentin Popov9 days1-1/+14
| | | | 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 days1-0/+5
| | | | 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 days1-0/+5
| | | | 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.