From 2dc43ad60e04922c630449f033f52e9e6839e2df Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 1 Dec 2026 14:37:14 +0400 Subject: feat(factory): offer starter warbots on missions without designs Assemble compatible starter designs from local template layouts and the player clan technology table. Keep those layouts out of enemy factory fallback selection. The Constructor replay walked from spawn, captured the factory, ordered from the communicator, boarded the released warbot and won after capturing the hangar. The interactive constructor remains open. --- crates/fparkan-runtime/src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crates/fparkan-runtime/src/lib.rs') diff --git a/crates/fparkan-runtime/src/lib.rs b/crates/fparkan-runtime/src/lib.rs index 85052120..adff6d00 100644 --- a/crates/fparkan-runtime/src/lib.rs +++ b/crates/fparkan-runtime/src/lib.rs @@ -2038,6 +2038,13 @@ fn load_mission_with_options( source, } })?; + if build_schemes.is_empty() + && options.asset_scope == MissionAssetScope::Full + && options.start_autodemo + && request.mode == MissionMode::SingleMission + { + (vfs, build_schemes) = robot_designer::starting_designs(vfs, &mission); + } let mut loaded_scripts = load_mission_scripts(&vfs, &mission, options.asset_scope)?; let asset_manager = AssetManager::new(CachedResourceRepository::with_payload_cache_budget( vfs.clone(), -- cgit v1.2.3