chore(repo): merge tank AI checkpoint for 0.1.6
This commit is contained in:
commit
710c8ecaaa
159 files changed
+35721
-1572
No files matched your search
@@ -131,6 +131,8 @@ function customBotsBlock(plan: BattleLaunchPlan): BlkBlock {
|
||||
setParam(bots, 'wtoTeamACountries', text(plan.countriesAllies.join(';')));
|
||||
setParam(bots, 'wtoTeamBCountries', text(plan.countriesAxis.join(';')));
|
||||
if (plan.mission.groundMode !== undefined) setParam(bots, 'wtoGroundMode', text(plan.mission.groundMode));
|
||||
// The battle's level file: the ground AI loads its navigation pack by this name (native local_mp_nav.c).
|
||||
if (plan.level !== undefined) setParam(bots, 'wtoLevel', text(plan.level));
|
||||
if (plan.maxRespawns === UNLIMITED_RESPAWNS) setParam(bots, 'wtoUnlimitedRespawns', text('1'));
|
||||
setParam(bots, 'numBotRespawnsInMultiSlot', integer(plan.airBotRespawns));
|
||||
setParam(bots, 'numTankBotRespawnsInMultiSlot', integer(plan.tankBotRespawns));
|
||||
|
||||
@@ -8,6 +8,8 @@ import {
|
||||
type GroundAiConfig,
|
||||
type GroundAiDriveMode,
|
||||
type GroundAiMode,
|
||||
type GroundAiNavCosts,
|
||||
type GroundAiPathFollow,
|
||||
} from '@wto/patcher';
|
||||
import type { TankLineupWeights } from '../battle/battle-ranks.ts';
|
||||
import { tuningFiles } from './tuning-loader.ts';
|
||||
@@ -44,14 +46,31 @@ export function readGroundAiTuning(reader: TuningReader): GroundAiTuning {
|
||||
crowd: readCrowdSection(reader.object('crowd')),
|
||||
terrain: readTerrainSection(reader.object('terrain')),
|
||||
navigation: readNavigationSection(reader.object('navigation')),
|
||||
navEngine: readNavEngineSection(reader.object('navEngine')),
|
||||
navCostsTracked: readNavCosts(reader.object('navCostsTracked')),
|
||||
navCostsWheeled: readNavCosts(reader.object('navCostsWheeled')),
|
||||
pathFollow: readPathFollowSection(reader.object('pathFollow')),
|
||||
navBake: {
|
||||
crushableMaxRiExtraHp: reader.object('navBake').number('crushableMaxRiExtraHp', { min: 0, max: 1000 }),
|
||||
},
|
||||
perception: readPerceptionSection(reader.object('perception')),
|
||||
stateMachine: readStateMachineSection(reader.object('stateMachine')),
|
||||
tactics: readTacticsSection(reader.object('tactics')),
|
||||
estimation: readEstimationSection(reader.object('estimation')),
|
||||
threat: readThreatSection(reader.object('threat')),
|
||||
turret: readTurretSection(reader.object('turret')),
|
||||
behavior: readBehaviorSection(reader.object('behavior')),
|
||||
fireControl: readFireControlSection(reader.object('fireControl')),
|
||||
diagnostics: {
|
||||
telemetry: diag.bool('telemetry'),
|
||||
telemetryIntervalSec: diag.number('telemetryIntervalSec', { min: 0.5, max: 60 }),
|
||||
battleStats: diag.bool('battleStats'),
|
||||
statsLogIntervalSec: diag.number('statsLogIntervalSec', { min: 10, max: 600 }),
|
||||
statsSampleSec: diag.number('statsSampleSec', { min: 0.2, max: 5 }),
|
||||
statsSampleRangeM: diag.number('statsSampleRangeM', { min: 50, max: 1000 }),
|
||||
statsRearArcDeg: diag.number('statsRearArcDeg', { min: 30, max: 180 }),
|
||||
trace: diag.bool('trace'),
|
||||
traceIntervalSec: diag.number('traceIntervalSec', { min: 0.1, max: 5 }),
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -173,6 +192,91 @@ function readTerrainSection(terrain: TuningReader): GroundAiTuning['terrain'] {
|
||||
};
|
||||
}
|
||||
|
||||
function readNavEngineSection(engine: TuningReader): GroundAiTuning['navEngine'] {
|
||||
return {
|
||||
enabled: engine.bool('enabled'),
|
||||
allowFallback: engine.bool('allowFallback'),
|
||||
snapRadiusM: engine.number('snapRadiusM', { min: 2, max: 40 }),
|
||||
goalSnapRadiusM: engine.number('goalSnapRadiusM', { min: 5, max: 150 }),
|
||||
pathBudgetMsPerFrame: engine.number('pathBudgetMsPerFrame', { min: 0.05, max: 5 }),
|
||||
trafficCostPerPath: engine.number('trafficCostPerPath', { min: 0, max: 3 }),
|
||||
trafficCostMaxMul: engine.number('trafficCostMaxMul', { min: 1, max: 10 }),
|
||||
trafficHoldSec: engine.number('trafficHoldSec', { min: 0, max: 120 }),
|
||||
cornerOffsetM: engine.number('cornerOffsetM', { min: 0, max: 5 }),
|
||||
};
|
||||
}
|
||||
|
||||
function readNavCosts(costs: TuningReader): GroundAiNavCosts {
|
||||
const read = (key: keyof GroundAiNavCosts) => costs.number(key, { min: 0.1, max: 20 });
|
||||
return {
|
||||
road: read('road'),
|
||||
bridge: read('bridge'),
|
||||
ground: read('ground'),
|
||||
rough: read('rough'),
|
||||
forest: read('forest'),
|
||||
crushable: read('crushable'),
|
||||
shallowWater: read('shallowWater'),
|
||||
chokepoint: read('chokepoint'),
|
||||
};
|
||||
}
|
||||
|
||||
function readPathFollowSection(pf: TuningReader): GroundAiPathFollow {
|
||||
const n = (key: keyof GroundAiPathFollow, min: number, max: number) => pf.number(key, { min, max });
|
||||
const lookahead = {
|
||||
trackedLookaheadMinM: n('trackedLookaheadMinM', 2, 40),
|
||||
trackedLookaheadMaxM: n('trackedLookaheadMaxM', 4, 60),
|
||||
wheeledLookaheadMinM: n('wheeledLookaheadMinM', 2, 40),
|
||||
wheeledLookaheadMaxM: n('wheeledLookaheadMaxM', 4, 60),
|
||||
};
|
||||
if (lookahead.trackedLookaheadMaxM < lookahead.trackedLookaheadMinM || lookahead.wheeledLookaheadMaxM < lookahead.wheeledLookaheadMinM) {
|
||||
throw new TuningError('tuning file ground-ai.jsonc: pathFollow lookahead maximum must not be below its minimum');
|
||||
}
|
||||
return {
|
||||
replanIntervalSec: n('replanIntervalSec', 1, 15),
|
||||
replanGoalMoveM: n('replanGoalMoveM', 3, 80),
|
||||
offCorridorReplanM: n('offCorridorReplanM', 3, 60),
|
||||
lookaheadTimeSec: n('lookaheadTimeSec', 0.3, 5),
|
||||
...lookahead,
|
||||
cornerAngleDeg: n('cornerAngleDeg', 10, 120),
|
||||
cornerLateralAccelMps2: n('cornerLateralAccelMps2', 0.5, 10),
|
||||
cornerBrakeDecelMps2: n('cornerBrakeDecelMps2', 0.5, 10),
|
||||
arriveRadiusM: n('arriveRadiusM', 1, 20),
|
||||
arriveMinSpeedMps: n('arriveMinSpeedMps', 0.3, 6),
|
||||
narrowWallMarginM: n('narrowWallMarginM', 0.2, 6),
|
||||
narrowSpeedMps: n('narrowSpeedMps', 1, 15),
|
||||
bumperRayM: n('bumperRayM', 2, 20),
|
||||
bumperStopM: n('bumperStopM', 0.3, 6),
|
||||
bumperBlockSec: n('bumperBlockSec', 0.2, 5),
|
||||
trafficTtcSec: n('trafficTtcSec', 0.5, 8),
|
||||
yieldWaitMaxSec: n('yieldWaitMaxSec', 0.5, 15),
|
||||
stationarySpeedMps: n('stationarySpeedMps', 0.2, 4),
|
||||
passMarginM: n('passMarginM', 0.2, 4),
|
||||
passSpeedMps: n('passSpeedMps', 1, 12),
|
||||
blockWaitSec: n('blockWaitSec', 0.5, 15),
|
||||
blockTtlSec: n('blockTtlSec', 3, 120),
|
||||
contactGapM: n('contactGapM', 0.2, 3),
|
||||
contactReverseSec: n('contactReverseSec', 0.3, 5),
|
||||
contactRepeatSec: n('contactRepeatSec', 3, 120),
|
||||
stuckWindowSec: n('stuckWindowSec', 1, 15),
|
||||
stuckMinProgressM: n('stuckMinProgressM', 0.2, 10),
|
||||
unstickReverseM: n('unstickReverseM', 2, 25),
|
||||
unstickReverseSec: n('unstickReverseSec', 0.8, 10),
|
||||
unstickRepeatSec: n('unstickRepeatSec', 2, 60),
|
||||
unstickMaxAttempts: pf.int('unstickMaxAttempts', { min: 1, max: 10 }),
|
||||
jamRadiusM: n('jamRadiusM', 2, 50),
|
||||
jamCostMul: n('jamCostMul', 1, 50),
|
||||
jamTtlSec: n('jamTtlSec', 5, 600),
|
||||
giveUpRadiusM: n('giveUpRadiusM', 3, 50),
|
||||
giveUpCostMul: n('giveUpCostMul', 1, 200),
|
||||
rubbleRadiusM: n('rubbleRadiusM', 1, 40),
|
||||
rubbleCostMul: n('rubbleCostMul', 1, 50),
|
||||
rubbleTtlSec: n('rubbleTtlSec', 5, 600),
|
||||
wreckRadiusM: n('wreckRadiusM', 1, 40),
|
||||
wreckCostMul: n('wreckCostMul', 1, 50),
|
||||
wreckTtlSec: n('wreckTtlSec', 5, 600),
|
||||
};
|
||||
}
|
||||
|
||||
function readNavigationSection(nav: TuningReader): GroundAiTuning['navigation'] {
|
||||
const driveModeRaw = nav.string('driveMode');
|
||||
const driveMode = GROUND_AI_DRIVE_MODES.find((candidate): candidate is GroundAiDriveMode => candidate === driveModeRaw);
|
||||
@@ -189,12 +293,8 @@ function readNavigationSection(nav: TuningReader): GroundAiTuning['navigation']
|
||||
steerSign,
|
||||
deadEchoSec: nav.number('deadEchoSec', { min: 0.3, max: 10 }),
|
||||
controlTimeoutSec: nav.number('controlTimeoutSec', { min: 0.3, max: 10 }),
|
||||
cornerBrakeAccel: nav.number('cornerBrakeAccel', { min: 0.5, max: 8 }),
|
||||
movingFireSpeedRampMps: nav.number('movingFireSpeedRampMps', { min: 0.2, max: 5 }),
|
||||
pivotAngleDeg: nav.number('pivotAngleDeg', { min: 25, max: 150 }),
|
||||
stuckWindowSec: nav.number('stuckWindowSec', { min: 1, max: 15 }),
|
||||
stuckMinMoveM: nav.number('stuckMinMoveM', { min: 0.5, max: 10 }),
|
||||
unstickReverseSec: nav.number('unstickReverseSec', { min: 0.8, max: 10 }),
|
||||
tacticalReverseDistM: nav.number('tacticalReverseDistM', { min: 10, max: 90 }),
|
||||
tacticalReverseMaxSec: nav.number('tacticalReverseMaxSec', { min: 2, max: 25 }),
|
||||
};
|
||||
@@ -209,8 +309,15 @@ function readPerceptionSection(perc: TuningReader): GroundAiTuning['perception']
|
||||
normalSpotSec: perc.number('normalSpotSec', { min: 0.1, max: 3.0 }),
|
||||
farSpotSec: perc.number('farSpotSec', { min: 0.3, max: 6.0 }),
|
||||
decayPerSec: perc.number('decayPerSec', { min: 0.2, max: 10.0 }),
|
||||
frontConeHalfDeg: perc.number('frontConeHalfDeg', { min: 10, max: 90 }),
|
||||
peripheralCloseM: perc.number('peripheralCloseM', { min: 30, max: 250 }),
|
||||
gunFovHalfDeg: perc.number('gunFovHalfDeg', { min: 5, max: 90 }),
|
||||
nearAwareM: perc.number('nearAwareM', { min: 30, max: 400 }),
|
||||
nearArcDeg: perc.number('nearArcDeg', { min: 90, max: 360 }),
|
||||
midAwareM: perc.number('midAwareM', { min: 100, max: 1500 }),
|
||||
nearSpotMul: perc.number('nearSpotMul', { min: 1, max: 5 }),
|
||||
midSpotMul: perc.number('midSpotMul', { min: 1, max: 6 }),
|
||||
lookAroundSec: perc.number('lookAroundSec', { min: 2, max: 60 }),
|
||||
lookAroundHoldSec: perc.number('lookAroundHoldSec', { min: 0.2, max: 5 }),
|
||||
discoverScore: perc.number('discoverScore', { min: 0.05, max: 0.95 }),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -221,17 +328,12 @@ function readStateMachineSection(sm: TuningReader): GroundAiTuning['stateMachine
|
||||
throw new TuningError('tuning file ground-ai.jsonc: stateMachine.coverMaxDistM must be > coverMinDistM');
|
||||
}
|
||||
return {
|
||||
preaimAngleDeg: sm.number('preaimAngleDeg', { min: 1.0, max: 30.0 }),
|
||||
movingShotWaitSec: sm.number('movingShotWaitSec', { min: 0.25, max: 5.0 }),
|
||||
shortHaltMaxSec: sm.number('shortHaltMaxSec', { min: 0.5, max: 12.0 }),
|
||||
shortHaltCooldownSec: sm.number('shortHaltCooldownSec', { min: 0.5, max: 20.0 }),
|
||||
turnLaunchSpeedMps: sm.number('turnLaunchSpeedMps', { min: 0.5, max: 6.0 }),
|
||||
coverMinDistM,
|
||||
coverMaxDistM,
|
||||
coverRetreatBudgetSec: sm.number('coverRetreatBudgetSec', { min: 1.5, max: 20.0 }),
|
||||
reloadAdvanceAngleDeg: sm.number('reloadAdvanceAngleDeg', { min: 0.0, max: 45.0 }),
|
||||
hullAngleTriggerDeg: sm.number('hullAngleTriggerDeg', { min: 15.0, max: 75.0 }),
|
||||
hullAngleTargetDeg: sm.number('hullAngleTargetDeg', { min: 0.0, max: 35.0 }),
|
||||
maxTotalHaltSec: sm.number('maxTotalHaltSec', { min: 3.0, max: 40.0 }),
|
||||
stalemateMissShots: sm.int('stalemateMissShots', { min: 1, max: 8 }),
|
||||
stalemateNoShotHalts: sm.int('stalemateNoShotHalts', { min: 1, max: 6 }),
|
||||
@@ -244,8 +346,6 @@ function readStateMachineSection(sm: TuningReader): GroundAiTuning['stateMachine
|
||||
function readTacticsSection(tactics: TuningReader): GroundAiTuning['tactics'] {
|
||||
return {
|
||||
visionRangeM: tactics.number('visionRangeM', { min: 200, max: 3500 }),
|
||||
visionFovDeg: tactics.number('visionFovDeg', { min: 40, max: 180 }),
|
||||
peripheralRangeM: tactics.number('peripheralRangeM', { min: 30, max: 800 }),
|
||||
engineAudioRangeM: tactics.number('engineAudioRangeM', { min: 10, max: 250 }),
|
||||
shotAudioRangeM: tactics.number('shotAudioRangeM', { min: 50, max: 1200 }),
|
||||
radioShareRangeM: tactics.number('radioShareRangeM', { min: 50, max: 1500 }),
|
||||
@@ -255,6 +355,64 @@ function readTacticsSection(tactics: TuningReader): GroundAiTuning['tactics'] {
|
||||
};
|
||||
}
|
||||
|
||||
function readThreatSection(threat: TuningReader): GroundAiTuning['threat'] {
|
||||
return {
|
||||
rangeScaleM: threat.number('rangeScaleM', { min: 50, max: 3000 }),
|
||||
discoveredMul: threat.number('discoveredMul', { min: 0, max: 1 }),
|
||||
aimConeDeg: threat.number('aimConeDeg', { min: 5, max: 90 }),
|
||||
notAimingMul: threat.number('notAimingMul', { min: 0, max: 1 }),
|
||||
unseenMul: threat.number('unseenMul', { min: 0, max: 1 }),
|
||||
hitMemorySec: threat.number('hitMemorySec', { min: 0, max: 60 }),
|
||||
hitMul: threat.number('hitMul', { min: 1, max: 5 }),
|
||||
};
|
||||
}
|
||||
|
||||
function readTurretSection(turret: TuningReader): GroundAiTuning['turret'] {
|
||||
return {
|
||||
minDwellSec: turret.number('minDwellSec', { min: 0, max: 5 }),
|
||||
switchMargin: turret.number('switchMargin', { min: 0, max: 3 }),
|
||||
scanArcDeg: turret.number('scanArcDeg', { min: 0, max: 180 }),
|
||||
scanPeriodSec: turret.number('scanPeriodSec', { min: 1, max: 30 }),
|
||||
fixedMountYawSpanDeg: turret.number('fixedMountYawSpanDeg', { min: 0, max: 180 }),
|
||||
};
|
||||
}
|
||||
|
||||
function readBehaviorSection(bhv: TuningReader): GroundAiTuning['behavior'] {
|
||||
return {
|
||||
scoreIntervalSec: bhv.number('scoreIntervalSec', { min: 0.1, max: 3 }),
|
||||
advanceHoldSec: bhv.number('advanceHoldSec', { min: 0, max: 10 }),
|
||||
engageHoldSec: bhv.number('engageHoldSec', { min: 0, max: 10 }),
|
||||
haltHoldSec: bhv.number('haltHoldSec', { min: 0, max: 10 }),
|
||||
coverHoldSec: bhv.number('coverHoldSec', { min: 0, max: 10 }),
|
||||
repositionHoldSec: bhv.number('repositionHoldSec', { min: 0, max: 10 }),
|
||||
postHoldSec: bhv.number('postHoldSec', { min: 0, max: 10 }),
|
||||
disperseHoldSec: bhv.number('disperseHoldSec', { min: 0, max: 10 }),
|
||||
targetValueWeight: bhv.number('targetValueWeight', { min: 0, max: 1 }),
|
||||
nearThreatHaltBonus: bhv.number('nearThreatHaltBonus', { min: 0, max: 1 }),
|
||||
switchMargin: bhv.number('switchMargin', { min: 0, max: 1 }),
|
||||
advanceScore: bhv.number('advanceScore', { min: 0, max: 1 }),
|
||||
engageScore: bhv.number('engageScore', { min: 0, max: 1 }),
|
||||
urgencyWeight: bhv.number('urgencyWeight', { min: 0, max: 1 }),
|
||||
haltScore: bhv.number('haltScore', { min: 0, max: 1 }),
|
||||
crossfirePenalty: bhv.number('crossfirePenalty', { min: 0, max: 1 }),
|
||||
coverScore: bhv.number('coverScore', { min: 0, max: 1 }),
|
||||
coverDangerWeight: bhv.number('coverDangerWeight', { min: 0, max: 1 }),
|
||||
coverOffensivePenalty: bhv.number('coverOffensivePenalty', { min: 0, max: 1 }),
|
||||
coverRetrySec: bhv.number('coverRetrySec', { min: 0.5, max: 30 }),
|
||||
repositionScore: bhv.number('repositionScore', { min: 0, max: 1 }),
|
||||
holdScore: bhv.number('holdScore', { min: 0, max: 1 }),
|
||||
disperseScore: bhv.number('disperseScore', { min: 0, max: 1 }),
|
||||
urgentSpeedKeep: bhv.number('urgentSpeedKeep', { min: 0, max: 1 }),
|
||||
hullAngleDeg: bhv.number('hullAngleDeg', { min: 0, max: 45 }),
|
||||
faceToleranceDeg: bhv.number('faceToleranceDeg', { min: 3, max: 60 }),
|
||||
faceMinDanger: bhv.number('faceMinDanger', { min: 0, max: 2 }),
|
||||
reverseTravelAngleDeg: bhv.number('reverseTravelAngleDeg', { min: 60, max: 180 }),
|
||||
reverseMaxTurnDistM: bhv.number('reverseMaxTurnDistM', { min: 0, max: 200 }),
|
||||
reverseMinSpeedMps: bhv.number('reverseMinSpeedMps', { min: 0.5, max: 10 }),
|
||||
reverseHoldSec: bhv.number('reverseHoldSec', { min: 0, max: 20 }),
|
||||
};
|
||||
}
|
||||
|
||||
function readEstimationSection(est: TuningReader): GroundAiTuning['estimation'] {
|
||||
const watchMinSec = est.number('watchMinSec', { min: 0.5, max: 10.0 });
|
||||
const watchMaxSec = est.number('watchMaxSec', { min: 1.0, max: 15.0 });
|
||||
@@ -285,29 +443,51 @@ function readFireControlSection(fc: TuningReader): GroundAiTuning['fireControl']
|
||||
if (midRangeM <= closeRangeM || longRangeM <= midRangeM) {
|
||||
throw new TuningError('tuning file ground-ai.jsonc: fireControl ranges must satisfy closeRangeM < midRangeM < longRangeM');
|
||||
}
|
||||
const closeRangeMaxSpeedKmh = fc.number('closeRangeMaxSpeedKmh', { min: 3.6, max: 100 });
|
||||
const pointBlankMaxSpeedKmh = fc.number('pointBlankMaxSpeedKmh', { min: 3.6, max: 100 });
|
||||
if (pointBlankMaxSpeedKmh < closeRangeMaxSpeedKmh) {
|
||||
throw new TuningError('tuning file ground-ai.jsonc: fireControl.pointBlankMaxSpeedKmh must be >= closeRangeMaxSpeedKmh');
|
||||
const fireThreshold = fc.number('fireThreshold', { min: 0.05, max: 0.95 });
|
||||
const minFireThreshold = fc.number('minFireThreshold', { min: 0.01, max: 0.9 });
|
||||
if (minFireThreshold > fireThreshold) {
|
||||
throw new TuningError('tuning file ground-ai.jsonc: fireControl.minFireThreshold must be <= fireThreshold');
|
||||
}
|
||||
return {
|
||||
maxEngageRangeM: fc.number('maxEngageRangeM', { min: 150, max: 3000 }),
|
||||
closeRangeM,
|
||||
midRangeM,
|
||||
longRangeM,
|
||||
midSlowSpeedRatio: fc.number('midSlowSpeedRatio', { min: 0.1, max: 1.0 }),
|
||||
midSlowMaxMps: fc.number('midSlowMaxMps', { min: 1.0, max: 15.0 }),
|
||||
closeRangeMaxSpeedKmh,
|
||||
pointBlankMaxSpeedKmh,
|
||||
stopSpeedMaxMps: fc.number('stopSpeedMaxMps', { min: 0.1, max: 2.0 }),
|
||||
longRangeWindowSec: fc.number('longRangeWindowSec', { min: 1.0, max: 15.0 }),
|
||||
baseAlignDeg: fc.number('baseAlignDeg', { min: 0.1, max: 3.0 }),
|
||||
closeHitRadiusM: fc.number('closeHitRadiusM', { min: 0.25, max: 2.2 }),
|
||||
barrelSettleDegSec: fc.number('barrelSettleDegSec', { min: 0.2, max: 12.0 }),
|
||||
closeSettleHoldSec: fc.number('closeSettleHoldSec', { min: 0.02, max: 0.5 }),
|
||||
settleHoldSec: fc.number('settleHoldSec', { min: 0.05, max: 1.5 }),
|
||||
unstabilizedStopSpeedMps: fc.number('unstabilizedStopSpeedMps', { min: 0.1, max: 3.0 }),
|
||||
stabilizedCreepSpeedMps: fc.number('stabilizedCreepSpeedMps', { min: 1.5, max: 15.0 }),
|
||||
aimErrorDeg: fc.number('aimErrorDeg', { min: 0.01, max: 2 }),
|
||||
moveErrDegPerMps: fc.number('moveErrDegPerMps', { min: 0, max: 3 }),
|
||||
turnErrDegPerDegSec: fc.number('turnErrDegPerDegSec', { min: 0, max: 0.5 }),
|
||||
stabErrFactor: fc.number('stabErrFactor', { min: 0.02, max: 1 }),
|
||||
targetHalfHeightM: fc.number('targetHalfHeightM', { min: 0.3, max: 2 }),
|
||||
fireThreshold,
|
||||
minFireThreshold,
|
||||
aimingThresholdBonus: fc.number('aimingThresholdBonus', { min: 0, max: 0.5 }),
|
||||
closeThresholdBonus: fc.number('closeThresholdBonus', { min: 0, max: 0.5 }),
|
||||
enemyReloadThresholdBonus: fc.number('enemyReloadThresholdBonus', { min: 0, max: 0.5 }),
|
||||
enemyReloadSec: fc.number('enemyReloadSec', { min: 0, max: 15 }),
|
||||
fleetingThresholdBonus: fc.number('fleetingThresholdBonus', { min: 0, max: 0.5 }),
|
||||
fleetingLateralMps: fc.number('fleetingLateralMps', { min: 0.5, max: 15 }),
|
||||
fleetingLookAheadSec: fc.number('fleetingLookAheadSec', { min: 0.1, max: 2 }),
|
||||
reloadThresholdPenalty: fc.number('reloadThresholdPenalty', { min: 0, max: 0.5 }),
|
||||
longReloadSec: fc.number('longReloadSec', { min: 1, max: 60 }),
|
||||
lowAmmoRounds: fc.int('lowAmmoRounds', { min: 1, max: 60 }),
|
||||
lowAmmoThresholdPenalty: fc.number('lowAmmoThresholdPenalty', { min: 0, max: 0.5 }),
|
||||
aimSkill: fc.number('aimSkill', { min: 0, max: 1 }),
|
||||
autocannonMinShotsPerSec: fc.number('autocannonMinShotsPerSec', { min: 0.5, max: 30 }),
|
||||
retreatThresholdPenalty: fc.number('retreatThresholdPenalty', { min: 0, max: 0.6 }),
|
||||
minShotIntervalSec: fc.number('minShotIntervalSec', { min: 0.1, max: 5 }),
|
||||
autocannonAimSlack: fc.number('autocannonAimSlack', { min: 1, max: 10 }),
|
||||
burstSec: fc.number('burstSec', { min: 0.2, max: 6 }),
|
||||
burstPauseSec: fc.number('burstPauseSec', { min: 0, max: 5 }),
|
||||
autocannonReloadDetectSec: fc.number('autocannonReloadDetectSec', { min: 0.1, max: 3 }),
|
||||
auxWeapons: fc.bool('auxWeapons'),
|
||||
auxMaxRangeM: fc.number('auxMaxRangeM', { min: 30, max: 1500 }),
|
||||
auxFireAtArmor: fc.bool('auxFireAtArmor'),
|
||||
friendlyCorridorM: fc.number('friendlyCorridorM', { min: 1.0, max: 10.0 }),
|
||||
ballisticStepMaxM: fc.number('ballisticStepMaxM', { min: 5.0, max: 80.0 }),
|
||||
ballisticSweepRadiusM: fc.number('ballisticSweepRadiusM', { min: 0.02, max: 0.5 }),
|
||||
|
||||
@@ -94,6 +94,36 @@
|
||||
"ridgeMaxShots": 6
|
||||
},
|
||||
|
||||
// Offline map baking parameters. These are copied into the generator's per-level POI input.
|
||||
"coverMap": {
|
||||
"minCoverHeightM": 1.55,
|
||||
"peekMinM": 3.5,
|
||||
"peekMaxM": 6.0,
|
||||
"retreatMinM": 8.0,
|
||||
// Low dry-stone fence models observed to give unreliable shot protection.
|
||||
"excludedCoverRendinst": ["stone_fence_a", "damaged_stone_fence_a", "damaged_stone_fence_b"]
|
||||
},
|
||||
|
||||
// Offline navigation mesh baking parameters, copied into the generator's per-level POI input.
|
||||
"navBake": {
|
||||
// Placed objects whose stock destructionImpulse (config/rendinst_dmg.blk) is at most this
|
||||
// value are knocked down by tanks and baked as crushable rather than solid (N*s).
|
||||
"crushableMaxImpulse": 45000,
|
||||
// riExtra objects with no destructionImpulse are crushable when their stock hp is at most
|
||||
// this value (wooden fences 2, dry-stone fences 12, car wrecks 20; buses 40).
|
||||
"crushableMaxRiExtraHp": 20,
|
||||
// Passages narrower than this many standard-tier vehicle widths are flagged as chokepoints.
|
||||
"chokepointMaxWidthVehicles": 2.0,
|
||||
// Water up to maxFordDepthM is forded (shallow water cost). Deeper water is a wall: besides the
|
||||
// vehicle's half width, the mesh keeps deepWaterMarginM more ground from it where the bank is
|
||||
// less than deepWaterBankHeightM above the water line,
|
||||
// because low banks slope into the water and a hull at the water line slides in. Higher quays
|
||||
// and ramps keep only the half width.
|
||||
"maxFordDepthM": 0.9,
|
||||
"deepWaterMarginM": 1.5,
|
||||
"deepWaterBankHeightM": 1.0
|
||||
},
|
||||
|
||||
"navigation": {
|
||||
// "vehicle_phys" uses custom inputs with native ownership. "movesys" keeps stock movement.
|
||||
"driveMode": "vehicle_phys",
|
||||
@@ -101,17 +131,131 @@
|
||||
"steerSign": 1.0,
|
||||
"deadEchoSec": 1.2,
|
||||
"controlTimeoutSec": 1.0,
|
||||
"cornerBrakeAccel": 1.75,
|
||||
// Speed error at which the moving-fire controller applies full throttle or braking.
|
||||
"movingFireSpeedRampMps": 1.0,
|
||||
"pivotAngleDeg": 75.0,
|
||||
"stuckWindowSec": 3.6,
|
||||
"stuckMinMoveM": 2.0,
|
||||
"unstickReverseSec": 3.0,
|
||||
"tacticalReverseDistM": 34.0,
|
||||
"tacticalReverseMaxSec": 9.5
|
||||
},
|
||||
|
||||
// Baked navigation packs (tools/navgen), loaded once per battle by the native engine.
|
||||
"navEngine": {
|
||||
"enabled": true,
|
||||
// When the battle's pack is missing or broken: true keeps the script's own navigation for the
|
||||
// whole battle, false leaves the bots standing so the problem shows (testing). Decided once at
|
||||
// battle start, never in the middle of a battle.
|
||||
"allowFallback": true,
|
||||
// Farthest a path's start or goal may lie from the mesh.
|
||||
"snapRadiusM": 12.0,
|
||||
// A goal farther than snapRadiusM from the mesh (a position chosen by tactics inside a building
|
||||
// or on a slope) is moved to the nearest walkable point within this distance; beyond it the
|
||||
// goal counts as unreachable. Also used to find the way back onto the mesh.
|
||||
"goalSnapRadiusM": 40.0,
|
||||
// Path searches are spread over frames; this is the search time allowed per frame.
|
||||
"pathBudgetMsPerFrame": 0.5,
|
||||
// Team traffic: each teammate path planned within trafficHoldSec through a stretch of mesh
|
||||
// raises its cost for the team's next searches by trafficCostPerPath, up to trafficCostMaxMul,
|
||||
// so a team spreads over parallel routes instead of queueing on one road.
|
||||
"trafficCostPerPath": 0.35,
|
||||
"trafficCostMaxMul": 2.5,
|
||||
"trafficHoldSec": 12.0,
|
||||
// Path corners are moved this far away from the building or wall they turn around.
|
||||
"cornerOffsetM": 1.5
|
||||
},
|
||||
|
||||
// Path cost multipliers per surface for tracked vehicles; chokepoint multiplies the surface cost
|
||||
// of passages narrower than navBake.chokepointMaxWidthVehicles.
|
||||
"navCostsTracked": {
|
||||
"road": 0.75,
|
||||
"bridge": 0.9,
|
||||
"ground": 1.0,
|
||||
"rough": 1.65,
|
||||
"forest": 2.1,
|
||||
"crushable": 2.4,
|
||||
"shallowWater": 2.6,
|
||||
"chokepoint": 1.8
|
||||
},
|
||||
|
||||
// The same for wheeled vehicles.
|
||||
"navCostsWheeled": {
|
||||
"road": 0.55,
|
||||
"bridge": 0.75,
|
||||
"ground": 1.15,
|
||||
"rough": 3.2,
|
||||
"forest": 2.8,
|
||||
"crushable": 3.5,
|
||||
"shallowWater": 4.0,
|
||||
"chokepoint": 2.2
|
||||
},
|
||||
|
||||
// Following the path, local avoidance and unstick (offline values).
|
||||
"pathFollow": {
|
||||
// Plan again after this long, when the goal moved this far, or when the bot is this far off its path.
|
||||
"replanIntervalSec": 3.5,
|
||||
"replanGoalMoveM": 15.0,
|
||||
"offCorridorReplanM": 12.0,
|
||||
// Steering point: speed times lookaheadTimeSec, kept within the range of the vehicle kind.
|
||||
"lookaheadTimeSec": 1.4,
|
||||
"trackedLookaheadMinM": 6.0,
|
||||
"trackedLookaheadMaxM": 18.0,
|
||||
"wheeledLookaheadMinM": 10.0,
|
||||
"wheeledLookaheadMaxM": 24.0,
|
||||
// Path corners sharper than cornerAngleDeg are taken at the speed the sideways acceleration
|
||||
// allows; the vehicle brakes toward it (and toward its destination) at cornerBrakeDecelMps2.
|
||||
"cornerAngleDeg": 35.0,
|
||||
"cornerLateralAccelMps2": 2.8,
|
||||
"cornerBrakeDecelMps2": 2.0,
|
||||
"arriveRadiusM": 3.0,
|
||||
"arriveMinSpeedMps": 1.5,
|
||||
// The mesh already keeps the vehicle's half width from walls; less room than this beyond it,
|
||||
// or a baked chokepoint, counts as a narrow passage.
|
||||
"narrowWallMarginM": 1.5,
|
||||
"narrowSpeedMps": 4.5,
|
||||
// Rays from both front corners of the hull for obstacles the baked mesh does not know.
|
||||
"bumperRayM": 7.0,
|
||||
"bumperStopM": 1.5,
|
||||
"bumperBlockSec": 0.6,
|
||||
// Moving vehicles that come within reach in trafficTtcSec: follow them, or in narrow passages
|
||||
// give way to the bigger one for at most yieldWaitMaxSec.
|
||||
"trafficTtcSec": 2.5,
|
||||
"yieldWaitMaxSec": 3.0,
|
||||
// Vehicles slower than stationarySpeedMps, wrecks and players' vehicles in the way are passed
|
||||
// on the side the mesh leaves room, keeping passMarginM between hulls, at up to passSpeedMps.
|
||||
"stationarySpeedMps": 1.0,
|
||||
"passMarginM": 0.8,
|
||||
"passSpeedMps": 4.0,
|
||||
// No side free: stop short, and after blockWaitSec mark the obstacle for path searches for
|
||||
// blockTtlSec and plan again. A hull within contactGapM of it for contactReverseSec backs off.
|
||||
// Pressed again within contactRepeatSec near the same place: mark the obstacle, try the other
|
||||
// side, and after unstickMaxAttempts such repeats give the order up.
|
||||
"blockWaitSec": 2.0,
|
||||
"blockTtlSec": 15.0,
|
||||
"contactGapM": 0.8,
|
||||
"contactReverseSec": 1.0,
|
||||
"contactRepeatSec": 20.0,
|
||||
// Less progress than stuckMinProgressM within stuckWindowSec while wanting to move is stuck.
|
||||
"stuckWindowSec": 3.0,
|
||||
"stuckMinProgressM": 0.8,
|
||||
"unstickReverseM": 6.5,
|
||||
"unstickReverseSec": 3.0,
|
||||
"unstickRepeatSec": 8.0,
|
||||
"unstickMaxAttempts": 3,
|
||||
// Temporary path costs: jams found by unstick, fresh obstacles hit by the front rays, wrecks.
|
||||
// A place given up on after unstickMaxAttempts is all but closed (giveUp*), so the next order
|
||||
// routes elsewhere instead of returning to it.
|
||||
"jamRadiusM": 10.0,
|
||||
"jamCostMul": 12.0,
|
||||
"jamTtlSec": 45.0,
|
||||
"giveUpRadiusM": 15.0,
|
||||
"giveUpCostMul": 40.0,
|
||||
"rubbleRadiusM": 6.0,
|
||||
"rubbleCostMul": 25.0,
|
||||
"rubbleTtlSec": 90.0,
|
||||
"wreckRadiusM": 6.0,
|
||||
"wreckCostMul": 6.0,
|
||||
"wreckTtlSec": 120.0
|
||||
},
|
||||
|
||||
// Exposure-based visual perception (offline values; foliageTransparency matches stock infantry AI).
|
||||
"perception": {
|
||||
"foliageTransparency": 0.01,
|
||||
@@ -121,24 +265,29 @@
|
||||
"normalSpotSec": 0.60,
|
||||
"farSpotSec": 1.45,
|
||||
"decayPerSec": 1.5,
|
||||
"frontConeHalfDeg": 60.0,
|
||||
"peripheralCloseM": 100.0
|
||||
// Every visual arc is relative to the barrel. The sight covers gunFovHalfDeg either side;
|
||||
// near awareness covers nearArcDeg around the barrel and every lookAroundSec opens the rear
|
||||
// for lookAroundHoldSec. Mid-distance awareness covers the barrel's front half.
|
||||
// Near and mid spotting use nearSpotMul and midSpotMul respectively.
|
||||
"gunFovHalfDeg": 30.0,
|
||||
"nearAwareM": 150.0,
|
||||
"nearArcDeg": 270.0,
|
||||
"midAwareM": 600.0,
|
||||
"nearSpotMul": 1.5,
|
||||
"midSpotMul": 2.0,
|
||||
"lookAroundSec": 8.0,
|
||||
"lookAroundHoldSec": 1.0,
|
||||
"discoverScore": 0.35
|
||||
},
|
||||
|
||||
// Per-bot hull state machine timings and thresholds (offline values).
|
||||
// Timings and thresholds of the hull actions (short halt, cover pull-back, reposition, repair).
|
||||
"stateMachine": {
|
||||
"preaimAngleDeg": 8.0,
|
||||
// Time a ready gun can be held up by speed or aim before attempting a short halt.
|
||||
"movingShotWaitSec": 1.0,
|
||||
"shortHaltMaxSec": 3.0,
|
||||
"shortHaltCooldownSec": 4.0,
|
||||
"turnLaunchSpeedMps": 2.1,
|
||||
"coverMinDistM": 6.0,
|
||||
"coverMaxDistM": 24.0,
|
||||
"coverRetreatBudgetSec": 6.0,
|
||||
"reloadAdvanceAngleDeg": 18.0,
|
||||
"hullAngleTriggerDeg": 20.0,
|
||||
"hullAngleTargetDeg": 10.0,
|
||||
"maxTotalHaltSec": 12.0,
|
||||
"stalemateMissShots": 2,
|
||||
"stalemateNoShotHalts": 2,
|
||||
@@ -149,9 +298,7 @@
|
||||
|
||||
"tactics": {
|
||||
"visionRangeM": 1250.0,
|
||||
"visionFovDeg": 115.0,
|
||||
"peripheralRangeM": 230.0,
|
||||
"engineAudioRangeM": 65.0,
|
||||
"engineAudioRangeM": 150.0,
|
||||
"shotAudioRangeM": 380.0,
|
||||
"radioShareRangeM": 450.0,
|
||||
"memoryTtlSec": 12.0,
|
||||
@@ -171,26 +318,129 @@
|
||||
"maxBiasM": 2.2
|
||||
},
|
||||
|
||||
// Threat table (decision layer design, section 4): how dangerous each discovered enemy is to the
|
||||
// bot. Danger falls with distance as 1 / (1 + distance / rangeScaleM) and is multiplied by
|
||||
// discoveredMul until the enemy is seen clearly, by notAimingMul unless its hull or gun points
|
||||
// within aimConeDeg of the bot (or it hit the bot), by unseenMul when the bot is out of its
|
||||
// sight, and by hitMul for hitMemorySec after it hit the bot. Penetration is not counted yet.
|
||||
"threat": {
|
||||
"rangeScaleM": 400.0,
|
||||
"discoveredMul": 0.7,
|
||||
"aimConeDeg": 25.0,
|
||||
"notAimingMul": 0.5,
|
||||
"unseenMul": 0.4,
|
||||
"hitMemorySec": 6.0,
|
||||
"hitMul": 2.0
|
||||
},
|
||||
|
||||
// The turret gives visible contacts attention by danger, then checks memory and directional cues.
|
||||
// While engaged, the competing threat needs switchMargin more danger to take over.
|
||||
// The turret sweeps the route when it has no contact or cue.
|
||||
"turret": {
|
||||
"minDwellSec": 0.6,
|
||||
"switchMargin": 0.25,
|
||||
"scanArcDeg": 60.0,
|
||||
"scanPeriodSec": 6.0,
|
||||
"fixedMountYawSpanDeg": 60.0
|
||||
},
|
||||
|
||||
// Hull channel: choose a behavior by score, holding each for its configured commitment time
|
||||
// unless an emergency or a large score difference interrupts it. A cover withdrawal runs
|
||||
// through its arrival or timeout. A short halt lasts through the weapon's shooting window.
|
||||
// Tracked tanks and tank destroyers face the main threat at the post or during a halt.
|
||||
// They can reverse along a short route segment to keep their front toward that threat.
|
||||
"behavior": {
|
||||
"scoreIntervalSec": 0.5,
|
||||
"advanceHoldSec": 1.5,
|
||||
"engageHoldSec": 1.5,
|
||||
"haltHoldSec": 3.0,
|
||||
"coverHoldSec": 2.0,
|
||||
"repositionHoldSec": 2.0,
|
||||
"postHoldSec": 1.5,
|
||||
"disperseHoldSec": 1.5,
|
||||
"targetValueWeight": 0.1,
|
||||
"nearThreatHaltBonus": 0.28,
|
||||
"switchMargin": 0.15,
|
||||
"advanceScore": 0.5,
|
||||
"engageScore": 0.55,
|
||||
"urgencyWeight": 0.15,
|
||||
"haltScore": 0.55,
|
||||
"crossfirePenalty": 0.15,
|
||||
"coverScore": 0.45,
|
||||
"coverDangerWeight": 0.25,
|
||||
"coverOffensivePenalty": 0.2,
|
||||
"coverRetrySec": 4.0,
|
||||
"repositionScore": 0.7,
|
||||
"holdScore": 0.6,
|
||||
"disperseScore": 0.62,
|
||||
"urgentSpeedKeep": 0.5,
|
||||
"hullAngleDeg": 20.0,
|
||||
"faceToleranceDeg": 15.0,
|
||||
"faceMinDanger": 0.15,
|
||||
"reverseTravelAngleDeg": 110.0,
|
||||
"reverseMaxTurnDistM": 45.0,
|
||||
"reverseMinSpeedMps": 2.5,
|
||||
"reverseHoldSec": 3.0
|
||||
},
|
||||
|
||||
// Fire permission (decision layer design, section 6). A main-gun shot needs its estimated hit
|
||||
// probability to reach the fire threshold. The hit probability compares the visible part of the
|
||||
// target (its projected width, targetHalfHeightM high, shrunk when only part of it is visible)
|
||||
// with the expected angular error: aimErrorDeg, plus moveErrDegPerMps per m/s of own speed and
|
||||
// turnErrDegPerDegSec per deg/s of hull turn (times stabErrFactor with a stabilizer), plus the
|
||||
// lead uncertainty on a crossing target, with the barrel's current offset as the mean error.
|
||||
// The threshold starts at fireThreshold and drops by aimingThresholdBonus when the target aims
|
||||
// at the bot, by up to closeThresholdBonus inside closeRangeM, by enemyReloadThresholdBonus for
|
||||
// enemyReloadSec after the target fired, and by fleetingThresholdBonus if its estimated motion
|
||||
// will take it out of sight. Longer reloads, scarce ammunition and falling back raise the threshold.
|
||||
// The pre-fire budget limits ballistic checks per frame. Every firing request gets fresh checks.
|
||||
"fireControl": {
|
||||
"maxEngageRangeM": 1250.0,
|
||||
"closeRangeM": 100.0,
|
||||
"midRangeM": 300.0,
|
||||
"longRangeM": 800.0,
|
||||
"midSlowSpeedRatio": 0.45,
|
||||
"midSlowMaxMps": 5.5,
|
||||
// Moving-fire speed rises from the mid-range limit through the close-range boundary to point blank.
|
||||
"closeRangeMaxSpeedKmh": 30.0,
|
||||
"pointBlankMaxSpeedKmh": 35.0,
|
||||
// At or below this speed the bot counts as standing (also the answer "stop" to a speed request).
|
||||
"stopSpeedMaxMps": 0.45,
|
||||
"longRangeWindowSec": 4.0,
|
||||
"longRangeWindowSec": 1.0,
|
||||
// Fixed (casemate) guns: how far off the gun may be before the hull is asked to turn.
|
||||
"baseAlignDeg": 0.42,
|
||||
"closeHitRadiusM": 0.85,
|
||||
// Outside close range, the rate at which barrel alignment drifts relative to the aim direction.
|
||||
"barrelSettleDegSec": 1.8,
|
||||
"closeSettleHoldSec": 0.08,
|
||||
"settleHoldSec": 0.20,
|
||||
"unstabilizedStopSpeedMps": 0.45,
|
||||
"stabilizedCreepSpeedMps": 5.5,
|
||||
"closeSettleHoldSec": 0.06,
|
||||
"settleHoldSec": 0.12,
|
||||
"aimErrorDeg": 0.07,
|
||||
"moveErrDegPerMps": 0.35,
|
||||
"turnErrDegPerDegSec": 0.03,
|
||||
"stabErrFactor": 0.2,
|
||||
"targetHalfHeightM": 1.0,
|
||||
"fireThreshold": 0.45,
|
||||
"minFireThreshold": 0.1,
|
||||
"aimingThresholdBonus": 0.1,
|
||||
"closeThresholdBonus": 0.15,
|
||||
"enemyReloadThresholdBonus": 0.08,
|
||||
"enemyReloadSec": 3.0,
|
||||
"fleetingThresholdBonus": 0.1,
|
||||
"fleetingLateralMps": 3.0,
|
||||
"fleetingLookAheadSec": 0.65,
|
||||
"reloadThresholdPenalty": 0.08,
|
||||
"longReloadSec": 15.0,
|
||||
"lowAmmoRounds": 5,
|
||||
"lowAmmoThresholdPenalty": 0.08,
|
||||
"aimSkill": 0.5,
|
||||
"autocannonMinShotsPerSec": 1.5,
|
||||
"retreatThresholdPenalty": 0.2,
|
||||
"minShotIntervalSec": 0.65,
|
||||
// Automatic cannons are identified from stock belt and firing-rate data. They fire in bursts
|
||||
// while within the aim slack. A longer wait between rounds counts as a reload.
|
||||
"autocannonAimSlack": 3.0,
|
||||
"burstSec": 1.2,
|
||||
"burstPauseSec": 0.6,
|
||||
"autocannonReloadDetectSec": 0.6,
|
||||
// Secondary and coaxial guns have their own aim and ballistic checks. The armor toggle allows
|
||||
// coaxial fire at vehicles outside the light-vehicle filter.
|
||||
"auxWeapons": true,
|
||||
"auxMaxRangeM": 300.0,
|
||||
"auxFireAtArmor": false,
|
||||
"friendlyCorridorM": 3.2,
|
||||
"ballisticStepMaxM": 25.0,
|
||||
"ballisticSweepRadiusM": 0.12,
|
||||
@@ -199,6 +449,20 @@
|
||||
|
||||
"diagnostics": {
|
||||
"telemetry": true,
|
||||
"telemetryIntervalSec": 5.0
|
||||
"telemetryIntervalSec": 5.0,
|
||||
// Battle statistics for comparing builds (WTO_AI|BATTLE_STATS): cumulative per vehicle class,
|
||||
// logged every statsLogIntervalSec and when the battle ends. Every statsSampleSec each bot
|
||||
// checks the nearest enemy in line of sight within statsSampleRangeM: whether it knows it,
|
||||
// how far the turret is off it, and whether its rear (statsRearArcDeg wide) faces it.
|
||||
"battleStats": true,
|
||||
"statsLogIntervalSec": 60.0,
|
||||
"statsSampleSec": 1.0,
|
||||
"statsSampleRangeM": 300.0,
|
||||
"statsRearArcDeg": 120.0,
|
||||
// Replay trace for the AI viewer (WTO_AI|TRACE_*, HIT, DEATH): every traceIntervalSec the
|
||||
// capture zones, every ground unit and every bot's decision state. About 10 MB of log for
|
||||
// 32 bots over 15 minutes at 0.5 s.
|
||||
"trace": true,
|
||||
"traceIntervalSec": 0.5
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"level": "avg_berlin",
|
||||
"version": 1,
|
||||
"bake": {
|
||||
// The original arterial and ring roads use this LMp2 material.
|
||||
"roadMaterials": ["concrete"],
|
||||
"walkableRendinst": ["fountain_base_b_body"],
|
||||
"downhillLinks": [
|
||||
// Dry endpoints verified on the two meshes at the eastern canal bank.
|
||||
{
|
||||
"from": { "x": 2476.0, "y": 43.34, "z": 1124.0 },
|
||||
"to": { "x": 2460.0, "y": 36.61, "z": 1124.0 },
|
||||
"radiusM": 0.75,
|
||||
"widthTiers": [0]
|
||||
},
|
||||
{
|
||||
"from": { "x": 2476.0, "y": 43.12, "z": 1135.5 },
|
||||
"to": { "x": 2458.0, "y": 36.59, "z": 1135.5 },
|
||||
"radiusM": 0.75,
|
||||
"widthTiers": [1]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"level": "avg_poland",
|
||||
"version": 1,
|
||||
"bake": {
|
||||
// The town streets and squares use this LMp2 material.
|
||||
"roadMaterials": ["concrete"]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user