Jump to content

Recommended Posts

Posted

I've been playing around with the PKHeX.Core.dll trying to get an idea off the ground but ran into an issue when trying to load up a gen 9 save. I have used the SaveUtil.GetVariantSAV() function to great success with every generation except for gen 9. When attempting with Pokemon Scarlet it just returns null. I tried pulling and debugging from GitHub but as far as I can see the flow is the same for gen 9 and any other gen. Any insight would be greatly appreciated. I've attached some screenshots from LINQPad showing the difference in output from gen 8 to gen 9.

Screenshot 2023-10-05 225023.png

Screenshot 2023-10-05 225058.png

Posted

Double check: does your Gen9 save file open in the latest PKHeX release, and that your PKHeX.Core you're referencing is the latest release as well?

Could be that the file size is unrecognized.

You can directly call the constructor if you wish by passing the `byte[]` via 

new SAV9SV(data);

 

Posted

Ah, just checked and I was using 23.8.24 instead of the latest 23.9.25. Updated to the latest version and it works now! Probably should have thought of that myself, but nevertheless I really appreciate the help!

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...