HelpInput string was not in a correct format on dat1 (FSOD)

Posts 1–15 of 15 · Page 1 of 1
Input string was not in a correct format on dat1 (FSOD)
I have added the new items from prod into dat1, while making sure no Object had repeated IDs, names and were in the right format, however, whenever i start the server.exe, i get this error after it gets to dat1.xml

System.FormatException: Input string was not in a 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.WhereSelectEnumerableIterat or`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

No idea what causes this as nothing inside the .xml is out of place.
Quote Originally Posted by CaIamity View Post
I have added the new items from prod into dat1, while making sure no Object had repeated IDs, names and were in the right format, however, whenever i start the server.exe, i get this error after it gets to dat1.xml

System.FormatException: Input string was not in a 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.WhereSelectEnumerableIterat or`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

No idea what causes this as nothing inside the .xml is out of place.
Its because you have items that don't match your source. For example, you might have <Activate>CharSlot</Activate>. But, you don't have it in descriptors.cs.
Quote Originally Posted by Anime View Post


Its because you have items that don't match your source. For example, you might have <Activate>CharSlot</Activate>. But, you don't have it in descriptors.cs.
I can't find any item that isn't coded in the source, i've removed items like Pet Stones, Char/Vault unlockers, <Activate>MysteryDye</Activate> items (isn't coded) and the new Testing items (just in case, also useless as an admin), no item has coding that isn't available on FSOD, unless i'm retarded and i missed something.

I'm only doing this because the AS3 tutorial said to add the new items to dat1 (items) and dat0 (ground tiles, server.exe runs it just fine), althrough i've added items up to the Oryx Horde/MotMG release.
From what i see there is an issue with Projectiles, when i added all the X16 Assets to my server i obviously had to change a few things =>

Go to desciptors.cs

find this line:
Code:
public int LifetimeMS { get; private set; }
and change it to:
Code:
public float LifetimeMS { get; private set; }
now find this line:
Code:
LifetimeMS = Utils.FromString(elem.Element("LifetimeMS").Value);
and change it to:
Code:
LifetimeMS = float.Parse(elem.Element("LifetimeMS").Value, NumberStyles.Any, ci);
Reason for this is because Deca started to use insane numbers like "327.34723" as LifetimeMS on Projectiles.

Another thing you might do is replace your descriptors.cs with this: https://hastebin.com/uyiruxemuy.cpp if you dont have any custom tags in there, if you do just add them to this.
Quote Originally Posted by MikeRaarupBirk View Post
From what i see there is an issue with Projectiles, when i added all the X16 Assets to my server i obviously had to change a few things =>

Go to desciptors.cs

find this line:
Code:
public int LifetimeMS { get; private set; }
and change it to:
Code:
public float LifetimeMS { get; private set; }
now find this line:
Code:
LifetimeMS = Utils.FromString(elem.Element("LifetimeMS").Value);
and change it to:
Code:
LifetimeMS = float.Parse(elem.Element("LifetimeMS").Value, NumberStyles.Any, ci);
Reason for this is because Deca started to use insane numbers like "327.34723" as LifetimeMS on Projectiles.

Another thing you might do is replace your descriptors.cs with this: https://hastebin.com/uyiruxemuy.cpp if you dont have any custom tags in there, if you do just add them to this.
I tried both of replacing the lines only and replacing the entire Descriptors.cs, neither worked, same error.

I think it's something with Utils.cs and Utils.FromString since LifetimeMS had it before.

Edit: EquipmentSets has the same problem:

Exception not controlled: System.FormatException: Input string was not in a 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 SetTypeSkin.<>c.<.ctor>b__32_5(XElement i) en G:\ezpserver\Cake's Domain\db\data\Descriptors.cs:líne 868
in System.Linq.Enumerable.WhereSelectEnumerableIterat or`2.MoveNext()
in System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
in SetTypeSkin..ctor(XElement elem, UInt16 type) en G:\ezpserver\Cake's Domain\db\data\Descriptors.cs:líne 868
in db.data.XmlData.AddSetTypes(XElement root) en G:\ezpserver\Cake's Domain\db\data\XmlDatas.cs:líne 146
in db.data.XmlData.ProcessXml(XElement root) en G:\ezpserver\Cake's Domain\db\data\XmlDatas.cs:líne 266
in db.data.XmlData..ctor(String path) en G:\ezpserver\Cake's Domain\db\data\XmlDatas.cs:líne 87
in server.Program.Main(String[] args) en G:\ezpserver\Cake's Domain\server\Program.cs:líne 52

Some errors are different, but has the same error as dat1 with Utils.FromString on Utils.cs line 109

I've added every new skin to dat1 (both Skin Item to unlock it and the Skin itself as an Object, also every new ST item into dat1 along with the coding into EquipmentSets.xml).

This is the code on Descriptors.cs line 868:

Color = elem.Elements("ActivateOnEquipAll").Where(i => i.Attribute("color") != null).Select(i => (uint)Utils.FromString(i.Attribute("color").Value) ).FirstOrDefault();

Edit 2: Also i want to clear this up, do i need to add items/skins/ground ONLY to dat1, EquipmentSets and dat0 while the sheets and XMLs are in the AS3? Will it work that way?
Quote Originally Posted by CaIamity View Post

Exception not controlled: System.FormatException: Input string was not in a 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 SetTypeSkin.<>c.<.ctor>b__32_5(XElement i) en G:\ezpserver\Cake's Domain\db\data\Descriptors.cs:líne 868
in System.Linq.Enumerable.WhereSelectEnumerableIterat or`2.MoveNext()
in System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
in SetTypeSkin..ctor(XElement elem, UInt16 type) en G:\ezpserver\Cake's Domain\db\data\Descriptors.cs:líne 868
in db.data.XmlData.AddSetTypes(XElement root) en G:\ezpserver\Cake's Domain\db\data\XmlDatas.cs:líne 146
in db.data.XmlData.ProcessXml(XElement root) en G:\ezpserver\Cake's Domain\db\data\XmlDatas.cs:líne 266
in db.data.XmlData..ctor(String path) en G:\ezpserver\Cake's Domain\db\data\XmlDatas.cs:líne 87
in server.Program.Main(String[] args) en G:\ezpserver\Cake's Domain\server\Program.cs:líne 52
For this error you need to go to EquipmentSets.xmls, and find the bee set. In that XML there should be something called "ffffff" replace that with "0xffffff"
Quote Originally Posted by MikeRaarupBirk View Post
For this error you need to go to EquipmentSets.xmls, and find the bee set. In that XML there should be something called "ffffff" replace that with "0xffffff"
I don't know how you knew that from the error but it worked out!

I still have problem with dat1.xml, not sure if the server will work if i skip it (i just press Enter, it goes to EquipmentSets and just waits for port 8888, same for wServer), i also modified some items like the ST Helmet that had weird text only unique to it, not sure about items like Vial of Darkness (Void Portal spawner post-Colossus), Marble Seal and the Hivemaster Helm, through they present <Activate> coding present inside Descriptors.cs, so not entirely sure.
Quote Originally Posted by CaIamity View Post
I don't know how you knew that from the error but it worked out!

I still have problem with dat1.xml, not sure if the server will work if i skip it (i just press Enter, it goes to EquipmentSets and just waits for port 8888, same for wServer), i also modified some items like the ST Helmet that had weird text only unique to it, not sure about items like Vial of Darkness (Void Portal spawner post-Colossus), Marble Seal and the Hivemaster Helm, through they present <Activate> coding present inside Descriptors.cs, so not entirely sure.
Could you post the error here?
Quote Originally Posted by MikeRaarupBirk View Post
Could you post the error here?
System.FormatException: Input string was not in a 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.WhereSelectEnumerableIterat or`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

It's the same error, i have every new XML and Items (including skins), through i have another dat1 that only has the new equipment, it's the same error again, not sure what causes it.
Quote Originally Posted by CaIamity View Post
System.FormatException: Input string was not in a 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.WhereSelectEnumerableIterat or`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

It's the same error, i have every new XML and Items (including skins), through i have another dat1 that only has the new equipment, it's the same error again, not sure what causes it.
try this:

Find "Guill" XML and remove his projectiles, do the same with the object called "Head" (displayID Willem's Head)
Quote Originally Posted by MikeRaarupBirk View Post
try this:

Find "Guill" XML and remove his projectiles, do the same with the object called "Head" (displayID Willem's Head)
I have neither in dat1, now that i remember Guill's odd projectiles, i wonder if it's because Earth Smash, through even removing the entire Oryx Horde XML gives the same error, so i'll discard that.

BTW Do i need to add the XMLs through AS3 have them? I do believe so because server loads the XMLs (i can load the items but they won't have textures, can't spawn objects on the map like portals and enemies) while the AS3 client loads the textures and the behaviours, through i may wrong.
Bumping...
Bumping again.
Are there other entities that has projectiles similar to Earth Smash and Guill's "projectiles"?

I don't know if the Puppet Master (from Encore) is an exception since it first spawns the entity then that entity shoots "itself" then despawns, while others like Earth Smash gets shooted as a projectile and spawns an entity.

Also AS3 gets stuck on black screen, i only added the XMLs and sheetsand followed the tutorial, when i rebuild the project using Intellij i get 200+ warnings with _local_3, _local_4 and _local_2.

I'm sure i did something wrong and made this unnecessarily hard.
Quote Originally Posted by CaIamity View Post
Are there other entities that has projectiles similar to Earth Smash and Guill's "projectiles"?

I don't know if the Puppet Master (from Encore) is an exception since it first spawns the entity then that entity shoots "itself" then despawns, while others like Earth Smash gets shooted as a projectile and spawns an entity.

Also AS3 gets stuck on black screen, i only added the XMLs and sheetsand followed the tutorial, when i rebuild the project using Intellij i get 200+ warnings with _local_3, _local_4 and _local_2.

I'm sure i did something wrong and made this unnecessarily hard.
reason why the client gets stuck on blackscreen is when you add all the xmls there could be some xml that refer to a spritesheet you didnt/forgot to add. Also you gotta make sure the skins sheets match the size of their masks, if they dont the client will blackscreen.
Posts 1–15 of 15 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us