feat(launcher): add Bot parameters tuning page for ground AI and lineup weights

Extend readLauncherTuning/writeLauncherTuning and launcher IPC schemas to read, validate, and atomically persist battle.botPoolLimitPerType and nested ground-ai.jsonc overrides (including mode, vehicle class lineupWeights, spawn loadout, and all advanced ground AI sections). Add a dedicated Bot parameters section under Tuning with collapsible groups, bilingual labels, cross-field validation, and per-section reset. Verified with root/launcher typecheck, electron-vite build, 904-key locale parity check, and temp-dir read/write/reset round-trip.
This commit is contained in:
N0VAN0M4LY committed 2026-12-04 03:22:50 +08:00
1 parent 37cbcd806f
commit 2d3287937f
13 files changed
+1432 -22

No files matched your search

@@ -12,6 +12,8 @@
*/
export const GROUND_AI_MODES = ['stock', 'fire', 'drive', 'full'] as const;
export type GroundAiMode = (typeof GROUND_AI_MODES)[number];
export const GROUND_AI_DRIVE_MODES = ['vehicle_phys', 'movesys'] as const;
export type GroundAiDriveMode = (typeof GROUND_AI_DRIVE_MODES)[number];
export interface GroundAiLoadoutConfig {
readonly lowReadyRackThreshold: number;
@@ -83,9 +85,9 @@ export interface GroundAiConfig {
readonly ridgeMaxShots: number;
};
readonly navigation: {
readonly driveMode: string;
readonly driveMode: GroundAiDriveMode;
readonly maxPhysBots: number;
readonly steerSign: number;
readonly steerSign: 1 | -1;
readonly deadEchoSec: number;
readonly controlTimeoutSec: number;
readonly cornerBrakeAccel: number;
+2
View File
@@ -68,9 +68,11 @@ export {
} from './ground-ai/game-pack.ts';
export {
compileGroundAiConfigDas,
GROUND_AI_DRIVE_MODES,
GROUND_AI_MODES,
isGroundAiActive,
type GroundAiConfig,
type GroundAiDriveMode,
type GroundAiLoadoutConfig,
type GroundAiMode,
} from './ground-ai/ground-ai-config.ts';