Author Topic: The Kamael Primeshop.xml Bug  (Read 323 times)

Offline tomkaash

  • Black Sheep
  • Heir
  • **
  • Posts: 44
Primeshop.xml Bug
« on: January 07, 2020, 03:43:47 PM »
Hello ,

I see on the xsd the construction for primeshop.xml

I try for exemple to make this one :

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<list enabled="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="xsd/PrimeShop.xsd">
</list>

<item id="1011128" cat="2" paymentType="2" price="5" panelType="0" recommended="0" startSale="315558000" endSale="2127452400" dayOfWeek="127" startHour="0" startMinute="0" stopHour="23" stopMinute="59" stock="-1" maxStock="-1" salePercent="0" minLevel="85" maxLevel="0" minBirthday="0" maxBirthday="0" restrictionDay="0" availableCount="0" >
<item itemId="3936" count="1" />
</item>

And i get error

Code: [Select]
Jan 07, 2020 2:39:15 PM org.l2jmobius.commons.util.IXmlReader parseFile
WARNING: Could not parse file: PrimeShop.xml at line: 5, column: 3 :
org.xml.sax.SAXParseException; systemId: file:/home/xxx/xxx/xxx/game/data/PrimeShop.xml; lineNumber: 5; columnNumber: 3; The markup in the document following the root element must be well-formed.
at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204)
at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:178)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1471)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$TrailingMiscDriver.next(XMLDocumentScannerImpl.java:1398)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:534)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:888)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at java.xml/com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:246)
at java.xml/com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:206)
at org.l2jmobius.commons.util.IXmlReader.parseFile(IXmlReader.java:102)
at org.l2jmobius.commons.util.IXmlReader.parseDatapackFile(IXmlReader.java:76)
at org.l2jmobius.gameserver.data.xml.impl.PrimeShopData.load(PrimeShopData.java:57)
at handlers.admincommandhandlers.AdminReload.useAdminCommand(AdminReload.java:275)
at org.l2jmobius.gameserver.handler.AdminCommandHandler.lambda$useAdminCommand$0(AdminCommandHandler.java:128)
at org.l2jmobius.commons.concurrent.RunnableWrapper.run(RunnableWrapper.java:38)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:835)

I'dont know how to resole

Can earn help plz ?

Thanks

Offline virus163nsk

  • Vassal
  • *
  • Posts: 1
Re: Primeshop.xml Bug
« Reply #1 on: January 14, 2020, 12:36:18 PM »
I can't too :'( :'( :'( :'(

Offline ruffle

  • Vassal
  • *
  • Posts: 8
Re: Primeshop.xml Bug
« Reply #2 on: January 29, 2020, 10:29:43 PM »
you have to add data on the client, so I would discard it.

Online Mobius

  • Administrator
  • Distinguished King
  • *****
  • Posts: 7212
Re: Primeshop.xml Bug
« Reply #3 on: January 29, 2020, 11:38:52 PM »
Big nerve to ask for support after your scam attempt.
Not a bug, just proof you are a complete noob.