aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* feat(ui): give warbots standing and route ordersValentin Popov4 days1-0/+1
| | | | Bind the first two commands to the live selection and shared route controller. Build the order panel from the installed compound controls and game font. In stock Two Fortresses, checked Stand, route drafting on the satellite map and terrain, and movement after confirmation with Vulkan validation.
* feat(ui): show live Control stats in the warbot cardValentin Popov4 days1-53/+27
|
* feat(ui): select units from the strategic warbot rosterValentin Popov4 days1-0/+8
|
* feat(ui): show the original strategic resource balancesValentin Popov4 days1-0/+1
|
* feat(ui): enter strategic view from a command postValentin Popov4 days1-0/+1
|
* feat(ui): install turrets and weapons in designer socketsValentin Popov4 days1-0/+2
| | | | | | Read the chassis and turret mount families from MSH Res10 and the attached devices from CTLD. Preserve the parent and mount node in Unit DAT, including separate ammunition subtrees for matching weapons. Verified from the stock Field Camp start: install a turret, mount two identical guns, remove one with its ammunition, and order the edited project through the factory panel.
* feat(ui): build factory projects from a selected chassisValentin Popov4 days1-2/+5
| | | | | | Use researched chassis that fit the selected factory and populate a new Unit DAT from the chassis Control slots and stock default parts. The designer can remove the old chassis, preview the new model, edit its internal parts, and transfer it to the factory. Verified the stock start of Field Camp: remove S-12w, select S-31, install another battery, and queue the resulting project with Vulkan validation enabled.
* feat(factory): register new designs in a running missionValentin Popov4 days1-17/+36
| | | | Load control devices and visuals for saved Unit DAT designs, keep the project bytes pinned for later orders, and select mine reserve drafts by identity. The Field Camp runtime test registers a design without a startup reserve, supplies the factory from a new mine, and checks the released mounts and devices. Stock mission window starts with Vulkan validation clean. Connecting the in-game designer order and world rendering is the next step.
* feat(ui): preview new warbot geometry during a missionValentin Popov4 days1-1/+3
| | | | On stock Field Camp, open a compatible Unit DAT created after start, resize the preview, switch to a resident project, reopen the new project, and return to the mission with Vulkan validation clean. The factory reserve for new geometry is still prepared at mission load.
* feat(ui): open saved warbot projects with distinct geometryValentin Popov4 days1-2/+21
| | | | Prepare saved Unit DAT geometry alongside factory reserves at mission entry and expose compatible, researched files through the designer. Verified a single-gun assembly in the Field Camp window and after factory release with the ore and power supply established in the test.
* fix(ui): validate warbot designs on transferValentin Popov4 days1-1/+1
| | | | Keep the selected model open on a failed research check and post the original central-computer message to the shared pager and history. Verified rejection and corrected production order in the Field Camp window with Vulkan validation.
* feat(ui): save and reopen warbot projectsValentin Popov4 days1-2/+2
| | | | Use original designer art and names for named Unit DAT files. Restore researched designs onto the prepared mounts of a compatible factory scheme. Verified saving, restoring and ordering from the Field Camp window, and production after decoding the saved design in the Constructor.
* feat(ui): edit installed warbot equipmentValentin Popov4 days1-13/+20
| | | | Choose researched internal equipment per mount and build the resulting Unit DAT with the projected Control devices. Verified pointer selection and order in Field Camp with Vulkan validation, and produced the edited two-gun design at the Constructor factory.
* feat(ui): render assembled warbots in the designerValentin Popov4 days1-2/+2
|
* feat(ui): open and transfer recent factory designsValentin Popov4 days1-2/+2
|
* fix(ui): preserve native recent factory project orderValentin Popov4 days1-1/+1
|
* 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 Popov5 days1-0/+1
|
* feat(ui): show live weapon readings in the hero cockpitValentin Popov5 days1-0/+1
|
* feat(ui): show foreign radar contacts on the satellite mapValentin Popov5 days1-0/+4
|
* feat(ui): show owned buildings on the satellite mapValentin Popov5 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 Popov5 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 Popov5 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 Popov5 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 Popov5 days1-0/+10
|
* fix(ai): dispatch building loss to the former clanValentin Popov5 days1-0/+1
|
* fix(control): select authored drive states for mobile power demandValentin Popov5 days1-2/+2
|
* feat(audio): announce exhausted weapon ammunitionValentin Popov5 days1-1/+3
|
* feat(control): switch onboard self-repair from the cockpitValentin Popov5 days1-1/+3
|
* fix(combat): converge manual shots on the authored sight rayValentin Popov5 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 Popov5 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 Popov5 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 Popov5 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 Popov5 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 Popov5 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 Popov5 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 Popov5 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 Popov10 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 Popov10 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 Popov10 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 Popov10 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 Popov10 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 Popov10 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.