Hacking Info on How To Create or Modify (.CHT) files

PkmnInferno

New Member
OP
Newbie
Joined
Apr 6, 2009
Messages
2
Trophies
0
XP
1
Country
United States
I have heaps of .cht file dat i got from dohclude for gba games

How do you create or modify these files because some of the ones in the things i downloaded don't work or give random cheats that don't work.

Can someone plz give me STEP BY STEP INSTRUCTIONS ON HOW TO CREATE OR MODIFY THESE FILES?
 

Densetsu

Pubic Ninja
Former Staff
Joined
Feb 2, 2008
Messages
3,434
Trophies
0
Location
Wouldn't YOU like to know?
Website
gbatemp.net
XP
2,676
Country
United States
There's no clear-cut way to create the codes because a lot of it involves trial-and-error by testing the codes out on an emulator. You're probably better off asking this question in dohclude's thread. I'm sure he or elixirdream could give you some good pointers.
 

dohclude

Well-Known Member
Member
Joined
Oct 12, 2006
Messages
384
Trophies
0
Age
39
Location
The Patch Walks!
Website
www.MODaWii.com
XP
282
Country
United States
You can open them in a simple text editor like notepad, etc. Some of the cheats only work on some games, or some carts, or a combination of the two. Some cheats just don't work, and some games don't allow the cheats to run very well. It is a very hit or miss type of thing when cheating on GBA games, but we are trying our best to get the cheats that are in Chinese translated into English, then we will probably work on adding some new cheats whenever that day comes. If you are interested in making your own or editing cheats, there is only a very limited amount of info out there (on English sites anyways). I would take a look at http://m3wiki.com/index.php?title=GBA_Cht if I were you. The methods described here work with some cheats, but not always. Good Luck!
 

Chuck Norris

New Member
Newbie
Joined
Apr 20, 2009
Messages
2
Trophies
0
XP
2
Country
United States
It is way more difficult than it needs to be.
wacko.gif
I don't know what kind of fool came up with this system, but I guess we should be glad it is available at all..
huh.gif


The m3wiki link above is the only guide I have found for making .cht files for GBA games and it's not very good. But it is sufficient to use some simple cheats. These codes I believe are in Action Replay format; if you get Code Breaker codes you will need to somehow convert them into AR. I don't know how to do that.

I will give a short summary of the guide using Final Fantasy 5 Advance. I am getting the codes I used from this website, which has lots of great codes for GBA games and more.

1.Create a new .cht file. It doesn't matter what you name it as long as it ends in .cht . I named mine FFV.cht.
Now open it with a text editor. I recommend Notepad++. It's free.

Let's use the code for Infinite HP for Character 1:
Code:
8201E1A0 270F
You name codes by surrounding its name in [] brackets.
Code:
[Infinite HP Character 1]
8201E1A0 270F

2.Go ahead and copy/paste that into your cht file.
3.Now we need to put the ON= tag next to the code line. While we're here you can remove the space in the code so it's just one long code.
Code:
[Infinite HP Character 1]
ON=8201E1A0270F
4.Next, delete the first three characters of the code. That would be the 8, the 2, and the 0. I have no idea why we're supposed to do this, but it's what works.
Code:
[Infinite HP Character 1]
ON=1E1A0270F
5.Next, place a comma after the 5th character of the code. That would be after the first 0 and before the 2.
Code:
[Infinite HP Character 1]
ON=1E1A0,270F
6.
Next, place a comma after the 7th character of the code. That would be after the 7 and before the 0.
Code:
[Infinite HP Character 1]
ON=1E1A0,27,0F
7.
Lastly, take the last two pairs of values and switch them.
Code:
[Infinite HP Character 1]
ON=1E1A0,0F,27
And there is the final code. Save the .cht file to your GBA directory and select the cheat file for the game in TouchPad. After the GBA logo shows, it should take you to your cheat menu where you can select which cheats you want.

Some notes:
4b.
You can delete any leading zeros from the front of your code. Take for instance the FFV Advance Save Anywhere code:
Code:
320096ED0080
We normally cut out the first 3 numbers and then add our commas.
Code:
096ED,00,80
See how there's that zero in the front there? On the left? We can delete that to make the code shorter and easier to read. I guess the GBA cheat engine is designed to ignore leading zeros anyway.
Code:
96ED,00,80
Finally, we're supposed to switch the last two pairs.
Code:
96ED,80,00
7b.
But--see how there are just two zeros at the end there? If the last pair of numbers is 00 after you switch the two pairs, you can delete it.
Code:
[Save Anywhere]
96ED,80

This 'guide' should work for most simple cheats for GBA games. Nobody seems to know how to do more complex cheats, or if they do know, they don't want to give up their secrets.
hate2.gif
 
  • Like
Reactions: qkwyx

fragler

Member
Newcomer
Joined
Sep 22, 2007
Messages
12
Trophies
0
XP
183
Country
United States
hmm.. i've read about this method a few places.. but i cannot find out how to convert the code if it's more than one line.. nobody knows? or isit that there is just too much involved, it'd take forever to explain?

for example say..

0999 Castlevania - Aria of Sorrow
[Access Warp Gates start+up]
74000130 03B7
32000064 0007
32000378 00FF
 

ironmaiden12369

Member
Newcomer
Joined
Jun 21, 2009
Messages
14
Trophies
0
XP
22
Country
Well me and Crystal go way back when we did it and my rubies turned to saphires and i grew a second emeraled i was like woa *Vomit*

Posts merged

Well me and Crystal go way back when we did it and my rubies turned to saphires and i grew a second emeraled i was like woa *Vomit*
 

PieceOfSchmitz

New Member
Newbie
Joined
May 11, 2018
Messages
1
Trophies
0
Age
22
XP
23
Country
United States
Okay I am having some serious trouble with this. Can someone please explain to me how the heck I can create my own cheats and then add them to my Pokemon Emerald Game? Im so frustrated at this lol
 

Frikka

New Member
Newbie
Joined
Feb 12, 2019
Messages
1
Trophies
0
Age
32
XP
24
Country
United States
I know this is an old thread and this might seem like a dumb question, but I opened my CHT file with Notepad and accidentally clicked "Always Open With This Program." What do I have the CHT file open with in order to work? I tried it with the No$GBA application, but it just causes the emulator to crash. Help!
 

supermario666

Well-Known Member
Member
Joined
Mar 4, 2018
Messages
108
Trophies
0
Age
21
XP
159
Country
Hungary
So, i have a cheat like this.

cheat22_desc = "Access Debug Mode (In-Game)"
cheat22_code = "6B84-7D04+3184-7D64+3E84-7DA4"
cheat22_enable = true
and when i paste it in the .cht file, the text appears corrupted and the code doesn't work
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
33,868
Trophies
2
Website
trastindustries.com
XP
22,604
Country
United Kingdom
Not sure what format that is (doesn't appear in enhacklopedia either), though I don't know the current stuff for emulators.

Do you have any more context about where you found it, what it is supposed to be used with and indeed what game it is?
 

supermario666

Well-Known Member
Member
Joined
Mar 4, 2018
Messages
108
Trophies
0
Age
21
XP
159
Country
Hungary
Not sure what format that is (doesn't appear in enhacklopedia either), though I don't know the current stuff for emulators.

Do you have any more context about where you found it, what it is supposed to be used with and indeed what game it is?
It toggles the in-game debug menu in earthbound
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
33,868
Trophies
2
Website
trastindustries.com
XP
22,604
Country
United Kingdom
Doing a search for at least the first part landed me on
https://forum.starmen.net/forum/Community/PKHack/539
So for the SNES (an entirely different system to the GBA/DS being discussed here, which does have a version of Earthbound/Mother)

Also mentions a ROM level change you can do if you want too of "Ba21:change b0a7c4 to 89e6ef" so I am guessing that means open the ROM in a hex editor and change the data at BA21 to 89E6EF.
 
P

pasc

Guest
*Tools like ARCrypt CBACrypt or GBACCC come to mind for no reason...*

unrelated to cht modification
Been there, failed like that.

I still to this day don't understand why a tool to go from XPloder(CB)/Actionreplay(GS) to CHT is not a thing..

Sure I can see some features missing (triggers ?), but this should have been something.

Editing codes with this mockery is just ludicrous.


PS: On the actual "modification", I only got this:


Also:

It is way more difficult than it needs to be.
wacko.gif
I don't know what kind of fool came up with this system, but I guess we should be glad it is available at all..
huh.gif
This. Times 1000.
I smell "money constraints".
Something along the lines of
-Chef: Yuzuf! We need a cheat system for the GBA to go along with out less-than-stellar-gba-pirac-flashcard
-Yuzuf: But our budget is only 45$...
-Chef: Then don't waste too much time on it, we'll just bundle some cheats with the card and noone will bother asking about how our system works.
-Yuzuf: Okay !
 
Last edited by ,

supermario666

Well-Known Member
Member
Joined
Mar 4, 2018
Messages
108
Trophies
0
Age
21
XP
159
Country
Hungary
Not sure what format that is (doesn't appear in enhacklopedia either), though I don't know the current stuff for emulators.

Do you have any more context about where you found it, what it is supposed to be used with and indeed what game it is?

Doing a search for at least the first part landed me on
https://forum.starmen.net/forum/Community/PKHack/539
So for the SNES (an entirely different system to the GBA/DS being discussed here, which does have a version of Earthbound/Mother)

Also mentions a ROM level change you can do if you want too of "Ba21:change b0a7c4 to 89e6ef" so I am guessing that means open the ROM in a hex editor and change the data at BA21 to 89E6EF.
Thanks man. It worked. The hex editing was easier than i thought.
 
General chit-chat
Help Users
    kenenthk tempBOT: @ kenenthk tempbot cheats