GameFreak Gen 6 Data: Difference between revisions

From ProjectPokemon Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 24: Line 24:
| 1
| 1
| Main heap
| Main heap
|}
== Pokemon Accessor  ==
{| border="1" style="border: 1px solid #999; border-collapse: collapse;"
|- style="background: #ccc;" align="center"
! Offset
! Type
! Description
|- style="background: #eee;" align="center"
| 0x0
| u32
| vtable pointer
|- style="background: #eee;" align="center"
| 0x4
| u32
| is pkm in party
|- style="background: #eee;" align="center"
| 0x8
| u32
| pointer to pkm data
|- style="background: #eee;" align="center"
| 0xC
| bool
| is pkm data encrypted
|- style="background: #eee;" align="center"
| 0xD
| bool
| encrypt pkm data (?)
|}
|}


Line 33: Line 62:
! Type
! Type
! Description
! Description
|- style="background: #eee;" align="center"
| 0x0
| u32
| Encryption constant
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
| 0x8
| 0x8
Line 41: Line 74:
| u32
| u32
| tid/sid
| tid/sid
|- style="background: #eee;" align="center"
| 0x18
| u16
| National dex ID
|- style="background: #eee;" align="center"
| 0x1A
| u8
| Form
|- style="background: #eee;" align="center"
| 0x1E
| u16
| Gender
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
| 0x20
| 0x20
Line 47: Line 92:
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
| 0x22
| 0x22
| u8
| Ability number
|- style="background: #eee;" align="center"
| 0x23
| u8
| Pid count to generate to increase shiny chance
|- style="background: #eee;" align="center"
| 0x24
| u16
| HP IV
|- style="background: #eee;" align="center"
| 0x26
| u16
| ATK IV
|- style="background: #eee;" align="center"
| 0x28
| u16
| DEF IV
|- style="background: #eee;" align="center"
| 0x2A
| u16
| SPA IV
|- style="background: #eee;" align="center"
| 0x2C
| u16
| u16
| Ability number
| SPD IV
|- style="background: #eee;" align="center"
| 0x2E
| u16
| SPE IV
|- style="background: #eee;" align="center"
| 0x30
| u32
| Friendship
|- style="background: #eee;" align="center"
| 0x6C
| u8
| Language idx
|- style="background: #eee;" align="center"
| 0x6D
| u8
| Country ID
|- style="background: #eee;" align="center"
| 0x6E
| u8
| Trainer mem text
|- style="background: #eee;" align="center"
| 0x6F
| u8
| 3DS Region
|}
|}



Revision as of 19:32, 17 February 2016

HeapData

Offset Description
0x0 Heap pointer
0x4 Bitflags for heap


Heap Bitflags

Offset Description
0 In use
1 Main heap


Pokemon Accessor

Offset Type Description
0x0 u32 vtable pointer
0x4 u32 is pkm in party
0x8 u32 pointer to pkm data
0xC bool is pkm data encrypted
0xD bool encrypt pkm data (?)


Pokemon Temp Data

Offset Type Description
0x0 u32 Encryption constant
0x8 u64 pid and 0
0x10 u32 tid/sid
0x18 u16 National dex ID
0x1A u8 Form
0x1E u16 Gender
0x20 u16 Nature
0x22 u8 Ability number
0x23 u8 Pid count to generate to increase shiny chance
0x24 u16 HP IV
0x26 u16 ATK IV
0x28 u16 DEF IV
0x2A u16 SPA IV
0x2C u16 SPD IV
0x2E u16 SPE IV
0x30 u32 Friendship
0x6C u8 Language idx
0x6D u8 Country ID
0x6E u8 Trainer mem text
0x6F u8 3DS Region


gfl::fs::ver4::ArcFileAccessor Data

Offset Description
0x0 vtable
0x4 Ptr to GARC memory block
0x8 Ptr to FATO data in block
0xC Ptr to FATB data in block
0x10 Ptr to FIMB data in block