Jump to content

Recommended Posts

Posted

I've been using PKHeX to edit my Pokemon Battle Revolution save, and I noticed that while you can edit and export Pokemon from the storage boxes, there doesn't seem to be a tab or an option for editing or exporting Pokemon in the party box (unless the option is there and I just haven't noticed it!).

I just wanted to ask, might editing party Pokemon on PBR be supported in the future?

  • Like 1
  • 2 months later...
Posted

This has been bothering me too. I've been needing party editing support for a rescue project(long story that I won't get into but in short the pokemon on the Battle revolution save are now the only copies of the pokemon in existance now). If it helps I've been doing my own independant research into reading and editing the party. I've been mostly successful  in my endeavor. If you know anything about using a hex editor you can find the party pokemon shortly after the nickname of the save slot. They're arranged slightly differently than box pokemon though but can easily be reformatted to fit in a box slot. With the exception of the first party pokemon all the party pokemon have 40 bytes at the begining of their data that are repeated making them redundant. Additionally all party pokemon, including the first member have an extra 28 bytes at the end of their data. I'm not sure yet what it is but It doesn't seem necessary as box pokemon do not have this data. after removing the 1st 40 bytes and the last 28 bytes change the 4th byte from C0 to 40. the resulting data can be pasted into a box slot and read with pkhex. I'm sure the reverse can be done to add pokemon to the party slots. the first pokemon in the party in save slot 1 starts at 0x44C and the first pokemon in the 3rd save slot(the one I've been working out of) starts at 0xE024C. the first party pokemon is 180 bytes long and the other 5 are 220 bytes long.

Here's an example:

A pokemon in the party looks like this (in the second slot in this case)

3C F8 AA 6E C0 00 4A 18 00 9E 00 00 87 E5 4C 68 00 00 00 00 8C 43 00 02 00 28 02 01 01 00 00 00 00 00 00 00 00 00 00 00 01 2E 01 45 01 52 01 4D 01 49 01 50 FF FF 00 00 3C F8 AA 6E C0 00 4A 18 00 9E 00 00 87 E5 4C 68 00 00 00 00 8C 43 00 02 00 28 02 01 01 00 00 00 00 00 00 00 00 00 00 00 01 2E 01 45 01 52 01 4D 01 49 01 50 FF FF 00 00 0A 04 0F 0A 04 11 0B BA 0B BA 00 04 00 00 00 04 01 45 01 57 01 48 01 4A 01 45 01 57 01 48 01 4A 01 45 01 57 FF FF 00 08 00 00 00 00 00 00 00 00 01 51 01 4C 00 F6 01 91 0F 14 05 0A 00 00 00 00 2D EF 17 C9 00 00 00 00 00 00 00 00 00 00 00 83 00 00 00 00 01 00 00 0C 00 0C 00 06 00 06 00 06 00 06 00 06 00 00 00 00 00 00 00 00

While an exact copy of the pokemon looks like this inside the box.

3C F8 AA 6E 40 00 4A 18 00 9E 00 00 87 E5 4C 68 00 00 00 00 8C 43 00 02 00 28 02 01 01 00 00 00 00 00 00 00 00 00 00 00 01 2E 01 45 01 52 01 4D 01 49 01 50 FF FF 00 00 0A 04 0F 0A 04 11 0B BA 0B BA 00 04 00 00 00 04 01 45 01 57 01 48 01 4A 01 45 01 57 01 48 01 4A 01 45 01 57 FF FF 00 08 00 00 00 00 00 00 00 00 01 51 01 4C 00 F6 01 91 0F 14 05 0A 00 00 00 00 2D EF 17 C9 00 00 00 00 00 00 00 00 00 00 00 83

This data on the bottom is actually a valid bk4 file when pasted into a hex editor and saved as a bk4.

 

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