Jump to content

Pokemon Platinum Underground Treasure Bag Corruption


Gar

Recommended Posts

I'm encountering an issue where my game crashes when trying to access the Treasures bag while in the Underground. When loading the save file into PKHeX and navigating to the Underground button, I get the error message below. Any help in understanding or resolving this would be appreciated.

Exception Details:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at PKHeX.WinForms.SAV_Underground.ReadUGData()
   at PKHeX.WinForms.Controls.SAVEditor.B_OpenUGSEditor_Click(Object sender, EventArgs e)
   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.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)
Link to comment
Share on other sites

Added handling in the latest commit to ignore out of bounds values (and clamp back stats to their maximums if out of range).

https://github.com/kwsch/PKHeX/commit/b4aeb1ac7c989d410ec581cfb107861b8ffcb0ba

Not sure if that'll fix your issues; if you used a cheat code that corrupted parts of your save data, dunno what exactly it corrupted.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...