PHO - Pokémon Hackers Online
Go Back   PHO - Pokémon Hackers Online > Other Generations Hacking > Other Research

Other Research For research regarding Gen III or other hacks that aren't Gen I/II.

Reply
 
Thread Tools Display Modes
Old 24th May 2014, 03:16 AM   #1
Pia Carrot
Orange Developer
Administrator
 
Pia Carrot's Avatar
 
Join Date: Aug 2010
Location: Valencia Island
Age: 21
Posts: 848
Pia Carrot Pia Carrot Pia Carrot Pia Carrot
Default Pokemon Gold: Editing Pokedex Data

I'm trying to teach myself about how this works as I could not find any documentation about it. In Pokemon Gold, Pokedex data starts at offset 1A0000. It is a pretty confusing format with very limited space to work with. I have not looked into adding new Pokedex data, although I'm sure it's very possible.

I'm going to take ONIX as an example here.
Code:
ROCK SNAKE/4###It twists and#squirms through#the ground. The/thunderous roar of#its tunneling#echoes a long way.
I'm still trying to find out what the 4### (which is FA 0A 16 12 in hex) means, but I assume it is height and weight, could be way off on that, this will require more looking into.
EDIT: It is indeed the Height and Weight, first two bytes are height, second two are weight, the game adds a decimal automatically for you.

Now, each # (4E) in the text denotes a line break, and / (50) in the text signifies a new page. I am pretty certain you can only have two pages.

Now, if you notice something, each line can have a maximum of 18 characters, just like normal text. Any more will cause text overflow, and I wouldn't risk having any less, so fill anything extra with a space(s).

That's really all there is to it, I will look more into Footprints and H/W before I update this guide. I still cannot find what makes Footprints on the dex. EDIT: According to Mateo they are uncompressed images in the rom...fun. It begins at offset F930E.

EDIT: Height and Weight data here thanks to shinyquagsire

[00:44] <shinyquagsire> Pia: It literally takes the full 16 bit number
[00:44] <shinyquagsire> and throws a decimal between the first number and the second
[00:45] <shinyquagsire> Pia: Try inserting D2 04
[00:45] <shinyquagsire> to confirm my theory
[00:45] <shinyquagsire> should be 123.4
[00:47] <shinyquagsire> insert decimal number minus decimal point
[00:47] <shinyquagsire> take hexadecimal
[00:47] <shinyquagsire> pad with 0's
[00:47] <shinyquagsire> and flip
[00:47] <shinyquagsire> so 4D2 -> 04D2 -> D2 04



To get this weight, Cranidos' weight bytes would be B6 02.
The decimal value of it originally was 694.
The hex value was 2B6, or 02 B6. Now all you do is flip them and you've got your bytes.

If you are rewriting the Pokedex, you can find the pointers for data at offset 44360.
__________________

I'm a boob
Pia Carrot is offline   Reply With Quote
Sponsored Links
Old 24th May 2014, 03:23 AM   #2
Mateo
Johto Region Champion
AdministratorPHO VIP
 
Mateo's Avatar
 
Join Date: Jul 2013
Location: Johto
Age: 28
Posts: 813
Mateo Mateo Mateo Mateo Mateo
Default

I *think* one of the documents I sent you details this format, but I can't remember. I know that folder was like 8 kinds of unorganized and my filenames don't even make sense to me at this point but I'll have a look around and see what I can turn up.
__________________
mateo.





"I'm gonna, uh, demonstrate the hot moves..." - Flannery
Mateo is offline   Reply With Quote
Old 25th May 2014, 03:32 AM   #3
Pia Carrot
Orange Developer
Administrator
 
Pia Carrot's Avatar
 
Join Date: Aug 2010
Location: Valencia Island
Age: 21
Posts: 848
Pia Carrot Pia Carrot Pia Carrot Pia Carrot
Default

Been looking into it, I cannot figure out how Height and Weight is calculated. It may be that the 4 bytes are pointing to an offset but I have no idea. If anyone has an idea of how Height and Weight work I would love to know so that I can give new Pokemon correct weight.

Edit: Looking at Clefairy, it is 2"00' high and its first byte in hex is C8, which translates to 200. May just be a coincidence.
EDIT 2: Clefairy's hex bytes convert perfectly to its height and weight. However, Onix doesn't match up at all. I don't get it lol.

Updated. Thanks to shinyquagsire for figuring out how the height and weight is calculated, I was definitely overthinking it. So cheers, one more thing that was undocumented is now documented.
__________________

I'm a boob
Pia Carrot is offline   Reply With Quote
Old 30th May 2014, 09:48 PM   #4
Pia Carrot
Orange Developer
Administrator
 
Pia Carrot's Avatar
 
Join Date: Aug 2010
Location: Valencia Island
Age: 21
Posts: 848
Pia Carrot Pia Carrot Pia Carrot Pia Carrot
Default

A few more observations. Species name cannot be longer than 10. For example, SQUIRTLE is the TINYTURTLE Pokemon.

Also, for some reason there are a bunch of 00s between TAUROS and MAGIKARP's dex entries. I have no idea if it is used or what.
__________________

I'm a boob
Pia Carrot is offline   Reply With Quote
Old 8th March 2015, 09:41 AM   #5
Toni88
Neophyte
 
Toni88's Avatar
 
Join Date: Sep 2013
Posts: 9
Toni88
Default

I have to add one thing: pokčmon are split in 4 different banks, so here's a list I made:

Code:
0x1A0000 Bank 68: Bulbasaur - Kadabra (1 - 64) Pointers: 0x44360
0x1A4000 Bank 69: Alakazam - Tauros (65 - 128) Pointers: 0x443E0
0x1A8000 Bank 6A: Magikarp - Sunflora (129 - 192) Pointers: 0x44460
0x1AC000 Bank 6B: Yanma - Celebi (193 - 251) Pointers: 0x444E0
Toni88 is offline   Reply With Quote
Likes Pia Carrot liked this post
Reply

Tags
data, editing, gold, pokedex, pokemon, [Document]

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:18 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc. User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo.
Pokémon Hackers Online (PHO) is in no way affiliated with or endorsed by Nintendo LLC, Creatures, GAMEFREAK inc,
The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast.
All forum/site content (unless noted otherwise) and site designs are © 2006-2013 Pokémon Hackers Online (PHO).
Green Charizard Christos TreeckoLv100

"Black 2" by ARTPOP. Kyurem artwork by XOUS.

no new posts