Random Presets Editor

Your ultimate toolkit for DayZ server customization

Random Presets Editor

Note: This tool is for cfgrandompresets.xml. The file must have a <randompresets> root tag.

How to Use the Presets Editor: A Complete Guide

IMPORTANT: If you plan to use these presets in the Spawnables Editor, you should create and edit them here FIRST. Once you are done, use the "Use in Spawnables Editor" button to seamlessly transfer them.

This tool gives you full control over cfgrandompresets.xml. This file allows you to define reusable "presets"—complex collections of items—that can then be attached to other items in your cfgspawnabletypes.xml file. This is incredibly useful for creating standardized kits (e.g., a "Basic Medic Kit" or "Military Rifle Attachments") that you can apply to multiple items without redefining them every time.

1. The Main Editor Table

The main table lists every preset definition from your file. Here's a breakdown of the columns:

  • Preset Name: The unique name for your preset (e.g., FoodHunter, AttachmentsM4). This is the name you will use in the Spawnables Editor.
  • Type: A preset can be either attachments or cargo. This defines how it behaves when applied to another item.
  • Chance: The overall chance (from 0.0 to 1.0) that this entire preset definition will be considered for spawning.
  • Contents: A visual summary of the items and nested groups inside the preset.
  • Actions:
    • Edit: Opens the powerful Edit Modal where you can change the preset's name, type, chance, and completely rebuild its contents.
    • Delete: Permanently removes the preset definition from the file.

2. Creating and Editing Presets

Adding a New Preset

Use the "Add New Preset" box at the top to create a new, empty preset definition. Give it a unique name, select its type, set its chance, and click "Add Preset". It will appear at the top of the table, ready for you to edit.

The Edit Modal: Your Power Tool

Clicking the Edit button on any preset opens the main editor modal. This is where you will build your item collections.

  • Preset Properties: The top section allows you to change the preset's name, type, and overall chance.
  • Live XML Preview: The right panel shows a real-time preview of how your preset will look in the XML file as you make changes.
  • Contents & Item List: The main area on the left shows the groups of items inside your preset. You can adjust the chance for each group here.
  • "Edit/Add Items" Button: This is the most important button. It opens the Item Picker Modal, where you can add, remove, and nest items to build your preset.
Mastering the Item Picker

When you click "Edit/Add Items", a large modal appears. The left side is a grid of all available game items, and the right side is the "Structure Tree" where you build your preset.

  • Add Group (Random Pick): Creates a loot group where only one of the items you add to it will spawn. This is perfect for variety, like a random optic or a random food item.
  • Add Individual Item(s): Use this for items that should all attempt to spawn independently. Each item gets its own spawn chance defined by its wrapper tag. This is for guaranteed or high-chance items.
  • Nesting is Key: Every item you add to the structure tree has its own "Add Attachments" and "Add Cargo" buttons. This lets you create incredibly deep and complex kits. For example, you can add a rifle, then use its buttons to give it a nested attachment group containing random scopes, and then use each scope's buttons to give it a battery.
  • Editing Item Attributes: Use the Edit button on any item in the tree to fine-tune its spawn chance, damage, quantity, or whether it should be equipped on its parent.

3. Workflow: Using Presets in the Spawnables Editor

The primary advantage of this editor is creating presets to use in the Spawnables Editor.

  1. Create and perfect all your presets in this editor.
  2. When you are finished, click the "Use in Spawnables Editor" button at the top of the page.
  3. This will save your work and take you to the Spawnables Editor. If you've already uploaded your `spawnabletypes.xml` file, the "Apply Preset" dropdown there will now be populated with the new presets you just created. If you haven't, you will be prompted to upload it first.