aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/clan_script_init.rs
Commit message (Collapse)AuthorAgeFilesLines
* feat(ai): load clan research candidates during InitValentin Popov10 days1-4/+15
| | | | | | | | | | | | | | | | | | | Handle the no-result Handler(43) by loading direct AI DAT candidates and running the recovered selector against the clan's TRF. Keep the catalog and its context alive per clan. Share catalog enumeration with transport selection. Match the stock NTFS name order, including underscore placement. A fresh Single.02 run of the original supplied 77 ordered entries, status bytes and selected index 60 (swelbld1.dat); the licensed regression matches that state. Both captured and installed ai.dll match the documented GOG SHA-256. Keep paid laboratory work, extended candidate metadata and Handler(69) explicitly stubbed. The report exposes loaded catalogs separately from those remaining gaps. A loading failure retains an indexed Init stub. Validate workspace fmt/check/tests, licensed live-catalog comparison, all 29 stock missions at 900 seconds without stops or Handler(43) load failures, and mission 29 in a Vulkan-validation window.
* feat(ai): queue scripted movement and raid ordersValentin Popov10 days1-32/+3
| | | | | | | | | | | | | | | | | | | | | Execute Go, Attack and ShutDown through one ordered queue from Init, Mission and clan AI events. Append preserves the active task; replacement clears its tail. Support the appended point patrol ending mission 19's second raid, and count accepted commands by object and order type. Execute the original ai.dll Handler(15) at RVA 0x8054 with its hash guard: move, attack, shutdown and appended patrol reach the unit without a current problem context, with native insertion modes and missing-unit flag 5. Behavior.dll RVA 0x4280 identifies append and replace paths. Native task completion and profile-dependent behavior remain approximate. Test mixed queues, replacement and deferred patrol; run the licensed mission-19 scenario from its stock start through its first movement. Validate fmt, workspace check/tests, release build and all 29 missions for 900 seconds. Mission 19 has both raid messages and no script stops; mission 29's existing counter/construction stops remain. Check the live stock-start window with normal clocks and Vulkan validation. This does not establish mission completion or native movement/combat parity.
* feat(ai): select enemy buildings beyond the clan base radiusValentin Popov2026-11-141-17/+20
| | | | Connect the initial radius limit and Handler(64) target lookup. Compare target IDs with an isolated GOG ai.dll call at RVA 0xe8e7. Campaign branches still depend on their original timers and free-mind conditions.
* feat(ai): dispatch scripted attacks against logical targetsValentin Popov2026-11-141-0/+12
| | | | Resolve the stock logical target and feed it to unit combat. Mission 20 assigns the attack at startup and continues through the remaining Init commands. All 29 original missions completed 15 minutes without a hard Init or periodic Mission stop.
* fix(script): report the uncovered generator search orderValentin Popov2026-11-141-8/+29
| | | | Recognize the stock generator search order as an explicit stub and continue immediately. Mission 13 now completes clan initialization; searching for and capturing a generator still needs the native task.
* feat(ai): queue scenario move orders for mobile unitsValentin Popov2026-11-141-0/+14
| | | | Runs the stock order sequence in mission 16. Both mobile headquarters receive five destinations in script order. Movement uses existing terrain routing until the native Go task is wired.
* fix(script): continue Init past the uncovered AI settingValentin Popov2026-11-141-0/+22
| | | | Handler(69) writes an AI field for nonnegative DWORD operands. Until its consumer is modeled, the observed form is counted as a stub. Mission 10 now runs the subsequent shutdown and patrol orders and finishes clan Init.
* fix(script): continue clan Init past the base area stubValentin Popov2026-11-141-7/+36
| | | | Accepts the observed float form of Handler(68) through a reported gameplay stub. Mission 8 now executes its reservations and reaches the next robot order.
* feat(ai): honor scenario warbot shutdown ordersValentin Popov2026-11-141-8/+16
| | | | Behavior.dll task dispatch selects ShutDown for order 0x13. Stop autonomous motion and fire until a new supported order is assigned. The field-camp clan now completes Init and all three placed warbots receive the shutdown order.
* feat(ai): reserve placed units for scenario ordersValentin Popov2026-11-141-0/+52
| | | | Handler(51) changes availability in the owning clan, matching a direct ai.dll call. Reserved units stay out of the free capturer query. Campaign mission 7 now finishes Init and mission 13 reserves the addressed unit.
* feat(ai): issue scripted place patrols from clan InitValentin Popov2026-11-141-1/+20
| | | | Handler(15) читает живые клетки и направляет размещённого варбота в указанную точку. Кампания 01, миссия 02 при штатном старте ставит четыре патруля и продолжает Init до Handler(51).
* fix(script): continue clan Init past the research stubValentin Popov2026-11-141-0/+24
Оставляем строгую загрузку прежней. В игровом режиме команда без результата отмечена по клану и номеру инструкции, следующие команды исполняются. На штатных ресурсах все 29 миссий запускаются, 12 вызовов дошли до заглушки, а Single.01 завершила Init без обрыва.