Primary analysis is complete. Whatever which is down below is pretty much what the games output.
Each WR8 is 0x68 in length. PKHeX now has block importer and exporter, so keep in mind a record is 0x68 in length within the block. The block immediately begins with WR8s...
(WR8s are confined within the *Object KMysteryGift block)
Do note, the empty cells below represents values that are presently 0x00 on the records, so utility is unknown/not discovered yet.
WR8 Hex | Pokémon Gift | Clothes Gift | Items Gift | BPs / Money Gift |
---|---|---|---|---|
0x00 |
Timestamp (Might be easier to just Bitconverter.ToUInt64), since the next 3 bytes appear empty. Year: >> 26 & 0xFFF Month: >>22 & 0xF Day: >> 17 & 0x1F Hour: >> 12 & 0x1F Min: >> 6 & 0x3F Sec: & 0x3F |
|||
0x01 | ||||
0x02 | ||||
0x03 | ||||
0x04 | ||||
0x05 | ||||
0x06 | ||||
0x07 | ||||
0x08 | WC ID (0x08 WC) | |||
0x09 | WC ID (0x09 WC) | |||
0x0A | Card Description (0x15 WC) | |||
0x0B | ||||
0x0C |
Gift Type (Item Gift, Pokémon Gift etc) (0x11 WC) 0x01 - Pokémon, 0x02 - Item, 0x03 - BPs, 0x04 - Clothes, 0x05 - Money |
|||
0x0D |
Amount of line items (if type items/clothes) [max 6] |
|||
0x0E | 0x01 (unknown) | |||
0x0F | Ranked Series Season + 1 (if applicable) | |||
0x10 | Held Item (uint16) | |||
0x11 | Held Item (uint16) | |||
0x12 | Egg Flag | |||
0x13 | ||||
0x14 | ||||
0x15 | ||||
0x16 | ||||
0x17 | ||||
0x18 | ||||
0x19 | ||||
0x1A | ||||
0x1B | ||||
0x1C | ||||
0x1D | ||||
0x1E | ||||
0x1F | ||||
0x20 | ||||
0x21 | ||||
0x22 | ||||
0x23 | ||||
0x24 | ||||
0x25 | ||||
0x26 | ||||
0x27 | ||||
0x28 | ||||
0x29 | ||||
0x2A | ||||
0x2B | ||||
0x2C | ||||
0x2D | ||||
0x2E | ||||
0x2F | ||||
0x30 | Species ID (0x240 WC) |
Copy from Wonder Card 0x20 to 0x4F if Male, 0x50 to 0x7F if Female (Basically copy 3 rows) |
Item 1 (0x20 WC) | Amount (0x20 WC) |
0x31 | Species ID (0x241 WC) | Item 1 (0x21 WC) | ||
0x32 | Form ID (unit16) | Amount (0x22 WC) | ||
0x33 | Form ID (unit16) | Amount (0x23 WC) | ||
0x34 |
OT Gender (0 if Male, 1 if Female) |
Item 2 (0x24 WC) | ||
0x35 | NIL | Item 2 (0x25 WC) | ||
0x36 | NIL | Amount (0x26 WC) | ||
0x37 | NIL | Amount (0x27 WC) | ||
0x38 | Move 1 (0x230 WC) |
Item 3 (You see the pattern now...) |
||
0x39 | Move 1 (0x231 WC) | Item 3 | ||
0x3A | Amount | |||
0x3B | Amount | |||
0x3C | Move 2 (0x232 WC) | Item 4 | ||
0x3D | Move 2 (0x233 WC) | Item 4 | ||
0x3E | Amount | |||
0x3F | Amount | |||
0x40 | Move 3 (0x234 WC) | Item 5 | ||
0x41 | Move 3 (0x235 WC) | Item 5 | ||
0x42 | Amount | |||
0x43 | Amount | |||
0x44 | Move 4 (0x236 WC) | Item 6 | ||
0x45 | Move 4 (0x237 WC) | Item 6 | ||
0x46 | Amount | |||
0x47 | Amount | |||
0x48 |
OT1 (0x12C WC onwards; if Blank on WC, use recipient's OT) |
|||
0x49 | OT1 | |||
0x4A | OT2 | |||
0x4B | OT2 | |||
0x4C | OT3 | |||
0x4D | OT3 | |||
0x4E | OT4 | |||
0x4F | OT4 | |||
0x50 | OT5 | |||
0x51 | OT5 | |||
0x52 | OT6 | |||
0x53 | OT6 | |||
0x54 | OT7 | |||
0x55 | OT7 | |||
0x56 | OT8 | |||
0x57 | OT8 | |||
0x58 | OT9 | |||
0x59 | OT9 | |||
0x5A | OT10 | |||
0x5B | OT10 | |||
0x5C | OT11 | |||
0x5D | OT11 | |||
0x5E | OT12 | |||
0x5F | OT12 | |||
0x60 | OT13? | |||
0x61 | OT13? | |||
0x62 | Language Received | |||
0x63 | Ribbons (0x25C WC) | |||
0x64 | Pokegender (0x243 WC) | |||
0x65 | ||||
0x66 | ||||
0x67 |
more do be discovered..
For the record, these are the gift descriptions, as per found in the text dump:
In any case, I've developed a tool to read wr8 and bin files. Check it out.
- 2
Recommended Comments
There are no comments to display.