The cfgLimitsDefinition.xml file defines spawn limits for various item categories in your DayZ server.
The cfgLimitsDefinition.xml file is used to define global spawn limits for different categories of items in your DayZ server. This file helps control:
The cfgLimitsDefinition.xml file consists of <definition>
elements, each defining limits for a specific category:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<lists>
<categories>
<category name="weapons" />
<category name="magazines" />
<category name="attachments" />
<category name="food" />
<category name="tools" />
<category name="containers" />
<category name="clothes" />
</categories>
<limits>
<limit name="weapons" value="120" />
<limit name="magazines" value="250" />
<limit name="food" value="400" />
<limit name="containers" value="100" />
<limit name="clothes" value="500" />
</limits>
</lists>
The name of the category. This must match the category names used in types.xml.
The name of the category to apply the limit to.
The maximum number of items in this category that can exist in the world at once.
The cfgLimitsDefinition.xml file works in conjunction with the types.xml file:
<category>
tag
Note that individual item limits in types.xml (the <nominal>
value) still apply, but the category limits provide an additional constraint.
When configuring your limits definition, consider the following best practices:
For more information about item categories and spawning, check the types.xml documentation or join our Discord community for assistance.