dfrood / SA2SaveUtility

A save utility for editing and converting Sonic Adventure 2 PC, Gamecube, Xbox 360 and PS3 save files.
GNU General Public License v3.0
15 stars 4 forks source link

Errors out on load and doesn't provide option to save (PC saves) #4

Open TheRealPSV opened 5 years ago

TheRealPSV commented 5 years ago

For PC saves, errors out on both main and Chao saves when loading, and Save is always disabled

Chao save: SONIC2B__ALF.zip Error:

System.ArgumentOutOfRangeException: Value of '100' is not valid for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'.
Parameter name: Value
   at System.Windows.Forms.NumericUpDown.set_Value(Decimal value)
   at SA2SaveUtility.ChaoSave.UpdateChao(TabControl tc, KeyValuePair`2 currentChao, Byte[] chao)
   at SA2SaveUtility.ChaoSave.GetChao()
   at SA2SaveUtility.Main.SaveIsChao()
   at SA2SaveUtility.Main.Tsmi_Open_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Main save: SONIC2B__S01.zip Error:

System.ArgumentOutOfRangeException: Value of '100003039' is not valid for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'.
Parameter name: Value
   at System.Windows.Forms.NumericUpDown.set_Value(Decimal value)
   at SA2SaveUtility.MainSave.UpdateSave(TabControl tc, KeyValuePair`2 currentMain, Byte[] save)
   at SA2SaveUtility.MainSave.GetMain()
   at SA2SaveUtility.Main.SaveIsMain()
   at SA2SaveUtility.Main.Tsmi_Open_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
dfrood commented 5 years ago

Hi sorry for the late reply, looks like one of your chao's Power bar value is 100 where the max is actually 99. Did you manually edit that value?

Also you have a Score of 100003039 for one of the Mission 1s where the max possible is 99999999.

TheRealPSV commented 5 years ago

Sorry for not responding sooner; I didn't realize you'd replied. I think I used a cheat mod to reach those values. Specifically it was a cheat code in the SA2 Mod Loader's Code options: http://info.sonicretro.org/SA2_Mod_Loader