Jump to content

Recommended Posts

Posted

I want to kinda look into the mystery gift block in Scarlet and Violet and figure it would be best to get some examples from other users to try to figure out which data is based on the event, game version, redeem time, etc. So if anyone can provide their *Object KMysteryGift (Key: 99E1625E) from their save it would be useful

It would be best if you have the recent events data (examples below) so and also a screenshot of the mystery gift history times (example below) so I can have an idea of what the data should be.

image.thumb.png.7dd067a6a902fc755ebffb5448d4160c.png

image.thumb.jpeg.f890f4c0cb03ccef872780db082ec92d.jpeg

 

Posted

Rough notes from what I determined thus far

Each entry in the mystery gift at x278 bytes.
The steps to generate from an event Pokemon wc9 appear to be
1. Copy wc9 to hex editor
2. Replace first 4 empty bytes with time32_t | first 8 bytes in the gift entry are 4 byte time32_t and 4 empty bytes
3. Next 4 bytes match wc9 bytes
4. Remove the next 0xC bytes and replace them with the bytes "06 00 01 00" | this operation should be truncating size
5. Remove last 0x48 bytes


The total block seems to hold 32 entries and when you have exceeded that then the last entry will be erased
The last 0x340 bytes of the block appear to remain constant between blocks so don't need to interact with that

Haven't verified the steps to generate entries from items or clothing wc9 files yet

 

Here is an example of converting recent Porygon event from wc9 to mystery gift entry

1020 SV - 홍주영 Porygon2.wc9 -> porygon 2 mock mystery gift data

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