Tune DCO without opening the editor
Your server writes a folder of JSON files on its first start, every setting at its current value. Edit, restart, done — no repack, no mission change.
How the config works
A folder in the server profile, read once at startup. Nothing is read while the server runs, so edits made during a session are lost at the next write.
| File | Holds |
|---|---|
| Core.json | General settings, performance, Game Master permissions, logging. |
| Soldiers.json | Skill, aim, perception, suppression, dodge, grenades, personality, night, aggression, voice. |
| Squads.json | Idle, stragglers, CQB, behaviour, contact sharing and reports, medics, break contact, squad jobs. |
| Commander.json | Commander spawner, doctrine, group presets, commander tactics. |
| Vehicles.json | Vehicle AI. |
| Advanced/<group>.json | Every tune_ key, one file per group — tune_hear_mask lives in Advanced/hear.json. |
| Factions/<FACTION>.json | Values for one faction only. |
cfg_key_wrong_file and moved to its home file at the next rewrite. One broken file is ignored on its own — the rest still apply, and the broken one is never overwritten.First start
- Start the server once with DCO_AI loaded.It writes
$profile:DCO/Config/with every setting at its current value, one key per line, split across the files above. - Stop the server, edit the keys you care about, start it again.The log line
N settings overridden from ...tells you how many were applied — check it matches what you changed. - Keep only what you changed, if you prefer a short file.Missing keys are filled back in at the next start, so a four-line file works exactly like a full one.
$profile:DCO/DCO_GlobalConfig.json exists, it is read once, split into the folder with every value kept — a factions block becomes Factions/<FACTION>.json — and renamed to .migrated.bak. Logged as cfg_split_migrated. That is also why the templates below still work as a single file."aiAggression": 2 and 2.0 both work. Quotes around a number do not — that's a cfg_bad_type.Rewrites and migration
| What | When | Effect |
|---|---|---|
| Auto generate | On | Missing keys are added with the current value, and the old file is copied to .bak first. Turn it off to drop a key for good — otherwise deleted keys come back. |
| Default migration | On update | A key still sitting at the old shipped default takes the new one, logged as cfg_default_migrated. Values you edited are never touched. |
| Defaults record | Per world | DCO_GlobalConfig.defaults.<world>.txt records every default for that world, so rotating scenarios doesn't trigger migrations. Don't edit these. |
| Save from Game Master | Opt-in | gmSaveConfig decides who may press Save to server config: gm, admin (default) or off. It writes every current value, defaults included. |
| Misspelled keys | Dropped | Only real keys survive a rewrite, so a typo quietly disappears. Copy names from the reference below. |
When something's wrong
The server never refuses to start over a config problem — it logs and carries on. Grep dco.log for these:
| Log line | Means |
|---|---|
| cfg_clamped | Value outside its range; it was pulled to the nearest limit. |
| cfg_bad_type | Wrong type — a quoted number, or a decimal where a whole number is required. That key keeps its old value and the file is not rewritten. |
| cfg_parse_fail | That one file is broken. It is ignored and never overwritten; the other files still apply and its keys fall back to their defaults. |
| cfg_key_wrong_file | A real key in the wrong file. It still works and is moved at the next rewrite. |
| cfg_split_migrated | An old single-file config was split into the folder. |
| cfg_unused | A key nothing reads — almost always a misspelling. |
| cfg_faction_unknown_key | A key inside a factions block that DCO doesn't know. |
| cfg_faction_global_only | A key that only works server-wide, ignored inside a faction block. |
Templates
Four starting points. Each changes only a handful of keys; everything else is filled in with the shipped default at the next start, so you can drop one in as-is. Download it, back up whatever was there, save it as $profile:DCO/DCO_GlobalConfig.json and restart — DCO splits it into the config folder for you. Already on the folder layout? Paste the keys into the matching file instead.
Forgiving
Slower, less accurate, easier to shake. For a casual or new-player server where the AI shouldn't win every firefight.
presets/forgiving.jsonDownload{
"_comment": "DCO AI - Forgiving. Easier AI for a casual or new-player server. DCO AI template. Rename to DCO_GlobalConfig.json and put it where your server keeps that file (back up the old one first). Only the keys below change; everything else is filled in with the shipped default at the next start. Delete the file to go back to defaults.",
"aiSkillDefault": 1,
"aimAccuracy": 0.8,
"aimSpeed": 0.8,
"perception_identify_mul": 0.8,
"suppressionEffect": 1.3,
"aiAggression": 0.7
}
Hard
Veteran skill, faster on target, pushes through fire and rarely panics, with personality weights shifted toward aggressive and reckless.
presets/hard.jsonDownload{
"_comment": "DCO AI - Hard. Veteran AI that pushes and rarely breaks. Read the aiAggression note before tuning further: above 1 it scales takeCoverChance, dodgeChance and suppressionEffect DOWN. DCO AI template. Rename to DCO_GlobalConfig.json and put it where your server keeps that file (back up the old one first). Only the keys below change; everything else is filled in with the shipped default at the next start. Delete the file to go back to defaults.",
"aiSkillDefault": 3,
"aimAccuracy": 1.3,
"aimSpeed": 1.2,
"aiPerception": 2,
"aiAggression": 1.5,
"suppressionEffect": 0.7,
"personalityWeightMeasured": 60,
"personalityWeightCautious": 3,
"personalityWeightAggressive": 30,
"personalityWeightReckless": 7
}
aiAggression scales cover and suppression settings down, which is not what most people expect.Performance
For a large PvE server where frame time matters more than the last few percent of behaviour. LOD keeps commander groups fighting at distance without full simulation, and contact reporting is the other big recurring cost.
presets/performance.jsonDownload{
"_comment": "DCO AI - Performance. For a big PvE server where frame time matters more than the last 5% of behaviour. Turn perfProfiling on for one session to measure, then off. DCO AI template. Rename to DCO_GlobalConfig.json and put it where your server keeps that file (back up the old one first). Only the keys below change; everything else is filled in with the shipped default at the next start. Delete the file to go back to defaults.",
"lodMode": 1,
"perfProfiling": false,
"contactReportMaxPerScan": 2,
"contactReportScanInterval": 25
}
perfProfiling to true for one session: every 30 s it writes FPS, AI count by LOD, time per DCO system and queries per second to perf.log, and lists which systems ran on any frame over 50 ms. Turn it off afterwards.Per faction
One faction gets its own values on top of the global ones — a trained army against a militia in the same mission. Any key from the reference works. On the folder layout each faction is its own file, Config/Factions/USSR.json, holding just that faction's keys; in the single-file template below they sit in a factions block and are split out on first start.
presets/factions.jsonDownload{
"_comment": "DCO AI - Asymmetric factions. Global values apply to everyone; the factions block overrides them per faction. Layer order, last wins: global file, GM global, this faction block, GM faction. DCO AI template. Rename to DCO_GlobalConfig.json and put it where your server keeps that file (back up the old one first). Only the keys below change; everything else is filled in with the shipped default at the next start. Delete the file to go back to defaults.",
"aiSkillDefault": 2,
"aiAggression": 1,
"factions": {
"US": {
"aiSkillDefault": 3,
"aimAccuracy": 1.2,
"aiAggression": 1.2
},
"USSR": {
"aiSkillDefault": 2,
"aiAggression": 1
},
"FIA": {
"aiSkillDefault": 1,
"aiAggression": 1.6,
"takeCoverChance": 0.5,
"personalityWeightReckless": 20
}
}
}
Layer order
Four layers, last one wins: 1. global values in this file → 2. Game Master global settings → 3. this file's faction block → 4. Game Master faction settings.
doctrine* keys, the groupPreset* keys, gmSaveConfig, startupPresetPrompt and perfProfiling. A faction that doesn't exist in the mission, or an empty entry, is skipped and left in the file.The aggression trap
Read this before touching soldier settings. aiAggression is not an independent slider — it rescales several others, and the shipped value already sits in the range where it does.
| Rule | Effect at the shipped value |
|---|---|
| Effective aggression | aiAggression × 2.5. Shipped 1 means an effective 2.5. |
| takeCoverChance dodgeChance suppressionEffect | Multiplied by 1 / effective whenever that is above 1 — so ×0.4 as shipped. A takeCoverChance of 0.8 is a real 0.32. They still work across their whole range, just lower than the number suggests. |
| grenadeUsage glUsage | Multiplied by effective aggression and capped at 1. At the shipped value everything from 0.4 to 1.0 behaves identically — only values below 0.4 change anything. |
| Squad pull-back | Casualty thresholds scale with aggression too. At the shipped value squads almost never fall back on losses alone. |
What was actually measured
From stress runs of roughly 170 AI, one run per value — indicative, not a benchmark.
| Key | Tested | Result |
|---|---|---|
| aiAggression | 0.5 / 1 / 3 | First kill at 189 / 176 / 127 s, panic flights 53 / 18 / 2. Low is careful and easily shaken; high pushes in fast and rarely panics. Above 1 the squad posture choice stops changing, but soldier-level effects keep growing. |
| suppressionEffect | 0.2 vs 1.0 | Panic flights 1 vs 23, deaths while panicking 0 vs 17. The strongest single lever on whether AI can be pinned at all. |
| takeCoverChance | 0.2 vs 0.8 | Barely moved — 76 vs 74 deaths. Small effect at the shipped aggression, which is the rescaling above in action. |
| superiorRatio | 1.0 vs 2.0 | No clear effect in a test without commanders. It mainly changes when commanders and groups decide to attack. |
aiAggression first, play a round, and only then adjust cover, dodge and suppression — their effective values all move when you change it.Key reference
All 156 named keys, with the value a fresh server writes and the range it's clamped to. Every one of these also exists in the Game Master settings window and in the modding API under the same name.
Ranges are hidden on narrow screens — rotate or widen to see them. A tested tag means that key was measured in a stress run, written up under the aggression trap.
Soldier
27 keys — from the Unit, Personality, Dodge, Weapon Usage groups.
| JSON key | Shipped | Range | What it does |
|---|---|---|---|
| aimAccuracy | 1 | 0.1 .. 10.0 | Aim accuracy multiplier. Higher = more accurate. |
| aimSpeed | 1 | 0.25 .. 4.0 | Seconds needed to reach full accuracy on a target. |
| aimShake | 1 | 0.25 .. 4.0 | How steady AI holds the weapon when standing, kneeling or tired. 1.0 = realistic; higher = smaller posture and fatigue penalty. |
| aiPerception | 1.5 | 0.5 .. 5.0 | Spotting multiplier. Higher = detects enemies faster and further. |
| vehicleDismountDanger | 700 | 0.0 .. 2000.0 | Dismounts when danger is closer than this distance (m). |
| disembarkRule | 0 | AUTO .. NEVER | When AI may leave a vehicle. Auto = as usual. Disabled only = only when the vehicle is badly damaged or ordered. Orders only = only through a get out waypoint or order. Never = never get out. A destroyed or burning vehicle always allows getting out. |
| suppressionEffect | 1 | 0.0 .. 2.0 | How strongly suppression affects the AI. 0 = immune. |
| takeCoverChance | 0.8 | 0.0 .. 1.0 | Chance to actively seek cover when spotted in the open. |
| magicallyResupplied | false | — | Never runs out of magazines. |
| aiSkillDefault | 2 | NOOB .. TERMINATOR | Combat skill preset, from Noob to Terminator. |
| personalityWeightMeasured | 80 | 0.0 .. 100.0 | Relative share of new soldiers that roll the Measured personality. Can differ per faction. |
| personalityWeightCautious | 7 | 0.0 .. 100.0 | Relative share of new soldiers that roll the Cautious personality. Can differ per faction. |
| personalityWeightAggressive | 12 | 0.0 .. 100.0 | Relative share of new soldiers that roll the Aggressive personality. Can differ per faction. |
| personalityWeightReckless | 3 | 0.0 .. 100.0 | Relative share of new soldiers that roll the Reckless personality. Can differ per faction. |
| dodgeChance | 0.8 | 0.0 .. 1.0 | Chance to run for cover when shot at. |
| dodgeCooldown | 8 | 0.0 .. 120.0 | Minimum seconds between two dodges. |
| dodgeMaxDist | 400 | 0.0 .. 1000.0 | Shots from further than this (m) never trigger a dodge. |
| dodgeSearchDist | 50 | 5.0 .. 100.0 | How far (m) to search for cover or a building when dodging. |
| dodgeScaleByPersonality | true | — | Personality adjusts dodge chance (Cautious more, Reckless less). |
| proneChance | 1 | 0.0 .. 1.0 | Chance an AI is allowed to go prone, in every situation. 0 = AI never go prone, 1 = always allowed. Each AI keeps its roll for 10 seconds; AI already prone stay prone. |
| cqbProneChance | 0 | 0.0 .. 1.0 | Chance an AI is allowed to go prone during CQB: inside a building, or with the enemy closer than close-combat range. 0 = AI never go prone in CQB (old behaviour), 1 = always allowed. Each AI keeps its roll for 10 seconds. |
| dodgeShotThreshold | 1 | 1 .. 20 | Enemy shots AI need before dodging. 1 = dodge on the first shot. |
| dodgeShotWindow | 5 | 1.0 .. 30.0 | Seconds a shot keeps counting toward the threshold. A longer pause resets the count. |
| grenadeUsage | 0.5 | 0.0 .. 1.0 | How often frag grenades are thrown. 0 = never, 0.5 = default, 1 = often. |
| glUsage | 0.7 | 0.0 .. 1.0 | How often underbarrel grenade launchers are fired. 0 = never, 0.5 = default, 1 = often. |
| glAccuracy | 1 | 0.1 .. 5.0 | Underbarrel grenade launcher accuracy. Higher = tighter impact spread. 1 = default. Applies to AI spawned afterwards. |
| smokeUsage | 0.5 | 0.0 .. 1.0 | How often smoke is thrown to cover movement. 0 = never, 0.5 = default, 1 = often. Applies to AI spawned afterwards. |
Combat
23 keys — from the Combat, CQB, Night, Investigate, Aggression groups.
| JSON key | Shipped | Range | What it does |
|---|---|---|---|
| superiorRatio | 2 | 1.0 .. 5.0 | A squad switches to assault posture with bounding fireteams when its weighted strength (MG, AT and vehicles count more; an armored vehicle facing infantry without AT always wins) is at least this many times the known enemy strength and it is not heavily suppressed. Also lets idle squads and Defend/Release garrisons leave their hold (within leash). |
| longRangeHold | true | — | Target beyond the weapon effective range and not directly threatened: stay put (prone if the target stays visible, else crouch) and fire slow aimed single shots. |
| rifleEffectiveRange | 350 | 100.0 .. 800.0 | Beyond this range rifle fire rate is capped (slow single shots); threat cannot raise it. |
| mgEffectiveRange | 700 | 200.0 .. 1500.0 | Machine guns may keep bursting (suppression) up to this range; beyond it they fire slowly. |
| shareBuildings | false | — | Allow several squads to use the same building for indoor positions (defend, idle, garrison). Off = one building per squad. |
| coverPreference | 0 | 0 .. 2 | Where defending / idle squads look for positions: Balanced scores indoor and outdoor spots together (fortifications like sandbags and trenches get a bonus), Indoor prefers buildings, Outdoor prefers field cover. |
| overmatchAssault | true | — | A squad that clearly outguns a confirmed enemy (weighted strength: MG, AT and vehicles count more; ratio scaled by leader personality) keeps bounding forward while the enemy is still visible instead of trading fire from position. Aborts on a new unknown contact, fire from another direction, heavy suppression or when the edge is lost. |
| overmatchMaxDist | 250 | 100.0 .. 500.0 | Overmatch assault only starts when the enemy is closer than this. |
| cqbEnabled | true | — | Squads attacking, flanking or in an overmatch assault that see enemies inside a building within 100 m clear it room by room in pairs (random order through the building graph), with a rear guard outside. Also sweeps buildings after an objective is captured. The Do CQB waypoint uses the same clear. |
| cqbIsolateMin | 6 | 3 .. 12 | Squads with at least this many living members keep 1 man outside as rear guard (2 men from this number + 2), MG preferred. Smaller squads all go in as pairs. |
| cqbStackWait | 6 | 0.0 .. 30.0 | Longest wait at the building entry for the team to gather before the first room is picked; after this the clear starts with whoever has arrived. |
| cqbAbortLosses | 2 | 1 .. 6 | Casualties (dead or unconscious) that abort the clear. The building stays marked as occupied and is tried again later (Do CQB waypoint: next attempt after 15 s). |
| cqbCaptureWaits | true | — | An objective is only captured when no building inside its radius is marked as occupied (enemy seen inside and not cleared yet). |
| cqbContactTimeout | 180 | 30.0 .. 600.0 | A building marked occupied counts as clear after this long without new contact from it, so captures never stall. |
| cqbBreachMode | 0 | 0 .. 3 | When the CQB pair throws a frag before entering a room. Auto = only when an enemy is known in that room (seen in the last 15 s), Always = every room, Never = no grenades. At most 3 frags per building. |
| cqbRoomTimeout | 60 | 20.0 .. 120.0 | Seconds a pair may spend on one room (stack, frag, enter, sweep) before it skips the room and moves on. The whole building gets 120 s + rooms x this. |
| nightEnabled | true | — | At night: squads in contact with unlit enemies 100-400 m away fire a flare (from a 40mm illumination round or RSP-30 in their inventory; otherwise they ask the commander for illumination), defending groups open fire later, long-range fire starts closer, and the commander fires illumination over an objective when the assault is released. |
| nightFlareCooldown | 75 | 30.0 .. 300.0 | Minimum time between flares from the same squad. Only one flare per 150 m area at a time. |
| nightEngageMul | 0.6 | 0.2 .. 1.0 | At night Defend/Garrison groups open fire at this fraction of their normal engage distance (unless directly threatened), and rifle/MG effective range is scaled by the same factor. |
| nightLightDiscipline | true | — | At night AI flashlights stay off outdoors and only the entry team clearing a building turns them on inside. Vehicle headlights go off when an enemy is known within 800 m. |
| investigateMaxDist | 500 | 0.0 .. 1500.0 | This squad ignores unidentified contacts further than this (m). Starts at the DCO global value. |
| investigateChance | 1 | 0.0 .. 1.0 | Chance this squad investigates an unidentified contact, rolled once per contact. Starts at the DCO global value. |
| aiAggression tested | 1 | 0.5 .. 10.0 | Overall AI aggression. 1 = DCO default (2.5x the old normal, effective value = slider x 2.5). Lower = soldiers take cover sooner, squads fall back sooner and the commander attacks less; higher = soldiers push through fire, squads hold under losses and the commander attacks more. New soldiers also roll more cautious or aggressive personalities. Can differ per faction. |
Behaviour
28 keys.
| JSON key | Shipped | Range | What it does |
|---|---|---|---|
| behTargetPriority | true | — | Soldiers pick targets by personality: who is shooting at them, AT/MG gunners, leaders/radio operators or the nearest enemy. At most one switch per 3 s. |
| behReloadDiscipline | true | — | Tactical reload below 30% when no enemy was seen for 3 s, fireteam mates do not reload at the same time, 'reloading' callout. |
| behPistolCQB | true | — | Empty primary with an enemy under 10 m: switch to the handgun instead of reloading, switch back when clear. |
| behSecurity360 | true | — | Halted groups not in contact watch front, left, right and rear sectors. |
| behHearing | true | — | Groups hear engines, footsteps, doors and explosions and turn to look or investigate. |
| behBuddyCallout | true | — | When a soldier identifies an enemy, nearby squad mates look and receive it as detected, with a voice callout. |
| behWindowFire | true | — | Soldiers in contact near a building take a window or roof slot facing the enemy. |
| behMGGunner | true | — | Machine gunners set a base of fire, keep suppressing the last known position, displace and get an assistant. |
| behATSpecialist | true | — | Rockets only against vehicles, bunkers, MG nests and window targets; flank armor, check backblast, squad covers the AT. |
| behMarksman | true | — | Marksmen take elevated overwatch, prioritize leaders, MG and AT, and relocate after a few shots. |
| behLeaderRTOGrenadier | true | — | Group confusion when the leader dies, report delay when the radio operator dies, grenadier smoke and HE use. |
| behBreakContact | true | — | Withdrawals use smoke and fireteam leapfrog instead of one group run. |
| behAmbushDrill | true | — | Ambushed squads assault through (near) or take cover, smoke and break contact or flank (far). |
| behContactSOP | true | — | Squads that see an unaware enemy observe, set a hasty ambush, bypass or engage depending on their task. |
| behRearm | true | — | Soldiers low on ammo resupply from ammo boxes, logistics trucks and corpses. |
| behSpecialistRecovery | true | — | A rifleman picks up the weapon of a fallen MG/AT/GL specialist when the group needs it. |
| behRearmEnemySources | true | — | Rearm may use enemy corpses. |
| behEnemyWeapons | true | — | Specialist recovery may pick up enemy weapons. |
| behExplosionReactions | true | — | Soldiers hit the dirt near blasts, get shocked and briefly deafened up close, react to friendly danger-close blasts, displace out of artillery beaten zones, report indirect fire to the commander (counter-battery also against player and vanilla mortars), take cover from grenade shrapnel and estimate where GL/RPG shots came from. |
| behPlayerVoice | true | — | Enemy AI can hear players talking on VoN: certain within 8 m, fading to nothing around 25 m. Walls, vehicles, engine noise and nearby gunfire muffle it, longer talking is easier to hear, radio talkers are quieter. The listener group gets the estimated position as a contact. |
| behLeanPeek | true | — | Soldiers lean out from cover to peek at unseen noise or fire, peek-shoot when suppressed, check where a lost target was last seen and watch sectors. In CQB they slice the pie at doors and corners, lean around hallway and stair turns and peek before entry, also while walking. |
| behSuppressLastKnown | true | — | Soldiers keep firing at the last seen position of a hidden enemy for a window based on weapon (rifle 5 s, MG 12 s, close 8 s) and personality, spread along the cover edge, then watch the spot and report lost contact. |
| behAssaultFire | true | — | Soldiers advancing toward a visible enemy closer than 30 m run instead of sprint and keep aiming, firing bursts while they move. Moves to cover under heavy fire stay a sprint. |
| behReactionTime | true | — | Soldiers need a short moment before firing at a newly seen enemy (longer when relaxed, shorter when alert, faster with higher skill, slower when the enemy is behind them). A first near miss on a relaxed soldier makes him freeze or drop for a moment. |
| behProneMove | true | — | Realistic prone moves: crawl forward up to 15 m (under heavy fire, sneaking, MG/marksman shifts), roll sideways up to 3 m, crawl back up to 5 m still facing the enemy. Longer prone moves get up to crouch first. |
| behPinned | true | — | Accurate close fire (weighted near misses) pins soldiers down: they stay low, stop moving and only fire rare unaimed bursts until the fire stops, then peek and recover. When half the squad is pinned the leader reports, pops smoke, the free fireteam suppresses and flanks, and support is requested. |
| behAwareness | true | — | Finding a friendly body makes the squad sweep toward the killer. Lost enemies are chased along their last direction (150-300 m by personality) and the commander sends an idle group to cut them off. Under enemy artillery squads spread out, avoid halting in the open and do not bunch in one building. Static soldiers use concealment, avoid the skyline, keep back from windows, rest their weapon and deploy bipods. |
| behCombinedArms | true | — | Infantry escort tanks from behind or the side and lead them through towns and forest; tanks wait for infantry before entering towns or forest, go hull-down and fire at positions infantry spot. Defending squads in contact man nearby static HMG/AT weapons and the commander counts statics as defense assets. |
Idle & stragglers
13 keys — from the Idle, Straggler groups.
| JSON key | Shipped | Range | What it does |
|---|---|---|---|
| idleEnterTime | 30 | 5.0 .. 300.0 | Seconds a group without waypoints waits before going IDLE: members take cover and hold. Player groups never go IDLE. |
| idleCoverSearchDist | 100 | 10.0 .. 200.0 | How far (m) from the leader IDLE members search for cover or a building position. |
| idleOverrunDist | 15 | 0.0 .. 100.0 | IDLE units only leave their cover when an enemy is this close (m). |
| idleLeaveToAssist | true | — | IDLE groups may leave cover to attack enemies that are fighting allies. Enemies shooting at the group itself are fought from cover. |
| idleLeaveToInvestigate | false | — | IDLE groups may leave cover to investigate unidentified contacts. |
| idleFollowCommander | true | — | IDLE groups still take AI Commander orders. Off = the commander leaves IDLE groups alone. |
| stragglerEnabled | true | — | Soldiers who fall far behind their leader are ordered back. Can differ per faction. |
| stragglerTime | 15 | 5.0 .. 120.0 | Seconds outside cohesion distance before a soldier is pulled back. Can differ per faction. |
| stragglerStuckTime | 30 | 10.0 .. 300.0 | Seconds without getting 3 m closer to the leader that count as stuck. He tries another point once, then is marked stuck. |
| stragglerLog | false | — | Log each straggler: distance, active behavior, combat mode, cover, leash. For diagnosis. |
| combatCohesionOpen | 40 | 10.0 .. 100.0 | In combat, a member farther than this from the leader in the open moves back to a random spot within half this distance of the leader. Scaled by each group's cohesion multiplier. |
| combatCohesionUrban | 15 | 5.0 .. 50.0 | Same as Combat Cohesion (Open), used when the member or the leader is inside a building. |
| armorFearScale | -1 | -1.0 .. 2.0 | How much a nearby enemy tank or armored vehicle lowers morale. -1 = automatic by faction: regular armies (US, USSR) 0.5, others (FIA militia) 1.0. Set it on a faction layer to override one side. |
Squads & commander
24 keys — from the Contact Report, Contact Sharing, Cross-Group Medic, Commander Spawner groups.
| JSON key | Shipped | Range | What it does |
|---|---|---|---|
| contactReportMaxPerScan | 0 | 0 .. 10 | Most contact reports one squad sends to its commander per scan. Priority: armor/vehicles, then AT/MG/sniper, then enemies firing at the squad, then infantry (bigger and nearer first). The rest is reported on the next scan. 0 = use each squad's prefab value (default 3). |
| contactReportScanInterval | 0 | 0.0 .. 60.0 | How often each squad checks what it sees and reports contacts to the commander. 0 = use each squad's prefab value (default 15 s). |
| shareEnabled | true | — | AI squads share enemy contacts with nearby friendly squads by voice or short radio, without going through the commander. |
| shareVoiceRange | 100 | 20.0 .. 300.0 | Distance (m) a squad can shout a contact to another squad. No radio needed. |
| shareRadioRange | 400 | 100.0 .. 1500.0 | Distance (m) of squad-to-squad short radio. |
| shareNoisePer100m | 8 | 0.0 .. 50.0 | Base position error (m) of a shared contact per 100 m between the spotter and the enemy. |
| shareVoiceNoise | 1.5 | 0.5 .. 5.0 | Extra position error for contacts passed by voice (rougher than radio). |
| shareRadioNoise | 1 | 0.5 .. 5.0 | Position error multiplier for contacts passed by short radio. |
| shareRequireRadio | false | — | Short radio sharing only works when both the sender and the receiver carry a radio. Voice always works. |
| shareHops | 2 | 1 .. 2 | 1 = only direct. 2 = a squad that received a contact may pass it on once more (with extra error). |
| shareMapMarkers | false | — | Shared contacts are marked on friendly players' maps (vanilla AI enemy markers). Positions keep their error. |
| shareToPlayers | false | — | Friendly players in voice or radio range get a small notification when an AI squad shares a contact. Each player can hide it in Settings > DCO. |
| shareDebug | false | — | Log every shared contact (sender, receiver, hop, voice/radio, error) to the console. |
| medicCrossGroup | true | — | AI medics treat friendly casualties outside their own group when the casualty's group has no medic that can come. |
| medicRadiusBleeding | 150 | 25.0 .. 500.0 | How far (m) to look for a medic from another group for a bleeding casualty. |
| medicRadiusUnconscious | 300 | 25.0 .. 800.0 | How far (m) to look for a medic from another group for an unconscious casualty. |
| medicIncludePlayers | true | — | Friendly players are treated by AI medics too. |
| medicUnderFire | true | — | Unconscious casualties may be reached under fire, with smoke, when the medic is not directly engaged. Bleeding casualties always wait until it is safe. |
| medicMaxLentPerGroup | 1 | 1 .. 4 | How many medics one group lends out at the same time. |
| medicTimeout | 90 | 20.0 .. 300.0 | Seconds before a lent medic counts as failed and another medic is tried. |
| commanderStock | -1 | -1 .. 100000 | Starting reinforcement stock for all commanders (soldiers). -1 = use each commander's own value. |
| maxAttackGroups | -1 | -1 .. 20 | Default for every commander's maximum number of groups sent on one attack (1-20). -1 keeps each commander's own setting from its prefab or the GM. |
| spawnerFactionAICap | 0 | 0 .. 2000 | Total AI cap per faction for Commander Spawners. When reached, spawning is delayed. 0 = unlimited. |
| c2Realism | 1 | 0 .. 2 | How the AI commander learns about its own squads. 0 = Off (knows their state at once). 1 = Standard: squads report by radio (Contact, SPOTREP, LACE, SITREP) over one commander net and the commander plans with the last report. 2 = Full: Standard plus radio range (tune_c2_radio_m 1500 m without a radio pack), relay through another squad, radio check after tune_c2_check_s (600 s) of silence and lost contact (no new tasks, half strength, the squad holds tune_c2_lost_hold_s (300 s) and then moves to the nearest own objective). Can differ per faction. Other tuning: tune_c2_sitrep_s (300), tune_c2_queue_max (20), tune_c2_tx_min_s / tune_c2_tx_max_s (10 / 30), tune_c2_sat_per_min (4). |
Server & players
41 keys — from the General, Doctrine names, Performance, Player Awareness, GroupPresets, GMSettings groups.
| JSON key | Shipped | Range | What it does |
|---|---|---|---|
| doctrinePreset | Default (Measured) | — | Name of the server-wide commander doctrine preset. Built-in names: "Default (Measured)", "Defensive", "Aggressive", "Recon-heavy", "US 1989", "USSR 1989", "FIA"; any other name loads $profile:DCO/Doctrine/<name>.json, and an unknown name falls back to "Default (Measured)". Written by the GM doctrine editor; doctrineMasks, doctrineNumbers and doctrineForce are applied on top of it. |
| doctrineBattleStrong | from the preset | — | attack plan columns allowed when the commander is Strong (names below). Names separated by spaces, or none. |
| doctrineBattleFavorable | from the preset | — | attack plan columns allowed when the commander is Favorable (names below). Names separated by spaces, or none. |
| doctrineBattleEqual | from the preset | — | attack plan columns allowed when the commander is Equal (names below). Names separated by spaces, or none. |
| doctrineBattleWeaker | from the preset | — | attack plan columns allowed when the commander is Weaker (names below). Names separated by spaces, or none. |
| doctrineBattleUnknown | from the preset | — | attack plan columns allowed when the commander is unsure of the force balance (names below). Names separated by spaces, or none. |
| doctrineDefenseStrong | from the preset | — | defensive plan columns allowed when the commander is Strong (names below). Names separated by spaces, or none. |
| doctrineDefenseFavorable | from the preset | — | defensive plan columns allowed when the commander is Favorable (names below). Names separated by spaces, or none. |
| doctrineDefenseEqual | from the preset | — | defensive plan columns allowed when the commander is Equal (names below). Names separated by spaces, or none. |
| doctrineDefenseWeaker | from the preset | — | defensive plan columns allowed when the commander is Weaker (names below). Names separated by spaces, or none. |
| doctrineDefenseUnknown | from the preset | — | defensive plan columns allowed when the commander is unsure of the force balance (names below). Names separated by spaces, or none. |
| doctrineSupportSupplies | from the preset | — | Squad conditions that trigger a supplies request (names below). Names separated by spaces, or none. |
| doctrineSupportReinforcement | from the preset | — | Squad conditions that trigger a reinforcement request (names below). Names separated by spaces, or none. |
| doctrineSupportSupport | from the preset | — | Squad conditions that trigger a support request (names below). Names separated by spaces, or none. |
| doctrineSupportFiresupport | from the preset | — | Squad conditions that trigger a firesupport request (names below). Names separated by spaces, or none. |
| doctrineSupportMedevac | from the preset | — | Squad conditions that trigger a medevac request (names below). Names separated by spaces, or none. |
| doctrineReconTimeout | 300 | 60 .. 1800 | Seconds of recon on Unknown before Movement to Contact. |
| doctrineWeakerScale | 1 | 0.2 .. 2 | Scale for the Weaker defence thresholds 0.33 and 0.17. Below 1 holds longer. |
| doctrineWaitTimeout | 240 | 30 .. 1800 | Wait timeout in seconds at Moderate decision (Fast x0.5, Slow x1.5). |
| doctrineReserve | 0.25 | 0 .. 0.5 | Share of the force kept back when Keep reserve applies. |
| doctrineAttackRatio | 0 | 0 .. 6 | Minimum attack ratio (0 = the commander's own attack ratio). |
| doctrineCounterMin | 300 | 0 .. 1800 | Counterattack window on a lost objective, shortest (seconds). |
| doctrineCounterMax | 600 | 0 .. 1800 | Counterattack window on a lost objective, longest (seconds). |
| doctrineRetreatLoss | 0 | 0 .. 0.9 | Abort the attack when this share of the committed force is lost (0 = off). |
| doctrineConsolidate | 480 | 60 .. 1200 | Seconds a captured objective is held before its groups are released. |
| doctrineForce | reserve min=1 share=min max=2; sbf min=1 share=0.33 max=2; attack min=2 share=ratio max=6; ... | — | How many squads the commander sends to each mission, one row per mission separated by ;: `<mission> min=<n> share=<ratio |
| doctrineFiaDefendV1 | (internal) | — | Internal one-time marker: set after the FIA doctrine defense rows were migrated to also defend objectives (obj_defence). Do not edit. |
| lodMode | 0 | VANILLA .. FULL_DETAIL | Simulation detail for groups owned by an AI Commander. Groups without a commander always stay vanilla unless their own AI LOD is set. Vanilla = engine decides (distant AI may stop). Prevent Max LOD = commander groups keep moving and fighting far from players. Full Detail = commander groups always at full simulation, heaviest. Applies immediately. |
| perfProfiling | false | — | Server-side profiler: every 30 s writes FPS (avg/min/longest frame), AI count by LOD, groups per commander, time per DCO system and queries/raycasts per second to dco.log (PERF channel) and perf.log in the session folder $profile:DCO/Logs/<date>/<block>/session_<time>/; frames over 50 ms list the systems that ran. Near-zero cost when off. |
| intentOverlay | false | — | Commander intent map overlay (Dev/GM): plans, decision reasons, group roles, the commander's picture of the enemy. Off = none; on = Game Master only. Always allowed in Workbench. |
| overlayMode | 1 | 0 .. 2 | Friendly AI groups on the players' map. 0 = off, 1 = only squads supporting the player's group or sharing its objective, 2 = all. |
| overlayRadius | 1500 | 200.0 .. 5000.0 | Base radius (m) for objectives in the relevant overlay mode (objectives within 2x this radius are shown). |
| radioRadius | 800 | 100.0 .. 3000.0 | Players within this radius (m) of an objective hear the commander's operation broadcasts. |
| artyWarnRadius | 400 | 100.0 .. 1500.0 | Friendly players within this radius (m) of an artillery target are warned before the rounds are fired. |
| playerBriefings | true | — | Commander briefings to player groups (OPORD, FRAGO, phases, withdraw/cancel). Off = nothing is sent and players see Disabled by server. |
| playerBriefingCap | 2 | 0 .. 2 | Highest briefing HUD level players may choose. 0 = Hardcore, 1 = Standard, 2 = Assisted. |
| briefingWorldMarkers | 0 | 0 .. 2 | Briefing world markers. 0 = follow the player's level, 1 = off for everyone, 2 = on for everyone. |
| groupPresetUploads | gm | — | Who may upload saved group presets to the server. Allowed values: "gm" (any Game Master, default), "admin" (server administrators only), "off" (nobody). Other values are ignored. |
| groupPresetLimit | 200 | 0 .. 10000 | Maximum number of saved group preset files the server keeps. When the count is reached, new preset uploads are refused until one is deleted. |
| gmSaveConfig | admin | — | Who may save the current GM settings back to the server config file from the GM settings screen. Allowed values: "gm" (any Game Master), "admin" (server or session administrators, default), "off" (nobody). The listen-server host can always save unless this is "off". |
| startupPresetPrompt | true | — | On/off (true/false, default true). When on, the first unrestricted Game Master is offered the list of saved Global settings presets to load at session start, if any presets exist. |
Tuning keys
Beyond the named keys there are 535 tuning keys, all prefixed tune_. They're the numbers the AI reasons with — hearing error, cover scoring, flank geometry, morale thresholds — exposed rather than buried. A value equal to the default means the built-in behaviour, so a file that mentions none of them behaves exactly as shipped.
Naming
Each key has two spellings, and both are accepted everywhere — config, Game Master and API: the config name tune_hear_mask, or the short internal name hear.mask. The generated DCO_GlobalConfig_README.txt next to your config file lists every key with its default and range.
The larger groups
| Prefix | Keys | Covers |
|---|---|---|
| tune_wf_ | 39 | Weapon and fire behaviour. |
| tune_ph_ | 26 | Phase handling inside a task. |
| tune_fi_ | 25 | Fire control and engagement decisions. |
| tune_cr_ | 24 | Contact reporting. |
| tune_tac_ | 21 | Commander tactic selection. |
| tune_va_ · tune_agg_ | 19 · 19 | Vehicle activity, and the aggression profile. |
| tune_tb_ · tune_def_ | 18 · 18 | Team bounding, and defence layout. |
| tune_mb_ · tune_opp_ | 16 · 15 | Move brain, and opportunity handling. |
| tune_cqb_ · tune_reinf_ · tune_osc_ | 13 · 12 · 12 | Building clearing, reinforcement, oscillation damping. |
Another 38 prefixes hold the remaining keys, from tune_cov_ (cover) and tune_fm_ (fire missions) down to single-key groups.
Troubleshooting
| Symptom | Check |
|---|---|
| My edits did nothing | Look for N settings overridden from ... at startup. If N is 0, the file is somewhere else — it has to be $profile:DCO/DCO_GlobalConfig.json under the -profile folder the server actually uses. |
| A key vanished from the file | It was misspelled. Only real keys survive a rewrite — copy the name from the reference above. |
| My value went back to the default | Either it was clamped (cfg_clamped), or it was still sitting at the old shipped default and got migrated (cfg_default_migrated). Values you edited are never migrated. |
| The whole file was ignored | cfg_parse_fail — a trailing comma or a missing brace. The previous values stay and nothing is written, so your file is still intact. |
| Faction values ignored | cfg_faction_global_only for server-wide keys, cfg_faction_skip for a faction that isn't in the mission, cfg_factions_not_object if the block is an array rather than an object. |
| Game Master changes gone after restart | Game Master edits apply live but aren't written back unless somebody saves. gmSaveConfig controls who may. |
| Cover and suppression feel weaker than the numbers | They are. See the aggression trap. |
| Lower isn't better, or vice versa | Check the shipped value in the table rather than your intuition. Several keys ship above 1 (aiPerception 1.5) and several below (takeCoverChance 0.8). |
Running a DCO server?
Bring your config and your perf log to Discord — tuning questions get answered fastest with numbers attached.