aboutsummaryrefslogtreecommitdiff
path: root/tools/native-frame-capture/NativeFrameCapture.cs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-11-25 11:57:40 +0300
committerValentin Popov <valentin@popov.link>2026-11-25 11:57:40 +0300
commit6cce33ff5b29616fb3d5caf9325729068d0631eb (patch)
tree87aac161166c735ef9924d088ab7498a0bafdee9 /tools/native-frame-capture/NativeFrameCapture.cs
parentc4439f993e3cd30f98acf65d0cd088abbb389232 (diff)
downloadfparkan-6cce33ff5b29616fb3d5caf9325729068d0631eb.tar.xz
fparkan-6cce33ff5b29616fb3d5caf9325729068d0631eb.zip
feat(ai): select free factories for scripted production
Handler(13) UNIT_FREE_UNIT now selects the first live clan object of the requested exact class. Reserved objects, assigned runtime workers and busy factories are skipped. Coverage records each selected logical ID. Campaign mission 8 can execute PBM_ROBOT_NEEDED and replenish its guards. Original GOG ai.dll RVA 0x86fb confirmed roster order, exact class matching, exclusion of busy and reserved entries, and ERROR when none are free. Validated with matching Rust roster cases, a licensed stock mission 8 production test, fmt/check/test workspace, and 900-second simulations of missions 8 and 28. Mission 8 also ran in the window with Vulkan validation. Occupancy is inferred from runtime jobs; native problem-slot ownership, other selection modes and mission chronology beside the original remain open.
Diffstat (limited to 'tools/native-frame-capture/NativeFrameCapture.cs')
0 files changed, 0 insertions, 0 deletions