Ground AI layers could be enabled in any combination, including ones the scripts cannot run (fire control without perception disabled stock aiming and never fired). The configuration now selects one of four complete modes: stock, fire (stock movement, custom fire permission), drive (custom orders and driving, stock firing) and full. The build derives the compiled layer constants from the mode, and an unknown mode is rejected at load time. The offline tank class weights for the AI bot pool move from code into tuning/ground-ai.jsonc (lineupWeights). They apply only when a custom mode is active; stock mode keeps the stock weight of 1 for every vehicle. Verified root and launcher type checks, mode-to-constant compilation for all four modes, rejection of an unknown mode, bot pool weights in stock and custom modes, and temporary 2.61.0.58 game copy builds in full mode (15 script modules packed) and stock mode (no game pack written). BREAKING CHANGE: ground-ai.jsonc drops "enabled" and "layers". Override files set "mode" to "stock", "fire", "drive" or "full" instead.
105 lines
2.7 KiB
JSON
105 lines
2.7 KiB
JSON
// Ground battle AI configuration.
|
|
// Per-client overrides live in <dataDir>/tuning/ground-ai.jsonc. The game copy build compiles the
|
|
// layer settings into game/wtoai/wto_ai_config_common.das; the local server reads lineupWeights.
|
|
{
|
|
// "stock": stock AI only, no scripts packed, stock lineup weights.
|
|
// "fire": stock movement and destinations, custom perception and fire permission.
|
|
// "drive": custom team orders and driving, stock aiming and firing (debugging).
|
|
// "full": every custom layer.
|
|
"mode": "stock",
|
|
|
|
// Relative pick weights of AI tank classes in a battle's bot pool. Offline values; ignored in
|
|
// "stock" mode, where every vehicle keeps the stock weight of 1.
|
|
"lineupWeights": {
|
|
"spaa": 0.12,
|
|
"lightTank": 0.45,
|
|
"tankDestroyer": 0.55,
|
|
"heavyTank": 0.85,
|
|
"mediumTank": 1.15,
|
|
"other": 1.0
|
|
},
|
|
|
|
"cadence": {
|
|
"maxBots": 64,
|
|
"macroTickSec": 0.5,
|
|
"tacticsTickSec": 0.25,
|
|
"navTickSec": 0.2
|
|
},
|
|
|
|
"macro": {
|
|
"openingSplitSec": 40.0,
|
|
"capMaxInsiders": 2,
|
|
"recaptureMinBots": 2,
|
|
"recaptureMaxBots": 4,
|
|
"capStickyBonusM": 165.0,
|
|
"deathZoneRadiusM": 55.0,
|
|
"deathZoneTtlSec": 60.0,
|
|
"deathZoneMinKills": 3,
|
|
"spaaRearOffsetM": 185.0,
|
|
"spaaRelocateSec": 28.0,
|
|
"enemySpawnAvoidM": 180.0
|
|
},
|
|
|
|
"crowd": {
|
|
"personalSpaceM": 14.0,
|
|
"clusterRadiusM": 28.0,
|
|
"clusterMaxAllies": 2,
|
|
"disperseStepM": 24.0,
|
|
"disperseHoldSec": 4.2
|
|
},
|
|
|
|
"terrain": {
|
|
"maxClimbSlopeDeg": 25.0,
|
|
"maxDropSlopeDeg": 20.0,
|
|
"maxWaterDepthM": 0.6,
|
|
"collisionMarginM": 0.3,
|
|
"crestLookaheadM": 28.0,
|
|
"ridgeMaxDwellSec": 10.0,
|
|
"ridgeMaxShots": 2
|
|
},
|
|
|
|
"navigation": {
|
|
// "vehicle_phys" uses custom inputs with native ownership. "movesys" keeps stock movement.
|
|
"driveMode": "vehicle_phys",
|
|
"maxPhysBots": 64,
|
|
"steerSign": 1.0,
|
|
"deadEchoSec": 1.2,
|
|
"controlTimeoutSec": 1.0,
|
|
"cornerBrakeAccel": 1.75,
|
|
"pivotAngleDeg": 75.0,
|
|
"stuckWindowSec": 3.6,
|
|
"stuckMinMoveM": 2.0,
|
|
"unstickReverseSec": 3.0,
|
|
"tacticalReverseDistM": 34.0,
|
|
"tacticalReverseMaxSec": 9.5
|
|
},
|
|
|
|
"tactics": {
|
|
"visionRangeM": 1250.0,
|
|
"visionFovDeg": 115.0,
|
|
"peripheralRangeM": 230.0,
|
|
"engineAudioRangeM": 65.0,
|
|
"shotAudioRangeM": 380.0,
|
|
"radioShareRangeM": 450.0,
|
|
"memoryTtlSec": 12.0,
|
|
"targetStickinessSec": 4.5,
|
|
"peekCooldownSec": 6.0
|
|
},
|
|
|
|
"fireControl": {
|
|
"maxEngageRangeM": 1350.0,
|
|
"baseAlignDeg": 0.42,
|
|
"closeHitRadiusM": 0.85,
|
|
"barrelSettleDegSec": 1.8,
|
|
"settleHoldSec": 0.2,
|
|
"unstabilizedStopSpeedMps": 0.45,
|
|
"stabilizedCreepSpeedMps": 5.5,
|
|
"friendlyCorridorM": 3.2
|
|
},
|
|
|
|
"diagnostics": {
|
|
"telemetry": false,
|
|
"telemetryIntervalSec": 5.0
|
|
}
|
|
}
|