Pokemon Center | 口袋中心 以口袋妖怪为主题并带有其他动漫游戏的讨论

 找回密码
 加入口袋中心
搜索
查看: 2435|回复: 1

【纯搬运/英文资料】3DS Gen 6 精灵数据构成

[复制链接]

2万

回帖

13万

现金

351

勋章券

管理员

起源の钻角犀兽

Rank: 27Rank: 27Rank: 27

积分
51874

Missingno论坛十周年纪念物挥金如土勋章Lv3水中王者勋章Lv3时光印记Lv.3Omega红宝石发售确认纪念章Alpha蓝宝石发售确认纪念章

发表于 2015-9-12 21:37:11 | 显示全部楼层 |阅读模式
原地址:http://projectpokemon.org/wiki/Pokemon_X/Y_3DS_Structure

Pokémon in the games Pokémon X and Y are stored in a new 232 byte structure (for the box data only). Party Pokémon hold 28 bytes of additional data for overworld and battle values. We recommend using the pk6 extension for decrypted 232-byte box data and 260-byte party data structures.

Contents



Checksum / Block Shuffling / Encryption

There have been some changes compared to the Generation 4 and Generation 5 structures. First, the LCRNG to decrypt the structure's blocks is now seeded with the Encryption Key at the beginning of the pk6 file. Second, the blocks are now 56 bytes instead of the previous 32. However, the way the blocks are shuffled based on the PID did not change. That said, the shuffling algorithm now uses the Encryption Key at the beginning of the pk6 instead of the PID.



Unencrypted Bytes (0x0-0x7)
OffsetContents
0x00-0x03Encryption Key
0x04-0x05Sanity Placeholder
0x06-0x07Checksum


Encrypted Bytes

Block A (0x8-0x3F)
OffsetContents
0x08-0x09National Pokédex ID
0x0A-0x0BHeld Item
0x0C-0x0DOT ID
0x0E-0x0FOT Secret ID
0x10-0x13Experience Points
0x14Ability
0x15Ability Number
0x16-0x17[Hits Remaining] on [Training Bag]
0x18-0x1BPersonality value (Also known as the PID)
0x1CNature
0x1DBit 0 - Fateful Encounter Flag
Bit 1 - Female
Bit 2 - Genderless
Bit 3-7 - Alternate Forms
0x1EHP Effort Value
0x1FAttack Effort Value
0x20Defense Effort Value
0x21Speed Effort Value
0x22SP Attack Effort Value
0x23SP Defense Effort Value
0x24Contest Stat: Cool
0x25Contest Stat: Beauty
0x26Contest Stat: Cute
0x27Contest Stat: Smart
0x28Contest Stat: Tough
0x29Contest Stat: Sheen
0x2AMarkings
0x2BPokérus
0x2C-0x2F(Secret) Super Training
Gold Medal Flags
0x30-0x35Ribbons
0x36-0x37Unused
0x38Contest Memory Ribbon [Count]
0x39Battle Memory Ribbon [Count]
0x3ADistribution Super Training Flags
0x3B-0x3FUnused

Block B (0x40-0x77)
OffsetContents
0x40-0x57Nickname
0x58-0x59Null Terminator
0x5A-0x5BMove 1 ID
0x5C-0x5DMove 2 ID
0x5E-0x5FMove 3 ID
0x60-0x61Move 4 ID
0x62Move 1 Current PP
0x63Move 2 Current PP
0x64Move 3 Current PP
0x65Move 4 Current PP
0x66-0x69Move PP Ups
0x6A-0x6BRelearn Move 1 ID
0x6C-0x6DRelearn Move 2 ID
0x6E-0x6FRelearn Move 3 ID
0x70-0x71Relearn Move 4 ID
0x72"Secret" Super Training Flag
0 - Missions Unavailable
1 - Missions Available
0x73Unused
0x74-0x77Bits 0-29 - Individual Values
HP ( [0-31] << 0 )
Attack ( [0-31] << 5 )
Defense ( [0-31] << 10 )
Speed ( [0-31] << 15 )
SP Attack ( [0-31] << 20 )
SP Defense ( [0-31] << 25 )
Bit 30 - IsEgg Flag
Bit 31 - IsNicknamed Flag

Block C (0x78-0xAF)
OffsetContents
0x78-0x8FLatest NotOT Handler
Updates Every Trade
0x90-0x91Null Terminator
0x92NotOT Gender
0 - Male
1 - Female
0x93Current Handler
0 - OT
1 - NotOT
0x94-0x95Geolocation 1 - (Region,Country)
0x96-0x97Geolocation 2 - (Region,Country)
0x98-0x99Geolocation 3 - (Region,Country)
0x9A-0x9BGeolocation 4 - (Region,Country)
0x9C-0x9DGeolocation 5 - (Region,Country)
0x9E-0x9FUnused
0xA0-0xA1Unused
0xA2NotOT Friendship
0xA3NotOT Affection
0xA4NotOT Memory Intensity
0xA5NotOT Memory Line
0xA6NotOT Memory Feeling
0xA7Unused
0xA8-0xA9NotOT Memory TextVar
0xAA-0xABUnused
0xAC-0xADUnused
0xAEFullness
0xAFEnjoyment

Block D (0xB0-0xE7)
OffsetContents
0xB0-0xC7OT Name
0xC8-0xC9Null Terminator
0xCAOT Friendship
0xCBOT Affection
0xCCOT Memory Intensity
0xCDOT Memory Line
0xCE-0xCFOT Memory TextVar
0xD0OT Memory Feeling
0xD1-0xD3Date Egg Received
0xD4-0xD6Date Met
0xD7Unknown / Unused
0xD8-0xD9Egg Location
0xDA-0xDBMet At Location
0xDCPokéball
0xDDBit 0-6 - Encounter Level
Bit 7 - Female OT Gender
0xDEEncounter Type (Gen 4)
0xDFOT Game ID
0xE0Country ID
0xE1Region ID
0xE23DS Region ID
0xE3OT Language ID
0xE4-0xE7Unused


Battle Stats

The battle stats are encrypted in the exact same manner as the main pk6 data. The seed is still the Encryption Key.


Encrypted Bytes
OffsetContents
0xE8Bits 0-2 - Asleep (0-7 rounds)
Bit 3 - Poisoned
Bit 4 - Burned
Bit 5 - Frozen
Bit 6 - Paralyzed
Bit 7 - Toxic
0xE9Unknown - Flags
0xEA-0xEBUnknown / Unused
0xECLevel
0xEDUnknown / Unused
0xEE-0xEFUnknown / Unused
0xF0-0xF1Current HP
0xF2-0xF3Max HP
0xF4-0xF5Attack
0xF6-0xF7Defense
0xF8-0xF9Speed
0xFA-0xFBSpecial Attack
0xFC-0xFDSpecial Defense
0xFE-0xFFUnknown / Unused
0x100-0x103Unknown / Unused


Original Language
ValueLanguage
0x1日本語 (Japan)
0x2English (US/UK/AU)
0x3Francais (France/Québec)
0x4Italiano (Italy)
0x5Deutsch (Germany)
0x7Espanol (Spain/Latin Americas)
0x8韓国語 (South Korea)


Markings
BitMarking
0x01Circle
0x02Triangle
0x04Square
0x08Heart
0x10Star
0x20Diamond


Encounter Types

Encounter Types are not used in X/Y. Transferred Pokemon keep their Encounter Type hex.


ValueCountry
0x0Pal Park, Egg, Hatched, Special Event
0x2Tall Grass
0x4Dialga/Palkia In-Game Event
0x5Cave, Hall of Origin
0x7Surfing, Fishing
0x9Building
0xAGreat Marsh (Safari Zone)
0xCStarter, Fossil, Gift (Eevee)


Medals & Ribbons

Super Training Medals
Flag Value0x2C0x2D0x2E0x2F
0x01UnusedSp. Atk Level 2Atk Level 3Follow Those Fleeing Goals!
0x02UnusedHP Level 2Sp. Def Level 3Watch Out! That's One Tricky Second Half!
0x04Sp. Atk Level 1Atk Level 2Speed Level 3An Opening of Lighting-Quick Attacks!
0x08HP Level 1Sp. Def Level 2Def Level 3Those Long Shots Are No Long Shot!
0x10Atk Level 1Speed Level 2The Troubles Keep on Coming?!Scatterbug Lugs Back!
0x20Sp. Def Level 1Def Level 2The Leaf Stone Cup Begins!A Barrage of Bitbots!
0x40Speed Level 1Sp. Atk Level 3The Fire Stone Cup Begins!Drag Down Hydreigon!
0x80Def Level 1HP Level 3The Water Stone Cup Begins!The Battle for the Best: Version X/Y!

Ribbon Set 1
Flag Value0x300x31
0x01Kalos Champ RibbonAlert Ribbon
0x02Champion RibbonShock Ribbon
0x04Sinnoh Champ RibbonDowncast Ribbon
0x08Best Friends RibbonCareless Ribbon
0x10Training RibbonRelax Ribbon
0x20Skillful Battler RibbonSnooze Ribbon
0x40Expert Battler RibbonSmile Ribbon
0x80Effort RibbonGorgeous Ribbon

Ribbon Set 2
Flag Value0x320x33
0x01Royal RibbonEarth Ribbon
0x02Gorgeous Royal RibbonWorld Ribbon
0x04Artist RibbonClassic Ribbon
0x08Footprint RibbonPremier Ribbon
0x10Record RibbonEvent Ribbon
0x20Legend RibbonBirthday Ribbon
0x40Country RibbonSpecial Ribbon
0x80National RibbonSouvenir Ribbon

Ribbon Set 3
Flag Value0x34
0x01Wishing Ribbon
0x02Battle Champion Ribbon
0x04Regional Champion Ribbon
0x08National Champion Ribbon
0x10World Champion Ribbon
0x20None
0x40None
0x80Hoenn Champion Ribbon

Ribbon Set 4
Flag Value0x35
0x01Contest Star Ribbon
0x02Coolness Master Ribbon
0x04Beauty Master Ribbon
0x08Cuteness Master Ribbon
0x10Cleverness Master Ribbon
0x20Toughness Master Ribbon


Pokémon Data

The 6th generation games use a different system to handle pokemon data in-game. Previously, a pokémon's data (the equivalent of a pkm file) was passed directly into functions that would act upon it to pull out information that would be used by the game engine. Gen 6 uses a higher-level class called pml::pokepara::Accessor that stores multiple pieces of information that describe a pokémon. This class's object size is 14 bytes.



Accessor class
OffsetTypeDescription
0x0u32vtable pointer
0x4u32Is pokemon in party (set to 1 if so)
0x8Poke*Pointer to this pokémon's data
0xCboolIs pokemon data encrypted
0xDboolEncrypt pokémon data
啊咧咧,又挖坑不填哎╮(╯▽╰)╭

告别真新镇后不知经过多久,擦伤,砍伤,朋友的数目,让我有点自豪,那时候因为流行而跑去买的,这双轻便的运动鞋,现在成了,找遍全世界也找不到的,最棒的破鞋子……
口袋中心·绿宝石·改(更新1.6.4版)
【口袋中心出品】魂银·壹式改点壹(全493)    【科普向】魂银中少有人注意到的洛奇亚传说故事
宝可梦卡牌 / 限定精灵图示    好吧,这是官方微博-_-    好吧,这是我的微博-_-
我的B站号    美术作品之我的宝可梦人设画    个人制作的FC魂斗罗2代hack版
回复

使用道具 举报

139

回帖

171

现金

2

勋章券

繁华都市的喧闹

Rank: 5Rank: 5Rank: 5

积分
280
发表于 2015-10-6 09:36:29 来自手机 | 显示全部楼层
表示看着好蛋疼
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 加入口袋中心

本版积分规则

手机版|Archiver|Pokemon Center

GMT+8, 2024-11-21 23:55 , Processed in 0.203970 second(s), 40 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表