Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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
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.
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.
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.
- 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.
<types> </types>