View Single Post
  #630    
Old December 20th, 2014 (9:08 AM). Edited December 21st, 2014 by Spherical Ice.
Spherical Ice's Avatar
Spherical Ice Spherical Ice is offline
  • Crystal Tier
 
Join Date: Nov 2007
Location: Bristol, UK
Age: 19
Posts: 5,227
Quote:
Originally Posted by Chaos Rush View Post
Here are some offsets for the Pokedex HUD:
0x451F55 = X position of text list
0x451F56 = Y position of text list
0x451F5D = X position of Habitat picture
0x451F5E = Y position of Habitat picture
0x451F65 = X position of "Seen:__ Owned:__" box
0x451F66 = Y position of "Seen:__ Owned:__" box
0x451F61 = BG Palette number that habitat picture uses
0x4520C8 = # of list entries on main pokedex page (National Pokedex enabled only)

Mess around with the bytes at those offsets, allowing you to do stuff like this:
Expanding on from this, I've found out some more about this area of the ROM (again, for FireRed):

00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00451F50
00451F60

00 00 00 00 01 01 02 14 10 00 08 00 01 15 0B 08
06
01 48 01 01 15 02 09 09 00 78 01 FB 5E 41 08

The above controls the size and positioning of various aspects of the Pokédex page, regardless of whether the National Pokédex has been activated or not.

00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00451F60
00451F70
00451F80
00451F90
00451FA0
00451FB0
00451FC0
00451FD0
00451FE0
00451FF0
00452000
00452010

06 01 48 01 01 15 02 09 09 00 7B 01 FB 5E 41 08
FD FF FF FF
95 5E 41 08 09 00 00 00 E0 5D 41 08
FD FF FF FF
F7 5D 41 08 00 00 00 00 09 5E 41 08
01 00 00 00
18 5E 41 08 02 00 00 00 2D 5E 41 08
03 00 00 00
39 5E 41 08 04 00 00 00 46 5E 41 08
05 00 00 00
57 5E 41 08 06 00 00 00 6D 5E 41 08
07 00 00 00
7B 5E 41 08 08 00 00 00 88 5E 41 08
FD FF FF FF
A4 5E 41 08 0A 00 00 00 D5 5E 41 08
0B 00 00 00
DF 5E 41 08 0C 00 00 00 ED 5E 41 08
0D 00 00 00
B0 5E 41 08 FD FF FF FF C7 5E 41 08
FE FF FF FF
6C 1F 45 08 C1 2E 10 08 49 2F 10 08
13 00 09 00 00 00 0C 04 12 30 01 02 FB 5E 41 08

The above controls the Pokédex prior to the National Pokédex being activated.

00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00452010
00452020
00452030
00452040
00452050
00452060
00452070
00452080
00452090
004520A0
004520B0
004520C0
004520D0

13 00 09 00 00 00 0C 04 12 30 01 02 FB 5E 41 08
FD FF FF FF
95 5E 41 08 09 00 00 00 24 5F 41 08
0E 00 00 00
E0 5D 41 08 FD FF FF FF F7 5D 41 08
00 00 00 00
09 5E 41 08 01 00 00 00 18 5E 41 08
02 00 00 00
2D 5E 41 08 03 00 00 00 39 5E 41 08
04 00 00 00
46 5E 41 08 05 00 00 00 57 5E 41 08
06 00 00 00
6D 5E 41 08 07 00 00 00 7B 5E 41 08
08 00 00 00
88 5E 41 08 FD FF FF FF A4 5E 41 08
0A 00 00 00
D5 5E 41 08 0B 00 00 00 DF 5E 41 08
0C 00 00 00
ED 5E 41 08 0D 00 00 00 B0 5E 41 08
FD FF FF FF
C7 5E 41 08 FE FF FF FF 1C 20 45 08
C1 2E 10 08 49 2F 10 08 14 00 09 00 00 00 0C 04
12 30 01 02 02 C8 13 03 C8 8D 00 00 0A 00 D0 07

The above controls the Pokédex after the National Pokédex is activated using special 0x16F.

Hover over all of the colored bytes to find out what they do. Co-ordinates are colored in red, while dimensions are in blue. List items are grouped together by yellow highlighting. Pointers are colored magenta, while the list item "functions" are colored in "royal blue". Unformatted bytes are currently unknown.

Note that Pokémon past 151 do not get loaded with the National Pokédex list "function" (0E 00 00 00) until the special is activated, and it otherwise functions like the Kanto Pokédex list "function" (09 00 00 00).

It's also worth noting that all of the headers (e.g. 'POKéMON LIST') are just regular strings. To recreate the orange text and dark-orange background in XSE, use this (and replace NAME with whatever you want, obviously):

Code:
#org @string1
= [darknavyblue_fr]\c\h03ÓNAME
__________________

A Pokemon that is discriminated!
Support squirtle and make it everyone's favourite.
Reply With Quote