aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-script/src
Commit message (Collapse)AuthorAgeFilesLines
* fix(ai): identify intruders during base defenceValentin Popov5 days1-0/+19
| | | | Read the live target class and preserve the existing problem record when reweighting its priority. The stock replay now reaches group recruitment during base defence.
* feat(ai): execute scripted mine constructionValentin Popov10 days2-84/+265
| | | | | | | | | | | | | | | | | | | | Mission 29 stopped before choosing a deposit. Implement Handler(40)'s vacant deposit and weakest enemy mine policy, preserve its partial output writes and reserve the chosen site. Follow the script's tail transfer into BUILD_MINE with the original problem context and cells. Move event execution out of the large script module and report stops at the actual destination event. Use the existing prepared deposit slot for the builder's mine order. Completion registers its controls, ore buffer and logical ID with the regular resource loop. Track mine queries by clan, target and coordinates in --sim-report. Validation: fmt, workspace check/tests; licensed stock-start tests construct a working mine, collect ore and subsequently construct a working factory. Calls to GOG ai.dll confirm mine choices/output writes and VM event transfer behavior. The 900-second stock mission now stops only at the research transition 8. Window validation reaches mine creation from the stock start; construction animation was outside the player's view and has not been accepted visually. Native ArealMap deposit binding, builder resupply and live BAS cuts remain open.
* feat(ai): carry ore from clan mines to storageValentin Popov2026-11-141-2/+6
| | | | Resolve the stock transport order against the newly produced unit. Move between owned endpoints and limit transfers by rate, source stock and destination space. The window logged the first departure and the stock simulation completed an unloading cycle. Native roster selection was called directly. Port approaches and rates remain approximations.
* feat(ai): dispatch scripted warbot groupsValentin Popov2026-11-141-1/+1
| | | | Single.01 selects a free warbot for the capture problem and issues a patrol around the moving capturer from stock startup. Group recruitment uses the supported TAKE_BY_HITS branch. Priority preemption and group expression scheduling remain open.
* fix(ai): preserve raw script problem argumentsValentin Popov2026-11-141-32/+26
| | | | Keep the target logical ID across Handler(2) and Handler(29). Verified slots 0, 1 and 2 with GOG ai.dll at RVA 0xc182. Single.01 now distinguishes nearby building IDs and leaves robot selection as the next blocker.
* feat(ai): select targets for scripted capture requestsValentin Popov2026-11-141-2/+3
| | | | Confirm the target ranking, duplicate exclusion and strength output with GOG ai.dll at RVA 0xc847. Single.01 reaches PBM_BUILDING_CAPTURE from its stock start. The executor selection remains pending.
* fix(script): copy live DWORD values between script cellsValentin Popov2026-11-141-6/+33
| | | | The native record-copy branch covers 73 DWORD-to-DWORD instructions in the shipped shared varset. Stock mission 11 now copies the protection request value and reaches group assignment at Handler(25).
* feat(ai): start the highest-priority clan script problemValentin Popov2026-11-141-0/+5
| | | | Open the matching Start section after Problems0, expose its arguments, and support completion and unreserved placed-unit selection. Two Fortresses enters its laboratory job and reaches Handler(6). Timing, ties and continuation remain explicit approximations.
* feat(script): query clan storage and follow forward jumpsValentin Popov2026-11-141-1/+52
| | | | Use live storage capacity for Handler(16), expose the unbound research policy as a counted Handler(56) stub, and honor forward control-3 jumps. Checked storage arithmetic, flag truthiness and raw jump behavior by calling ai.dll. Stock Single.01 now reaches problem submission.
* feat(ai): read free clan power in problem scriptsValentin Popov2026-11-141-5/+63
| | | | The typed event host stores the finite or negative float result in the script cell. A direct call to ai.dll verifies available minus requested power. Single.01 evaluates the energy branch and reaches its mine resource query.
* fix(script): honor numeric condition scopes during InitValentin Popov2026-11-141-29/+127
| | | | Shares condition execution with Mission and compares a float left operand as f32. Native ai.dll confirms all six operators on the observed difficulty comparison. The complete 900 s corpus has no crashes or periodic Mission stops; remaining Init stops are Handlers 15 and 68.
* fix(script): evaluate products before adding formula termsValentin Popov2026-11-141-7/+49
| | | | Reuses the original operand formats and rounds each product before adding or subtracting. The original ai.dll agreed on three campaign difficulty expressions. Mission 19 now reaches comparison branches in Init.
* feat(script): evaluate scenario deadlines and timeout testsValentin Popov2026-11-141-21/+24
| | | | Handler(59) stores a DWORD deadline in Init or Mission. Handler(60) compares it strictly against the current scenario clock. The original ai.dll confirms overflow and the equality boundary. Mission 16 now reaches its scheduled message.
* feat(ai): issue scripted place patrols from clan InitValentin Popov2026-11-141-3/+3
| | | | Handler(15) читает живые клетки и направляет размещённого варбота в указанную точку. Кампания 01, миссия 02 при штатном старте ставит четыре патруля и продолжает Init до Handler(51).
* fix(script): continue clan Init past the research stubValentin Popov2026-11-141-0/+19
| | | | Оставляем строгую загрузку прежней. В игровом режиме команда без результата отмечена по клану и номеру инструкции, следующие команды исполняются. На штатных ресурсах все 29 миссий запускаются, 12 вызовов дошли до заглушки, а Single.01 завершила Init без обрыва.
* feat(runtime): enable the Teleport mobile HQ objectiveValentin Popov2026-11-141-0/+7
|
* feat(runtime): execute scripted place patrol ordersValentin Popov2026-11-141-64/+65
|
* fix(runtime): set tutorial production thresholds from live clansValentin Popov2026-11-141-11/+123
|
* feat(runtime): trigger tutorial voices from tactical areasValentin Popov2026-11-141-2/+18
|
* feat(runtime): dispatch the periodic Mission script eventValentin Popov2026-11-141-11/+148
|
* feat(runtime): start missions with explicit Init stubsValentin Popov2026-11-141-16/+55
|
* fix(script): apply immediate Init assignmentsValentin Popov2026-11-141-1/+46
|
* feat(script): evaluate additive FML expressions during InitValentin Popov2026-10-311-26/+460
|
* feat(script): execute numeric FML assignments during mission InitValentin Popov2026-10-311-124/+888
|
* fix(script): read Init guards in native disk orderValentin Popov2026-10-311-30/+42
|
* fix(runtime): execute the first supported Init eventValentin Popov2026-10-201-6/+404
|
* fix(script): preserve scheduler counter incrementValentin Popov2026-10-201-6/+22
|
* chore: simplify project to engine docs and testsValentin Popov2026-09-061-4/+1
| | | | Remove planning and acceptance scaffolding while retaining the native Vulkan mission preview, format readers, runtime algorithms, and ordinary Rust tests. Keep the book aligned with the runnable project and validate checked-in shaders without generated tool metadata.
* feat(script): bind callbacks to runtime varsetsValentin Popov2026-07-181-14/+65
|
* feat(script): resolve default init writesValentin Popov2026-07-181-3/+210
|
* feat(script): resolve handler eight statesValentin Popov2026-07-181-3/+189
|
* feat(script): resolve handler fifteen inputsValentin Popov2026-07-181-3/+299
|
* feat(script): resolve handler thirty dword callbacksValentin Popov2026-07-181-2/+165
|
* feat(script): parse varset numeric defaultsValentin Popov2026-07-181-2/+277
|
* feat(script): model handler two schedulerValentin Popov2026-07-181-1/+234
|
* feat(script): classify VM dispatch selectorsValentin Popov2026-07-181-1/+57
|
* feat(script): decode compiled package framingValentin Popov2026-07-181-0/+254