From 9e5a8867d1a12a66772e6e97c3a0213f9636d56c Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 25 Nov 2026 23:08:00 +0400 Subject: fix(research): advance laboratory Control energy budgets Paid laboratory work read a work-device coefficient that never received a Control budget update. Run the recovered resource clock and budget for laboratories as well as factories, so energy work follows the actual device allocation. Generalize the state and report counters to control_resource_*. A licensed outage regression drains the lab reserve and removes external power: energy work stays fixed while task time advances, then resumes when the original generation is restored. Stock research for both AI clans, player free research and paid factory production still pass. The original laboratory task reaches its class-3 Control owner, whose native budget runs on the same quarter-second resource path as the factory. Verified this in the running stock mission through Behavior 0x2f76e and Control 0x2d340. Workspace fmt/check/tests and release build pass. All 29 stock missions run 900 seconds without script or resource-budget stops. A stock mission-28 window completes paid technologies and starts subsequent projects. Control initial phase, RNG seed, other owners and global ordering remain approximate. --- docs/appendices/script-vm.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/appendices/script-vm.md') diff --git a/docs/appendices/script-vm.md b/docs/appendices/script-vm.md index 5c1ad71e..43496cdb 100644 --- a/docs/appendices/script-vm.md +++ b/docs/appendices/script-vm.md @@ -2058,9 +2058,9 @@ RNG. На третьем порог меняется и шаг выполняе В GOG `Control.dll` (SHA-256 `bcb86318089028548a178b03a21accdce15df0cc85ddd91674cf3c2f55012c6e`) -ресурсная часть RVA `0xbcf0` вызывает бюджет RVA `0x2d340` и у обычного -завода класса `3` в «Двух крепостях». Живой экземпляр использует активную -ветвь и настройку периода `250` мс. Интерфейс устройств, сохранённый у +ресурсная часть RVA `0xbcf0` вызывает бюджет RVA `0x2d340` у обычного +завода и лаборатории класса `3` в «Двух крепостях». Живые экземпляры используют +активную ветвь и настройку периода `250` мс. Интерфейс устройств, сохранённый у Behavior, находится на `Control owner + 0x0c`; это важно при чтении часов и множителей: смещения самой Control считаются от владельца. -- cgit v1.2.3