anon73

Attempted to load an unsupported file type/size

14 posts in this topic

I have used the save manager to create a save file on the SD card, but when I try to move the save file in to Pkhex, this error appears. I'm on latest version and this happened when I did a backup of all my saves and this one for some reason is the only one that's refusing to load. Did I generated a corrupted save and lost all my progress?

This is the message that appears when I try to load it on PKHeX.

"Attempted to load an unsupported file type/size.
File loaded:
D:\JKSV\Saves\Pokemon_Moon\moon\main
File Size:
441855 bytes (0x6BDFF)

Any tips? I apologize if this isn't the right place for this. The save is attached below, and is (obviously) from Pokémon Moon. I'd really love some help, there's quite a few hours spent in this save.

main

Share this post


Link to post
Share on other sites
9 minutes ago, anon73 said:

I have used the save manager to create a save file on the SD card, but when I try to move the save file in to Pkhex, this error appears. I'm on latest version and this happened when I did a backup of all my saves and this one for some reason is the only one that's refusing to load. Did I generated a corrupted save and lost all my progress?

This is the message that appears when I try to load it on PKHeX.

"Attempted to load an unsupported file type/size.
File loaded:
D:\JKSV\Saves\Pokemon_Moon\moon\main
File Size:
441855 bytes (0x6BDFF)

Any tips? I apologize if this isn't the right place for this. The save is attached below, and is (obviously) from Pokémon Moon. I'd really love some help, there's quite a few hours spent in this save.

main

your save file is corrupted.
It's one byte too small, and placing it in front or back cause the save to partially appear in pkhex.
main(2)

main(2).bak

Try opening both, you'll understand what I mean

 

my advice,
revert to a save from an earlier point,
and drag over all the Pokemon from the 2 saves I linked you.

Share this post


Link to post
Share on other sites

Oh man...

I don't have any previous save to revert, unfortunately. I also noticed there's quite a few missing Pokémon in this save, so I guess the only thing I can do is start from scratch. I might as well just give up playing it, at least for a while.

Anyway, thanks for the help.

Share this post


Link to post
Share on other sites
2 minutes ago, anon73 said:

Oh man...

I don't have any previous save to revert, unfortunately. I also noticed there's quite a few missing Pokémon in this save, so I guess the only thing I can do is start from scratch. I might as well just give up playing it, at least for a while.

Anyway, thanks for the help.

an alternative would be to create a fresh save,
then we identify which part of the saves contain your box and party data, and hex edit shift the data over.

Share this post


Link to post
Share on other sites

Give me a moment, I'm gonna try and see if I'm able to do some patch work to your save.
 

Sadly, I don't have the Gen 7 save structure, so I'm just going to try to do what I can, using ORAS as a template.

BTW are you not able to redump a working save?

edit:
I'm using PKHeX documentation to transfer details on your save.

Share this post


Link to post
Share on other sites

@anon73 I managed to salvage your save.

My theory to how it happened is that during the process of dumping, one less byte was written,
so as a result your save appears corrupted (and too small) to PKHeX.

In order to save your save, I placed a "zero" at where it most likely got shifted,
and that place is your box 2 slot 13.
So whatever Pokemon was there, it's now gone.

However, at least you got your entire save back.
main(2)1

Remember to rename to "main" when injecting.
Also back up multiple saves, before doing any injection.

Your SD may be dying, you might want to get a new one.

Share this post


Link to post
Share on other sites

Oh man, I can't thank you enough.
I didn't test it yet, but I'll report results as soon as I do. Is it safe to go online with that save? Do you think I'd be better off starting from scratch and dragging/dropping all my mons to a new save?

I already got a new SD, all that save corruption most likely happened when I switched cards. Anyway, thanks again!

Share this post


Link to post
Share on other sites

Invalid save file (length) is usually caused by an FTP app not transferring the data to the PC completely. Were you using an ftp app to transfer?

1 person likes this

Share this post


Link to post
Share on other sites

I tested it directly in game, without even going to PKHeX first. It loaded flawlessly, apparently I have all my save back!

And thankfully, the box 2 is a box reserved for breedjects, so I guess nothing valuable was lost. Anyway, thanks again!

Share this post


Link to post
Share on other sites
Just now, Kaphotics said:

Invalid save file (length) is usually caused by an FTP app not transferring the data to the PC completely. Were you using an ftp app to transfer?

Yep, FileZilla. I've been using it for ages and never had a problem with this before, though.

Share this post


Link to post
Share on other sites
Just now, anon73 said:

Yep, FileZilla. I've been using it for ages and never had a problem with this before, though.

Yeah it's a known issue. If it ever happens again just initiate the transfer again; the file is fine on the SD card -- it just needs to be transferred completely.

 

I recall seeing a setting for filezilla regarding binary transfer mode instead of ascii; may be worth looking into.

1 person likes this

Share this post


Link to post
Share on other sites

Thank you, I'll be looking into this. It's good to have my save game back again, though.

What feels weird is that I had backed up all my titles on JKSV and Pokémon Moon was the only title with a corrupted save. 

Share this post


Link to post
Share on other sites

Hi!

I can confirm that this is a FileZilla issue and yes, changing the transfer type to binary corrects this. 

-FS

1 person likes this

Share this post


Link to post
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