aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src
Commit message (Collapse)AuthorAgeFilesLines
* fix(combat): apply critical damage on the Control resource tickValentin Popov5 days6-365/+561
| | | | 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 days2-2/+14
| | | | 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(combat): load CPT launch points for rocket racksValentin Popov5 days1-1/+20
| | | | | | | | | | Read the component's authored CPT when its weapon records reference firing rows. The stock medium and heavy racks have no muzzle flash row, but their 16 and 9 launch points belong to the weapon cycle. The licensed battery test verifies both rack layouts. A runtime replay from the stock Two Fortresses start records heavy rocket launches from the restored racks. All 29 stock missions reach 900 simulation seconds.
* fix(combat): accept weapon CPT points with distinct metadata wordsValentin Popov5 days1-2/+40
| | | | | | | | | | | | Control.dll caches the node from CPT offset +4 at RVA 0xb210 and uses that node for the point and direction at RVA 0x1b4f0. A native call with the medium cannon's words 3 and 2 selected node 3. Rejecting those different words disabled the authored bb_m_02 cannon. The licensed regression finds the cannon in the stock medium warbot. Both enemy medium warbots fire in the normal-start input replay of Two Fortresses. The 29 stock missions still reach 900 simulated seconds. Rocket racks without resolved CPT lists remain outside the weapon bank.
* fix(gameplay): ground the hero when a warbot is destroyedValentin Popov5 days3-7/+41
| | | | | | | | | | | | | A passenger kept the destroyed chassis root height and carried that offset into walking. In Two Fortresses this left the hero above the entrance to the last bunker. Put the hero on the terrain at the last chassis position, and retain the current elevation when the chassis was on a building floor. The licensed chassis test reproduces the old height and verifies the ejection after projectile damage. The stock Two Fortresses replay confirms the height correction during combat. Workspace checks and a Vulkan validation run from the normal start passed. Native ejection placement and the flying vehicle case remain open.
* fix(gameplay): fire hero projectiles along the posed muzzleValentin Popov9 days1-7/+21
| | | | Use the CPT direction after the current node, component mount, and body transforms. Validate the raised barrel axis with the original Constructor resources.
* fix(gameplay): deploy the hero's weapons before firingValentin Popov9 days3-32/+255
| | | | 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(render): drive manual firing flashes from linked barrel nodesValentin Popov9 days1-15/+112
| | | | | | Use the current authored barrel blend as Effect mode 4 input when Control links the effect to that node. Leave projectile release and direct shot audio on their existing clocks. Verified the bound node and phase flags against GOG AniMesh and Effect, covered the stock Constructor cannon, and compared the flash at two phases in a validation-clean mission window.
* fix(factory): allocate orders within the selected design reserveValentin Popov9 days1-10/+42
| | | | The renderer prepares eight roots per design. Remove the additional shared gate that blocked an unrelated player blueprint when enemy designs filled eight roots. The licensed allocation case and a stock Vulkan window order through release both pass.
* fix(ai): rank capturers by Control travel timeValentin Popov9 days2-8/+37
| | | | The Handler(14) oracle executes ai.dll with the real Control selector 0x91 and verifies faster distant candidates, the one-second bias and the minimum speed. Use the same current forward limit in the stock capture query. Original roster ordering and task preemption remain approximate.
* fix(gameplay): activate authored building repair padsValentin Popov9 days1-20/+28
| | | | Discover Rech volumes on buildings regardless of facility subtype. Stock Two Fortresses assets contain these volumes in its fort and generator; the fort restores health in the Vulkan window after a controlled damage sample. Service rate and supplies remain open.
* fix(building): use authored capture field timingValentin Popov9 days1-4/+49
| | | | The paired NDP tracks and the constant CTLD multiplier set the capture field transition rate. Control.dll reaches phase 1 after five seconds on the Constructor plant, and the stock window reproduces the transition after capture. The opening trigger remains approximate.
* fix(combat): hold default warbot targets between scansValentin Popov9 days3-19/+143
| | | | 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.
* fix(combat): show muzzle flashes for manual fireValentin Popov9 days2-11/+25
| | | | Send the player's linked Control row through the existing firing flash sampler. On the stock Constructor start, the 25 mm cannon emits the authored sprite and a light at the muzzle from an external camera. Full node-driven mode-4 phase remains open.
* feat(camera): free look with left Shift from the cockpitValentin Popov9 days3-39/+148
| | | | 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 days3-89/+180
| | | | 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(movement): carry unfinished hero turns across ticksValentin Popov9 days3-33/+84
| | | | Use the angular limit in Control profile word 11 and preserve the unconsumed phase. The original Control read and write dispatch and orientation update delivered 0.5022847 then 0.4401929 radians at two 10 ms samples. The same steps changed the view in a Vulkan window from the stock Firing Range start.
* fix(input): match the original hero mouse turn scaleValentin Popov9 days4-9/+159
| | | | 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 days6-108/+270
| | | | | | | | | | 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 days3-47/+128
| | | | | | | | | | | 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): attach the engine loop to the player's missileValentin Popov9 days1-0/+5
| | | | | | | | | | Prepare velocity-driven Op2 sounds with the projectile's CTL attachment. Move their source with the active flight and stop it when the flight ends or its slot is reused. Keep launch as a separate one-shot. The GOG phase function confirms the missile's 0 to 1 phase range. In the stock Firing Line window the engine loop began at the tail and stopped on terrain contact.
* fix(audio): start node-attached laser sounds during wind-upValentin Popov9 days3-3/+100
| | | | | | | | | | | 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 days3-3/+194
| | | | | | | | | | | 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 days3-8/+109
| | | | | | | | | | 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 days4-15/+65
| | | | | | 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 days2-1/+29
| | | | | | 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 days3-2/+167
| | | | 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 days3-13/+34
| | | | 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(ai): avoid closed hallway links when routing capturersValentin Popov9 days2-22/+42
| | | | | | The original GOG ArealMap.dll gate at RVA 0x9cb0 accepts an all-ones mask without a device and rejects zero. Confirmed both returns by a direct DLL call. Filter unsupported links while searching from the communicator, so a shorter closed route cannot shadow an accessible entrance. The stock Two Fortresses 900-second run no longer records capture approach stubs. Its AI takes the mine via the authored gallery, with the ownership change also reproduced in the Vulkan window. Symmetric CTLD door behavior is preserved.
* fix(mission): recognize the exit from the teleporter floorValentin Popov9 days3-15/+29
| | | | | | 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 days3-3/+167
| | | | | | 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.
* test(factory): use communicator floors in the paid order fixtureValentin Popov9 days1-9/+15
| | | | The Field Camp fixture used the previous height of the factory communicator. Take its standing point and the bunker standing point from their loaded floors. This restores the licensed test for completing four paid orders and releasing the scripted patrol.
* feat(factory): order schemes with selected internal partsValentin Popov9 days3-57/+301
| | | | 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 days4-217/+403
| | | | 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 days4-2/+146
| | | | 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 days2-14/+53
| | | | 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 days3-17/+71
| | | | 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/+83
| | | | 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 days6-13/+257
| | | | 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 days2-9/+29
| | | | 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-23/+45
| | | | 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-18/+159
| | | | 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 days1-0/+14
| | | | 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 days1-3/+3
| | | | 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 days5-59/+218
| | | | 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 days7-45/+359
| | | | 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 days6-15/+166
|
* fix(combat): keep autonomous weapons active on travel ordersValentin Popov9 days1-4/+24
|
* fix(combat): use authored range for autonomous weaponsValentin Popov9 days3-19/+113
|
* fix(render): size warbot shield pulses from mounted modelsValentin Popov9 days3-6/+133
|