статы армора
2 ответов72 просмотровСейчас просматривают: 1
· 21.12.2009, 12:50
Сборка: IL,La2base
Краткое изложение СУТИ проблемы: вылазит ошибка,проблема в xml,писал саморучно,ошибок сам не могу найти...
Вопрос: в чем причина и как исправить?
вот лог ошибки :
Раскрывающийся текст
SEVERE: Error loading file C:\server\gameserver\data\stats\armor\105000-105090.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 Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at net.sf.l2j.gameserver.skills.DocumentBase.parse(DocumentBase.java:84)
at net.sf.l2j.gameserver.skills.SkillsEngine.loadData(SkillsEngine.java:159)
at net.sf.l2j.gameserver.skills.SkillsEngine.loadArmors(SkillsEngine.java:119)
at net.sf.l2j.gameserver.datatables.ItemTable.<init>(ItemTable.java:231)
at net.sf.l2j.gameserver.datatables.ItemTable.getInstance(ItemTable.java:169)
at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:249)
at net.sf.l2j.gameserver.GameServer.main(GameServer.java:596)
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 Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at net.sf.l2j.gameserver.skills.DocumentBase.parse(DocumentBase.java:84)
at net.sf.l2j.gameserver.skills.SkillsEngine.loadData(SkillsEngine.java:159)
at net.sf.l2j.gameserver.skills.SkillsEngine.loadArmors(SkillsEngine.java:119)
at net.sf.l2j.gameserver.datatables.ItemTable.<init>(ItemTable.java:231)
at net.sf.l2j.gameserver.datatables.ItemTable.getInstance(ItemTable.java:169)
at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:249)
at net.sf.l2j.gameserver.GameServer.main(GameServer.java:596)
вот сам xml:
Раскрывающийся текст
<?xml version='1.0' encoding='utf-8'?>
<list>
<item id='105000' name="Avatar Helmet">
<for>
<add val='83' order='0x40' stat='pDef'/>
<enchant val='0' order='0x0C' stat='pDef'/>
<enchant val='0' order='0x0C' stat='mDef'/>
</for>
</item>
<item id='105010' name="Set Avatar Robe">
<for>
<add val='500' order='0x40' stat='maxHp'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105020;9"/>
<using slotitem="105030;12"/>
</and>
</add>
<add val='500' order='0x40' stat='maxMp'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105020;9"/>
<using slotitem="105030;12"/>
</and>
</add>
<add order='0x40' stat='INT' val='2'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105020;9"/>
<using slotitem="105030;12"/>
</and>
</add>
<mul order="0x30" stat="mAtkSpd" val="1.18"/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105020;9"/>
<using slotitem="105030;12"/>
</and>
</mul>
<add val='166' order='0x40' stat='pDef'/>
<add val='50' order='0x40' stat='mDef'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105020;9"/>
<using slotitem="105030;12"/>
</and>
</add>
<enchant val='0' order='0x0C' stat='pDef'/>
<enchant val='0' order='0x0C' stat='mDef'/>
</for>
</item>
<item id='105020' name="Avatar Gloves Robe">
<for>
<add val='55' order='0x40' stat='pDef'/>
<enchant val='0' order='0x0C' stat='pDef'/>
<enchant val='0' order='0x0C' stat='mDef'/>
</for>
</item>
<item id='105030' name="Avatar Boots Robe">
<for>
<add val='55' order='0x40' stat='pDef'/>
<enchant val='0' order='0x0C' stat='pDef'/>
<enchant val='0' order='0x0C' stat='mDef'/>
</for>
</item>
<item id='105040' name="Set Avatar Heavy">
<for>
<add val='100' order='0x40' stat='mDef'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105050;9"/>
<using slotitem="105060;12"/>
</and>
</add>
<add val='333' order='0x40' stat='pDef'/>
<add val='1500' order='0x40' stat='maxHp'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105050;9"/>
<using slotitem="105060;12"/>
</and>
</add>
<add val='500' order='0x40' stat='maxMp'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105050;9"/>
<using slotitem="105060;12"/>
</and>
</add>
<add order='0x40' stat='STR' val='2'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105050;9"/>
<using slotitem="105060;12"/>
</and>
</add>
<add order='0x40' stat='MEN' val='2'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105050;9"/>
<using slotitem="105060;12"/>
</and>
</add>
<add val='50' order='0x40' stat='pAtkSpd'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105050;9"/>
<using slotitem="105060;12"/>
</and>
</add>
<enchant val='0' order='0x0C' stat='pDef'/>
</for>
</item>
<item id='105050' name="Avatar Gloves Heavy">
<for>
<add val='56' order='0x40' stat='pDef'/>
<enchant val='0' order='0x0C' stat='pDef'/>
<enchant val='0' order='0x0C' stat='mDef'/>
</for>
</item>
<item id='105060' name="Avatar Boots Heavy">
<for>
<add val='56' order='0x40' stat='pDef'/>
<enchant val='0' order='0x0C' stat='pDef'/>
<enchant val='0' order='0x0C' stat='mDef'/>
</for>
</item>
<item id='105070' name="Set Avatar Light">
<for>
<add val='249' order='0x40' stat='pDef'/>
<add val='150' order='0x40' stat='mDef'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105080;9"/>
<using slotitem="105090;12"/>
</and>
</add>
<add val='1000' order='0x40' stat='maxHp'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105080;9"/>
<using slotitem="105090;12"/>
</and>
</add>
<add val='600' order='0x40' stat='maxMp'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105080;9"/>
<using slotitem="105090;12"/>
</and>
</add>
<add order='0x40' stat='STR' val='2'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105080;9"/>
<using slotitem="105090;12"/>
</and>
</add>
<add order='0x40' stat='WIT' val='1'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105080;9"/>
<using slotitem="105090;12"/>
</and>
</add>
<add order='0x40' stat='INT' val='1'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105080;9"/>
<using slotitem="105090;12"/>
</and>
</add>
<add val='90' order='0x40' stat='pAtkSpd'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105080;9"/>
<using slotitem="105090;12"/>
</and>
</add>
<add val='6' order='0x40' stat='accCombat'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105080;9"/>
<using slotitem="105090;12"/>
</and>
</add>
<add val='6' order='0x40' stat='rEvas'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105080;9"/>
<using slotitem="105090;12"/>
</and>
</add>
<enchant val='0' order='0x0C' stat='pDef'/>
<enchant val='0' order='0x0C' stat='mDef'/>
</for>
</item>
<item id='105080' name="Avatar Gloves Light">
<for>
<add val='56' order='0x40' stat='pDef'/>
<enchant val='0' order='0x0C' stat='pDef'/>
<enchant val='0' order='0x0C' stat='mDef'/>
</for>
</item>
<item id='105090' name="Avatar Boots Light">
<for>
<add val='56' order='0x40' stat='pDef'/>
<enchant val='0' order='0x0C' stat='pDef'/>
<enchant val='0' order='0x0C' stat='mDef'/>
</for>
</item>
</list>
<list>
<item id='105000' name="Avatar Helmet">
<for>
<add val='83' order='0x40' stat='pDef'/>
<enchant val='0' order='0x0C' stat='pDef'/>
<enchant val='0' order='0x0C' stat='mDef'/>
</for>
</item>
<item id='105010' name="Set Avatar Robe">
<for>
<add val='500' order='0x40' stat='maxHp'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105020;9"/>
<using slotitem="105030;12"/>
</and>
</add>
<add val='500' order='0x40' stat='maxMp'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105020;9"/>
<using slotitem="105030;12"/>
</and>
</add>
<add order='0x40' stat='INT' val='2'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105020;9"/>
<using slotitem="105030;12"/>
</and>
</add>
<mul order="0x30" stat="mAtkSpd" val="1.18"/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105020;9"/>
<using slotitem="105030;12"/>
</and>
</mul>
<add val='166' order='0x40' stat='pDef'/>
<add val='50' order='0x40' stat='mDef'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105020;9"/>
<using slotitem="105030;12"/>
</and>
</add>
<enchant val='0' order='0x0C' stat='pDef'/>
<enchant val='0' order='0x0C' stat='mDef'/>
</for>
</item>
<item id='105020' name="Avatar Gloves Robe">
<for>
<add val='55' order='0x40' stat='pDef'/>
<enchant val='0' order='0x0C' stat='pDef'/>
<enchant val='0' order='0x0C' stat='mDef'/>
</for>
</item>
<item id='105030' name="Avatar Boots Robe">
<for>
<add val='55' order='0x40' stat='pDef'/>
<enchant val='0' order='0x0C' stat='pDef'/>
<enchant val='0' order='0x0C' stat='mDef'/>
</for>
</item>
<item id='105040' name="Set Avatar Heavy">
<for>
<add val='100' order='0x40' stat='mDef'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105050;9"/>
<using slotitem="105060;12"/>
</and>
</add>
<add val='333' order='0x40' stat='pDef'/>
<add val='1500' order='0x40' stat='maxHp'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105050;9"/>
<using slotitem="105060;12"/>
</and>
</add>
<add val='500' order='0x40' stat='maxMp'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105050;9"/>
<using slotitem="105060;12"/>
</and>
</add>
<add order='0x40' stat='STR' val='2'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105050;9"/>
<using slotitem="105060;12"/>
</and>
</add>
<add order='0x40' stat='MEN' val='2'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105050;9"/>
<using slotitem="105060;12"/>
</and>
</add>
<add val='50' order='0x40' stat='pAtkSpd'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105050;9"/>
<using slotitem="105060;12"/>
</and>
</add>
<enchant val='0' order='0x0C' stat='pDef'/>
</for>
</item>
<item id='105050' name="Avatar Gloves Heavy">
<for>
<add val='56' order='0x40' stat='pDef'/>
<enchant val='0' order='0x0C' stat='pDef'/>
<enchant val='0' order='0x0C' stat='mDef'/>
</for>
</item>
<item id='105060' name="Avatar Boots Heavy">
<for>
<add val='56' order='0x40' stat='pDef'/>
<enchant val='0' order='0x0C' stat='pDef'/>
<enchant val='0' order='0x0C' stat='mDef'/>
</for>
</item>
<item id='105070' name="Set Avatar Light">
<for>
<add val='249' order='0x40' stat='pDef'/>
<add val='150' order='0x40' stat='mDef'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105080;9"/>
<using slotitem="105090;12"/>
</and>
</add>
<add val='1000' order='0x40' stat='maxHp'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105080;9"/>
<using slotitem="105090;12"/>
</and>
</add>
<add val='600' order='0x40' stat='maxMp'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105080;9"/>
<using slotitem="105090;12"/>
</and>
</add>
<add order='0x40' stat='STR' val='2'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105080;9"/>
<using slotitem="105090;12"/>
</and>
</add>
<add order='0x40' stat='WIT' val='1'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105080;9"/>
<using slotitem="105090;12"/>
</and>
</add>
<add order='0x40' stat='INT' val='1'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105080;9"/>
<using slotitem="105090;12"/>
</and>
</add>
<add val='90' order='0x40' stat='pAtkSpd'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105080;9"/>
<using slotitem="105090;12"/>
</and>
</add>
<add val='6' order='0x40' stat='accCombat'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105080;9"/>
<using slotitem="105090;12"/>
</and>
</add>
<add val='6' order='0x40' stat='rEvas'/>
<and>
<using slotitem="105000;6"/>
<using slotitem="105080;9"/>
<using slotitem="105090;12"/>
</and>
</add>
<enchant val='0' order='0x0C' stat='pDef'/>
<enchant val='0' order='0x0C' stat='mDef'/>
</for>
</item>
<item id='105080' name="Avatar Gloves Light">
<for>
<add val='56' order='0x40' stat='pDef'/>
<enchant val='0' order='0x0C' stat='pDef'/>
<enchant val='0' order='0x0C' stat='mDef'/>
</for>
</item>
<item id='105090' name="Avatar Boots Light">
<for>
<add val='56' order='0x40' stat='pDef'/>
<enchant val='0' order='0x0C' stat='pDef'/>
<enchant val='0' order='0x0C' stat='mDef'/>
</for>
</item>
</list>
0
· 21.12.2009, 13:14
Код
<item id='105010' name="Set Avatar Robe">
<for>
<add val='500' order='0x40' stat='maxHp'/> - тег <add> открыт и закрыт (убрать /)
<and>
<using slotitem="105000;6"/>
<using slotitem="105020;9"/>
<using slotitem="105030;12"/>
</and>
</add> - тег </add> закрыт, но не открыт
<for>
<add val='500' order='0x40' stat='maxHp'/> - тег <add> открыт и закрыт (убрать /)
<and>
<using slotitem="105000;6"/>
<using slotitem="105020;9"/>
<using slotitem="105030;12"/>
</and>
</add> - тег </add> закрыт, но не открыт
0
Тема закрыта для ответов

