From 85474bcd60f66b610985c90a697351837208528b Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 25 Nov 2026 19:41:17 +0400 Subject: fix(ai): advance clan cycles when units register Advance the signed AI deadline by 1400 ms when an active clan receives a new unit. Connect production, construction, mines, reinforcements and ownership transfers through the shared spawn path. Preserve negative deadlines and count registration notifications per clan. Move the common spawn code and result type out of AutoDemo without changing its public API. Native ai.dll calls cover duplicate and missing IDs, the disabled guard, both registration kinds, negative deadlines and unchanged RNG. A live original warbot registration confirms the same advance. Workspace checks, the licensed stock factory timing test and all 29 900-second reports pass; a stock mission-28 window runs through successive factory outputs. Initial clock phase, complete RNG ordering and full G7 chronology remain open. --- docs/appendices/knowledge-boundaries.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/appendices/knowledge-boundaries.md') diff --git a/docs/appendices/knowledge-boundaries.md b/docs/appendices/knowledge-boundaries.md index 4a2a7314..aec79c28 100644 --- a/docs/appendices/knowledge-boundaries.md +++ b/docs/appendices/knowledge-boundaries.md @@ -471,8 +471,8 @@ TRF-контекст клана и выбирает проект через `Res пересчитывает каталог и выбирает следующий проект; выбор заводской схемы через параметр `69`, свойства для `65` и весь цикл AI во времени ещё открыты. `script_clan_clock_approx` считает циклы AI по кланам: задержка и логические семь секунд перенесены. -Первый срок, сдвиг при регистрации, часы вне паузы и расход RNG кланами без исполняемого `Problems0` -не воспроизведены; генератор пока не обслуживает неподключённые решения AI. +Первый срок, часы вне паузы и расход RNG кланами без исполняемого `Problems0` +не воспроизведены; `script_clan_registration` считает подключённые ускорения при создании и захвате юнита. `script_lab_clock_approx` считает допущенные обновления по клану и лаборатории: таймер 64–127 мс и расход RNG восстановлены; фазы бездействующих объектов и полный порядок событий ещё открыты. -- cgit v1.2.3