Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

dingodno47

problem with types file

Recommended Posts

hi all , hope some one can help , i have a proble with items not spawning in even though they are set to , ie 

<type name="MountainBag_Autumn">
    <nominal>15</nominal>
    <lifetime>21600</lifetime>
    <restock>0</restock>
    <min>5</min>
    <quantmin>-1</quantmin>
    <quantmax>-1</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="containers" />
    <usage name="Town" />
    <usage name="Village" />

im at ther end of what can be wrong and im pulling my hair out , any help would be really apprechiated

 

Share this post


Link to post
Share on other sites

Every type needs to be closed with </type>.

Like:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<types>

  ......

  <type name="MountainBag_Autumn">
      <nominal>15</nominal>
      <lifetime>21600</lifetime>
      <restock>0</restock>
      <min>5</min>
      <quantmin>-1</quantmin>
      <quantmax>-1</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="containers" />
      <usage name="Town" />
      <usage name="Village" />
  </type>
  <type name="MountainBag_Winter">
      <nominal>15</nominal>
      <lifetime>21600</lifetime>
      <restock>0</restock>
      <min>5</min>
      <quantmin>-1</quantmin>
      <quantmax>-1</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="containers" />
      <usage name="Town" />
      <usage name="Village" />
  </type>
  
  .....
  
</types>

 

Are none of your items spawning?

Do you get an error in your console log when starting the server?

Can you spawn the items with a moderator tool?

Many of the items from mods, you have to copy/paste to your types.xml.

 

Edited by indijdev
see below

Share this post


Link to post
Share on other sites

Once again my eagerness to pass on the help that was given me has exceeded my knowledge.

 

You DO have to copy the xml's with <?xml version="......> at the top.

From what I can see, it seems the line is the to tell windows that the fil is xml and not txt. Lesson learned.

 

I a sorry for any time wasted listening to my bad advice. Happy troubleshooting.

-indij

Share this post


Link to post
Share on other sites

×