Hacking Simple My Boy CHT to EZ-Flash CHT converter

SLKun

Member
OP
Newcomer
Joined
Jan 31, 2020
Messages
10
Trophies
0
Age
28
XP
92
Country
China
I write a simple python script for converting my boy! cht to ez-flash cht.

You can download the my boy! cht from https://gamehacking.org.
Then, simply run `python3 convert.py my-boy.cht > ez-flash.cht`. (You can run it on mingw, msys, wsl or linux)
You can get the ez-flash style cht file.

It will ignore crc check and button processing in original cht, only processing "RAM Write".
And combining items with the same name into one item.
Name and Text in GameInfo section will be the filename.

A typical my boy! cht file will look like:
<?xml version="1.0" encoding="UTF-8"?>
<cheats>
<cheat type="cb" name="M">
<code>00005868 000A</code>
<code>1005A354 0007</code>
</cheat>
<cheat type="cb" name="Access Item Shop [Press L+R+Up]">
<code>74000130 00BF</code>
<code>3200AA6C 0000</code>
<code>74000130 00BF</code>
<code>42000668 0001</code>
<code>17000002 0060</code>
</cheat>
<cheat type="cb" name="Have $50,000">
<code>8200B95C C350</code>
</cheat>
</cheats>

Converted EZ-Flash Style cht file looks like:
[Access Item Shop [Press L+R+Up]]
ON=0AA6C,00

[Have $50,000]
ON=0B95C,50,C3

[GameInfo]
Name=Sims 2, The - Pets (Europe) (En,Fr,De,Es,It,Nl)
System=GBA
Text=Sims 2, The - Pets (Europe) (En,Fr,De,Es,It,Nl)

You can get the script form here: https://github.com/SLKun/PyUtils/blob/master/GBACheats/convert.py
 
Last edited by SLKun,

SLKun

Member
OP
Newcomer
Joined
Jan 31, 2020
Messages
10
Trophies
0
Age
28
XP
92
Country
China
Update:
- Fix some issues
- Add support for slide code
- Remove cheats that contains condition that ezflash don't support
 

Xocide

Member
Newcomer
Joined
Jun 30, 2013
Messages
18
Trophies
0
Age
32
XP
86
Country
United States
Doesn't seem to work. Selected the cheats I wanted from gamehacking Downloaded them in the My Boy! Format. Opened CMD and ran "python3 convert.py my-boy.cht > ez-flash.cht" and it would only convert 1 code out of the 6 in the "my-boy.cht" I had downloaded.

Also what format do I need to use? These are the options on the gamehacking site:
GameShark Advance/Action Replay
Action Replay Max
Codebreaker/Gameshark SP/Xploder
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • SylverReZ @ SylverReZ:
    Hope they made lots of spaget
  • K3N1 @ K3N1:
    Chill dog
  • SylverReZ @ SylverReZ:
    Chilli dog
  • Skelletonike @ Skelletonike:
    Damn, I'm loving the new zelda.
  • xtremegamer @ xtremegamer:
    loving the new zelda, i started a game, it was so fucking good, so i
    am waiting on my friend to get home so we can start a new one together
  • Skelletonike @ Skelletonike:
    I just dislike that they don't let me choose the voices before the game starts. Happened with botw as well, had to change to japanese and restart.
  • K3N1 @ K3N1:
    But the important question is can you choose gender
  • Skelletonike @ Skelletonike:
    Same way you can choose Gerald's gender.
  • Skelletonike @ Skelletonike:
    *Geralt, damn autocorrect.
  • Psionic Roshambo @ Psionic Roshambo:
    But can he be trans? Lol
  • K3N1 @ K3N1:
    Zelda transforms into link
  • Psionic Roshambo @ Psionic Roshambo:
    Link I'm not the princess your looking for.... *Pulls a crying game*
  • K3N1 @ K3N1:
    *skirt up* it's exactly what I always wanted
  • Skelletonike @ Skelletonike:
    Just scanned all my zelda amiibos, took a while but didn't get anything that cool, did get the lon lon ranch hylian fabrics though.
  • Skelletonike @ Skelletonike:
    It was pretty funny when I scanned wolf link and got a shit load of meat.
  • K3N1 @ K3N1:
    @Skelletonike, btw I ran that custom for mgs4 on the deck I'm amazed it got that far in game
  • K3N1 @ K3N1:
    Plug in*
  • K3N1 @ K3N1:
    Your favorite activity
  • BentlyMods @ BentlyMods:
    My fav actvity is:

    mario-dancing.gif
  • Psionic Roshambo @ Psionic Roshambo:
    Do the Mario lol
  • K3N1 @ K3N1:
    🍑
  • K3N1 @ K3N1:
    Whoever developed Bramble was smoking that good shit fucking gnomes
    K3N1 @ K3N1: Whoever developed Bramble was smoking that good shit fucking gnomes