DayZ
Types.xml on my local server has something wrong with it for it not to spawn any items whether modded or vanilla.
I have validated my type.xml file and was given this:
"Error on line 3 at column 9: opening and ending tag mismatch: types line 2 and type"
It hasnt given me a rendering up to the first error.

If anyone can provide clarification and instruction on how to fix this, it would be greatly appreciated. If you'd like to look at my XML itself I am willing to share it.
< >
Showing 1-14 of 14 comments
Ewil Oct 30, 2022 @ 9:23pm 
Yeah, make a copy of your xml, and I can take a look at it
Kurdain Oct 30, 2022 @ 9:28pm 
You most likely have a bracket missing.
What are you using to view the XML?

I highly recommend notepad++ as it does an excellent job of highlighting syntax errors.

Fortunately the error tells you where to look, at or around line 3.

Cope/paste the first 20 lines and we can take a look but I feel it should be obvious once you know what to look for.
Originally posted by Kurdain:
You most likely have a bracket missing.
What are you using to view the XML?

I highly recommend notepad++ as it does an excellent job of highlighting syntax errors.

Fortunately the error tells you where to look, at or around line 3.

Cope/paste the first 20 lines and we can take a look but I feel it should be obvious once you know what to look for.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<types>
</type>
<type name="wolffurcowl_mung">
<lifetime>2100</lifetime>
<flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
</type>
<type name="bearfurcowl_mung">
<lifetime>2100</lifetime>
<flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
</type>
<type name="bearhead_mung">
<lifetime>2100</lifetime>
<flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
</type>
<type name="playerhead_mung">
<lifetime>2100</lifetime>
<flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
</type>
<type name="nbc_longcoat_mung">
<nominal>10</nominal>
<lifetime>2100</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="clothes"/>
<usage name="Medic"/>
</type>
<type name="WoodAxe_mung">
<nominal>30</nominal>
<lifetime>2100</lifetime>
<restock>0</restock>
<min>25</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="tools"/>
<usage name="Industrial"/>
<usage name="Farm"/>
<usage name="Village"/>
</type>

These are lines 1-45 or so thats what Notepad++ tells me
Originally posted by Ewil:
Yeah, make a copy of your xml, and I can take a look at it
https://drive.google.com/file/d/1XsrpLPQIV9FWYNRefkFm2-bGJiNRzLgj/view?usp=sharing
Last edited by ♂Dungeon♂Daddy♂; Oct 30, 2022 @ 10:01pm
There you go, hopefully that helps
Kurdain Oct 30, 2022 @ 10:04pm 
Line 3, remove the </type>
it's prematurely closing and empty string without an opening <type..... > line and messing up your types data would be my guess.

Let me know if that works and as always back up stuff.
Last edited by Kurdain; Oct 30, 2022 @ 10:05pm
Originally posted by Kurdain:
Line 3, remove the </type>
it's prematurely closing and empty string without an opening <type..... > line and messing up your types data would be my guess.

Let me know if that works and as always back up stuff.
Its fixed, how would I go about checking? Just play and see if any loot spawns, I assume? Or should I do a wipe?
Kurdain Oct 30, 2022 @ 10:20pm 
Did the validation pass?
If so you should be fine.

Yeah about the only other way is to test and see if stuff is spawning in the right places.
The loot economy is slow to turn over loot though and it's a large map so this can be difficult to play test solo.

Your other options is to yes, do a fresh types file but it seemed your error was easy to locate. I'd give it a shot.

Just also remember that default is the server sleeps and loot economy stops 60 seconds after the last player logs off so you'll need to change that if you want to test loot cycling over 24-48 hours.
Originally posted by Kurdain:
Did the validation pass?
If so you should be fine.

Yeah about the only other way is to test and see if stuff is spawning in the right places.
The loot economy is slow to turn over loot though and it's a large map so this can be difficult to play test solo.

Your other options is to yes, do a fresh types file but it seemed your error was easy to locate. I'd give it a shot.

Just also remember that default is the server sleeps and loot economy stops 60 seconds after the last player logs off so you'll need to change that if you want to test loot cycling over 24-48 hours.

With what you have shown me, I was able to find a second error with the validation and able to fix it, thank you. It now just gives me a full readout of my XML saying; "This XML file does not appear to have any style information associated with it. The document tree is shown below." I'm assuming that's good? Though it could mean something else entirely.
Kurdain Oct 31, 2022 @ 6:20pm 
Give it a shot, worst case is you have all sorts of weird stuff spawning or server will just crash.
GiSSe Oct 31, 2022 @ 6:51pm 
Wow 2.51MB, that's a big file, there must be some real modding going on there, mine's just 515kB.

You know you can make separate "xml" files and load them in "cfgeconomycore.xml" it helps when there's an update and your files get replaced.

Like this.
<ce folder="./custom">
<file name="equipment.xml" type="types" />
<file name="BBP_types.xml" type="types" />
<file name="mmg_types_multicamblack.xml" type="types" />
<file name="mmg_types_carbines.xml" type="types" />
<file name="mmg_types_NBC+NVG.xml" type="types" />
<file name="mmg_types_patches.xml" type="types" />
<file name="mmg_cfgspawnabletypes.xml" type="spawnabletypes" />
</ce>

I mean you have 53124 new lines added and that's before all the vanilla stuff.
Its working fine, thank you all for you're help. I'll be sure to try that separate XML files method.
im also having a similar issue with my types. im using an xml validator and its saying my types.xml ending line is wrong. - Fatal Error at line 25292, column 9: Opening and ending tag mismatch: type line 8225 and types
- Fatal Error at line 25292, column 9: Premature end of data in tag types line 2

this is the last type in the file followed by the ending line.
</type>
<type name="Kits_Bottle_v3_Yellow">
<nominal>23</nominal>
<lifetime>9000</lifetime>
<restock>0</restock>
<min>18</min>
<quantmin>30</quantmin>
<quantmax>80</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="food"/>
<tag name="shelves"/>
<usage name="Town"/>
<usage name="Office"/>
<usage name="School"/>
</type>
</types>
its looked the same throughout the entire editing process up to now with no issue. now all of a sudden i cant use it and every example i see uses the same ending lines.

*EDIT* I found out the issue. a mod i installed messed up some of the lines with ghille clothing and took everything out of whack. once i fixed the lines my xml validated. no idea why it didnt flag those lines though. they were way waaaaay before where the validator was telling me my error was.
Last edited by YukonRanger; Jan 28 @ 12:11am
your first type has a close tag / that belongs a the very end and should be types
<types> </types>
Last edited by Smokinall; Jan 29 @ 1:06pm
< >
Showing 1-14 of 14 comments
Per page: 1530 50

Date Posted: Oct 30, 2022 @ 9:01pm
Posts: 14