diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-25 20:24:27 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-25 20:24:27 +0300 |
| commit | 0cd6359c4abc90b458a2b90daadccdb6aee8e2c4 (patch) | |
| tree | 7d98faf820dfa78b10b85d96d50a0ea9145686cc /docs/tomes/06-behavior.md | |
| parent | e6b0ced735a71002847f5060339a7c2f37798fbb (diff) | |
| download | fparkan-0cd6359c4abc90b458a2b90daadccdb6aee8e2c4.tar.xz fparkan-0cd6359c4abc90b458a2b90daadccdb6aee8e2c4.zip | |
fix(ai): expose the native research catalog scan status
Handler(56) returned a constant zero and was described as an automatic
research permission flag. It actually normalizes the cached candidate scan
byte. Read ResearchCandidateSet.status without refreshing the catalog and
report queries by clan and result instead of counting them as stubs.
GOG ai.dll SHA-256 c19cd6cd31cd2896f8c4ba0f0e700dd3408aec8182daaf4863d98a7d233a2abc:
Handler(56), RVA 0xe430, reads AI+0x431. Native calls to this getter and the
chooser at 0x10f90 confirm that finishing the last candidate preserves the
old scan flag until the next refresh. Empty/processed sets, missing pending
candidates, stale flags, and noncanonical nonzero bytes were exercised.
A live stock Single.01 query also returned zero from the same cached byte.
The shipped scream.scr condition suppresses the laboratory request for a
nonzero result. An ignored resource test executes that original condition
and request for cached bytes 0, 1 and 255; an ordinary Rust test covers the
cached-state semantics and missing catalog. This isolated branch check does
not establish that an entire mission has exhausted all research naturally.
Validated fmt, workspace check/tests, the licensed scenario-branch test and
the release build. All 29 stock missions pass --sim-report 900 without new
script stops; stock mission 28 also runs in the window with ongoing research
and the native zero result. None of these stock runs reached a nonzero scan
flag. Handler(58) upgrades and Handler(65) candidate power remain explicit
stubs, and full timed AI/mission parity remains open.
Diffstat (limited to 'docs/tomes/06-behavior.md')
| -rw-r--r-- | docs/tomes/06-behavior.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/tomes/06-behavior.md b/docs/tomes/06-behavior.md index ed35be2e..1004dad0 100644 --- a/docs/tomes/06-behavior.md +++ b/docs/tomes/06-behavior.md @@ -2679,6 +2679,16 @@ FParkan повторяет этот порядок: пересчитывает Ð старта продолжает исследования после первой технологии, включая бесплатных потомков новых проектов. +Запрос `56` читает сохранённый результат обхода каталога, а не разрешение +на исследование. В той же GOG `ai.dll` RVA `0xe430` возвращает 1, если байт +`AI+0x431` ненулевой, и 0 в противном случае. Сам обход `0x10f90` начинает +с единицы и сбрасывает её в ноль, встретив хотя бы одного кандидата с нулевым +статусом. Поэтому обработка последнего такого кандидата ещё не меняет ответ: +единица появится после следующего обхода, уже не встретившего непроверенных +записей. Запрос не обновляет каталог. Вызовы DLL подтвердили сохранение +этого состояния и нормализацию ненулевого байта; FParkan передаёт его +сценарию и считает ответы по клану в `script_research_scan_status`. + Параметр `69` относится к выбору схемы для завода. По инструкциям потребителя RVA `0x10abc` он задаёт диапазон случайного смещения в отсортированном списке; исполнение этой ветки и восстановление свойств кандидатов для `65` |
