Central Economy

Tutorial · 3:08

The Central Economy (CE) is the part of a DayZ server that decides what spawns in the world: loot in buildings, vehicles, helicopter crashes, animals, infected. It is driven by a handful of XML files in the server's mission folder. This page opens such a folder, shows its loot table next to the items of the game and of your mods, lets you change values one item at a time or many at once, checks the files for mistakes, and forecasts how the economy behaves over hours of game time without starting a server. You use it when you run a server, or when you add the items of a mod to its loot. You need a mission folder (a folder that holds db/types.xml); if you have no DayZ Server installed, the page ships a small sample mission to learn with.

The screen

First steps

  1. Open the page. If no mission is open, click Open a mission folder and choose the mission of your server (for example mpmissions/dayzOffline.chernarusplus), or click Open the sample mission.
  2. In the Types tab, type AKM in the search box and click the row.
  3. In the inspector, raise nominal from 3 to 5. The header shows "1 file modified".
  4. Look at the Issues tab number. Open the tab, click a problem, fix the field shown in red.
  5. Press Ctrl+S. The files are saved and the previous ones are copied to .beans-ce-backups/ in the mission folder.
  6. Open the Forecast tab and click Check my economy to see whether every item can reach its nominal.
  7. Restart the server so that it reads the new files.

Take the tour (in the app)

Common tasks

Make an item more or less common

  1. Types tab: search the item and select it.
  2. Change nominal (how many the map should hold) and min (below this count, more spawn). Keep min at or below nominal.
  3. Save, then check the Forecast tab: a nominal the buildings cannot hold shows under "Below their nominal".

Change many items at once

  1. Filter the table (for example category food).
  2. Click Bulk edit…, choose the field and the operation (scale, set, add; or add and remove a usage, value, tag, flag; or set the category).
  3. Click Apply to N types… and confirm. Scaling nominal scales min with it. Ctrl+Z undoes the whole edit.

Add the items of a mod to the loot

  1. Click Mods and tick the mods your server runs: their items appear with the status "Not in loot files".
  2. Either click Import mod types… and choose the mod folder or its types.xml (new types, identical ones and conflicts are listed before anything is written),
  3. or filter the mod in the table and click Add the N filtered items not in loot files: each item copies the values of its closest relative already listed.
  4. Review the new rows, save.

Find out why an item never spawns

  1. Select it in the Types tab and read Where it spawns in the inspector. "In no building" means no building on the map has one of its usages, values, category and tags.
  2. Open the Forecast tab, run the check and click the Never spawn card: each line states the cause.
  3. Fix the usage, value or category, save, and check again: the tab says what was solved since the last check.

Restore the files of a previous save

  1. Click Backups in the header.
  2. Choose a backup by its date and click Restore. The current files are backed up first, then the mission is read again.

Change an event (vehicles, crash sites)

  1. Events tab: select the event.
  2. Change nominal, min, max, or the children (which types it spawns and how many).
  3. An event with the position mode fixed needs positions in cfgeventspawns.xml; the table shows how many it has.

Start from a recipe

With no mission open, the empty state lists the recipes for this page as chips (New item, Loot crates, World event…): a click starts one in Beans Assistant, which asks a few questions, proposes a plan and works step by step with checks. All recipes opens the whole catalogue. The help panel (F1) lists them too.

Examples

Concepts

Pitfalls

For agents

See also