Shawminator / DayZeEditor

Dayz Economy and Various mod config manager
34 stars 5 forks source link

Uhandled Exception upon ewxecuting #11

Open Sinphaltimus opened 1 month ago

Sinphaltimus commented 1 month ago

There is a hard coded c:\users\Shawminator-pc path causing an unhandled exception upon executing latest version.

clicking continue seems to allow the program to load and work. May need to run on a different PC to replciate the issue.

{PC\source\repos\DayZeEditor\DaZeLib\Economy\economycoreconfig.cs:line 923 at DayZeEditor.Project.setplayerspawns() in C:\Users\Shawminator-PC\source\repos\DayZeEditor\DaZeLib\Helper\Project.cs:line 410}

Here are the details:

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

** Exception Text ** System.InvalidOperationException: There is an error in XML document (22, 8). ---> System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderplayerspawnpoints_old.Read4_playerspawnpointsGroupPos(Boolean isNullable, Boolean checkType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderplayerspawnpoints_old.Read5_playerspawnpointsFresh_old(Boolean isNullable, Boolean checkType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderplayerspawnpoints_old.Read8_playerspawnpoints_old(Boolean isNullable, Boolean checkType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderplayerspawnpoints_old.Read9_playerspawnpoints() --- End of inner exception stack trace --- at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream) at DayZeLib.cfgplayerspawnpoints..ctor(String filename) in C:\Users\Shawminator-PC\source\repos\DayZeEditor\DaZeLib\Economy\economycoreconfig.cs:line 923 at DayZeEditor.Project.setplayerspawns() in C:\Users\Shawminator-PC\source\repos\DayZeEditor\DaZeLib\Helper\Project.cs:line 410 at DayZeEditor.MainForm.MainForm_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at DayZeEditor.MainForm.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

** Loaded Assemblies ** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.8.9256.0 built by: NET481REL1LAST_B CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

DayZeEditor Assembly Version: 0.8.1.4 Win32 Version: 0.8.1.4 CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/DayZServer/DayZeEditor/DayZeEditor.exe

System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.8.9251.0 built by: NET481REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System Assembly Version: 4.0.0.0 Win32 Version: 4.8.9251.0 built by: NET481REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.8.9032.0 built by: NET481REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

DarkUI Assembly Version: 2.0.1.0 Win32 Version: 2.0.1.0 CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/DayZServer/DayZeEditor/lib/DarkUI.DLL

System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.8.9032.0 built by: NET481REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.8.9241.0 built by: NET481REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.8.9032.0 built by: NET481REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

Accessibility Assembly Version: 4.0.0.0 Win32 Version: 4.8.9032.0 built by: NET481REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

DayZeLib Assembly Version: 0.6.2.0 Win32 Version: 0.6.2.0 CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/DayZServer/DayZeEditor/lib/DayZeLib.DLL

System.Text.Json Assembly Version: 8.0.0.3 Win32 Version: 8.0.324.11423 CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/DayZServer/DayZeEditor/lib/System.Text.Json.DLL

System.Threading.Tasks.Extensions Assembly Version: 4.2.0.1 Win32 Version: 4.6.28619.01 CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/DayZServer/DayZeEditor/lib/System.Threading.Tasks.Extensions.DLL

System.Memory Assembly Version: 4.0.1.2 Win32 Version: 4.6.31308.01 CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/DayZServer/DayZeEditor/lib/System.Memory.DLL

System.Runtime.CompilerServices.Unsafe Assembly Version: 6.0.0.0 Win32 Version: 6.0.21.52210 CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/DayZServer/DayZeEditor/lib/System.Runtime.CompilerServices.Unsafe.DLL

System.Text.Encodings.Web Assembly Version: 8.0.0.0 Win32 Version: 8.0.23.53103 CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/DayZServer/DayZeEditor/lib/System.Text.Encodings.Web.DLL

System.Buffers Assembly Version: 4.0.3.0 Win32 Version: 4.6.28619.01 CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/DayZServer/DayZeEditor/lib/System.Buffers.DLL

Microsoft.Bcl.AsyncInterfaces Assembly Version: 8.0.0.0 Win32 Version: 8.0.23.53103 CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/DayZServer/DayZeEditor/lib/Microsoft.Bcl.AsyncInterfaces.DLL

System.ValueTuple Assembly Version: 4.0.0.0 Win32 Version: 4.8.9032.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ValueTuple/v4.0_4.0.0.0__cc7b13ffcd2ddd51/System.ValueTuple.dll

System.Numerics.Vectors Assembly Version: 4.1.4.0 Win32 Version: 4.6.26515.06 CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/DayZServer/DayZeEditor/lib/System.Numerics.Vectors.DLL

Microsoft.GeneratedCode Assembly Version: 1.0.0.0 Win32 Version: 4.8.9032.0 built by: NET481REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

Microsoft.GeneratedCode Assembly Version: 1.0.0.0 Win32 Version: 4.8.9032.0 built by: NET481REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

Microsoft.GeneratedCode Assembly Version: 1.0.0.0 Win32 Version: 4.8.9032.0 built by: NET481REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

Microsoft.GeneratedCode Assembly Version: 1.0.0.0 Win32 Version: 4.8.9032.0 built by: NET481REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Xml.Linq Assembly Version: 4.0.0.0 Win32 Version: 4.8.9032.0 built by: NET481REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll

Microsoft.GeneratedCode Assembly Version: 1.0.0.0 Win32 Version: 4.8.9032.0 built by: NET481REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

Microsoft.GeneratedCode Assembly Version: 1.0.0.0 Win32 Version: 4.8.9032.0 built by: NET481REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

** JIT Debugging ** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.

For example:

When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.

Sinphaltimus commented 1 month ago

I was mistaken, Clicking continue produces the error again. No Project data loading. Tool unusable for economy editing.

Sinphaltimus commented 1 month ago

Console locks up on "Old PlayerSpawnPoint file found converting to new........"

Shawminator commented 1 month ago

There is an error in XML document (22, 8). ---> System.FormatException: Input string was not in a correct format.

this is your error in the file try around line 22 looks like you might have a number where it should be string only

if you wantt o share your player spawn file then i can have a look

Shawminator commented 1 month ago

If u have discord feel free to join and I can help there as well https://discord.gg/5EHE49Kjsv