Manual checks
What to check in the sandbox IDE (./gradlew runIde, and ./gradlew runIdeLatest before a release), feature by feature. This is the acceptance gate for anything touching indexing, library roots or references, which the unit tests cannot exercise: see Testing.
Editor basics
- Open a vanilla file such as
P:\scripts\3_game\dayzgame.c. Confirm the status bar / file icon says Enforce Script — not just that the colours look plausible. - Keywords, strings, numbers,
//!doc comments and#ifdeflines each render distinctly. - Open a
.cfile in an unrelated C project: it must not be claimed. That is theFileTypeOverriderworking (see Which files are Enforce Script). Ctrl+/toggles//,Ctrl+Shift+/wraps/* */,Ctrl+]jumps between matching braces.- Click the
-in the gutter next to a multi-line class or method body → it collapses to{...}; a one-line{}shows no fold gutter at all. Same check on a.layout, folding a widget’s children block. - Open a server file that opens with
#ifdef SERVER→ the whole region folds to#ifdef SERVER ... #endif, and a nested#ifdef DIAGinside it folds independently.
Navigation
Opening a real DayZ mod.
- A balloon reports vanilla indexed from the work drive on first open, and Enforce Script Sources and Vanilla Configs appear under External Libraries. A root in the list that cannot be resolved is named in a warning rather than silently ignored.
- An Enforce Script is in an early stage notice appears once. Don’t show again → it never comes back after a restart. Help → Report Enforce Script Issue → GitHub’s new-issue form, with the versions filled in.
- Ctrl+Click a type declared in the mod → its declaration.
- Ctrl+Click a vanilla type (
MathinMath.Clamp(...),PlayerBase) → the vanilla source. This is the one that proves library roots work, and it must succeed on the first click: a root only reachable after some later background refresh is the bug fixed inEnfusionRoots.toFiles. - Ctrl+Click a name with several declarations → a picker whose rows are distinguishable by file path.
- Ctrl+Click a primitive (
int,float) → nothing happens, and no exception. - Ctrl+Click while indexing is still running → nothing happens, and no
IndexNotReadyException; that is theDumbServiceguard behaving correctly. - No red error notification on project open. A
SlowOperationsassertion there means VFS work has crept back onto the EDT. - Untrusted project: copy the mod into a fresh folder outside any trusted location, give its
.idea/enfusion.xmlthe roots\\127.0.0.1\enfusion-probeand<b>bold</b>(written<b>bold</b>in the XML), and open it choosing Preview in Safe Mode. Nothing appears under External Libraries, no balloon shows, and Process Monitor shows no access to\\127.0.0.1. Trust it and reopen: the warning names both roots, and<b>bold</b>is shown as text, not as bold. - Packed roots: in Settings | Languages & Frameworks | Enforce Script, add a dependency’s
Scripts.pboand a large texture or GUI.pboin one pick. Ctrl+Click a class declared in the scripts PBO reaches its unpacked source on the first click. Itsconfig.cppopens indented and locked, and typing in it is refused.enfusion-pboin the sandbox’s system directory holds KBs for the texture PBO, not its size. Remove the root and the navigation goes. Replace the.pbowith an updated copy and reopen the project: the cache is rebuilt. - PBO folders: add a single
@Modfolder → no question, and its classes navigate. Add!Workshop→ a dialog gives the PBO count and size; Add Folder starts a background task with a progress bar naming each PBO, cancellable. Afterwards a class from any subscribed mod navigates. Subscribe to one more mod and reopen the project: its classes navigate too. - PBO browser: with a
.pboroot, External Libraries lists the.pbonext to its cache; open it → a table of entries, no binary placeholder; typing in the filter narrows it. Enter on a.c→ it opens highlighted and read-only; if the PBO is a root, it is the unpacked file and Ctrl+Click works in it. Openconfig.bin→ an indentedconfig.cpp. In a texture PBO, open a.paa→ the texture viewer; a.p3d→ a warning balloon on its row naming the format, no tab. Open the same entry twice → one tab. - Find a
modded classwith anoverridemethod → a green circular-arrow gutter icon appears on the method name; clicking it, and separately Ctrl+Clicking the method name itself, both land on the vanilla or superclass declaration it overrides. A method that overrides nothing shows no icon. Ctrl+HonPlayerBase→ the Class tab lists everymodded class PlayerBaselayer plus real subclasses; the Supertypes tab on one of those layers leads back to the vanilla declaration. A layer must not expand back into its own siblings — that would be an endless branch.- Ctrl+Click
GetRPCManagerinGetRPCManager().AddRPC(...)andCallTypein an RPC handler’s parameter list → both resolve into the bundled stub (Community Framework Stubs under External Libraries), with no real@CFcheckout present. Add a checkout of DayZ-CommunityFramework as a root and apply: Community Framework Stubs disappears and both now open the real source, with no second candidate. Remove the root again and the stub comes back.
Layers and overrides below
Opening a real DayZ mod with a dependency mod as a root.
- Open vanilla
PlayerBase.c→ a gutter icon on the class name, Modded by N layers, extended by M subclasses; clicking it lists the dependency’s and the mod’s layers with their files. - On vanilla
SetActionsin an item class the mod patches → an icon listing the layers that redeclare it. Typing in that file stays smooth while the icons appear. - On the mod’s own
modded class PlayerBase→ an upward icon, Patches PlayerBase, beside N other layers; clicking it lists vanilla’sPlayerBase.cfirst. Ctrl+Clickthe name of a layer’s constructorvoid PlayerBase()→ vanilla’s constructor only, not its destructor; and the other way round fromvoid ~PlayerBase().Ctrl+Alt+BonPlayerBasein mod code → the same list; on a method call → its overrides.Ctrl+Uinside anoverridemethod of amodded class→ what it overrides; on the class name of an ordinary class → its superclass.
Code completion
Opening a real DayZ mod.
- Inside a method of a
modded class PlayerBase, typeGetIdentity().→ the popup opens by itself on the dot and listsPlayerIdentity’s methods. Do the same on a localarray<ref PlayerBase> players;withplayers.Get(0).→PlayerBase’s members, including those of the mod’s own layers. Math.→ statics such asClampandPI, no instance members.CallType.(bundled CF stub) →ServerandClientonly.- Start a bare name with
Get→ locals and members come first, thenGetGameand the other free functions from vanilla1_core/proto, then types. The popup must open with no visible delay on the full vanilla corpus; a stall here means the global or type lookup has started parsing files. - On a line of its own directly above another assignment (
m_Menu = ...;), typem_Map→ the class’sm_Map...fields are offered. That line briefly parses as a declaration of a local namedm_Menu, so this is the case that proves completion does not trust that reading. - At the top of a class body type
Play→ type names (PlayerBase,PlayerIdentity); then afterPlayerBasetype a field name → nothing is offered. - Accept a method with parameters → the caret lands inside
(); one without → after(). - Keywords: at the start of a statement
ret→return, followed by a space only when the method returns a value. After anif (...) { }block,el→else; at the top of a class bodyov→override; at file scopemod→modded, thencl→class; and inclass X ext→extends. Inside a call’s parenthesesnu→null, butifandreturnare not offered. - During indexing → completion simply offers nothing, and no
IndexNotReadyException.
Parameter info
Opening a real DayZ mod.
- Type
GetGame().CreateObject(→ the hint opens by itself on the(, listingstring type,vector posand the defaulted flags, withtypehighlighted. Type"Apple",→ the highlight moves topos. - Accept a method with parameters from completion → the caret lands inside
()and the hint opens there too. - On a method with overloads (e.g.
GetGame().GetWorldName(), both are listed. After a first argument, the one taking no parameters is greyed out. - In
Outer(Inner(|))the hint showsInner’s parameters; afterInner(...),,hands it back toOuterwith the second parameter highlighted. newon a mod class with a constructor → the constructor’s parameters.- With the caret before the
(or after the),Ctrl+Pshows nothing, and no exception. - Type the whole of
GetGame().CreateObject("Apple", "1 2 1"quickly, without pausing → the hint stays open throughout, each"inserts its partner, and nothing turns red at any point. Type a stray;after a,and delete it again → the hint stays open. Widget.Cast(andButtonWidget.Cast(→Class from:Castlives on vanilla’s rootClass, whichWidgetreaches only implicitly.
Override Methods
Opening a real DayZ mod, with vanilla indexed.
- In a
modded class PlayerBase,Ctrl+O→ the chooser lists vanilla’sPlayerBasemethods, each other layer as its own group with its file, thenManBase,DayZPlayerand the rest of the chain. Methods the layer already overrides are not listed. - Pick
EEInitandOnStoreLoadwith Call super ticked →override void EEInit()withsuper.EEInit();, andoverride bool OnStoreLoad(ParamsReadContext ctx, int version)withreturn super.OnStoreLoad(ctx, version);, after the member at the caret, tab-indented. - The generated code compiles: Tools → DayZ → Check Scripts (Server).
Ctrl+Oagain → Call super is remembered.
Quick Documentation
Opening a real DayZ mod, with vanilla indexed.
Ctrl+QonMath.RandomInt(→ the signature, the\brieftext, the parameters with their text, Returns, and the@codeexample as code. Class links toMath.Ctrl+QonGetGame().CreateObjectEx(→ the signature with its defaulted flags.Ctrl+Qon a method of amodded classthat has no comment of its own → the vanilla comment, with From … naming the vanilla declaration, and Other layers listing the layers. Clicking a link shows that declaration’s documentation.Ctrl+QonPlayerBase→ its Extends chain and every Modded by layer, each a link.Ctrl+QonECE_PLACE_ON_SURFACE→ its value in decimal and hex.Ctrl+Qon anautolocal → Type with the inferred type and (inferred).- Turn on Settings → Editor → General → Code Completion → Show the documentation popup and Show quick documentation on mouse move; hover a vanilla call → the same popup, and hovering a texture path still shows the texture.
Ctrl+ hover a call → one line: class, signature, file.
Inlay hints
- In a mod file,
GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(Refresh, 1000, false)→delay:before1000andrepeat:beforefalse, nothing beforeRefresh. Print("x")andMath.Clamp(v, 0, 1)→ no hint. Alt+Enter on a hint → Do not show hints for current method hides them for that method.auto p = new Param1<int>(5);→p: Param1<int>;foreach (auto x : m_Array)over anarray<ref X>field →x: X. Both can be switched off under Settings → Editor → Inlay Hints.- On a large vanilla file such as
PlayerBase.c, typing stays smooth with hints on.
Navigation from string literals
Opening a real DayZ mod. The examples below use a mod called MyMod.
- Ctrl+Click a widget name such as
"RowHealthIcon"in aFindAnyWidget(...)call → the matchingImageWidgetClassinside the.layoutthe enclosing class loads viaCreateWidgets(...). - Ctrl+Click a layout path built by
+concatenation (MYMOD_PREFIX + "GUI/layouts/...") → the file. This is the one that provesEnConstantEvaluatorfolds through aconst string. - Ctrl+Click a bare
"STR_MYMOD_..."(server-side, no#) → its row inLanguageCore/stringtable.csv; and a"#STR_MYMOD_PARTY_..."inside a.layout→ the stringtable of the addon that declares it, such asParty/stringtable.csv. - Ctrl+Click
"#menu_add"or"#STR_TextInputDialogRoot_WindowLabel0"in a vanilla layout (P:\gui\layouts\…) → its row inP:\languagecore\stringtable.csv, though that row is spelt in lower case and the file is too large for the platform to index. - Open the mod’s
stringtable.csv→ a Table tab next to the text. In it, untranslated cells are tinted, and the headers show coverage. Edit afrenchcell → the text tab changes on that one line;Ctrl+Zundoes it. Change anoriginalwhoseenglishis a copy →englishfollows, and a notification counts it. Add Key…, Add Language… and Fill from Original… each produce one undoable change. - Open
P:\languagecore\stringtable.csv(about 7,300 rows) → the table opens without a pause, scrolls and filters smoothly, and is read-only. - Type
"#STR_MOD_SOMETHING_NEW"in a script → Alt+Enter → Create stringtable row → the row appears at the end of the mod’s stringtable with the caret in itsoriginalcell. - Break a row in the text tab (delete a comma) → the row is an error, and the table’s status line counts it.
- Ctrl+Click each half of
"set:mymod_gui image:Logo_White"separately → theImageSetClassand theImageSetDefClassrespectively. - Ctrl+Click the RPC name in
AddRPC(RPC_MYMOD_NAMESPACE, "SetPlayerCount", this)→ the handler method, with no picker — thethisargument pins a single target. - Ctrl+Click a method name in
AddTimer(duration, this, "OnPlayerCountChanged", ...)→ the method on that state, including one inherited from a superclass. - Open a
.layoutfile: the status bar must say Enforce Layout, not plain text; it folds, andCtrl+F12shows a structure view of the widget tree. - Trigger completion inside a
FindAnyWidget("")call → only the names from layouts the class actually loads, not every widget in the project.
Config class names in script
With P:\DZ (or the game’s Addons as a PBO root) in the roots.
- Ctrl+Click
"Apple"inCreateInInventory("Apple")→ the vanillaCfgVehiclesclass, and a mod’s own redeclaration offered beside it.IsKindOf("Inventory_Base")→ its declaration. - Type
CreateInInventory("Apand complete → item classes, noscope = 0base class. GetGame().ConfigGetText("CfgVehicles " + type + " displayName")→CfgVehiclesnavigates.- Find Usages on a mod’s item class in its
config.cpp→ the scripts that spawn it. - Without
P:\DZ: nothing red, and typing in a spawn call stays smooth.
config.cpp
Scripts/Client/config.cppopens as Enforce Config (check the status bar), folds, and shows a structure view of the class tree.- Ctrl+Click a dependency’s addon name (
"OtherMod_Scripts") inrequiredAddons[]→ theCfgPatchesclass in that dependency’s ownconfig.cpp. - Ctrl+Click
"MyMod/Data/Inputs.xml"→ the file;"…/Mod_Logo.paa"→ the texture. - Ctrl+Click
"#STR_…"and"set:… image:…"inside a config → the stringtable row and the imageset entry, resolved by the providers written for script and layouts. - Ctrl+Click
displayName="$STR_CfgVehicles_…"in a vanillaP:\DZconfig → its row in the vanilla stringtable. - Type
#ifdefin any.cfile → the list offers the flags of the mod’sdefines[], such asMYMODandMYMOD_PARTY, alongside the engine’s own flags. - Add
P:\DZto the roots in the settings → a warning about the first indexing appears; Cancel leaves the list unchanged. Add it again and confirm, wait for the scan, then Ctrl+ClickEffectAreainclass MyEffectArea: EffectArea→ vanilla’s declaration. Vanilla Configs appears under External Libraries; confirm the IDE indexes configs only and does not sit on 24 GB of.paa. AddingP:\scriptsor a mod checkout shows no warning. - A C or C++ file in an unrelated project is not claimed.
Ctrl+Alt+Lon a hand-written modconfig.cppwith mixed indentation → class bodies and multi-line arrays indented with tabs, spacing and one-line arrays unchanged. On a vanillaP:\DZconfig → no line moves; lines holding only tabs come out empty, unless Keep indents on empty lines is ticked. Enter afterclass X: Yand its{→ one level deeper.Ctrl+Alt+Lon a vanilla script whose names are aligned with tabs, such as the fields at the top of5_mission\dayzintroscene.c→ the tabs stay tabs, and the names stay aligned.- Settings → Editor → Code Style → Enforce Config exists, with tabs on.
- In a mod
config.cpp, writeclass MyApple: Apple {};inCfgVehicleswith noclass Apple;(and vanilla configs in the roots) → a warning onApple;Alt+Enter→ Add ‘class Apple;’ adds it at the top ofCfgVehicles. Build PBO with binarising then succeeds where it failed. - Open a vanilla
P:\DZconfig → no such warning anywhere.
Texture viewer
- Open
P:\gui\imagesets\dayz_gui.edds→ the atlas appears over a checkerboard, and the status line reads… BGRA8 … EDDS, LZ4 + raw. The Project view shows it with an image icon, and it opens with no binary file placeholder. Ctrl+wheel zooms around it; Fit to Window and Actual Size do what they say; the transparency toggle shows the alpha-less image.- The mip picker steps through every level down to 1 × 1.
- Open one of the
P:\gui\fontsBC7 atlases → the glyph sheet appears (thesdf_*and*_msdf_*ones look like coloured blurs: they are distance fields), and the status line names BC7. - Re-export a mod’s
.eddswhile it is open → the view reloads. - Open a mod’s
Mod_Logo.paa, then a large vanilla one such asP:\DZ\characters\tops\data\gorka_upper_as.paa→ each appears, and the status line names DXT1 or DXT5 andPAA, LZO. Ctrl+Click apicture="…/Mod_Logo.paa"in aconfig.cpp→ it opens in the viewer. - Open
P:\DZ\data\data\detailmap_4444.paa→ a message naming ARGB4444, not an error. - Open
P:\gui\imagesets\dayz_gui.edds→ an outline around each of its images, and the status line counts them. Hover one → its name, set and region; double-click →dayz_gui.imagesetopens at that entry. The outlines follow zoom and the mip picker. - Open a mod’s atlas, add an
ImageSetDefClassto its.imageset→ a new outline appears in the open viewer. Show Imageset Regions hides and shows them all.
Texture previews on hover
- Hover
"set:dayz_gui image:…"in a.layoutor a script → a popup with that one icon, its region (… at x, y) and the.eddspath. The icon is sharp: the 2x atlas is the one used. - Hover a mod’s
"…/GUI/textures/….edds"literal and apicture="…/Mod_Logo.paa"in aconfig.cpp→ the whole texture, with size, format and mip count. - Hover the name of an
ImageSetDefClassinside an.imageset→ the same cut-out icon. - Hover a path to a BC7 font atlas → its preview. A broken path → a message, never an error.
Texture icons in the gutter
- Open a mod’s
.imageset→ an icon beside eachImageSetDefClass, each showing its own image, and one beside the texturepath. Hover an icon → its name and size. - Open a busy
.layout→ an icon on each line with animage0 "set:…"; click one → the imageset entry. Typing in the layout stays smooth while the icons fill in. - Open
P:\gui\imagesets\dayz_gui.imageset(hundreds of entries) → icons appear after a moment, and scrolling and typing do not stall. - Open a mod’s
config.cppwithhiddenSelectionsTextures[]→ one icon per line. Untick “Texture preview in configs” → they disappear from configs only.
Packing an imageset
- Right-click a folder of PNG or TGA icons inside an addon → Pack into Imageset… → the texture path is the addon’s prefix and the path to the
.edds. Pack → the.imagesetopens, with a gutter icon on each image showing the right picture; the.eddsopens in the texture viewer, BGRA8 with its mips. - Pack again with no change → Git shows no change to either file.
- Use one of the icons in a layout (
image0 "set:<name> image:<icon>") → the layout preview shows it. In game, the icon shows, with no neighbour bleeding into its edge. - A folder with two
icon.pngin different subfolders → refused, namingicon. - Next to an
.imagesetwhoseNamediffers from its file name (Name "my_gui"inicons.imageset), Pack into Imageset… on theiconsfolder → the dialog proposesmy_guiand the.imageset’s texture path. Pack → in game, the layouts’set:my_guiicons still show. - Pack the same folder as DXT5 with Compress the mipmaps with LZ4 → a much smaller
.eddsthat the viewer opens as DXT5 withLZ4mips. In game, use an icon from it in a layout: it shows, with its soft edges. Do the same with DXT1 on opaque icons. - Choose DXT1 for pictures with soft edges → a warning before packing.
- Right-click a vanilla imageset such as
P:\gui\imagesets\dayz_gui.imageset→ Extract Images… → choose a folder → one PNG per image, each matching its gutter icon. Pack that folder again → an imageset naming the same images.
DayZ installation
- Open Settings → … → Enforce Script → DayZ Installation → after a moment every field shows the detected folder in grey and the line at the bottom names what was found. Settings opens without a freeze while detection runs.
- Type a wrong folder into DayZ → a warning that
DayZ_x64.exeis not there; OK still saves. - Clear it again → back to the detected path. Restart the IDE → the typed paths are kept, in
options/enfusion-dayz.xmlof the IDE’s config folder, not in.idea. - On a machine without DayZ Tools → Not detected in its field and no error.
- The Drive letter field shows its whole grey hint (Detected: P).
- Click the folder button of an empty DayZ field → the chooser opens at the detected DayZ folder; of a filled one → at the folder typed.
- Remove every vanilla entry from the root list, keeping Index vanilla DayZ from the work drive ticked →
PlayerBasestill resolves, and External Libraries still listsP:\scriptsandP:\DZ. Untick it → the vanilla roots go away after a re-index; tick it again → back. - Untick Also index the vanilla configs →
P:\DZleaves External Libraries, the scripts stay. - Set Drive letter to a letter with no work drive → the vanilla roots go away, with no warning. Clear it → back to the detected letter and its roots.
Script modules
- In a mod’s
3_Gamefile, declare a field of typePlayerBase→ a warning that it is declared in4_World. In a4_Worldfile, the same line → nothing. - Call, from
3_Game, a method that only a4_Worldmodded classlayer adds → a warning on the method name, none on the class name. - In
3_Game, writemodded class PlayerBase {}→ a warning onPlayerBase. APlayerBasefield in another3_Gamefile is still reported. - A mod whose
config.cpplists non-standard folders indefs→ its files follow the config, not their folder names. - Open a few vanilla
P:\scripts\3_gamefiles → no warnings from this rule.
Work drive
- With
P:mounted → the status bar showsP: → <folder>. Tools → DayZ → Unmount Work Drive → a notification, the status bar showsP: not mounted, andP:\scriptsnavigation stops. - Mount Work Drive →
P:returns, the status bar updates, and Ctrl+Click into vanilla works again without a restart. - Restart the IDE with
P:unmounted, and no vanilla entry left in the root list → a notification thatP:is not mounted, offering Mount P:. - Mount while
P:is already mounted → a warning, nothing run. - Rename DayZ Tools’
WorkDrive.exetemporarily → mounting falls back tosubst. - Mount an empty folder as the work drive → the Vanilla game data is not extracted notification. Use the DayZ install’s PBOs instead → the game’s
Addonsfolder becomes a root and vanilla navigation works. Don’t ask again → it never returns. WithP:unmounted → no such notification. - Tools → DayZ → Extract Game Data… → a confirmation naming the DayZ folder and
P:\; Extract → WorkDrive in its own console window, ending with hit any key to exit; a key closes it, a notification says the data is on the drive, andP:\scriptsresolves.
DayZ Tools
- Tools → DayZ Tools → every installed tool is listed; each one starts.
- Right-click a
.paa→ Open in TexView 2 → TexView opens that texture. A.p3d→ Object Builder. - On a machine without DayZ Tools → no DayZ Tools menu, no Open in … entry, no error.
- In a mod project linked to the work drive (
P:\MyMod→ the checkout), DayZ Installation shows Mod folder as Detected: P:\MyMod. Tools → DayZ Tools → Workbench or the toolbar’s Start Workbench → Workbench opens with the mod loaded from its unpacked files. - In a mod project → the main toolbar’s Build All PBOs, work-drive, Start Workbench and DayZ buttons. The work-drive button is pressed while the drive is mounted, and clicking it unmounts, then mounts. In a project without a
config.cpp→ none of them. Turn off Show the DayZ buttons in the main toolbar → they disappear, without a restart.
Running DayZ
- + → DayZ adds one configuration. Connect to is greyed out while Start a server is ticked, and each section is greyed out while its box is not.
- Add DayZ, Start clients only:
- Rescan Project Addons → the project’s
config.cppfolders are listed asP:\MyMod\…; -filePatching stays as it was. - Add Mods… → the mods folder’s and
!Workshop’s@folders; tick@CF→ it is added. - Run → the console’s first line says every addon was packed. The game starts with the mod loaded, vanilla and mod texts translated. Stop closes it.
- Run again → Packed 0 addon(s), N unchanged. Edit one script and run → that addon only.
- Rescan Project Addons → the project’s
- Untick an addon, Rescan again → it stays unticked. Delete an addon folder, Rescan → its row goes.
- Add PBO Files… with two PBOs and their
.bisign→ run → the console’s-mod=has…\@ExtraPBOswhere the first PBO row was, and the RPT loads them. - Unmount
P:and run → an error thatP:is not mounted, nothing started. - A configuration saved before the mod list (with
;-separated Mods) → its mods appear as rows. - Start clients only, an Offline mission and no Connect to → offline play on that mission. Both set → an error. A server’s
dayzOffline.*mission as the Offline mission → a warning about idle mode, in the configuration and at the top of the console. - Start a server with an empty Server config → an error in the configuration; Run does not start it. Server and client profiles both empty → a warning.
- Start a server and Start clients, three players, Goldberg ticked, a DayZ Diag server with a mission:
- One Run tab:
[Server]starts, then about 5 seconds later each player’s identity line about 4 seconds apart, each line prefixed with its name. - All three join the server and stay connected, each with its own profile folder.
- The server’s command line has the shared
-mod=plus-serverMod=for the Server only rows; the clients’ have no server-only mod. - Stop closes all four.
- One Run tab:
- Tick both Before Launch boxes and Wipe the mission’s storage_* folders, with a server and a mission → the console’s first lines say what was stopped, cleared and wiped; the mission’s
storage_*folders are gone. - Two players with the same name → an error in the configuration. Several players without Goldberg → a warning. Neither box ticked → an error.
- Tools → DayZ and the toolbar’s DayZ drop-down have no Launch Buldozer.
New mods and addons
- Right-click a folder in the Project view → New → DayZ Mod… → enter a folder and a name, keep the defaults → the folder has
mod.cpp,LICENSE,README.mdand.gitignore, andmod.cppopens. New DayZ Addon follows, prefilled: folderScripts, class<Folder>_Scripts, prefix from the work drive’s link when the project has one. - In the addon dialog, type
DZ_in the search field → only the matching addons stay listed, the ticked ones still ticked. Untick4_Worldand5_Mission, OK →config.cppopens with onlygameScriptModule,files[] = { "<prefix>/3_Game" },dependencies[] = { "Game" }; the folder has$PBOPREFIX$and3_Game\<Class>.c. - Run → Edit Configurations → DayZ → Rescan Project Addons → the new addon is listed with its prefix. Build PBO on its folder builds it.
- Choose a folder that already has a
config.cpp, or a class name starting with a digit → the dialog says so and OK stays disabled. - DayZ Addon again on the same mod → it starts on Data. Switch the kind to Language → folder
LanguageCore, no module ticked, onlyDZ_Data; OK → astringtable.csvwith vanilla’s header and aconfig.cppwith noCfgMods. GUI →layoutsandimagesetsfolders.
Templates
- At file scope type
modc,Tab→modded classwith completion on the class name;Tabagain → the caret in the body.onrpcin a class body → theOnRPCoverride;onrpcat file scope or inside a method → not offered. - Select a few lines,
Ctrl+Alt+T→ ifs wraps them in#ifdef SERVER…#endif. - Right-click a script module folder of an addon → New → Enforce Script File → Scripted menu named
MyMenu→ the file opens with the layout path<prefix>/GUI/layouts/my_menu.layout, and parses with no error. Open it in game from a menu id to check it shows its layout. In a project onC:(not on the work drive) → the path starts with the project folder’s name, notUsers/…. - The same action on a folder outside any addon → not offered. In an addon folder outside the script modules → the file is created, with a warning that it is in no script module.
Game logs
- Open DayZ Logs → Script, RPT and Crash tabs, each naming its file; start the game → the tabs switch to the new run and follow it.
- Select a DayZ run configuration with a server and two players → Server, Alice and Bob tabs of each kind, on their profile folders; select another configuration → the tabs follow it.
- In the Script tab, click an
@"scripts/3_Game/….c,17"link → vanilla opens at that line; a mod’s own…(1):compile error → the mod’s file. - Errors and Warnings Only → a stack trace stays under its error. Open Older Run… → the chosen file; Follow Newest → back.
- With no profile folder → a message pointing to the settings, no error.
Checking scripts
- Select your DayZ run configuration, then Tools → DayZ → Check Scripts (Server) on a mod that compiles → the Run tab says the addons were packed, then after a game start’s time All five script modules compiled, and no
DayZDiag_x64.exeis left running. - Break a
3_Gamefile (use an unknown type) → The “Game” script module does not compile, with the error linking to that file and line. - Cancel while it runs → the server stops.
- Check Scripts (Client) → a game window opens, then closes once All five script modules compiled on the client. Break a file inside
#ifndef SERVER→ only the client check reports it.
Building PBOs
- Right-click a mod’s addon folder → Build PBO → the options dialog, prefilled; Build → a Run tab with Addon Builder’s log and Build Successful, the PBO in the output folder, and a notification. Build PBO again → no dialog.
- Open the built PBO in the IDE, with no include list set → its scripts, layouts, imagesets,
stringtable.csv, textures and data files are there besideconfig.bin. The command line in the Run tab has-include=…include.lst. - Break
config.cpp(delete a}) and build without Pack only → Build failed, an error notification, and theFile …, line Nline is a link to the config. - Build with a signing key → the
.bisignappears; with no.bikeyin@Mod\Keys→ a warning. - Tools → DayZ → Build All PBOs in a project with several addons → one tab, built one after the other.
Building the mod for release
- Add DayZ Mod Build:
- Set Mod folder to an empty test folder and click Rescan Project Addons. Set the signing key, and add a third-party PBO with its key.
- Run → one Run tab:
- Addon Builder builds each addon.
- Each PBO arrives in
addons\asScripts_Client.pboand the like, with its.MyMod.bisign. keys\holdsMyMod.bikeyand the third-party key, andmod.cppand the extras are copied.- The last lines say Signatures checked: all OK and Built ….
- With the run configuration’s folder deep on disk (as in a sandbox IDE) → every addon still builds, scripts of 60 characters’ depth included. The Steam API’s two lines after each addon are not red.
- Select an addon → Addon Builder Lists… → the include and exclude lists. Type
*.layoutas the include list of an addon with scripts and run, with no file changed → that addon alone is rebuilt, and its PBO holds its layouts but no scripts. Build PBO with Options… on the same addon shows*.layout, and Build PBO packs the same. - Set the include list to a file that does not exist → that addon fails, naming the file.
- Set the include list to a file with one pattern a line (
*.c, then*.layout) → the addon builds, with its scripts and layouts. - Put a
LICENSEand aNOTICEfile in an addon with no include list → both are in its PBO. - Clear the include list and set the exclude list to
*.edds→ the addon rebuilds, its PBO holds everything the default list takes but its.edds, and the command line has no-exclude. The same with DayZ Tools’Bin\PboUtils\exclude.lstas the exclude list. - Build PBO with Options… with Pack only and an exclude list → the build stops and says why.
- Run again → 0 addon(s) to build. Edit one script → that addon only.
- Untick an addon and run → its PBO and signature are removed from
addons\. - Start a server with
verifySignatures = 2on the built mod → clients with it join.
Publishing to the Workshop
With a private test item (or none, to create one, set to Private).
- Without SteamCMD: a new DayZ Workshop Publish with Mod folder set to a built mod → the error SteamCMD not found with Fix → the confirmation names
%LOCALAPPDATA%\SteamCMD→ Download → a progress bar, then the configuration’s SteamCMD row shows…\SteamCMD\steamcmd.exe, and the SteamCMD field under Settings → … → DayZ Installation → Steam Workshop shows…\SteamCMD. - Description and Change note have a border, and scroll when the text is long.
- DayZ Workshop Publish with the built mod folder, the account name, visibility Private and a change note → Run → a confirmation with the folder’s size and the note. Cancel → nothing runs.
- Confirm → SteamCMD’s own window asks for the password and the Steam Guard code; the upload runs. Close the window → the Run tab gives the item’s link, and the configuration now holds the item ID.
- Run again with another change note → no password asked; the item’s Change Notes tab has both.
- Leave the change note empty and set a
CHANGELOG.mdwhose first heading is its newest## 1.2.0section → that section is the note.
Layout preview
- Open
P:\gui\layouts\day_z_ingamemenu.layout→ text and preview side by side: the button column on the right, the server info at the top left. Click a button in the preview → the caret jumps to itsButtonWidgetClass. Move the caret into another widget → its outline turns blue. - Open a mod’s layout with imageset icons → the icons are drawn. Change a
size→ the preview follows a moment later. Hidden widgets → thevisible 0ones appear dashed. - Switch the resolution → proportional widgets scale, pixel ones keep their size. The list runs from 1280 × 720 to 3840 × 2160, with 1920 × 1080 selected.
- In
day_z_ingamemenu, the column above Respawn holds Exit, Feedback and Options at full height, with no gap for the hidden Restart, and stays above Respawn rather than over it. The vignette darkens the edges of the screen, as in Workbench, and its blue outline (caret onvignette) is the screen, nudged by under a pixel. - Pick french in the language list → Continue reads Continuer; Keys →
#main_menu_continue. A mod layout using its ownSTR_…keys shows the mod’s stringtable text. - Open
P:\gui\layouts\day_z_map.layout→BackPanelWidget(style rover_sim_black) is dark, framed as in Workbench, not light grey; thetoolbar_bgband (style ToolbarWidget) matches Workbench too. External Libraries listsP:\gui\looknfeel. - Open a layout with
DayZDefaultButtonorMenuDefaultbuttons → each button has its frame. Astyleno.stylesfile declares → a panel keeps its plain colour. - Open
P:\gui\layouts\day_z_hud_cars.layout→ the dials are grey arcs, not filled boxes; the RPM dial’s last fifth is red, as are the low ends of the fuel and temperature dials. - In
day_z_ingamemenu, the modded-version warning wraps over three lines at the size Workbench shows. Inday_z_hud_cars, the RPM needle points left. - At 3840 × 2160 every outline is still visible. Scroll the wheel over a button → it zooms in around the pointer; drag → the view pans; a click without dragging still selects. Fit → back to the whole screen; 100% → one layout pixel per screen pixel.
Colour swatches
- Open a vanilla
.layout→ a swatch beside eachcolorand"text color"line, the colour the preview shows. Click one in a mod layout, pick another colour → the four numbers change (the colour’s own fractions, three decimals) and the preview updates. - In a script,
ARGB(255, 242, 38, 19)→ a red swatch; pick a colour → the four arguments change.ARGB(m_Alpha, 242, 199, 68)→ a yellow swatch; pick a colour →m_Alphastays.ARGBF(1, 0, 0.5, 1)→ light blue.const int COLOR_RED = 0xFFF22613;→ red, and aconst intflag such as0x00000400→ no swatch. - In a config,
"#(argb,8,8,3)color(0.5,0.5,0.5,1,co)"→ grey. - Open vanilla
gui/looknfeel/dayzwidgets.styles→ it opens as XML, with a swatch beside eachColor="…". - In game, an
ImageWidgetwithcolor 0.141 0.141 0.141 1beside one givenSetColor(ARGB(255, 36, 36, 36))and one givenARGB(255, 105, 105, 105)→ the first two are the same#242424, as their swatches show; the third is lighter. Measured on 2026-11-18.
Stringtable texts in place of keys
- Open a mod script with
"#STR_…"strings → each shows its text, collapsed; moving the caret into one shows the key again. Vanilla keys such as"#menu_add"fold too. - A layout’s
text "#STR_…"and a config’sdisplayName="$STR_…"fold the same way. - Pick french in a layout preview’s language list → the folds read French after the next reparse (type a character).
- Untick Code Folding → Enforce Script → Stringtable keys as their text → the keys are back.
- In a large vanilla file (
missiongameplay.c), typing stays smooth.
Rename and inspections
Shift+F6on a method in amodded classthat overrides vanilla → refused, with a message naming the script root. This is the guard, and it is the one that matters: without it the rename would rewriteP:\scripts, which is a library here but is an ordinary writable file on disk.Shift+F6on a class declared inside the mod → the declaration, every usage, its constructor and destructor, and anymodded classlayer of the same name all change together.Shift+F6on a widget name in a.layout→ everyFindAnyWidget("…")naming it updates too.Shift+F6to an illegal name (class,2Fast) → the dialog refuses it.- Open a server-side script file and check the inspection warnings are few and true. Watch particularly for “Variable named after a type”: it is the one rule here with no corpus measurement behind it, so a wave of them on ordinary code means it is too eager and should be off by default.
- Break something on purpose — misspell the handler in
AddTimer(…, this, "OnTikc"), or drop theoverridefrom a method in amodded class— and confirm each is flagged, then thatAlt+Enterrepairs it. - In a
modded class PlayerBase, writeoverride void SetActions() {}→ a weak warning on the name, andAlt+Enter→ Add super call insertssuper.SetActions();. The same override in an ordinary subclass is not reported.