The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.
New threads in this forum are to be approved by a moderator before they are displayed.


Advertise here

Reply
 
Thread Tools
  #1    
Old September 8th, 2010, 10:57 PM
miksy91's Avatar
miksy91
A GB/C Rom Hacker since 2010
 
Join Date: Oct 2008
Location: A small country in the North
Gender: Male
Nature: Relaxed

Advertise here
Hex editing is rather easy, and I helped one of my friends in Youtube for learning it, and wrote this tutorial for him so I don't see a point why not to post it here too.


This applies somewhat for R/B/Y too although the hex codes for pokemon in R/B/Y don't really make any sense as they do in G/S/C (trainer data in R/B/Y doesn't begin after the name though - you've to search straight for the pokemon the trainer has).


Anyway, what you need to edit the pokemon trainers have are:
1) A hex editor (Translhextion, GoldFinger...)
2) A ROM of either Gold, Silver or Crystal
3) A table file of Pokemon Gold which is made for Crystal as well (Giegue's Hacking Guide has some strange table file for Crystal which probably works with the Japanese version but not USA)

Spoiler:
Table file isn't really needed to do this but can help you out a lot in the beginning so that you won't get confused



TUTORIAL


1. Search in Google for Giegue's Master Hacking Guide.
2. Open the ROM in a hex editor.

The bytes for big letters are here:

A, 80
B, 81
C, 82
D, 83 etc.


Here is a simple example of editing pokemon that KENJI uses.
Now that you've the ROM opened, open the "Pokemon Gold" table file, and search for the name, KENJI (so basicly search for bytes 8A 84 8D 89 88).


You should see this:
8A 84 8D 89 88 50...
Byte 50 starts the pokemon data of the trainer.
It's usually like 00 [xx] [yy]...[xx] [yy], and ends with FF. Byte [xx] determines the level of the pokemon, and [yy] the number of the pokemon in pokedex (both written in hexadecimal system).


You can also change the amount of pokemon he uses by adding/taking letters to/off his name.
For example rename KENJI to KEN and make the data like this: 8A 84 8D 50 00... (so practically you replace 89 88 with 50 00, and change the following two bytes (50 00) to something else).
By taking two bytes off his name, you can enlarge his pokemon data by two bytes.

Also, the pokemon data of some trainers is like this:
[Name] 50 01 [6 bytes for each pokemon he has] FF

01 tells the game that the pokemon of that trainer, has special moves. The byte for every move is listed in Giegue's Master Hacking Guide.


Now, let's pretend that we want to create a random trainer that has one pokemon which knows special moves.

80 A1 A2 50 01 90 0E 25 39 7E ED FF

80 A1 A2 - Name (Abc)
50 - Pokemon data starts after this byte
01 - Pokemon of this trainer has/have special moves
90 - Level in hex (level 144 in the game which is 90 in decimal system)
0E - Kakuna
25 39 7E ED - Moves (Thrash, Surf, Fire Blast, Hidden Power)

Now this was one odd example but I hope you get the idea :D
__________________
My Rom Hack



Hacks I support





Learn how to hack GB/C games:

Check my GameBoy/Color hacking videos in Youtube
-The video set uses Pokemon Silver (U) rom for demonstrations
Reply With Quote
  #2    
Old September 13th, 2010, 06:57 AM
Gamer2020's Avatar
Gamer2020
This love is a sickness...
 
Join Date: Jun 2008
Location: Violet city!
Gender: Male
Nature: Bold
Send a message via AIM to Gamer2020 Send a message via Windows Live Messenger to Gamer2020 Send a message via Yahoo to Gamer2020 Send a message via Skype™ to Gamer2020
Sorry dude but you really need to improve this tutorial. You could at least explain the different trainer types and maybe give some offsets
__________________
Pokemon Game Editor Download!
Reply With Quote
  #3    
Old September 13th, 2010, 10:57 AM
miksy91's Avatar
miksy91
A GB/C Rom Hacker since 2010
 
Join Date: Oct 2008
Location: A small country in the North
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by Gamer2020 View Post
Sorry dude but you really need to improve this tutorial. You could at least explain the different trainer types and maybe give some offsets
I'll think about it but each trainer can easily be found anyway.
But yeah, I guess I could add information about trainer type byte being 02 and give some more examples.

Also, I'm quite certain it's possible add lot of new trainers to the game and make you battle them. So if that works as I believe, I'll write how to do it as well (more of a scripting job though).

EDIT:
Trainer data begins at 399c2 (Falkner) & ends at 3b684 (Female Grunt).
After that, there is empty space between 3b685 and 3bfff.
__________________
My Rom Hack



Hacks I support





Learn how to hack GB/C games:

Check my GameBoy/Color hacking videos in Youtube
-The video set uses Pokemon Silver (U) rom for demonstrations

Last edited by miksy91; September 13th, 2010 at 11:10 AM.
Reply With Quote
  #4    
Old October 30th, 2011, 09:17 AM
NinjaBoy1's Avatar
NinjaBoy1
Beginning Trainer
 
Join Date: Dec 2010
Location: Ontario, Canada
Gender: Male
Nature: Brave
Im having trouble with the the big letters hexidecimals, what would ALBERT be in hex?
__________________
Msg me if you want to challenge or trade im a pretty good player.
Reply With Quote
  #5    
Old November 8th, 2011, 04:01 AM
d4rk's Avatar
d4rk
Mad scientist trainer
 
Join Date: Nov 2011
Location: Mahogany town
Gender: Male
Nature: Lonely
Send a message via Windows Live Messenger to d4rk Send a message via Skype™ to d4rk
Hello there!

ALBERT would be written 80 8B 84 91 93 in hex.

I succeeded in changing some trainers, but some offsets are very well hidden.
For example do you know were I can edit the red haired trainer's Pokemon? or the rocket's grunts?

Last edited by d4rk; November 8th, 2011 at 05:43 AM.
Reply With Quote
  #6    
Old November 11th, 2011, 07:18 PM
Sephiroth2009
Booted out - don't be like me!
 
Join Date: Oct 2011
There's a program for that now.

Gamer2020 released it.

Besides look up his data by imputting "???" or "RIVAL" into the hex editor with the table file.
Reply With Quote
  #7    
Old April 11th, 2014, 03:33 PM
com3tiin's Avatar
com3tiin
Soy chamber...
 
Join Date: Jan 2013
Gender: Male
A tutorial from the old school!

It is always good to know the manual method if some fault ocacionan tools.
__________________
Reply With Quote
Reply
Quick Reply

Sponsored Links


Advertise here
Thread Tools

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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 09:03 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.