Jump to content
  • 0

[DP] Fatal Error, XML.


Question

Posted

Hello while i was setting ready my Pack, an unaexceptable error Appeared. I searched if i left any <for> unclosed with </for> but haven't noticed anything ( I checked the files twice ) Someone tell me What's wrong, i would appreciate it.


[Fatal Error] 0300-0399.xml:111:5: The element type "for" must be terminated by
the matching end-tag "</for>".
Error loading file C:\server\gameserver\data\stats\skills\0300-0399.xml
org.xml.sax.SAXParseException: The element type "for" must be terminated by the
matching end-tag "</for>".
       at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So
urce)
       at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk
nown Source)
       at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
       at net.sf.l2j.gameserver.skills.DocumentBase.parse(DocumentBase.java:106
)
       at net.sf.l2j.gameserver.skills.SkillsEngine.loadSkills(SkillsEngine.jav
a:95)
       at net.sf.l2j.gameserver.skills.SkillsEngine.loadAllSkills(SkillsEngine.
java:104)
       at net.sf.l2j.gameserver.datatables.SkillTable.<init>(SkillTable.java:51
)
       at net.sf.l2j.gameserver.datatables.SkillTable.getInstance(SkillTable.ja
va:44)
       at net.sf.l2j.gameserver.templates.L2Armor.<init>(L2Armor.java:68)
       at net.sf.l2j.gameserver.skills.DocumentItem.makeItem(DocumentItem.java:
155)
       at net.sf.l2j.gameserver.skills.DocumentItem.parseItem(DocumentItem.java
:146)
       at net.sf.l2j.gameserver.skills.DocumentItem.parseDocument(DocumentItem.
java:101)
       at net.sf.l2j.gameserver.skills.DocumentBase.parse(DocumentBase.java:115
)
       at net.sf.l2j.gameserver.skills.SkillsEngine.loadData(SkillsEngine.java:
159)
       at net.sf.l2j.gameserver.skills.SkillsEngine.loadArmors(SkillsEngine.jav
a:119)
       at net.sf.l2j.gameserver.datatables.ItemTable.<init>(ItemTable.java:254)

       at net.sf.l2j.gameserver.datatables.ItemTable.getInstance(ItemTable.java
:191)
       at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:333)
       at net.sf.l2j.gameserver.GameServer.main(GameServer.java:755)

[Fatal Error] 1400-1499.xml:696:6: The element type "for" must be terminated by
the matching end-tag "</for>".
Error loading file C:\server\gameserver\data\stats\skills\1400-1499.xml
org.xml.sax.SAXParseException: The element type "for" must be terminated by the
matching end-tag "</for>".
       at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So
urce)
       at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk
nown Source)
       at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
       at net.sf.l2j.gameserver.skills.DocumentBase.parse(DocumentBase.java:106
)
       at net.sf.l2j.gameserver.skills.SkillsEngine.loadSkills(SkillsEngine.jav
a:95)
       at net.sf.l2j.gameserver.skills.SkillsEngine.loadAllSkills(SkillsEngine.
java:104)
       at net.sf.l2j.gameserver.datatables.SkillTable.<init>(SkillTable.java:51
)
       at net.sf.l2j.gameserver.datatables.SkillTable.getInstance(SkillTable.ja
va:44)
       at net.sf.l2j.gameserver.templates.L2Armor.<init>(L2Armor.java:68)
       at net.sf.l2j.gameserver.skills.DocumentItem.makeItem(DocumentItem.java:
155)
       at net.sf.l2j.gameserver.skills.DocumentItem.parseItem(DocumentItem.java
:146)
       at net.sf.l2j.gameserver.skills.DocumentItem.parseDocument(DocumentItem.
java:101)
       at net.sf.l2j.gameserver.skills.DocumentBase.parse(DocumentBase.java:115
)
       at net.sf.l2j.gameserver.skills.SkillsEngine.loadData(SkillsEngine.java:
159)
       at net.sf.l2j.gameserver.skills.SkillsEngine.loadArmors(SkillsEngine.jav
a:119)
       at net.sf.l2j.gameserver.datatables.ItemTable.<init>(ItemTable.java:254)

       at net.sf.l2j.gameserver.datatables.ItemTable.getInstance(ItemTable.java
:191)
       at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:333)
       at net.sf.l2j.gameserver.GameServer.main(GameServer.java:755)

8 answers to this question

Recommended Posts

  • 0
Posted

rofl read what it says....

 

[Fatal Error] 0300-0399.xml:111:5: The element type "for" must be terminated by

the matching end-tag "</for>".

Error loading file C:\server\gameserver\data\stats\skills\0300-0399.xml

org.xml.sax.SAXParseException: The element type "for" must be terminated by the

matching end-tag "</for>".

 

 

  • 0
Posted

rofl read what it says....

 

[Fatal Error] 0300-0399.xml:111:5: The element type "for" must be terminated by

the matching end-tag "</for>".

Error loading file C:\server\gameserver\data\stats\skills\0300-0399.xml

org.xml.sax.SAXParseException: The element type "for" must be terminated by the

matching end-tag "</for>".

 

 

Yes I read it, I checked the file ( every <for> closes with </for> maybe there is a typo ) i cannot find it.

 

See this uploaded in pastebin: http://pastebin.com/m478941bb

  • 0
Posted

XML is a strict standard. Such things are FORBIDDEN and will NEVER be allowed in XML (in contrary to HTML):

  <enchant1for>
 <for>
   <effect count="1" name="Buff" time="1200" val="0" stackOrder="#ench1mp" stackType="MPregen">
      <mul stat="maxMp" order="0x30" val="#ench1mp">
        <using kind="Bow"/>
      </mul>
   </effect>
 </enchant1for>
 </for>

 

Also, randomly stashing '</add>' will not do any good, so ditch such things:

  <for>
   <effect name="Buff" time="10800" count="1" val="0">
     <add order="0x40" stat="reflectDam" val="20"/>
   </effect>
   </add>
 </for>
 <enchant1for>
   <effect name="Buff" time="#ench1time" count="1" val="0">
     <add order="0x40" stat="reflectDam" val="20"/>
   </effect>
   </add>
 </enchant1for>

 

'cond' is not a child node of 'for'!.. It's in same hierarchy level, so such things are invalid:

  <for>
   <cond><using kind="Bow"/></cond>
 </for>

 

Another example of hierarchy ignorance:

    <effect count="1" name="Stun" time="3" val="0"/>
      <using kind="Shield"/>

 

And here's the valid file: http://pastebin.com/m4494630

  • 0
Posted

XML is a strict standard. Such things are FORBIDDEN and will NEVER be allowed in XML (in contrary to HTML):

  <enchant1for>
  <for>
    <effect count="1" name="Buff" time="1200" val="0" stackOrder="#ench1mp" stackType="MPregen">
       <mul stat="maxMp" order="0x30" val="#ench1mp">
         <using kind="Bow"/>
       </mul>
    </effect>
  </enchant1for>
  </for>

 

Also, randomly stashing '</add>' will not do any good, so ditch such things:

  <for>
    <effect name="Buff" time="10800" count="1" val="0">
      <add order="0x40" stat="reflectDam" val="20"/>
    </effect>
    </add>
  </for>
  <enchant1for>
    <effect name="Buff" time="#ench1time" count="1" val="0">
      <add order="0x40" stat="reflectDam" val="20"/>
    </effect>
    </add>
  </enchant1for>

 

'cond' is not a child node of 'for'!.. It's in same hierarchy level, so such things are invalid:

  <for>
    <cond><using kind="Bow"/></cond>
  </for>

 

Another example of hierarchy ignorance:

    <effect count="1" name="Stun" time="3" val="0"/>
      <using kind="Shield"/>

 

And here's the valid file: http://pastebin.com/m4494630

Really really really, Thank you. Friend :)

Guest
This topic is now closed to further replies.


  • Posts

    • Hello everyone! L2 Imagination High Five x30 Summer Seasson     OPEN BETA from 05.07.2026 LIVE START 10.07.2026 GMT+2      Rates: XP/SP 30x, Spoil 15x, Drop 15x, Adena 15x   Server Features: Spoil Agathion, Free Auto-Farm, Castle Instance, Daily Reward Calendar, Adena Boxes VIP Gold Color Chat, Unique Olympiad Extra Points Engine, GvG Event Solo Instance, PvP Solo Rift, Automatic GvG Event, Improved Orfen and Core Areas Lair of Antharas and Dragon Valley alternating PvP and Normal  every hour 6:00PM-0:00AM      Website: https://www.l2imagination.com  Discord: https://discord.com/invite/frCaDM4Bhg
    • L2 ASAGONIUM - High Five heavily customised PVE Server [OPEN BETA] Website: http://l2asagonium.eu/ Hello everyone, After months of development, tuning and a lot of late nights, I'd like to introduce you to L2 Asagonium - a Lineage 2 High Five server built around one simple idea: a fair, long-lasting world where your time and skill matter more than your wallet. We are currently in OPEN BETA, which means the server is fully online, fully playable, and we are actively listening to feedback to polish the final experience before the official launch. ----------------------------------------------------------- ABOUT THE SERVER - Chronicle: High Five (Mobius) - Type: Really hard PVE with custom content - Status: Open Beta - join, test, shape the server - Mentality: No Pay-to-Win. Ever. ----------------------------------------------------------- WHAT MAKES ASAGONIUM DIFFERENT 1) Custom Armor & Weapon Sets We have introduced new tiers of equipment (Twilight, Cronos, Olympus, Exodus, Leviathan, Ixion, Assassin, Odyssey, Chaos, Immortal) with their own visuals, set bonuses and passive skills. Each set has a clear identity and a real role in the meta - no "one best set wins everything". 2) Custom Passive Skills New Asagonium passive skills (P.Atk, M.Atk, HP, Haste and more) tied to gear and progression, so character building has more depth than just stacking enchants. 3) Live Leaderboards on the Website This is the part I'm most proud of. Our website is connected directly to the game database in real time. You can browse all characters and see: - Level + exact % to next level - Online / Offline / Offline Farming status - "You Died" status (Dark Souls style, stays until next login) - Death counter per character - Total time played (days / hours / minutes) - Top Adena, Top PvP, Top PK - Max Enchant on equipped weapons - Hover a character name to see their passive skills with icons - Hover an enchant value to see the weapon name, P.Atk and set It updates live. Anyone can check the rankings without logging in. ----------------------------------------------------------- NO PAY-TO-WIN - SERIOUSLY I'm tired of servers that promise "balanced donations" and then sell the best items in the cash shop two weeks later. On Asagonium: - No donation items that affect gameplay balance. - No paid enchants, no paid stats, no paid gear. - No "VIP" buffs that make you stronger than free players. Donations (if/when they exist) will be strictly cosmetic and quality-of-life only. The goal is a server that survives because people enjoy playing it, not because a few whales fund it. ----------------------------------------------------------- OPEN BETA - WHY YOU SHOULD JOIN NOW - The server is fully online and stable. - Your feedback directly shapes the final balance. - You get to learn the custom content before everyone else. - Active development - bugs get fixed, ideas get tested fast. ----------------------------------------------------------- HOW TO JOIN 1. Go to http://l2asagonium.eu/ 2. Open "How to Connect" - it walks you through the client download, the 64-bit patch and the system config in 5 simple steps. ----------------------------------------------------------- LINKS http://l2asagonium.eu/ ----------------------------------------------------------- Thanks for reading. If you give Asagonium a try during the beta, please drop your feedback - good or bad. That's exactly what this phase is for. See you in-game.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..