Skip to content

DayZ Modding Complete Guide — English ​

A complete, community-maintained guide to DayZ modding and server administration — 98 chapters across nine parts, from your first mod to advanced economy tuning.

Note: This is the English version. For other languages, see the home page.

Languages: English · Português · Deutsch · Русский · Čeština · Polski · Magyar · Italiano · Español · Français · 日本語 · 简体中文


Table of Contents ​

Part 1: Enforce Script Language ​

Learn DayZ's scripting language from the ground up.

ChapterTopic
1.1Variables & Types
1.2Arrays, Maps & Sets
1.3Classes & Inheritance
1.4Modded Classes
1.5Control Flow
1.6String Operations
1.7Math & Vectors
1.8Memory Management
1.9Casting & Reflection
1.10Enums & Preprocessor
1.11Error Handling
1.12What Does NOT Exist
1.13Functions & Methods

Part 2: Mod Structure ​

Understand how DayZ mods are organized.

ChapterTopic
2.1The 5-Layer Script Hierarchy
2.2config.cpp Deep Dive
2.3mod.cpp & Workshop
2.4Anatomy of a Minimal Mod
2.5File Organization
2.6Server/Client Architecture

Part 3: GUI & Layout System ​

Build user interfaces for DayZ.

ChapterTopic
3.1Widget Types
3.2Layout File Format
3.3Sizing & Positioning
3.4Container Widgets
3.5Programmatic Creation
3.6Event Handling
3.7Styles, Fonts & Images
3.8Dialogs & Modals
3.9UI Patterns in Practice
3.10Advanced Widgets

Part 4: File Formats & Tools ​

Working with DayZ asset pipeline.

ChapterTopic
4.1Textures (.paa, .edds, .tga)
4.23D Models (.p3d)
4.3Materials (.rvmat)
4.4Audio (.ogg, .wss)
4.5DayZ Tools Workflow
4.6PBO Packing
4.7Workbench Guide
4.8Building Modeling (Doors & Ladders)

Part 5: Configuration Files ​

Essential configuration files for every mod.

ChapterTopic
5.1stringtable.csv (13 Languages)
5.2Inputs.xml (Keybindings)
5.3Credits.json
5.4ImageSet Format
5.5Server Configuration Files
5.6Spawning Gear Configuration

Part 6: Engine API Reference ​

DayZ engine APIs for mod developers.

ChapterTopic
6.1Entity System
6.2Vehicle System
6.3Weather System
6.4Camera System
6.5Post-Process Effects
6.6Notification System
6.7Timers & CallQueue
6.8File I/O & JSON
6.9Networking & RPC
6.10Central Economy
6.11Mission Hooks
6.12Action System
6.13Input System
6.14Player System
6.15Sound System
6.16Crafting System
6.17Construction System
6.18Animation System
6.19Terrain & World Queries
6.20Particle & Effect System
6.21Zombie & AI System
6.22Admin & Server Management
6.23World Systems

Part 7: Patterns & Best Practices ​

Recurring structural patterns --- singletons, module systems, RPC, permissions, events --- worked through the wiki's Lantern teaching framework. Read them as designs to adapt, not as drop-in code: none has been compiled or run against a live DayZ build as part of this documentation.

ChapterTopic
7.1Singleton Pattern
7.2Module/Plugin Systems
7.3RPC Communication
7.4Config Persistence
7.5Permission Systems
7.6Event-Driven Architecture
7.7Performance Optimization

Part 8: Tutorials ​

Step-by-step guides.

ChapterTopic
8.1Your First Mod (Hello World)
8.2Creating a Custom Item
8.3Building an Admin Panel
8.4Adding Chat Commands
8.5Using the DayZ Mod Template
8.6Debugging & Testing
8.7Publishing to Steam Workshop
8.8Building a HUD Overlay
8.9Professional Mod Template
8.10Creating a Vehicle Mod
8.11Creating a Clothing Mod
8.12Building a Trading System
8.13Diag Menu Reference

Part 9: Server Administration ​

Configure and manage DayZ dedicated servers.

ChapterTopic
9.1Server Setup & First Launch
9.2Directory Structure & Mission Folder
9.3serverDZ.cfg Complete Reference
9.4Loot Economy Deep Dive
9.5Vehicle & Dynamic Event Spawning
9.6Player Spawning
9.7World State & Persistence
9.8Performance Tuning
9.9Access Control
9.10Mod Management
9.11Server Troubleshooting
9.12Advanced Topics

Reference ​

Standalone lookup material that sits outside the chapter sequence:


About the Lantern Examples ​

The framework-style code that runs through this wiki belongs to Lantern, a fictional mod family (packages such as Lantern_Core, class prefix LNT_, singleton entry point LanternCore) attributed to the equally fictional team "Northlight" purely as a teaching vehicle. Lantern is not a real, published mod --- do not go looking for it on the Workshop, and do not expect a Lantern_Core PBO to exist. The Part 7 pattern chapters carry its fullest treatment. Where a chapter needs two interacting mods, a second fictional content mod, NightPatrol (prefix NP_), plays the counterpart.


Contributing ​

This documentation is written against the vanilla DayZ scripts and official Bohemia Interactive documentation and tools. Example code is written for the wiki rather than copied from a published mod, and the Lantern/NightPatrol framework is fictional (see above). Examples illustrate APIs and structure; they are not compiled or run as part of producing these pages, so verify anything you adopt against your own build.

Pull requests welcome! See CONTRIBUTING.md for guidelines.


Credits ​

ContributorGitHubRole
Bohemia Interactive@BohemiaInteractiveDayZ, the Enforce Script engine, vanilla scripts, DayZ Tools, official sample mods
StarDZ Team@StarDZ-TeamDocumentation compilation, translation & organization

Thanks also to the wider DayZ modding community, whose public forums, tools, and ecosystem make independent documentation like this possible.

License ​

This documentation is licensed under CC BY-SA 4.0. Code examples are licensed under MIT.

Released under CC BY-SA 4.0 | Code examples under MIT License