Jump to content

Crystal VC save size conversion


SeanB1014

Recommended Posts

Hello, I noticed that PKHeX doesn't export non-32.02kb saves into 32.02kb ones (My case being 32.05kb from an emulator). Is it reasonable that I request for PKHeX to output Crystal (and if the same occurs, Gold/Silver) saves to 32.02kb size?

To summarize, the VC saves (32.02kb) work with emulators and the Pokemon Stadium games, but after being overwritten in them or exported through PKHeX, they become 32.05kb saves and do not work, which is to be expected.

Link to comment
Share on other sites

I didn't test it, but I think it would be good if PKHex would also work with 32.05kB and 32.0kB saves, if it doesn't already.

Btw. I wondered, how can you dump a 32.02kB save from a real Game Boy cartridge? It's always 32.0kB for me.

Link to comment
Share on other sites

PKHeX does not modify the footer of save files. Emulators and virtual console titles do not save the RTC data the same way, and even emulators are inconsistent between themselves.

public const int SIZE_G2RAW_U = 0x8000;
public const int SIZE_G2VC_U = 0x8010;
public const int SIZE_G2BAT_U = 0x802C;
public const int SIZE_G2EMU_U = 0x8030;
public const int SIZE_G2RAW_J = 0x10000;
public const int SIZE_G2VC_J = 0x10010;
public const int SIZE_G2BAT_J = 0x1002C;
public const int SIZE_G2EMU_J = 0x10030;

There's no need for PKHeX to support save file conversion; conversion would be best suited as a separate tool.

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