What Does cfggameplay.json Control?
Learn which DayZ gameplay settings can be changed in cfggameplay.json, including stamina, respawning, base placement, vehicles, maps and world systems.
Looking for DayZ console bot setup guides?
See our feature pages for DayZ auto ban, and DayZ economy bot.
cfggameplay.json
cfggameplay.json is the large gameplay-settings file. It contains grouped settings rather than one simple server switch. The supplied missions use sections for general rules, player systems, world data, base placement/construction, UI, vehicles and map behaviour.
Start with a small, valid change
The supplied file uses this structure for general damage and respawn rules:
{
"version": 130,
"GeneralData": {
"disableBaseDamage": false,
"disableContainerDamage": false,
"disableRespawnDialog": false,
"disableRespawnInUnconsciousness": false
}
}Keep the rest of the file when changing one setting. The version value identifies the supplied gameplay schema; do not remove required sections just to change one value.
Settings server owners commonly change
- GeneralData.disableBaseDamage controls normal damage to base structures.
- GeneralData.disableContainerDamage controls normal damage to storage containers.
- PlayerData.StaminaData contains stamina capacity, weight threshold and movement-use modifiers.
- PlayerData.ShockHandlingData contains conscious and unconscious shock refill speeds.
- PlayerData.DrowningData contains stamina, health and shock depletion speeds used by drowning handling.
- BaseBuildingData.HologramData controls placement checks such as collision, terrain, underwater and permitted-placement checks.
- BaseBuildingData.ConstructionData controls construction checks and material/refund behaviour exposed by the file.
- MapData controls map and navigation ownership/display settings where supported by the mission.
- WorldsData contains world temperature arrays, lighting and supported world-specific systems.
- VehicleData contains supported vehicle wheel, decay and attachment behaviour switches.
For example, the supplied file has MapData.displayPlayerPosition set to false and Nasdara's WorldsData.bunkerBroadcastEnabled set to true. Those are actual supplied values; other worlds may not use the same sections or values.
Sandstorms and world-specific sections
Nasdara's sandstorm setting is documented separately in Nasdara sandstorms. Keep world-specific settings on the world mission that actually uses them. A setting appearing in one map's file is not proof that every map supports the same behaviour.
Validation
This is JSON, so comments are not valid inside the deployed file. Preserve commas, matching braces and the exact key spelling. Validate the complete file after editing; a syntactically valid JSON file can still contain a setting unsupported by the host's game build.
Editable on console: when the host exposes the mission file and the game build supports the selected section.
Source basis: supplied cfggameplay.json files and the extracted gameplay configuration handlers.
Change one branch at a time
cfggameplay.json is easy to break because it contains many nested objects. The safest workflow is to copy the existing file, change one setting in its existing section, and leave unrelated branches untouched. Do not replace the full file with a short example: the example above shows the shape of one branch, not a complete deployment file.
The supplied source distinguishes between settings that are read directly by gameplay handlers and settings that are only meaningful when another system is enabled. For example, a world-specific setting should stay in the matching world's mission, and a map or base-building switch should be tested with the corresponding in-game system rather than assumed from its name.
Useful checks after editing
- Confirm the JSON parses before upload; comments are not valid JSON.
- Confirm the key is in the same parent object as the supplied vanilla version.
- Compare the deployed file with the intended file after upload.
- Test the setting on a fresh action or restart where the supplied handler reads it during startup.