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.
"I assume that you caught full sight of that atrocity swarming around the castle. That...is the Calamity Ganon."
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.
"I assume that you caught full sight of that atrocity swarming around the castle. That...is the Calamity Ganon."
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:
and change it to:Code:public int LifetimeMS { get; private set; }
now find this line:Code:public float LifetimeMS { get; private set; }
and change it to:Code:LifetimeMS = Utils.FromString(elem.Element("LifetimeMS").Value);
Reason for this is because Deca started to use insane numbers like "327.34723" as LifetimeMS on Projectiles.Code:LifetimeMS = float.Parse(elem.Element("LifetimeMS").Value, NumberStyles.Any, ci);
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.
Last edited by MikeRaarupBirk; 08-21-2017 at 12:32 AM.
CaIamity (08-31-2017)
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?
Last edited by CaIamity; 08-21-2017 at 11:32 AM.
"I assume that you caught full sight of that atrocity swarming around the castle. That...is the Calamity Ganon."
Bumping...
"I assume that you caught full sight of that atrocity swarming around the castle. That...is the Calamity Ganon."
CaIamity (08-22-2017)
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.
"I assume that you caught full sight of that atrocity swarming around the castle. That...is the Calamity Ganon."
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.
"I assume that you caught full sight of that atrocity swarming around the castle. That...is the Calamity Ganon."
CaIamity (08-31-2017)
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.
"I assume that you caught full sight of that atrocity swarming around the castle. That...is the Calamity Ganon."
Bumping again.
"I assume that you caught full sight of that atrocity swarming around the castle. That...is the Calamity Ganon."
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.
Last edited by CaIamity; 08-27-2017 at 10:30 PM.
"I assume that you caught full sight of that atrocity swarming around the castle. That...is the Calamity Ganon."