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:
ID | Text Dump | Gift Type | Example |
0 | [VAR 0101(0000)] Gift | Pokémon | Meowth Gift |
1 | Pokémon Egg Gift | Pokémon | Pokémon Egg Gift |
2 | Pokémon Gift | Pokémon | Pokémon Gift |
3 | [VAR 0109(0008)] Gift | Item | Dive Balls Gift |
4 | Item Set Gift | Item | Item Set Gift |
5 | Item Gift | Item | Item Gift |
6 | Dynamax Crystal Gift | Item | Dynamax Crystal Gift |
7 | Curry Ingredient Gift | Item | Curry Ingredient Gift |
8 | [VAR 0104(0001)] [VAR 0101(0000)] Gift | Pokémon | Scratch Cat Pokémon Meowth Gift |
9 | Legendary Pokémon [VAR 0101(0000)] Gift | Pokémon | Legendary Pokémon Necrozma Gift |
10 | Mythical Pokémon [VAR 0101(0000)] Gift | Pokémon | Mythical Pokémon Mew Gift |
11 | [VAR 0100(0003)]’s [VAR 0101(0000)] Gift | Pokémon | PPorg's Mew Gift |
12 | Shiny [VAR 0101(0000)] Gift | Pokémon | Shiny Mew Gift |
13 | [VAR 0101(0000)] ([VAR 01D4(0002)]) Gift | Pokémon | Necrozma (Dawn Wings) Gift |
14 | [VAR 01D4(0002)] Gift | Pokémon | Necrozma (Dawn Wings) Gift |
15 | Hidden Ability [VAR 0101(0000)] Gift | Pokémon | Hidden Ability Meowth Gift |
16 | [VAR 0101(0000)] with [VAR 0107(0004)] Gift | Pokémon | Meowth with Fake Out Gift |
17 | [VAR 0101(0000)] with [VAR 0107(0005)] Gift | Pokémon | Meowth with Growl Gift |
18 | [VAR 0101(0000)] with [VAR 0107(0006)] Gift | Pokémon | Meowth with Slash Gift |
19 | [VAR 0101(0000)] with [VAR 0107(0007)] Gift | Pokémon | Meowth with Pay Day Gift |
20 | [VAR 0101(0000)] and [VAR 0109(0009)] Gift | Pokémon | Meowth with Ultra Ball Gift |
21 | Gigantamax [VAR 0101(0000)] Gift | Pokémon | Gigantamax Meowth Gift |
22 | [VAR 01D1(000B)] Gift | Pokémon |
Meowth the Pokémon fan Gift (based on the ribbon) |
23 | Downloadable Version Purchase Bonus | Depends | Downloadable Version Purchase Bonus |
24 | Special Pack Purchase Bonus | Depends | Special Pack Purchase Bonus |
25 | Store Purchase Bonus | Depends | Store Purchase Bonus |
26 | Strategy Guide Purchase Bonus | Depends | Strategy Guide Purchase Bonus |
27 | Purchase Bonus | Depends | Purchase Bonus |
28 | Happy Birthday! | Depends | Happy Birthday! |
29 | Virtual Console Purchase Bonus | Depends | Virtual Console Purchase Bonus |
30 | Pokémon Trainer Club Gift | Depends | Pokémon Trainer Club Gift |
31 | Pokémon Global Link Gift | Depends | Pokémon Global Link Gift |
32 | Pokémon Bank Gift | Depends | Pokémon Bank Gift |
33 | Pokémon HOME | Depends | Pokémon HOME |
34 | Pocket Money Gift | Depends | Pocket Money Gift |
35 | [VAR 0206(000C,002C)] Cash Back | Money | 100 Cash Back |
36 | Clothing Gift | Clothes | Clothing Gift |
37 | Ranked Battle Reward | Depends | Ranked Battle Reward |
38 | Online Competition Participation Gift | Depends | Online Competition Participation Gift |
39 | BP Gift | BP | BP Gift |
40 | Official Competition Item Gift | Item | Official Competition Item Gift |
41 | Official Competition BP Gift | BP | Official Competition BP Gift |
42 | Official Competition Pokémon Gift | Pokémon | Official Competition Pokémon Gift |
43 | Official Competition Egg Gift | Pokémon | Official Competition Egg Gift |
44 | Official Competition Clothing Gift | Clothes | Official Competition Clothing Gift |
45 | Singles Season [VAR 0201(000A)] Item Gift | Item | Singles Season 01 Item Gift |
46 | Singles Season [VAR 0201(000A)] BP Gift | BP | Singles Season 01 BP Gift |
47 | Singles Season [VAR 0201(000A)] Pokémon Gift | Pokémon | Singles Season 01 Pokémon Gift |
48 | Singles Season [VAR 0201(000A)] Egg Gift | Pokémon | Singles Season 01 Egg Gift |
49 | Singles Season [VAR 0201(000A)] Clothing Gift | Clothes | Singles Season 01 Clothing Gift |
50 | Doubles Season [VAR 0201(000A)] Item Gift | Item | Doubles Season 01 Item Gift |
51 | Doubles Season [VAR 0201(000A)] BP Gift | BP | Doubles Season 01 BP Gift |
52 | Doubles Season [VAR 0201(000A)] Pokémon Gift | Pokémon | Doubles Season 01 Pokémon Gift |
53 | Doubles Season [VAR 0201(000A)] Egg Gift | Pokémon | Doubles Season 01 Egg Gift |
54 | Doubles Season [VAR 0201(000A)] Clothing Gift | Clothes | Doubles Season 01 Clothing Gift |
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.