DayZ Central Economy mission files modding made easy!
This extension aims to provide accurate validation that not only detects broken XML (the only type of error that online validators can detect), but also checks for DayZ-specific schema compliance and semantic errors such as referencing non-existent files, spelling errors in flag names and other referenced values, and so on. It also provides context sensitive auto-completion to make typing those lengthy classnames faster and less error-prone. As you would expect from a modern editor, the extension provides code actions to automate common tasks and encourage good habits (such as file splitting). And other useful features such as tooltips and the "Open Documentation" command.
Happy editing!
If you found this extension helpful, please consider starring ⭐the repository on Github or rating (or reviewing) it on marketplaces ([1], [2]).
The following snippets are currently available:
typ
- type snippet fortypes.xml
, including all elements excepttag
;evn
- event snippet forevents.xml
;msg-d
- message snippet with a deadline;msg-r
- repeating message snippet;msg-c
- on connection message snippet;spwn-a
- spawnable type with attachment snippet;spwn-c
- spawnable type with cargo snippet;spwn-p
- spawnable type with preset snippet;ldt-s
- loadout slot snippet for spawning gear configuration;ldt-i
- loadout item snippet for spawning gear configuration.
- Provide full project validation.
- Provide quick fixes for common validation errors.
- More code actions for day-to-day task automation.
- One-click navigation to symbols (e.g. to the preset referenced in
cfgspawnabletypes.xml
). - Classnames auto-completion in JSON files
This extension requires Java (17 or newer), so make sure you have this installed.
It also relies on the XML extension for schema validation, but this can be installed automatically if you don't have it.
-
Only open files can be validated. You won't get any validation errors until you open the file in the editor.
-
Completion and validation for Object Spawner custom lists currently only works for json files in the
objectSpawners
folder. For example, theobjectSpawners/nwaf.json
file will have completion and validation according to the Object Spawner rules, butcustom/berezino.json
oraltartrader.json
will not. This is due to limitations of the VS Code JSON Schema API and may be resolved in the future. -
Completion and validation for Spawning Gear Configuration currently only works for json files in the
spawnPresets
folder or files which name ends with_loadout
(e.g.deathmatch_loadout.json
). -
Fragments inserted by code actions may not be formatted correctly. You can easily fix this with auto-formatting (
Shift+Alt+F
by default).
The DayZ CE Schema extension focuses on direct XML (and JSON) file editing. If you prefer a more high-level Excel-like approach, you may be interested in my DayzServerTools or Shawminator's DayZeEditor. Both are standalone Windows applications.
- Stable release of Language server for DayZ mission XML files.
- Added support for copying elements from external custom files.
- Added snippets for
types.xml
,events.xml
,messages.xml
,cfgspawnabletypes.xml
and spawning gear configuration. - Added automatic schema resolution for custom files.
- Added support for new files when moving and copying elements of custom files.
- Fixed noisy errors in external files. Disabled mission-scoped validation for files outside the mission folder.
- Added completion and validation for
events.xml
. - Added completion and validation for
cfgeventspawns.xml
. - Added validation for
globals.xml
. - Added completion and validation for
cfgenvironment.xml
. - Added completion and validation for
mapgroupproto.xml
. - Added completion and validation for
mapgrouppos.xml
. - Added diagnostic for unused custom files (not registered in
cfgeconomycore.xml
). - Added informational diagnostics for files outside the mission folder.
- Added error diagnostics for the case where the type registered in the
cfgeconomycore.xml
file doesn't match the contents of the file. - Added quick fix for registering unused custom files in
cfgeconomycore.xml
. External files would be copied to the mission folder. - Added quick fix for file type mismatch.
- Added refactoring action to move and copy elements between registered custom files.
- Added classnames completion and validation for
types
,spawnabletypes
andcfgrandompresets.xml
files. - Improved completion and validation. See CHANGELOG for more details.
- Fixed high CPU usage at idle.
- Fixed completion for folder names in
cfgeconomycore.xml
.
- Added Language server for DayZ mission files. See CHANGELOG for more details.
- Stable release for the DayZ 1.23 Update.
- Updated schemas for DayZ 1.23 Experimental.
- Added schema for Spawning Gear Configuration.
- Added Ability for users to add documentation links.
- Added schema for the Object Spawner custom lists.
- Updated release workflow. From now on, odd minor version numbers will indicate pre-releases.
- Added schema associations for modded CE files.
- Added context aware documentation.
Initial release of the extension.
- Added schema association on activation for standard CE files.