Gar Posted January 9 Share Posted January 9 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 More sharing options...
Kaphotics Posted January 10 Share Posted January 10 Are you using the latest release of PKHeX? If so, I can only assume you have a corrupt treasure bag to begin with, and PKHeX is failing to load out-of-bounds values from it. Link to comment Share on other sites More sharing options...
Kaphotics Posted January 10 Share Posted January 10 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. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now