java - SQL Input String was not in a correct format on XML -
i formatting .xml file contains coding of .swf game (through .xmls , .dats), however, it's runable server using mysql.
i adding items on dat1.xml (basically main .xml), won't post .xml here (it's 79823 lines long) code goes this:
code
<object type="unique id shown 0x000-0xffff" id="item name"> <class>equipment</class> <item/> <texture> <file>texture .png file</file> <index></index> </texture> <slottype>9</slottype> <description>self explainatory</description> <bagtype>4</bagtype> <feedpower>feed in-game pets</feedpower> <soulbound/> (soulbound = cannot traded) <displayid>name display in-game</displayid>
when finished adding new items, tried run server.exe (which selects dat1.xml, among other .xmls items coded correctly server-sided), when server reaches dat1.xml, error shows up:
system.formatexception: input string not in correct format. in system.number.stringtonumber(string str, numberstyles options, numberbuffer& number, numberformatinfo info, boolean parsedecimal) in system.number.parseint32(string s, numberstyles style, numberformatinfo info) in system.int32.parse(string s) in utils.fromstring(string x) en g:\ezpserver\cake's domain\db\utils.cs:líne 109 in projectiledesc..ctor(xelement elem) en g:\ezpserver\cake's domain\db\data\descriptors.cs:líne 231 in item.<>c.<.ctor>b__1_2(xelement i) en g:\ezpserver\cake's domain\db\data\descriptors.cs:líne 522 in system.linq.enumerable.whereselectenumerableiterator`2.movenext() in system.linq.buffer`1..ctor(ienumerable`1 source) in system.linq.enumerable.toarray[tsource](ienumerable`1 source) in item..ctor(uint16 type, xelement elem) en g:\ezpserver\cake's domain\db\data\descriptors.cs:líne 522
then .exe crashes, , without server running correctly, game cannot played.
i made sure every object (either item, class or enemy) had unique id , having right encoding (iso-8859-1)
i don't see out of place inside .xml, , made sure way items used in game coded.
Comments
Post a Comment