kwsch / pkNX

Pokémon (Nintendo Switch) ROM Editor & Randomizer
https://projectpokemon.org/home/forums/topic/48647-pknx-nintendo-switch-rom-editor-randomizer/
GNU General Public License v3.0
338 stars 106 forks source link

Wild Editor settings not opening for Pokemon Shield #346

Open sailm4ker opened 9 months ago

sailm4ker commented 9 months ago

Hey, so when I open the Wild Editor settings in Main Dump, it gives me an unhandled exception. I've made sure my dumps are up to date. Errors also happen when I open other things in the same menu. The error info for the wild settings is below.

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

** Exception Text ** System.ArgumentOutOfRangeException: Must be less than the number of sub-tables (Parameter 'numWeatherTables') Actual value was 9. at pkNX.Structures.FlatBuffers.SWSH.EncounterTable8Util.AllWeatherTablesIdentical(IList1 subtables, Int32 numWeatherTables) in D:\a\1\s\pkNX.Structures.FlatBuffers.SWSH\Gen8\Wild\EncounterTableUtil.cs:line 277 at pkNX.Structures.FlatBuffers.SWSH.EncounterTable8Util.GetLines(EncounterArchive t, IReadOnlyDictionary2 zone_names, String[] subtable_names, String[] species)+MoveNext() in D:\a\1\s\pkNX.Structures.FlatBuffers.SWSH\Gen8\Wild\EncounterTableUtil.cs:line 263 at System.IO.File.InternalWriteAllLines(TextWriter writer, IEnumerable`1 contents) at pkNX.WinForms.GameDumperSWSH.DumpWilds() in D:\a\1\s\pkNX.WinForms\Dumping\GameDumperSWSH.cs:line 372 at pkNX.WinForms.DumperSWSH.B_Wild_Click(Object sender, EventArgs e) in D:\a\1\s\pkNX.WinForms\Dumping\DumperSWSH.cs:line 35 at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

** Loaded Assemblies ** System.Private.CoreLib Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Private.CoreLib.dll

pkNX Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Users/Jordan/Documents/Modding/NX/pkNX/net7.0-windows/pkNX.dll

PresentationFramework Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42506 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.11/PresentationFramework.dll

WindowsBase Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42506 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.11/WindowsBase.dll

System.Runtime Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Runtime.dll

System.Xaml Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42506 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.11/System.Xaml.dll

System.Threading.Thread Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Threading.Thread.dll

System.Windows.Forms Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42502 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.11/System.Windows.Forms.dll

System.Windows.Forms.Primitives Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42502 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.11/System.Windows.Forms.Primitives.dll

System.IO.Packaging Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.11/System.IO.Packaging.dll

System.Private.Uri Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Private.Uri.dll

PresentationCore Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42506 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.11/PresentationCore.dll

DirectWriteForwarder Assembly Version: 7.0.0.0 Win32 Version: 7,0,1123,42506 @Commit: 6432861c5a360348a9e1a6cc76cced7bd25ab3f9 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.11/DirectWriteForwarder.dll

System.Runtime.Extensions Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Runtime.Extensions.dll

System.Runtime.InteropServices Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Runtime.InteropServices.dll

System.Diagnostics.Debug Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Diagnostics.Debug.dll

System.Runtime.CompilerServices.VisualC Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Runtime.CompilerServices.VisualC.dll

System.Threading Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Threading.dll

Microsoft.Win32.Primitives Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/Microsoft.Win32.Primitives.dll

System.Collections.NonGeneric Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Collections.NonGeneric.dll

Microsoft.Win32.Registry Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/Microsoft.Win32.Registry.dll

System.Collections Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Collections.dll

System.Collections.Specialized Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Collections.Specialized.dll

System.Memory Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Memory.dll

System.ComponentModel.Primitives Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.ComponentModel.Primitives.dll

System.Configuration.ConfigurationManager Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.11/System.Configuration.ConfigurationManager.dll

System.Xml.ReaderWriter Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Xml.ReaderWriter.dll

System.Private.Xml Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Private.Xml.dll

System.Net.WebClient Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Net.WebClient.dll

System.ComponentModel.EventBasedAsync Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.ComponentModel.EventBasedAsync.dll

System.Text.Encoding.Extensions Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Text.Encoding.Extensions.dll

System.Linq Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Linq.dll

System.Drawing.Common Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.11/System.Drawing.Common.dll

System.Diagnostics.TraceSource Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Diagnostics.TraceSource.dll

System.Drawing.Primitives Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Drawing.Primitives.dll

System.Threading.ThreadPool Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Threading.ThreadPool.dll

System.ComponentModel.TypeConverter Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.ComponentModel.TypeConverter.dll

System.Windows.Extensions Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.11/System.Windows.Extensions.dll

System.ComponentModel Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.ComponentModel.dll

System.Collections.Concurrent Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Collections.Concurrent.dll

System.ObjectModel Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.ObjectModel.dll

System.Net.Requests Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Net.Requests.dll

System.Net.Primitives Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Net.Primitives.dll

System.Net.WebHeaderCollection Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Net.WebHeaderCollection.dll

FontAwesome.Sharp Assembly Version: 6.3.0.0 Win32 Version: 6.3.0.0 CodeBase: file:///C:/Users/Jordan/Documents/Modding/NX/pkNX/net7.0-windows/FontAwesome.Sharp.dll

UIAutomationTypes Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42506 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.11/UIAutomationTypes.dll

System.Diagnostics.Process Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Diagnostics.Process.dll

PresentationFramework.Aero2 Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42506 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.11/PresentationFramework.Aero2.dll

PKHeX.Drawing.PokeSprite Assembly Version: 23.2.27.0 Win32 Version: 23.2.27.0 CodeBase: file:///C:/Users/Jordan/Documents/Modding/NX/pkNX/net7.0-windows/PKHeX.Drawing.PokeSprite.dll

pkNX.Structures Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Users/Jordan/Documents/Modding/NX/pkNX/net7.0-windows/pkNX.Structures.dll

System.Text.Json Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Text.Json.dll

System.Text.Encodings.Web Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Text.Encodings.Web.dll

System.Reflection.Emit.Lightweight Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Reflection.Emit.Lightweight.dll

System.Reflection.Primitives Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Reflection.Primitives.dll

System.Reflection.Emit.ILGeneration Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Reflection.Emit.ILGeneration.dll

System.Runtime.Intrinsics Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Runtime.Intrinsics.dll

System.Numerics.Vectors Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Numerics.Vectors.dll

PresentationFramework-SystemXml Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42506 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.11/PresentationFramework-SystemXml.dll

UIAutomationProvider Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42506 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.11/UIAutomationProvider.dll

pkNX.Game Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Users/Jordan/Documents/Modding/NX/pkNX/net7.0-windows/pkNX.Game.dll

pkNX.Containers Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Users/Jordan/Documents/Modding/NX/pkNX/net7.0-windows/pkNX.Containers.dll

FlatSharp.Runtime Assembly Version: 7.2.3.0 Win32 Version: 7.2.3 CodeBase: file:///C:/Users/Jordan/Documents/Modding/NX/pkNX/net7.0-windows/FlatSharp.Runtime.dll

Microsoft.Win32.SystemEvents Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.11/Microsoft.Win32.SystemEvents.dll

System.Xml.XmlSerializer Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Xml.XmlSerializer.dll

System.Runtime.Loader Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Runtime.Loader.dll

pkNX.Randomization Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Users/Jordan/Documents/Modding/NX/pkNX/net7.0-windows/pkNX.Randomization.dll

System.Reflection.Emit Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Reflection.Emit.dll

Microsoft.GeneratedCode Assembly Version: 1.0.0.0 Win32 Version: n/a CodeBase:

System.Text.RegularExpressions Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Text.RegularExpressions.dll

System.Diagnostics.Tracing Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Diagnostics.Tracing.dll

System.Console Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Console.dll

Accessibility Assembly Version: 4.0.0.0 Win32 Version: 7.0.1123.42502 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.11/Accessibility.dll

pkNX.Structures.FlatBuffers.SWSH Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Users/Jordan/Documents/Modding/NX/pkNX/net7.0-windows/pkNX.Structures.FlatBuffers.SWSH.dll

pkNX.Structures.FlatBuffers Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Users/Jordan/Documents/Modding/NX/pkNX/net7.0-windows/pkNX.Structures.FlatBuffers.dll

K4os.Compression.LZ4 Assembly Version: 1.3.5.0 Win32 Version: 1.3.5 CodeBase: file:///C:/Users/Jordan/Documents/Modding/NX/pkNX/net7.0-windows/K4os.Compression.LZ4.dll

System.Runtime.CompilerServices.Unsafe Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Runtime.CompilerServices.Unsafe.dll

System.Diagnostics.StackTrace Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Diagnostics.StackTrace.dll

System.Reflection.Metadata Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Reflection.Metadata.dll

System.Collections.Immutable Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Collections.Immutable.dll

System.IO.MemoryMappedFiles Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.IO.MemoryMappedFiles.dll

System.Diagnostics.FileVersionInfo Assembly Version: 7.0.0.0 Win32 Version: 7.0.1123.42427 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.11/System.Diagnostics.FileVersionInfo.dll

** JIT Debugging **