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

    • Good day! Due to the increasing number of questions, "Do you provide services for the client?" - I decided to answer with a separate topic. I provide services for editing/modifying the client and individual files, namely: 1. Transfer/Creation/Editing locations, geodata.   2. All kinds of work with NPCs, including transfer, animation, adding effects to them and logos.   3. Actually, Transfer/Creation/Edit any EFFECTS, including Abnormal Effects.   4. Any work with weapons, armor, accessories and everything related to it.   5. Create or edit textures, including dynamic textures.   6. Creating a Lobby Screen, Lobby Char Selection (character selection window) and Lobby Char Creation (character creation window). What I don't do: 1. Coding in any form (except for CB).   I started publishing my work recently, here - YouTube And here - RuTube If required, I respect confidentiality. Any other questions? Welcome to Telegram or PM.
    • 🎮https://discord.gg/yyVRtna9RB 🌎https://l2-forever.com L2 Forever was the best mid rates PvP server back in C4 and C5 and we want to give players the same experience with Interlude!   # L2-Forever * EXP: 50x * Adena: 200x * Spoil: 5x * Drops: 5x   # ENCHANTS *Safe Enchant : 3 *Max. Enchant : 20 *Normal Scroll chance : 65% *Blessed Scroll chance : 70%   # NEW PLAYERS * Start with Coupons allowing you to get free top D-grade * Start at level 20 * Main Town Giran Harbor   # BOOSTED AREA'S * Execution Grounds [ 20 - 40] * Cruma Tower [40-52] * Antharas Lair [52-61] * Antharas Heart [61-80] * Giran Harbor - Shopping Area   # END GAME FARMING AREAS * Monastery of Silence and Primeval Island customized for group farm # PLATINUM ARMORS * Platinum Armors get dropped by raids, allowing everyone to obtain a set and not only donators * Many Raids all over the L2 world drop parts of the Platinum Armors   # BUFFS * Buff duration is set at 1 hour for normal buffs (Buffs and Songs / Dances) * Town Buffers in all main towns with all available buffs Giran Harbor (GH) is the place to be for all your trades and item needs! Platinum Armors   # FOREVER ITEMS * Unique Forever weapons & armors # UNIQUE L2 FOREVER AUGMENTATION SYSTEM * We don't use retail augmentations, we use our own unique system and glows!   # OTHER CUSTOM FEATURES * Global Gatekeeper * NPC Class Changer * Auction House * Unique Augmenter * Subclass with Adena or from Cabrio * Nobless - Barakiel * Useless S weapon Special abilities like (Cheap shot) are changed
    • 🎮https://discord.gg/yyVRtna9RB 🌎https://l2-forever.com L2 Forever was the best mid rates PvP server back in C4 and C5 and we want to give players the same experience with Interlude!   # L2-Forever * EXP: 50x * Adena: 200x * Spoil: 5x * Drops: 5x   # ENCHANTS *Safe Enchant : 3 *Max. Enchant : 20 *Normal Scroll chance : 65% *Blessed Scroll chance : 70%   # NEW PLAYERS * Start with Coupons allowing you to get free top D-grade * Start at level 20 * Main Town Giran Harbor   # BOOSTED AREA'S * Execution Grounds [ 20 - 40] * Cruma Tower [40-52] * Antharas Lair [52-61] * Antharas Heart [61-80] * Giran Harbor - Shopping Area   # END GAME FARMING AREAS * Monastery of Silence and Primeval Island customized for group farm # PLATINUM ARMORS * Platinum Armors get dropped by raids, allowing everyone to obtain a set and not only donators * Many Raids all over the L2 world drop parts of the Platinum Armors   # BUFFS * Buff duration is set at 1 hour for normal buffs (Buffs and Songs / Dances) * Town Buffers in all main towns with all available buffs Giran Harbor (GH) is the place to be for all your trades and item needs! Platinum Armors   # FOREVER ITEMS * Unique Forever weapons & armors # UNIQUE L2 FOREVER AUGMENTATION SYSTEM * We don't use retail augmentations, we use our own unique system and glows!   # OTHER CUSTOM FEATURES * Global Gatekeeper * NPC Class Changer * Auction House * Unique Augmenter * Subclass with Adena or from Cabrio * Nobless - Barakiel * Useless S weapon Special abilities like (Cheap shot) are changed
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/uthciha-services https://campsite.bio/utchihaamkt
  • Topics

×
×
  • Create New...