feat(ground-ai)!: replace layer switches with complete modes
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.
This commit is contained in:
1 parent
885e3bbb5d
commit
5e521295a3
8 files changed
+117
-51
No files matched your search
@@ -1,14 +1,22 @@
|
||||
// Ground battle AI modular configuration.
|
||||
// Shipped defaults keep takeover layers off; per-client overrides live in <dataDir>/tuning/ground-ai.jsonc
|
||||
// and compile into game/wtoai/wto_ai_config_common.das when building the game copy.
|
||||
// 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.
|
||||
{
|
||||
"enabled": true,
|
||||
// "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",
|
||||
|
||||
"layers": {
|
||||
"macro": false,
|
||||
"tactics": false,
|
||||
"navigation": false,
|
||||
"fireControl": false
|
||||
// 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": {
|
||||
|
||||
Reference in new issue
Block a user