Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

DayZ Loot Priority: How to Change It

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Changing loot priority on a DayZ server lets you control which items spawn more frequently in specific areas, making loot distribution feel the way you want it. Whether you want more weapons in military zones or more food in residential areas, this guide walks you through editing the server's loot configuration files. You'll need access to your server's files (either through a hosting panel or direct file access) and a basic text editor like Notepad++ or VS Code.

What You'll Need

  • Access to your DayZ server files (via FTP, hosting panel, or local installation)
  • A text editor that handles large files well (Notepad++ or VS Code recommended)
  • Basic understanding of XML or JSON structure (depending on your server version)
  • Optional: A backup tool or folder to save original files before editing

Step-by-Step

  1. Stop your server. Always shut down the DayZ server before editing loot files to prevent corruption or crashes.
  2. Locate the loot files. Navigate to your server's main directory. Look for a folder named mpmissions or serverfiles. Inside, you'll find a folder named after your map (e.g., dayzOffline.chernarusplus or dayzOffline.deerisle).
  3. Open the types file. In that map folder, you'll see types.xml (for older versions) or types.json (for newer 1.26+ versions). This file defines every spawnable item and its properties.
  4. Understand the structure. Each item is enclosed in <type name="ItemName">...</type> (XML) or "ItemName": {...} (JSON). The key values are:
    • nominal: The target number of that item to spawn across the whole server.
    • lifetime: How long the item stays before despawning (in seconds).
    • restock: How often the item respawns (in seconds).
    • min/quantmin and max/quantmax: Minimum and maximum quantity (for items like ammo or food).
    • cost: The spawn priority weight. Higher cost = lower priority (less frequent spawn). Lower cost = higher priority (more frequent).
    • category: The loot category (weapons, clothes, food, etc.).
    • usage: Specifies which loot zones the item can spawn in (e.g., military, industrial, residential).
  5. Edit the priority (cost). To make an item spawn more often, lower its cost value. For example, if a can of beans has cost="100", change it to cost="10". To make it rarer, increase the cost. In JSON, the field is "cost": 100.
  6. Adjust nominal and restock. Increasing nominal raises the total number of that item on the map. Decreasing restock (e.g., from 300 to 60) makes items respawn faster after being picked up. These work together with cost to control overall availability.
  7. Change loot zones (usage). If you want an item to spawn only in military areas, edit the usage tags. In XML, you'll see <usage name="Military" />. Remove or add usage lines to restrict or expand where the item appears. In JSON, this is an array like "usage": ["Military", "Police"].
  8. Save and back up. After editing, save the file. Always keep a copy of the original in case something goes wrong.
  9. Restart your server. Start the server again. The changes take effect on the next server restart.
  10. Test in-game. Join the server and check if the loot spawns as intended. It may take a few minutes for items to appear, especially if you've changed nominal values.

Common Mistakes

  • Editing while the server is running. This can lead to file corruption or changes being overwritten on shutdown.
  • Setting nominal too high. If you set nominal to 1000 for a weapon, the server may struggle to spawn it and cause lag or crashes.
  • Forgetting to match category and usage. An item with category="Weapons" but usage="Residential" may not spawn at all because residential zones don't normally contain weapons.
  • Using the wrong file format. If your server uses JSON, editing XML won't work. Check the file extension carefully.
  • Ignoring the lifetime value. If lifetime is too short, items despawn before players find them, making them seem rarer than intended.

Tips

  • Start small. Change one or two items at a time and test before making sweeping changes.
  • Use a loot table reference. Community-made loot tables list all item names and their default values—use these to avoid typos.
  • Keep cost values in a sensible range. Most default costs are between 1 and 1000. Going below 1 or above 10000 may cause unexpected behavior.
  • Combine with a loot respawn mod. If you want dynamic respawns, consider using a mod like 'Loot Respawn' that works with your edited types file.
  • Test on a local server first. If possible, run a single-player test to verify changes before applying to your public server.

Troubleshooting

  • Items not spawning at all. Check the item name spelling—it must match exactly (case-sensitive). Also verify the category and usage tags are valid for that item. If you're using JSON, ensure there are no trailing commas or missing braces.
  • Server fails to start after editing. This usually means a syntax error in the file. Restore your backup and redo the changes more carefully. Use an XML validator online if needed.
  • Loot spawns but disappears instantly. The lifetime might be set too low (e.g., 1 second). Increase it to at least 300 seconds (5 minutes).
  • Changes don't seem to take effect. Make sure you edited the correct file for your map and server version. Also, some hosting providers cache files—restart the server fully, not just the map.
  • Performance drops. If you set too many items to very high nominal values, the server may struggle. Reduce nominal and increase restock time instead.

Frequently Asked Questions

  • What is the difference between 'cost' and 'nominal'? Cost is the spawn priority weight—lower cost means the item is more likely to be chosen when a loot spawn is triggered. Nominal is the maximum number of that item that can exist on the server at once.
  • Can I make an item spawn only in a specific town? Not directly. Loot zones are defined by the map's 'cfgeconomycore.xml' file. You can edit that file to create custom zones, but it's complex. A simpler approach is to use a mod like 'Loot Spawn Zones'.
  • Will changing loot priority affect server performance? Yes, if you drastically increase nominal values. The server has to track and spawn more items, which uses CPU and memory. Keep changes moderate.
  • Do I need to edit both types.xml and cfgeconomycore.xml? For basic loot priority changes, only types.xml (or types.json) is needed. cfgeconomycore.xml controls the loot zones themselves, so only edit it if you want to redefine those zones.
  • How do I find the exact item name for a specific item? The item name is the class name used in the game files. You can find it by looking at the game's data files, using a community item ID list, or using the in-game admin tool to spawn an item and check its name.
  • Can I set loot priority per player or per group? No, loot priority is global for the server. To give specific players different loot, you'd need a mod that hooks into the spawn system, which is beyond simple file editing.