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

Discussion in 'M3 Adapter' started by PkmnInferno, Apr 7, 2009.

  1. PkmnInferno
    OP

    PkmnInferno Newbie

    Newcomer
    1
    Apr 6, 2009
    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?
     
  2. Densetsu

    Densetsu Pubic Ninja

    Former Staff
    11
    Feb 2, 2008
    United States
    Wouldn't YOU like to know?
    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.
     
  3. dohclude

    dohclude GBAtemp Fan

    Member
    2
    Oct 12, 2006
    United States
    The Patch Walks!
    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!
     
  4. Chuck Norris

    Chuck Norris Newbie

    Newcomer
    1
    Apr 20, 2009
    United States
    It is way more difficult than it needs to be. [​IMG] 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.. [​IMG]

    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. [​IMG]
     
  5. fragler

    fragler Member

    Newcomer
    2
    Sep 22, 2007
    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
     
  6. ironmaiden12369

    ironmaiden12369 Member

    Newcomer
    1
    Jun 21, 2009
    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*
     
  7. PieceOfSchmitz

    PieceOfSchmitz Newbie

    Newcomer
    1
    May 11, 2018
    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
     
  8. Frikka

    Frikka Newbie

    Newcomer
    1
    Feb 12, 2019
    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!
     
  9. supermario666

    supermario666 Advanced Member

    Newcomer
    1
    Mar 4, 2018
    Hungary
    sefisfijsjio. I'm totally lost. My cheat is like 8 characters long.
     
  10. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23
    Nov 21, 2005
    United Kingdom
  11. supermario666

    supermario666 Advanced Member

    Newcomer
    1
    Mar 4, 2018
    Hungary
  12. supermario666

    supermario666 Advanced Member

    Newcomer
    1
    Mar 4, 2018
    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
     
  13. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23
    Nov 21, 2005
    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?
     
  14. supermario666

    supermario666 Advanced Member

    Newcomer
    1
    Mar 4, 2018
    Hungary
    It toggles the in-game debug menu in earthbound
     
  15. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23
    Nov 21, 2005
    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.
     
  16. pasc

    pasc GBATemps GBA Freak

    Member
    5
    Sep 9, 2006
    Germany
    Germany
    *Tools like ARCrypt CBACrypt or GBACCC come to mind for no reason...*

    unrelated to cht modification
    Warning: Spoilers inside!


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


    Also:

    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 pasc, Jun 18, 2019
  17. supermario666

    supermario666 Advanced Member

    Newcomer
    1
    Mar 4, 2018
    Hungary
    Thanks man. It worked. The hex editing was easier than i thought.
     
Loading...