aboutsummaryrefslogtreecommitdiff
path: root/docs/tomes/06-behavior.md
Commit message (Collapse)AuthorAgeFilesLines
* fix(ai): dispatch attacks after a scripted unit diesValentin Popov2026-11-151-0/+11
| | | | 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-3/+7
| | | | | | 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.
* feat(fx): render manual laser projectile trailsValentin Popov2026-11-141-0/+11
| | | | | | 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/+8
| | | | | | 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-0/+13
| | | | | | 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/+15
| | | | 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-141-0/+10
| | | | 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-0/+15
| | | | | | 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-0/+15
| | | | | | 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-0/+13
| | | | 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-0/+11
| | | | 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/+13
| | | | 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-0/+14
| | | | 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-0/+10
| | | | 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/+6
| | | | 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.
* feat(ai): select targets for scripted capture requestsValentin Popov2026-11-141-0/+13
| | | | 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(mining): feed placed mines from nearby depositsValentin Popov2026-11-141-2/+3
| | | | 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.
* fix(script): continue clan Init past the research stubValentin Popov2026-11-141-2/+6
| | | | Оставляем строгую загрузку прежней. В игровом режиме команда без результата отмечена по клану и номеру инструкции, следующие команды исполняются. На штатных ресурсах все 29 миссий запускаются, 12 вызовов дошли до заглушки, а Single.01 завершила Init без обрыва.
* fix(player): read flight capability from chassis profileValentin Popov2026-11-141-3/+5
|
* fix(player): require working Control device for boardingValentin Popov2026-11-141-2/+12
|
* fix(ai): keep patrol attacks within their assigned areaValentin Popov2026-11-141-1/+10
|
* fix(combat): aim at exposed unit hullsValentin Popov2026-11-141-0/+4
|
* feat(game): show mission outcome over the sceneValentin Popov2026-11-141-1/+4
|
* fix(player): resolve stairs during long framesValentin Popov2026-11-141-0/+4
|
* fix(player): walk through bunker doors onto terrainValentin Popov2026-11-141-0/+14
|
* feat(combat): damage the building part struck by a projectileValentin Popov2026-11-141-1/+12
|
* feat(ai): route skirmish units toward hostile factoriesValentin Popov2026-11-141-2/+13
|
* feat(game): order robots remotely at allied factoriesValentin Popov2026-11-141-5/+7
|
* feat(game): let players choose factory robot schemesValentin Popov2026-11-141-3/+6
|
* feat(game): display localized mission messagesValentin Popov2026-11-141-0/+15
|
* feat(game): show player health and clan resourcesValentin Popov2026-11-141-0/+10
|
* feat(runtime): capture enemy buildings from communicatorsValentin Popov2026-11-141-0/+8
|
* fix(runtime): fail the mission when the local hero diesValentin Popov2026-11-141-0/+13
|
* feat(runtime): let AI guards defend in single missionsValentin Popov2026-11-141-0/+10
|
* feat(runtime): enable free technology orders at laboratoriesValentin Popov2026-11-141-0/+16
|
* feat(runtime): let the player fly warbotsValentin Popov2026-11-141-1/+16
|
* feat(runtime): execute the hero teleport exit eventValentin Popov2026-11-141-0/+18
|
* fix(runtime): capture the main teleport from the communicator floorValentin Popov2026-11-141-0/+5
|
* feat(runtime): enable the Teleport mobile HQ objectiveValentin Popov2026-11-141-4/+15
|
* feat(runtime): use the mission prebuild for factory ordersValentin Popov2026-11-141-2/+8
|
* docs(combat): record the open muzzle pose comparisonValentin Popov2026-11-141-3/+6
|
* feat(runtime): execute scripted place patrol ordersValentin Popov2026-11-141-0/+8
|
* feat(runtime): deploy mines and supply ore to factoriesValentin Popov2026-11-141-0/+18
|
* feat(runtime): build factory robots with ore and powerValentin Popov2026-11-141-1/+13
|
* fix(runtime): recognize the generator capture platformValentin Popov2026-11-141-0/+5
|
* fix(runtime): transfer captured buildings between resource distributorsValentin Popov2026-11-141-2/+7
|
* feat(runtime): support successive factory robot ordersValentin Popov2026-11-141-4/+6
|
* fix(runtime): set tutorial production thresholds from live clansValentin Popov2026-11-141-0/+4
|
* feat(runtime): count exact clan classes in mission scriptsValentin Popov2026-11-141-0/+6
|
* feat(runtime): fire from boarded warbotsValentin Popov2026-11-141-0/+7
|