diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-25 15:26:49 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-25 15:26:49 +0300 |
| commit | 2796bdcc148e39a033b5f389b83dcfbfe0a3e261 (patch) | |
| tree | e1959350d417f92229ff09737f14e00cf0487425 /crates/fparkan-runtime/src/clan_ai_events.rs | |
| parent | 68b1043749b58e39d671e3937eef73430cbc0ab8 (diff) | |
| download | fparkan-2796bdcc148e39a033b5f389b83dcfbfe0a3e261.tar.xz fparkan-2796bdcc148e39a033b5f389b83dcfbfe0a3e261.zip | |
fix(ai): recognize newly built labs in research queries
Handler(41) searched only the initial mission objects. A constructed lab has an
issued logical ID, so the stub returned missing-object ERROR and sent the script
into an unsupported ST_SOLVING transition. Resolve the lab through the live
logical roster: an unloaded catalog returns false and the original script
finishes the request without inventing a research job.
Validation: fmt, workspace check/tests and an ignored stock-start regression
build a lab, exercise 41 and confirm no script stop or granted technology.
GOG ai.dll calls verify static/dynamic IDs, missing labs, cold catalogs and
backend acceptance. A stock window replay reaches the lab and 41 without the
old stop; the lab itself is outside the player's view. All 29 stock missions
complete 900-second reports with successful exits and no Init, Mission or
clan-script hard stops. Explicit research and gameplay stubs remain counted.
Research catalog 43 and actual research dispatch remain explicit stubs. This
coverage-blocker fix follows the visible scripted-mine construction change.
Diffstat (limited to 'crates/fparkan-runtime/src/clan_ai_events.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/clan_ai_events.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/fparkan-runtime/src/clan_ai_events.rs b/crates/fparkan-runtime/src/clan_ai_events.rs index ac45745e..911392f6 100644 --- a/crates/fparkan-runtime/src/clan_ai_events.rs +++ b/crates/fparkan-runtime/src/clan_ai_events.rs @@ -1042,7 +1042,7 @@ impl LoadedMissionState { ScriptDispatchSelector::Handler(41) if problem.is_some() => { let id = single_dword(&instruction.references, values) .ok_or("Handler(41) requires a laboratory logical ID")?; - let exists = crate::mission_events::placed_logic_objects( + let exists = self.mission_events.logic_objects( &self.mission, world, id, |
