Describe the bug
Creating a build on the rebirth DB with speed of sound as the lvl 49 power (which grants "jaunt") breaks the save file by setting the lastPower to 31, not 30.
To Reproduce
Steps to reproduce the behavior:
Create a build, probably needs to have powers up to level 50. Add speed of sound last.
Expected behavior
Both files are loadable.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: win11
- Mids version 3.7.14 rev3
- DB version 2023.7.445 (rebirth)
Additional context
Full stack:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Mids_Reborn.Core.Base.Data_Classes.Character.GetFirstAvailablePowerIndex(Int32 iLevel)
at Mids_Reborn.Forms.frmMain.PowerModified(Boolean markModified, Boolean redraw)
at Mids_Reborn.Forms.frmMain.LoadCharacterFile(String fileName)
at Mids_Reborn.Forms.frmMain.OnShown(Object sender, EventArgs e)
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
************** Loaded Assemblies **************
System.Private.CoreLib
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Private.CoreLib.dll
----------------------------------------
MidsReborn
Assembly Version: 3.7.14.0
Location: C:\Users\marcm\AppData\Roaming\LoadedCamel\MidsReborn\MidsReborn.dll
----------------------------------------
System.Runtime
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Runtime.dll
----------------------------------------
System.Threading.Thread
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Threading.Thread.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.22\System.Windows.Forms.dll
----------------------------------------
System.Windows.Forms.Primitives
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.22\System.Windows.Forms.Primitives.dll
----------------------------------------
System.Runtime.InteropServices
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Runtime.InteropServices.dll
----------------------------------------
System.Threading
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Threading.dll
----------------------------------------
System.Diagnostics.TraceSource
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Diagnostics.TraceSource.dll
----------------------------------------
System.Collections
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Collections.dll
----------------------------------------
System.ComponentModel.Primitives
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.ComponentModel.Primitives.dll
----------------------------------------
System.Drawing.Primitives
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Drawing.Primitives.dll
----------------------------------------
System.Drawing.Common
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.22\System.Drawing.Common.dll
----------------------------------------
System.Linq
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Linq.dll
----------------------------------------
System.Collections.Specialized
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Collections.Specialized.dll
----------------------------------------
Microsoft.Web.WebView2.WinForms
Assembly Version: 1.0.3065.39
Location: C:\Users\marcm\AppData\Roaming\LoadedCamel\MidsReborn\Microsoft.Web.WebView2.WinForms.dll
----------------------------------------
Microsoft.Web.WebView2.Core
Assembly Version: 1.0.3065.39
Location: C:\Users\marcm\AppData\Roaming\LoadedCamel\MidsReborn\Microsoft.Web.WebView2.Core.dll
----------------------------------------
mscorlib
Assembly Version: 4.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\mscorlib.dll
----------------------------------------
Microsoft.Win32.Primitives
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\Microsoft.Win32.Primitives.dll
----------------------------------------
System.ComponentModel.EventBasedAsync
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.ComponentModel.EventBasedAsync.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.22\Accessibility.dll
----------------------------------------
System.ComponentModel.TypeConverter
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.ComponentModel.TypeConverter.dll
----------------------------------------
System.Numerics.Vectors
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Numerics.Vectors.dll
----------------------------------------
System.Memory
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Memory.dll
----------------------------------------
Microsoft.Win32.SystemEvents
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.22\Microsoft.Win32.SystemEvents.dll
----------------------------------------
System.Drawing
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.22\System.Drawing.dll
----------------------------------------
System.ComponentModel
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.ComponentModel.dll
----------------------------------------
System.Private.Uri
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Private.Uri.dll
----------------------------------------
System.Collections.NonGeneric
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Collections.NonGeneric.dll
----------------------------------------
Newtonsoft.Json
Assembly Version: 13.0.0.0
Location: C:\Users\marcm\AppData\Roaming\LoadedCamel\MidsReborn\Newtonsoft.Json.dll
----------------------------------------
System.Runtime.Serialization.Formatters
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Runtime.Serialization.Formatters.dll
----------------------------------------
System.Collections.Concurrent
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Collections.Concurrent.dll
----------------------------------------
System.Linq.Expressions
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Linq.Expressions.dll
----------------------------------------
System.Runtime.Numerics
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Runtime.Numerics.dll
----------------------------------------
System.ObjectModel
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.ObjectModel.dll
----------------------------------------
System.Runtime.Serialization.Primitives
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Runtime.Serialization.Primitives.dll
----------------------------------------
System.Data.Common
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Data.Common.dll
----------------------------------------
System.Xml.ReaderWriter
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Xml.ReaderWriter.dll
----------------------------------------
System.Private.Xml
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Private.Xml.dll
----------------------------------------
System.Reflection.Emit.ILGeneration
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Reflection.Emit.ILGeneration.dll
----------------------------------------
System.Reflection.Emit.Lightweight
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Reflection.Emit.Lightweight.dll
----------------------------------------
System.Reflection.Primitives
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Reflection.Primitives.dll
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Location:
----------------------------------------
System.Threading.Tasks
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Threading.Tasks.dll
----------------------------------------
System.Runtime.Extensions
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Runtime.Extensions.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.dll
----------------------------------------
System.Text.RegularExpressions
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Text.RegularExpressions.dll
----------------------------------------
System.Security.Cryptography
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Security.Cryptography.dll
----------------------------------------
System.Threading.ThreadPool
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Threading.ThreadPool.dll
----------------------------------------
MRBResourceLib
Assembly Version: 1.0.0.0
Location: C:\Users\marcm\AppData\Roaming\LoadedCamel\MidsReborn\MRBResourceLib.dll
----------------------------------------
MRBLogging
Assembly Version: 1.0.0.0
Location: C:\Users\marcm\AppData\Roaming\LoadedCamel\MidsReborn\MRBLogging.dll
----------------------------------------
SkiaSharp.Views.WindowsForms
Assembly Version: 3.116.0.0
Location: C:\Users\marcm\AppData\Roaming\LoadedCamel\MidsReborn\SkiaSharp.Views.WindowsForms.dll
----------------------------------------
OpenTK.GLControl
Assembly Version: 4.0.1.0
Location: C:\Users\marcm\AppData\Roaming\LoadedCamel\MidsReborn\OpenTK.GLControl.dll
----------------------------------------
SkiaSharp
Assembly Version: 3.116.0.0
Location: C:\Users\marcm\AppData\Roaming\LoadedCamel\MidsReborn\SkiaSharp.dll
----------------------------------------
FontAwesome.Sharp
Assembly Version: 6.6.0.0
Location: C:\Users\marcm\AppData\Roaming\LoadedCamel\MidsReborn\FontAwesome.Sharp.dll
----------------------------------------
SkiaSharp.Views.Desktop.Common
Assembly Version: 3.116.0.0
Location: C:\Users\marcm\AppData\Roaming\LoadedCamel\MidsReborn\SkiaSharp.Views.Desktop.Common.dll
----------------------------------------
OpenTK.Windowing.Common
Assembly Version: 4.0.0.0
Location: C:\Users\marcm\AppData\Roaming\LoadedCamel\MidsReborn\OpenTK.Windowing.Common.dll
----------------------------------------
OpenTK.Windowing.Desktop
Assembly Version: 4.0.0.0
Location: C:\Users\marcm\AppData\Roaming\LoadedCamel\MidsReborn\OpenTK.Windowing.Desktop.dll
----------------------------------------
System.Resources.Extensions
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.22\System.Resources.Extensions.dll
----------------------------------------
System.Runtime.Loader
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Runtime.Loader.dll
----------------------------------------
PresentationCore
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.22\PresentationCore.dll
----------------------------------------
WindowsBase
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.22\WindowsBase.dll
----------------------------------------
DirectWriteForwarder
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.22\DirectWriteForwarder.dll
----------------------------------------
System.Diagnostics.Debug
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Diagnostics.Debug.dll
----------------------------------------
System.Runtime.CompilerServices.VisualC
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Runtime.CompilerServices.VisualC.dll
----------------------------------------
PresentationFramework
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.22\PresentationFramework.dll
----------------------------------------
System.Xaml
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.22\System.Xaml.dll
----------------------------------------
System.IO.Packaging
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.22\System.IO.Packaging.dll
----------------------------------------
Microsoft.Win32.Registry
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\Microsoft.Win32.Registry.dll
----------------------------------------
System.Configuration.ConfigurationManager
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.22\System.Configuration.ConfigurationManager.dll
----------------------------------------
System.Net.WebClient
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Net.WebClient.dll
----------------------------------------
System.Text.Encoding.Extensions
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Text.Encoding.Extensions.dll
----------------------------------------
System.Net.Requests
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Net.Requests.dll
----------------------------------------
System.Net.Primitives
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Net.Primitives.dll
----------------------------------------
System.Net.WebHeaderCollection
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Net.WebHeaderCollection.dll
----------------------------------------
System.Runtime.InteropServices.RuntimeInformation
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Runtime.InteropServices.RuntimeInformation.dll
----------------------------------------
OpenTK.Mathematics
Assembly Version: 4.0.0.0
Location: C:\Users\marcm\AppData\Roaming\LoadedCamel\MidsReborn\OpenTK.Mathematics.dll
----------------------------------------
System.Diagnostics.Process
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Diagnostics.Process.dll
----------------------------------------
OpenTK.Windowing.GraphicsLibraryFramework
Assembly Version: 4.0.0.0
Location: C:\Users\marcm\AppData\Roaming\LoadedCamel\MidsReborn\OpenTK.Windowing.GraphicsLibraryFramework.dll
----------------------------------------
System.Diagnostics.StackTrace
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Diagnostics.StackTrace.dll
----------------------------------------
OpenTK.Core
Assembly Version: 4.0.0.0
Location: C:\Users\marcm\AppData\Roaming\LoadedCamel\MidsReborn\OpenTK.Core.dll
----------------------------------------
OpenTK.Graphics
Assembly Version: 4.0.0.0
Location: C:\Users\marcm\AppData\Roaming\LoadedCamel\MidsReborn\OpenTK.Graphics.dll
----------------------------------------
System.Diagnostics.FileVersionInfo
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Diagnostics.FileVersionInfo.dll
----------------------------------------
Serilog
Assembly Version: 4.2.0.0
Location: C:\Users\marcm\AppData\Roaming\LoadedCamel\MidsReborn\Serilog.dll
----------------------------------------
Serilog.Sinks.File
Assembly Version: 6.0.0.0
Location: C:\Users\marcm\AppData\Roaming\LoadedCamel\MidsReborn\Serilog.Sinks.File.dll
----------------------------------------
System.Threading.Tasks.Parallel
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Threading.Tasks.Parallel.dll
----------------------------------------
System.Diagnostics.Tracing
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Diagnostics.Tracing.dll
----------------------------------------
FastDeepCloner
Assembly Version: 1.0.3.6
Location: C:\Users\marcm\AppData\Roaming\LoadedCamel\MidsReborn\FastDeepCloner.dll
----------------------------------------
System.Runtime.Intrinsics
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Runtime.Intrinsics.dll
----------------------------------------
System.Text.Encoding.CodePages
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Text.Encoding.CodePages.dll
----------------------------------------
Jace
Assembly Version: 1.0.2.0
Location: C:\Users\marcm\AppData\Roaming\LoadedCamel\MidsReborn\Jace.dll
----------------------------------------
System.Globalization
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Globalization.dll
----------------------------------------
System.Reflection
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Reflection.dll
----------------------------------------
System.Reflection.Extensions
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Reflection.Extensions.dll
----------------------------------------
System.ComponentModel.Annotations
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.ComponentModel.Annotations.dll
----------------------------------------
System.Reflection.Metadata
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Reflection.Metadata.dll
----------------------------------------
System.Collections.Immutable
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.22\System.Collections.Immutable.dll
----------------------------------------
************** JIT Debugging **************
Describe the bug
Creating a build on the rebirth DB with speed of sound as the lvl 49 power (which grants "jaunt") breaks the save file by setting the lastPower to 31, not 30.
To Reproduce
Steps to reproduce the behavior:
Create a build, probably needs to have powers up to level 50. Add speed of sound last.
Expected behavior
Both files are loadable.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Full stack: