Skip to content

Instantly share code, notes, and snippets.

@Bl4ckSh4rk
Created October 19, 2017 13:11
Show Gist options
  • Save Bl4ckSh4rk/33c773356bbe071b72f3dca51f2a5221 to your computer and use it in GitHub Desktop.
Save Bl4ckSh4rk/33c773356bbe071b72f3dca51f2a5221 to your computer and use it in GitHub Desktop.
Save structure of secret bases in Ruby, Sapphire and Emerald
RSE - Secret Bases
Offsets
Ruby/Sapphire
Section 2
0xA88 - 0xF7F Bases 1 - 7 + first 152 Bytes of Base 8
Section 3
0x000 - 0x787 Last 8 Bytes of Base 8 + Bases 9 - 20
0x7A0 - 0x835 Decoration Storage
Emerald
Section 2
0xB1C - 0xF7F Bases 1 - 7 + first 4 Bytes of Base 8
Section 3
0x000 - 0x81B Last 156 Bytes of Base 8 + Base 9 - 20
0x834 - 0x8C9 Decoration Storage
Secret Base (160 Bytes)
0x00 Location
0x01 Gender and Status (see below)
0x02 - 0x08 Trainer Name
0x09 - 0x0A TID (last number of TID determines the Trainer Class, see below)
0x0B - 0x0C SID
0x0D - 0x0F Unknown/Unused
0x11 Visit Counter (stops at 0xFF)
0x12 - 0x21 Decorations (you don't even have to have them in your storage)
0x22 - 0x31 Decoration positions (starting with 00 in the upper left corner to FF in the bottom right corner)
0x32 - 0x33 Unknown/Unused
0x34 - 0x4B Pokemon PIDs
0x4C - 0x7B Pokemon Moves
0x7C - 0x87 Pokemon Species
0x88 - 0x93 Held Items
0x94 - 0x99 Pokemon Levels
0x9A - 0x9F Unknown/Unused
Gender and Status
Bit 4 0 - Male, 1 - Female
Bit 5 0 - wants to battle, 1 - already battled this day
Bit 6 1 - registered into Registry
Trainer Classes
0 Rich Boy/Lady
1 Youngster/Lass
2 Bug Catcher/Schoolkid
3 Camper/Picnicker
4 Ace Trainer
5 Rich Boy/Lady
6 Youngster/Lass
7 Bug Catcher/Schoolkid
8 Camper/Picnicker
9 Ace Trainer
Decoration Storage (150 Bytes)
0x00 - 0x09 Desks (10)
0x0A - 0x13 Chairs (10)
0x14 - 0x1D Plants (10)
0x1E - 0x3B Ornaments (30)
0x3C - 0x59 Mats (30)
0x5A - 0x63 Posters (10)
0x64 - 0x8B Dolls (40)
0x8C - 0x95 Cushions (10)
Decoration Indexes
0x01 Small Desk
0x02 Pokemon Desk
0x03 Heavy Desk
0x04 Ragged Desk
0x05 Comfort Desk
0x06 Pretty Desk
0x07 Brick Desk
0x08 Camp Desk
0x09 Hard Desk
0x0A Small Chair
0x0B Pokemon Chair
0x0C Heavy Chair
0x0D Pretty Char
0x0E Comfort Chair
0x0F Ragged Chair
0x10 Brick Chair
0x11 Camp Chair
0x12 Hard Chair
0x13 Red Plant
0x14 Tropical Plant
0x15 Pretty Flowers
0x16 Colorful Plant
0x17 Big Plant
0x18 Gorgeous Plant
0x19 Red Brick
0x1A Yellow Brick
0x1B Blue Brick
0x1C Red Balloon
0x1D Blue Balloon
0x1E Yellow Balloon
0x1F Red Tent
0x20 Blue Tent
0x21 Solid Board
0x22 Slide
0x23 Fence Length
0x24 Fence Width
0x25 Tire
0x26 Stand
0x27 Mud Ball
0x28 Breakable Door
0x29 Sand Ornament
0x2A Silver Shield
0x2B Gold Shield
0x2C Glass Ornament
0x2D TV
0x2E Round TV
0x2F Cute TV
0x30 Glitter Mat
0x31 Jump Mat
0x32 Spin Mat
0x33 C Low Note Mat
0x34 D Note Mat
0x35 E Note Mat
0x36 F Note Mat
0x37 G Note Mat
0x38 A Note Mat
0x39 B Note Mat
0x3A C High Note Mat
0x3B Surf Mat
0x3C Thunder Mat
0x3D Fire Blast Mat
0x3E Powder Snow Mat
0x3F Attract Mat
0x40 Fissure Mat
0x41 Spikes Mat
0x42 Ball Poster
0x43 Green Poster
0x44 Red Poster
0x45 Blue Poster
0x46 Cute Poster
0x47 Pika Poster
0x48 Long Poster
0x49 Sea Poster
0x4A Sky Poster
0x4B Kiss Poster
0x4C Pichu Doll
0x4D Pikachu Doll
0x4E Marill Doll
0x4F Togepi Doll
0x50 Cyndaquill Doll
0x51 Chikorita Doll
0x52 Totodile Doll
0x53 Jugglypuff Doll
0x54 Meowth Doll
0x55 Clefairy Doll
0x56 Ditto Doll
0x57 Smoochum Doll
0x58 Treecko Doll
0x59 Torchic Doll
0x5A Mudkip Doll
0x5B Duskull Doll
0x5C Wynaut Doll
0x5D Baltoy Doll
0x5E Kecleon Doll
0x5F Azurill Doll
0x60 Skitty Doll
0x61 Swablu Doll
0x62 Gulpin Doll
0x63 Lotad Doll
0x64 Seedot Doll
0x65 Pika Cushion
0x66 Round Cushion
0x67 Kiss Cushion
0x68 Zigzag Cushion
0x69 Spin Cushion
0x6A Diamond Cushion
0x6B Ball Cushion
0x6C Grass Cushion
0x6D Fire Cushion
0x6E Water Cushion
0x6F Snorlax Doll
0x70 Rhydon Doll
0x71 Lapras Doll
0x72 Venusaur Doll
0x73 Charizard Doll
0x74 Blastoise Doll
0x75 Wailmer Doll
0x76 Regirock Doll
0x77 Regice Doll
0x78 Registeel Doll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment