aboutsummaryrefslogtreecommitdiff
path: root/docs/appendices
Commit message (Collapse)AuthorAgeFilesLines
* fix(ai): dispatch attacks after a scripted unit diesValentin Popov2026-11-151-1/+3
| | | | Match Handler(39) against the live logical-object registry and pass Problems0 attack orders to the existing task. The stock mission 20 regression exercises the branch with the checked warbot present and then removed. The original GOG AI query was called directly for present and missing IDs. Mission 20 completed 900 simulated seconds without a clan-script stop and started in the window with clean Vulkan validation.
* fix(player): board the selected friendly warbotValentin Popov2026-11-151-2/+3
| | | | | | Route the F command to the cockpit sight selection and keep that target for Enter. Use the original strict 20-unit horizontal reach and preserve the working Control gate. Select the neutral target immediately after capture. The original iron3d distance block accepts 19.99, rejects 20 and rejects larger values. A windowed stock Teleport run selected and boarded the helicopter through the ordinary input handlers, then climbed, with Vulkan validation clean.
* fix(render): arbitrate sun glare against world and foliageValentin Popov2026-11-151-0/+2
| | | | | | Sample active alpha-blended materials at the sun center ray intersection and check terrain through the scene far plane. Preserve native separate disk submission and per-pixel scene compositing. The stock Firing Range opened with Vulkan validation. Local camera views showed the disk and flare over the ridge, partial disc coverage behind a leaf, and full coverage behind a trunk. The focused regression covers opaque and transparent texels plus terrain beyond half of the far plane.
* feat(fx): render manual laser projectile trailsValentin Popov2026-11-141-0/+2
| | | | | | Load the constant-width Op5 layers and their original materials from the projectile Control group. Draw the sampled segment through its first contact and hide it after that frame. Coalesce native subdivisions while keeping both layers. Effect.dll RVA 0x2a20 was checked directly with two world positions. A diagnostic input replay started Firing Range on the original map, crossed the bridge, captured and boarded its flying warbot, climbed, and fired. The two trails are visible on the terrain-hit frame with Vulkan validation clean.
* fix(player): preserve clearance above bridge decksValentin Popov2026-11-141-1/+2
| | | | | | Resolve the preceding walking surface before switching between terrain and mesh floors. Preserve the outdoor spawn clearance across the deck while the lower bunker spawn keeps the existing near-floor behavior. The licensed Firing Range test walks from the stock spawn over both bridge sections and checks the ramp and return to terrain. The Two Fortresses bunker exit still passes. The stock Firing Range opens with Vulkan validation clean.
* feat(ai): execute tower construction ordersValentin Popov2026-11-141-2/+4
| | | | | | Use the first BuildDat scheme for the requested class, check learned components, and route the builder before spending onboard ore. The Behavior.dll oracle rejected the stock scheme and returned 1100 ore after unlocking the components. The stock mission 28 window showed the refusal with its original tech tree. A licensed prepared test exercised construction and ore deduction. Onboard supply remains required pending warehouse refill.
* feat(ai): find and reserve sites for scripted constructionValentin Popov2026-11-141-0/+3
| | | | Handler 18 scans base rings, checks terrain and clearance, and writes the site back to the script. The stock Two Fortresses window found a tower site and reached the builder order. The native DLL returned the expected site with and without a reservation, and zero for missing areas. The builder task remains explicit in coverage.
* feat(ai): carry ore from clan mines to storageValentin Popov2026-11-142-4/+5
| | | | 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): build the clan transport from the AI catalogValentin Popov2026-11-141-2/+5
| | | | | | Let a scripted transport order survive a busy factory and use the unique eligible design from the clan technology table. The AI reserves its transport independently of the player scheme list. Two Fortresses released sml_cargo.dat from the stock start in the FParkan window and the licensed regression covers both factories. The x86 DLL chooser confirmed class, readiness, and fastest selection. Transport routes and live timing parity remain open.
* feat(ai): keep the scripted factory patrol activeValentin Popov2026-11-141-1/+3
| | | | | | Run the active factory protection event before Problems0. Its group retains assigned warbots and can recruit replacements. Release the patrol when the factory is lost. The stock Two Fortresses run assigned a patrol around the enemy factory in both simulation and the Vulkan window. A direct x86 DLL call confirmed Handler(45) sums assigned ratings and skips free slots. Live comparison with the original remains open.
* feat(ai): evaluate factory guards and threats to the baseValentin Popov2026-11-141-1/+6
| | | | Single.01 reaches the end of Problems0 and enters its building protection and construction jobs. Confirm radius boundaries, first-factory order, hero priority and duplicate exclusion via GOG ai.dll. Unavailable building upgrades log a stub and return no eligible target.
* feat(ai): wait on scripted capture and group conditionsValentin Popov2026-11-141-2/+3
| | | | Single.01 now reaches ST_SOLVING after dispatching a capturer and patrol. Compare the capture and destruction predicates with the original ai.dll at RVA 0x5180. Keep the default OR_TASK behavior and report the approximate lifecycle.
* feat(ai): dispatch scripted warbot groupsValentin Popov2026-11-141-0/+3
| | | | 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.
* feat(ai): select enemy buildings beyond the clan base radiusValentin Popov2026-11-141-3/+3
| | | | 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): route capturing robots to building communicatorsValentin Popov2026-11-141-2/+3
| | | | Use the communicator triangles as an explicit approximation to the building approach. Share ownership and distributor transfer with player capture. Single.01 reaches the target XY in terrain routing, with the interior height gap still blocking transfer. The capture check rejects the wrong floor.
* feat(ai): send scripted capturers toward hostile buildingsValentin Popov2026-11-141-0/+3
| | | | Single.01 dispatches its placed warbot and later factory robots from stock startup. Approach uses the shared movement task. Ownership transfer, native approach points and the script completion expressions remain open.
* fix(ai): preserve raw script problem argumentsValentin Popov2026-11-141-4/+7
| | | | 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-0/+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.
* feat(ai): evaluate clan combat strength in scriptsValentin Popov2026-11-142-0/+9
| | | | Use the live roster and Control weapon and capacity data in Handler(38). The original ai.dll rating formula was exercised with three capacity vectors. Single.01 reaches Handler(35) and retains factory production. Remaining ammunition and the exact selector 0x36 capacity are reported as an approximation.
* fix(ai): propagate problem priority to dependent ordersValentin Popov2026-11-141-0/+3
| | | | Read Handler(12) from the active problem, as verified by calling ai.dll. The Two Fortresses transport section now submits its dependent production request. Transport assignment and design selection are still uncovered.
* fix(ai): wait for the factory before restarting robot jobsValentin Popov2026-11-142-0/+4
| | | | Track the factory assigned by ST_SOLVING and the ACTION_NOTHING_DOING expression. Stock Single.01 completes the first robot at 27 seconds without duplicate busy-factory rejections. Keep other expression variants explicitly uncovered.
* feat(ai): honor clan construction class limitsValentin Popov2026-11-141-0/+3
| | | | Use the live per-class varset limits and roster count in Handler(11). Both enemy clans in stock Single.02 now request mines and enter their Start sections. Pending buildings and the hangar/lab counters are still uncovered.
* feat(ai): let clan scripts resume mining at existing shaftsValentin Popov2026-11-141-0/+3
| | | | Handle the free-mine lookup and the mine order in Problems0. Preserve a live shaft's deposit binding, claim nearby free reserves, and leave neighboring live shafts alone. Stock Single.02 now reaches the mine limit check instead of stopping on the lookup.
* fix(script): copy live DWORD values between script cellsValentin Popov2026-11-141-0/+3
| | | | 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).
* fix(ai): check scenario deadlines in periodic clan scriptsValentin Popov2026-11-141-2/+2
| | | | Share the Handler(59/60) implementation used by Mission. The stock campaign mission 12 advances from Handler(60) to Handler(47) over 120 seconds. The AI still approximates logical seconds with the mission clock.
* fix(production): let separate factories build concurrentlyValentin Popov2026-11-142-1/+4
| | | | Reserve each slot at order time and advance one order per live factory. Hostile completion no longer changes the player's status. A stock Two Fortresses regression starts the player's factory during an enemy job and observes completions from both.
* feat(ai): build battle robots from clan factory scriptsValentin Popov2026-11-142-0/+9
| | | | Route the construct order from PBM_ROBOT_NEEDED into shared factory ownership, free quota, and paid production. Stock Single.01 builds an enemy robot at 27 seconds in the fixed-step report and about 27.4 seconds in the Vulkan window. Count accepted and rejected orders by clan and factory; configured prebuild selection and the global order slot remain approximations.
* feat(ai): advance clan jobs past unloaded laboratory researchValentin Popov2026-11-142-8/+13
| | | | Bind placed units for the duration of a Start section and report the native unloaded-catalog result with a stub counter. Consider the other pending priorities so the stock factory and transport Start sections are reached.
* feat(ai): start the highest-priority clan script problemValentin Popov2026-11-142-4/+8
| | | | 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(ai): queue clan script problems by native identityValentin Popov2026-11-142-6/+7
| | | | Pass Handler(2) operands through the existing scheduler and require matching script sections. The stock Two Fortresses clan queues research, transport, and robot problems before its combat-strength query. Pending dispatch is counted by clan and problem kind.
* feat(script): query clan storage and follow forward jumpsValentin Popov2026-11-142-3/+11
| | | | 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.
* fix(mining): feed placed mines from nearby depositsValentin Popov2026-11-142-1/+8
| | | | Bind stock mines to TMA reserves within the Behavior collection radius and report the live clan reserve to Problems0. Verified extraction from stock Single.01 and preserved the Field Camp mine order. Single.01 reaches Handler(56) in the 120-second report and renders with clean Vulkan validation.
* feat(ai): read free clan power in problem scriptsValentin Popov2026-11-141-0/+5
| | | | 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(ai): report unloaded research status during problem checksValentin Popov2026-11-141-0/+2
| | | | Handler(65) can continue with the native unloaded-catalog result, with an explicit per-clan count. A direct ai.dll call confirms the unloaded and no-table guards. Single.01 now reaches the float resource result.
* feat(ai): expose clan roster counts to problem scriptsValentin Popov2026-11-141-0/+6
| | | | Handler(49) counts free native-format startup slots and Handler(34) reads the live clan roster. The Two Fortresses reaches the research-dependent Handler(65) from every scheduled Problems0 invocation.
* feat(ai): dispatch periodic clan problem scriptsValentin Popov2026-11-142-0/+9
| | | | Runs the supported Problems0 prefix for AI clans and counts every stop by clan, event and instruction. Single.01 now reaches the native scenario body and identifies Handler(49) as the next unsupported command. Existing defensive behavior remains active.
* feat(ai): dispatch scripted attacks against logical targetsValentin Popov2026-11-142-0/+6
| | | | 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-0/+3
| | | | 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-142-0/+8
| | | | 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/+3
| | | | 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.
* feat(ai): patrol around script-selected objectsValentin Popov2026-11-142-0/+6
| | | | Uses the TMA logical ID to route a warbot around the current position of a building or unit. The original Behavior.dll confirms target class selection and radius. Mission 13 now assigns building patrols at stock startup.
* fix(script): continue clan Init past the base area stubValentin Popov2026-11-141-0/+4
| | | | 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-142-0/+6
| | | | 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.
* fix(script): honor numeric condition scopes during InitValentin Popov2026-11-142-1/+12
| | | | 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-3/+5
| | | | 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(ai): reserve placed units for scenario ordersValentin Popov2026-11-142-1/+12
| | | | 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(script): evaluate scenario deadlines and timeout testsValentin Popov2026-11-142-0/+18
| | | | 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-2/+5
| | | | Handler(15) читает живые клетки и направляет размещённого варбота в указанную точку. Кампания 01, миссия 02 при штатном старте ставит четыре патруля и продолжает Init до Handler(51).
* fix(script): continue clan Init past the research stubValentin Popov2026-11-141-3/+5
| | | | Оставляем строгую загрузку прежней. В игровом режиме команда без результата отмечена по клану и номеру инструкции, следующие команды исполняются. На штатных ресурсах все 29 миссий запускаются, 12 вызовов дошли до заглушки, а Single.01 завершила Init без обрыва.
* fix(player): read flight capability from chassis profileValentin Popov2026-11-141-3/+3
|