Jump to content
  • 0

[Help] Multisell problem


Question

Posted

Hi guys , i have create a xml for multisell of my npc but i have got 1 error .

 

Error loading file C:\Users\andrea\Desktop\server\gameserver\data\multis
ell\50.xml
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Inval
id byte 1 of 1-byte UTF-8 sequence.
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unk
nown Source)
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown So
urce)
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown
Source)
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanData(Unk
nown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanComment(Unknow
n Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanComment(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Prolog
Driver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
        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 com.l2jserver.gameserver.datatables.MultiSell.load(MultiSell.java:198
)
        at com.l2jserver.gameserver.datatables.MultiSell.reload(MultiSell.java:7
1)
        at handlers.admincommandhandlers.AdminAdmin.useAdminCommand(AdminAdmin.j
ava:235)
        at com.l2jserver.gameserver.network.clientpackets.SendBypassBuildCmd.run
Impl(SendBypassBuildCmd.java:79)
        at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run
(L2GameClientPacket.java:62)
        at com.l2jserver.gameserver.network.L2GameClient.run(L2GameClient.java:1
001)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

MultiSell: Loaded 288 lists.

 

This is my file :

 

<?xml version="1.0" encoding="UTF-8"?>
<!-- Reward list -->

<list maintainEnchantment="true">

  <!-- Blessed Scroll of Escape -->
  <item id="1">
    <ingredient id="6673" count="2"/>
    <production id="1538" count="1"/>
  </item>

  <!-- Blessed scroll enchant armor b-->
  <item id="2">
    <ingredient id="6673" count="2"/>
    <production id="6572" count="1"/>
  </item>

  <!-- Blessed scroll enchant weapon b -->
  <item id="3">
    <ingredient id="6673" count="2"/>
    <production id="6571" count="1"/>
  
  </item>

  <!-- Blessed scroll enchant armor A -->
  <item id="4">
    <ingredient id="6673" count="2"/>
    <production id="6570" count="1"/>
  </item>

  <!-- Blessed scroll enchant armor S -->
  <item id="5">
    <ingredient id="6673" count="3"/>
    <production id="6578" count="1"/> 
  </item>
  
   <!-- Blessed scroll enchant weapon S -->
  <item id="6">
    <ingredient id="6673" count="5"/>
    <production id="6577" count="1"/>
  </item>

  <!-- Quick Healing potion -->
  <item id="6">
    <ingredient id="6673" count="1"/>
    <production id="22024" count="20"/>
  </item>

  <!-- Giant's Codex -->
  <item id="7">
    <ingredient id="6673" count="1"/>
    <production id="6622" count="1"/>
  </item>

  <!-- Giant's Codex - Mastery -->
  <item id="8">
    <ingredient id="6673" count="2"/>
    <production id="9627" count="1"/>
  </item>

  <!-- Giant's Codex - Oblivion -->
  <item id="9">
    <ingredient id="6673" count="100000000"/>
    <production id="9625" count="1"/>
  </item>

  <!-- Giant's Codex - Discipline -->
  <item id="10">
    <ingredient id="6673" count="100000000"/>
    <production id="9626" count="1"/>
  </item>

</list>

8 answers to this question

Recommended Posts

  • 0
Posted

<?xml version="1.0" encoding="UTF-8"?>

<!-- Reward list -->

 

<list maintainEnchantment="true">

 

 <!-- Blessed Scroll of Escape -->

 <item id="1">

   <ingredient id="6673" count="2"/>

   <production id="1538" count="1"/>

 </item>

 

 <!-- Blessed scroll enchant armor b-->

 <item id="2">

   <ingredient id="6673" count="2"/>

   <production id="6572" count="1"/>

 </item>

 

 <!-- Blessed scroll enchant weapon b -->

 <item id="3">

   <ingredient id="6673" count="2"/>

   <production id="6571" count="1"/>

 

 </item>

 

 <!-- Blessed scroll enchant armor A -->

 <item id="4">

   <ingredient id="6673" count="2"/>

   <production id="6570" count="1"/>

 </item>

 

 <!-- Blessed scroll enchant armor S -->

 <item id="5">

   <ingredient id="6673" count="3"/>

   <production id="6578" count="1"/>

 </item>

 

  <!-- Blessed scroll enchant weapon S -->

 <item id="6">

   <ingredient id="6673" count="5"/>

   <production id="6577" count="1"/>

 </item>

 

 <!-- Quick Healing potion -->

 <item id="6">

   <ingredient id="6673" count="1"/>

   <production id="22024" count="20"/>

 </item>

 

 <!-- Giant's Codex -->

 <item id="7">

   <ingredient id="6673" count="1"/>

   <production id="6622" count="1"/>

 </item>

 

 <!-- Giant's Codex - Mastery -->

 <item id="8">

   <ingredient id="6673" count="2"/>

   <production id="9627" count="1"/>

 </item>

 

 <!-- Giant's Codex - Oblivion -->

 <item id="9">

   <ingredient id="6673" count="100000000"/>

   <production id="9625" count="1"/>

 </item>

 

 <!-- Giant's Codex - Discipline -->

 <item id="10">

   <ingredient id="6673" count="100000000"/>

   <production id="9626" count="1"/>

 </item>

 

</list>

 

  • 0
Posted

Your item is duplicated here

============================

<!-- Blessed scroll enchant weapon S -->

  <item id="6">

    <ingredient id="6673" count="5"/>

    <production id="6577" count="1"/>

  </item>

 

  <!-- Quick Healing potion -->

  <item id="6">

    <ingredient id="6673" count="1"/>

    <production id="22024" count="20"/>

  </item>

========================

So you have to change your ID .It's too big error , for this small mistake , i will reply again , i am going to search it.

  • 0
Posted

Use a more simple tool to edit your XML (notepad++ or notepad if you still got problems).

 

Here is an explanation.

 

Sometimes you will receive messages like "invalid byte 1 of 1-byte utf-8 sequence". This is caused by copying and pasting XML from other programs and the byte sequence messing up. The solution is to copy the text, e.g. from a web browser, into a program that can save the text specifically in UTF format, e.g. Notepad, then copy the text from that program into ContentXML. This should correct any UTF byte sequence problems.

 

There are plenty of examples on the web about the error, just Google "Invalid byte 1 of 1-byte UTF-8 sequence".

 

Another solution is to take existing XML which works, remove items, than add your own items, and register under another name.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...