01-31-2013, 06:53 PM
Проблемка с админкой.
Не могу сделать себя админом в логах выбивает ошибку.
Прошу помощи =)
full.xml
Не могу сделать себя админом в логах выбивает ошибку.
Прошу помощи =)
Цитата:[17:42:07] ERROR AccessParser: File: full.xml:6 fatal: The content of elements must consist of well-formed character data or markup.GMAccess.xml
[17:42:07] INFO AccessParser: Exception: org.dom4j.DocumentException: Error on line 6 of document : The content of elements must consist of well-formed character data or markup. Nested exception: The content of elements must consist of well-formed character data or markup. in file: full.xml
org.dom4j.DocumentException: Error on line 6 of document : The content of elements must consist of well-formed character data or markup. Nested exception: The content of elements must consist of well-formed character data or markup.
at org.dom4j.io.SAXReader.read(SAXReader.java:456)
at org.dom4j.io.SAXReader.read(SAXReader.java:335)
at ankou.commons.data.xml.AbstractParser.parseDocument(AbstractParser.java:40)
at ankou.commons.data.xml.AbstractDirParser.parse(AbstractDirParser.java:56)
at ankou.commons.data.xml.AbstractParser.load(AbstractParser.java:61)
at ankou.gameserver.data.xml.Parsers.parseAll(Parsers.java:64)
at ankou.gameserver.GameServer.<init>(GameServer.java:146)
at ankou.gameserver.GameServer.main(GameServer.java:341)
Nested exception:
org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup.
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1234)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525)
at org.dom4j.io.SAXReader.read(SAXReader.java:439)
at org.dom4j.io.SAXReader.read(SAXReader.java:335)
at ankou.commons.data.xml.AbstractParser.parseDocument(AbstractParser.java:40)
at ankou.commons.data.xml.AbstractDirParser.parse(AbstractDirParser.java:56)
at ankou.commons.data.xml.AbstractParser.load(AbstractParser.java:61)
at ankou.gameserver.data.xml.Parsers.parseAll(Parsers.java:64)
at ankou.gameserver.GameServer.<init>(GameServer.java:146)
at ankou.gameserver.GameServer.main(GameServer.java:341)
[17:42:07] ERROR AccessParser: File: GMAccess.xml:2 error: Document is invalid: no grammar found.
[17:42:07] ERROR AccessParser: File: GMAccess.xml:2 error: Document root element "list", must match DOCTYPE root "null".
[17:42:07] INFO AccessParser: Exception: java.lang.NumberFormatException: For input string: "2684802500" in file: GMAccess.xml
java.lang.NumberFormatException: For input string: "2684802500"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:484)
at java.lang.Integer.valueOf(Integer.java:570)
at ankou.gameserver.data.xml.parser.AccessParser.readData(AccessParser.java:80)
at ankou.commons.data.xml.AbstractParser.parseDocument(AbstractParser.java:42)
at ankou.commons.data.xml.AbstractDirParser.parse(AbstractDirParser.java:56)
at ankou.commons.data.xml.AbstractParser.load(AbstractParser.java:61)
at ankou.gameserver.data.xml.Parsers.parseAll(Parsers.java:64)
at ankou.gameserver.GameServer.<init>(GameServer.java:146)
at ankou.gameserver.GameServer.main(GameServer.java:341)
[17:42:07] ERROR AccessParser: File: full.xml:6 fatal: Element type "PlayerIDset" must be followed by either attribute specifications, ">" or "/>".
[17:42:07] INFO AccessParser: Exception: org.dom4j.DocumentException: Error on line 6 of document : Element type "PlayerIDset" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "PlayerIDset" must be followed by either attribute specifications, ">" or "/>". in file: full.xml
org.dom4j.DocumentException: Error on line 6 of document : Element type "PlayerIDset" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "PlayerIDset" must be followed by either attribute specifications, ">" or "/>".
at org.dom4j.io.SAXReader.read(SAXReader.java:456)
at org.dom4j.io.SAXReader.read(SAXReader.java:335)
at ankou.commons.data.xml.AbstractParser.parseDocument(AbstractParser.java:40)
at ankou.commons.data.xml.AbstractDirParser.parse(AbstractDirParser.java:56)
at ankou.commons.data.xml.AbstractParser.load(AbstractParser.java:61)
at ankou.gameserver.data.xml.Parsers.parseAll(Parsers.java:64)
at ankou.gameserver.GameServer.<init>(GameServer.java:146)
at ankou.gameserver.GameServer.main(GameServer.java:341)
Nested exception:
org.xml.sax.SAXParseException: Element type "PlayerIDset" must be followed by either attribute specifications, ">" or "/>".
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1234)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525)
at org.dom4j.io.SAXReader.read(SAXReader.java:439)
at org.dom4j.io.SAXReader.read(SAXReader.java:335)
at ankou.commons.data.xml.AbstractParser.parseDocument(AbstractParser.java:40)
at ankou.commons.data.xml.AbstractDirParser.parse(AbstractDirParser.java:56)
at ankou.commons.data.xml.AbstractParser.load(AbstractParser.java:61)
at ankou.gameserver.data.xml.Parsers.parseAll(Parsers.java:64)
at ankou.gameserver.GameServer.<init>(GameServer.java:146)
at ankou.gameserver.GameServer.main(GameServer.java:341)
Цитата:<?xml version='1.0' encoding='utf-8'?>
<list>
<!-- Используется для настройки EVERYBODY_HAS_ADMIN_RIGHTS -->
<char>
<PlayerID set="0"/>
<PlayerID set="2684802500"/>
<PlayerID set="2684811530"/>
<!-- По умолчанию FALSE для всех игроков -->
<IsGM set="true"/>
<!-- разрешает использование амин команд. -->
<CanUseGMCommand set="true"/>
<CanAnnounce set="true"/>
<CanBan set="true"/>
<CanBanChat set="true"/>
<CanUnBanChat set="true"/>
<BanChatDelay set="-1"/>
<BanChatMaxValue set="-1"/>
<BanChatCountPerDay set="-1"/>
<BanChatBonusId set="-1"/>
<BanChatBonusCount set="-1"/>
<CanChatPenalty set="true"/>
<UseGMShop set="true"/>
<CanDelete set="true"/>
<CanKick set="true"/>
<Menu set="true"/>
<GodMode set="true"/>
<CanEditCharAll set="true"/>
<CanEditChar set="true"/>
<CanEditPledge set="true"/>
<CanViewChar set="true"/>
<CanEditNPC set="true"/>
<CanViewNPC set="true"/>
<CanTeleport set="true"/>
<CanRestart set="true"/>
<MonsterRace set="true"/>
<Rider set="true"/>
<FastUnstuck set="true"/>
<ResurectFixed set="true"/>
<Door set="true"/>
<Res set="true"/>
<PeaceAttack set="true"/>
<Heal set="true"/>
<Unblock set="true"/>
<CanChangeClass set="false"/>
<!-- блокирует взятие предметов из инвентаря, возможен только дестрой предмета. По умолчанию FALSE -->
<BlockInventory set="false"/>
<CanGmEdit set="true"/>
<IsEventGm set="true"/>
<CanReload set="true"/>
<CanRename set="true"/>
<CanJail set="true"/>
<CanPolymorph set="true"/>
<!-- По умолчанию TRUE для всех игроков -->
<UseInventory set="true"/>
<UseTrade set="true"/>
<CanAttack set="true"/>
<CanEvaluate set="true"/>
<CanJoinParty set="true"/>
<CanJoinClan set="true"/>
<UseWarehouse set="true"/>
<UseShop set="true"/>
</char>
</list>
full.xml
Цитата:<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE list SYSTEM "../gmaccess.dtd">
<list>
<!-- Используется для настройки EVERYBODY_HAS_ADMIN_RIGHTS -->
<char>
<PlayerID set="-1"/>
<!-- По умолчанию FALSE для всех игроков -->
<IsGM set="true"/>
<!-- разрешает использование амин команд. -->
<CanUseGMCommand set="true"/>
<CanAnnounce set="true"/>
<CanBan set="true"/>
<CanBanChat set="true"/>
<UseGMShop set="true"/>
<CanDelete set="true"/>
<CanKick set="true"/>
<Menu set="true"/>
<GodMode set="true"/>
<CanEditCharAll set="true"/>
<CanEditChar set="true"/>
<CanEditPledge set="true"/>
<CanViewChar set="true"/>
<CanEditNPC set="true"/>
<CanViewNPC set="true"/>
<CanTeleport set="true"/>
<CanRestart set="true"/>
<MonsterRace set="true"/>
<Rider set="true"/>
<FastUnstuck set="true"/>
<ResurectFixed set="true"/>
<Door set="true"/>
<Res set="true"/>
<PeaceAttack set="true"/>
<Heal set="true"/>
<Unblock set="true"/>
<CanChangeClass set="false"/>
<!-- блокирует взятие предметов из инвентаря, возможен только дестрой предмета. По умолчанию FALSE -->
<BlockInventory set="false"/>
<CanGmEdit set="true"/>
<IsEventGm set="true"/>
<CanReload set="true"/>
<CanRename set="true"/>
<CanJail set="true"/>
<CanPolymorph set="true"/>
<!-- По умолчанию TRUE для всех игроков -->
<UseInventory set="true"/>
<UseTrade set="true"/>
<CanAttack set="true"/>
<CanEvaluate set="true"/>
<CanJoinParty set="true"/>
<CanJoinClan set="true"/>
<UseWarehouse set="true"/>
<UseShop set="true"/>
</char>
</list>