Go Back   The PokéCommunity Forums > ROM Hacking > Research & Development
Reload this Page Hex Editing Trainers

Notices
For all updates, view the main page.

Research & Development Got a well-founded knack with ROM hacking? Love reverse-engineering the Pokémon games? Or perhaps you love your assembly language. This is the spot for polling and gathering your ideas, and then implementing them! Share your hypothesis, get ideas from others, and collaborate to create!
Research & Development programs in this forum are subject to moderator approval before they are displayed.



Reply
 
Thread Tools
  #1    
Old February 13th, 2007 (10:50 AM).
Glitchfinder's Avatar
Glitchfinder
Let's all get along, please?
 
Join Date: Sep 2006
Location: The Twilight Zone
Age: 25
Gender: Male
Nature: Careful
Hi! I decided to post another tutorial that I had translated from the tutorials at the German site Rom Hackers World. This one is on hex-editing trainers.


The examples are taken out of Sapphire, which should be the same as ruby.
You should be able to find the data by loading a text editing table, searching the
trainer name, and using the pointer that is with the trainer's name when you find it
with a bunch of other trainers.
WARNING: Do not change the two bytes before the data.
The format is as follows for normal trainers:
< 0000 > < 1A00 > < 4A01 > < 0000 > | < 0000 > < 1A00 > < 4A01 > < 0000 >
This is the data for a fisherman.
This is what each number means with normal trainers:
< 0000 > < level > < 00 > < POKÉMON 1 > < carried Item (0000 for no Item) > | < 0000 > < level > < 00 > < POKÉMON 2 > < carried Item > etc..
Here is an example:
< 0000 > < level 1A = 26 > < 00 > < Carvanha = 4A01 > < 0000 > |
< 0000 > < level 1A = 26 > < 00 > < Carvanha = 4A01 > < 0000 >
Gym leaders have the attacks too!
< C800 > < 1600 > < 5100 > < 3000 > < 3100 > < 5400 > < 5600 > < 0000 >
< C800 > < 1400 > < 6400 > < CD00 > < 7800 > < D100 > < 3100 > < 0000 >
< FA00 > < 1700 > < 5200 > < 3000 > < 3100 > < 5F00 > < 5600 > < 0000 >
This is the data for Watson, who has the Electric gym.
This is the structure:
< C800 > < level > < 00 > < POKÉMON 1 > < attack 1 > < attack 2 > < attack 3 > < attack 4 > < 0000 >
< C800 > etc..
Pay attention:
The first byte, C8, is untested and may not not be safe!
Reply With Quote
  #2    
Old February 13th, 2007 (04:08 PM).
skaterseba
Beginning Trainer
 
Join Date: Oct 2006
Gender:
Nature: Adamant
i would like to know that if with this i can create my own battle i mean i choose the scene
and all that if it can be make can you tell me how=?
Reply With Quote
  #3    
Old February 14th, 2007 (01:13 PM).
Glitchfinder's Avatar
Glitchfinder
Let's all get along, please?
 
Join Date: Sep 2006
Location: The Twilight Zone
Age: 25
Gender: Male
Nature: Careful
All you have to do is change the pointer of the battle you want to edit. (Or add, if you're editing FR/LG. In FR/LG, there's a whole bunch of blank or semiblank battles you can use) The pointer will be found where you see a bunch of trainer names together. (Just use a table file, and search the name of a trainer you know [in caps], I just search BROCK) Then, scroll to the blank spaces where names could be, add a name, and change the offset to that of a blank area within the ROM. Then, you can use this tutorial to edit the data of the trainer by changing the values in the blank area where the new offset points to. If you figure out how to make it a gym leader, please tell me, because I'll put it into the tutorial. The Gym Leaders and Elite Four members all have preprogrammed moves for their Pokemon, while normal trainers don't. Finally, I would use PET to change the type of trainer that appears, as well as which trainer sprite the trainer uses.
Reply With Quote
  #4    
Old February 14th, 2007 (01:31 PM).
skaterseba
Beginning Trainer
 
Join Date: Oct 2006
Gender:
Nature: Adamant
what i mean is that if i can create a battle from zero with a hex editor i mean like adding a battle to the game?
Reply With Quote
  #5    
Old February 14th, 2007 (03:58 PM).
Glitchfinder's Avatar
Glitchfinder
Let's all get along, please?
 
Join Date: Sep 2006
Location: The Twilight Zone
Age: 25
Gender: Male
Nature: Careful
I'm not sure about that. If you edit FR/LG, then there is no need, because half of the battles aren't used. I have no idea about inserting new ones. (I've never tried it) If anyone figures out how, please PM me, and I'll add it to the tutorial.
Reply With Quote
  #6    
Old February 14th, 2007 (05:31 PM).
userpr's Avatar
userpr
Quilava Trainer
 
Join Date: Nov 2006
Age: 23
Gender:
Nature: Adamant
This is kind of confusing but I'll try it out before anything else


P.S. Thanks for this much needed tutorial.
Reply With Quote
  #7    
Old March 28th, 2007 (08:13 PM).
Wil06
Beginning Trainer
 
Join Date: Mar 2007
Gender:
Nature: Adamant
sorry if this is off topic but does PET work with emerald? i have tried it and the trainer names are like not coming out and i get an error while searching for a trainer
Reply With Quote
  #8    
Old March 29th, 2007 (04:46 PM).
skaterseba
Beginning Trainer
 
Join Date: Oct 2006
Gender:
Nature: Adamant
it doesn`t work with emerald
just with ruby/ safire
Reply With Quote
  #9    
Old March 29th, 2007 (08:44 PM).
Irish Witch's Avatar
Irish Witch
Office Jenny
 
Join Date: Jul 2006
Location: Australia
Age: 34
Gender:
Nature: Lonely
Send a message via AIM to Irish Witch Send a message via Yahoo to Irish Witch
And even then it doesn't work properly....
__________________
PokeScript Assembler C pokewitch inc

PokeWitch's PokePets

Smitten the level 25 Kirlia! :: Myrial the Level 22 Pidgeotto
Reply With Quote
  #10    
Old March 30th, 2007 (04:37 PM).
skaterseba
Beginning Trainer
 
Join Date: Oct 2006
Gender:
Nature: Adamant
yeah it`s not the best programs of all xD not even battle ... is good(?)
Reply With Quote
  #11    
Old March 31st, 2007 (03:04 AM).
tImE's Avatar
tImE
It's still me, 44tim44 ;)
 
Join Date: Mar 2007
Location: Somewhere in Scandinavia...
Age: 20
Nature: Relaxed
Where can I find a table file for ruby?
Reply With Quote
  #12    
Old March 31st, 2007 (06:53 AM).
Black Charizard.'s Avatar
Black Charizard.
Alter Ego
Community Supporter
 
Join Date: Mar 2007
Age: 22
Gender: Male
Nature: Relaxed
can someone give me the batle sprite of the boy of pokemon daimond
__________________
If you traded with me and want to leave a review for me I would really appreciate it! :D
My Review Thread

Current giveaways:
Reply With Quote
  #13    
Old May 27th, 2007 (10:16 AM).
chordleburger
Beginning Trainer
 
Join Date: May 2007
Gender:
Nature: Adamant
Quote:
All you have to do is change the pointer of the battle you want to edit. (Or add, if you're editing FR/LG. In FR/LG, there's a whole bunch of blank or semiblank battles you can use) The pointer will be found where you see a bunch of trainer names together. (Just use a table file, and search the name of a trainer you know [in caps], I just search BROCK) Then, scroll to the blank spaces where names could be, add a name, and change the offset to that of a blank area within the ROM. Then, you can use this tutorial to edit the data of the trainer by changing the values in the blank area where the new offset points to. If you figure out how to make it a gym leader, please tell me, because I'll put it into the tutorial. The Gym Leaders and Elite Four members all have preprogrammed moves for their Pokemon, while normal trainers don't. Finally, I would use PET to change the type of trainer that appears, as well as which trainer sprite the trainer uses.
Could you rephrase this some? It doesn't help me at all. What exactly do I do with the table file? Where exactly do I search for Brock? What programs should I be using to do this? I gave this a try but I didn't get anywhere...
Reply With Quote
  #14    
Old September 7th, 2007 (08:14 AM).
Elementologist
Pokemon Master
 
Join Date: Jul 2007
Location: Somewhere in Greece
Age: 23
Gender:
Nature: Gentle
Send a message via Yahoo to Elementologist
Where can I Get A Table File for FR/LG and EMERALD
Reply With Quote
  #15    
Old September 16th, 2007 (07:13 AM).
Supreme Dirt's Avatar
Supreme Dirt
used Petal Dance
 
Join Date: Aug 2007
Location: o3o
Age: 23
Gender: Other
Nature: Rash
Alrighty...
How do I change the music played in battle? For example, changing the champion battle to the Deoxys battle music.
Reply With Quote
  #16    
Old August 30th, 2008 (09:58 AM).
Ineffable~'s Avatar
Ineffable~
DAT SNARKITUDE
 
Join Date: Aug 2008
Location: Any ol' place really
Age: 21
Gender: Female
Nature: Naive
When I go to the offset, how do I know when the text ends and the battle begins
in the hexes?
__________________

#077: Ponyta - The Fire Horse Pokémon
Fire ~ Field eggs
3'03" ~ 66.1lbs ~ 50/50

Its hooves are 10 times harder
than diamonds. It can trample
anything completely flat in moments.

Abilities: Run Away or Flash Fire or Flame Body
Moves: Growl, Flame Wheel, Stomp, Agility
Locations: Pokémon Mansion

Cry

Other names:

jp: ポニータ (Ponyta)
de: Ponita
fr: Ponyta
cn: 小火馬 (Xiǎohuǒmǎ)


Reply With Quote
  #17    
Old August 30th, 2008 (07:33 PM).
roywillow's Avatar
roywillow
Beginning Trainer
 
Join Date: Feb 2008
Location: Shandong China
Gender:
I think there are at least four type of PKMN info structure, the structure is decided by the first byte of the basic trainer infomation: 00, 01, 02, 03. 00 maybe no item, no attack, and 03 maybe have item and attacks.
The first byte of PKMN infomation may means AI? I heard this word once. The PKMN of elite four have the highest: FF
__________________
http://poketb.com/bbs/images/logo.gif
Reply With Quote
Reply
Quick Reply

Sponsored Links
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

Forum Jump


All times are UTC -8. The time now is 10:14 PM.