Page MenuHomeFeedback Tracker

types.xml / Confirmation / Feature Requests
Reviewed, NormalPublic

Description

Are the assumptions correct that

  • a type that was defined in types.xml is no longer overwritten by a new specification?
  • an include statement is not supported, and therefore all type changes and types that are added by mods can only be specified in "types.xml".

Example:

 "db/types.xml"
+------------------------------------------------
| 
| <!-- DayZ Origina Defintion -->
| <type name="Mag_AKM_30Rnd">
|     <nominal>5</nominal>
|     <lifetime>28800</lifetime>
|     <restock>0</restock>
|     <min>2</min>
|     <quantmin>5</quantmin>
|     <quantmax>50</quantmax>
|     <cost>100</cost>
|     <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
|     <category name="weapons"/>
|     <usage name="Military"/>
|     <value name="Tier3"/>
|     <value name="Tier4"/>
| </type>
| 
| ...
|
| <!-- override -->
| <type name="Mag_AKM_30Rnd">
|     <nominal>65</nominal>
|     <lifetime>28800</lifetime>
|     <restock>0</restock>
|     <min>36</min>
|     <quantmin>30</quantmin>
|     <quantmax>75</quantmax>
|     <cost>100</cost>
|     <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
|     <category name="weapons"/>
|     <usage name="Military"/>
|     <value name="Tier3"/>
|     <value name="Tier4"/>
| </type>
|
| ...
|
| <!-- type defined by a modification -->
| <type name="ModType">
| ...
| </type>
+---------------------------------------------------

Result: At the moment, the "override" does not cause the original statement to be overwritten (it stays at mominal=5, min=2, etc.). Is that correct?

Feature Request #1:
Can the behavior of the initialization of the types be changed in such a way that a subsequent type definition overwrites the previous definition?
If yes, the values for nominal and min should be changed to nominal=65 and min=36.

Feature Request #2:
(This request requires request #1 to be enabled)
The types.xml should support the include statement. Include means that an include statement within types.xml causes the specified (custom) types.xml to be loaded there and the types defined there to be processed as well. For convenience, the include statement(s) should be specified at the end of types.xml.

Example:

     "db/types.xml"
    +------------------------------------------------
    | 
    | <!-- DayZ Origina Defintion -->
    | <type name="Mag_AKM_30Rnd">
    |     <nominal>5</nominal>
    |     <lifetime>28800</lifetime>
    |     <restock>0</restock>
    |     <min>2</min>
    |     <quantmin>5</quantmin>
    |     <quantmax>50</quantmax>
    |     <cost>100</cost>
    |     <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
    |     <category name="weapons"/>
    |     <usage name="Military"/>
    |     <value name="Tier3"/>
    |     <value name="Tier4"/>
    | </type>
    |
    | ...
    |
+++ | <include file="types-custom.xml" />
+++ | <include file="types-mod.xml" />
    |
    +---------------------------------------------------    


     "db/types-custom.xml"
    +------------------------------------------------
    | 
    | <!-- override -->
    | <type name="Mag_AKM_30Rnd">
    |     <nominal>65</nominal>
    |     <lifetime>28800</lifetime>
    |     <restock>0</restock>
    |     <min>36</min>
    |     <quantmin>30</quantmin>
    |     <quantmax>75</quantmax>
    |     <cost>100</cost>
    |     <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
    |     <category name="weapons"/>
    |     <usage name="Military"/>
    |     <value name="Tier3"/>
    |     <value name="Tier4"/>
    | </type>
    |
    +---------------------------------------------------    


     "db/types-mod.xml"
    +------------------------------------------------
    | 
    | <!-- type defined by a modification -->
    | <type name="ModType">
    | ...
    | </type>
    |
    +---------------------------------------------------

The two feature requests would result in the following improvement(s):

  • the original types.xml can be used unchanged
  • Changes do not have to be made in the original types.xml, but can be swapped out in a custom-types.xml and are visible to the admin at a glance
  • Clear separation of the types of DayZ Original and types added by mods
  • Reduced adjustment effort for DayZ version changes

Details

Severity
Feature
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Config

Event Timeline

Geez changed the task status from New to Reviewed.Aug 31 2022, 3:56 PM