ROM Hack GBAATM-Rebirth (GBA Auto Trainer Maker): A new hope

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,321
Country
United Kingdom
Can I use this tool to convert GameShark codes for the new mega man collection
As above this not necessarily the tool for that, and I doubt there is one.

If a game is emulated on another system you have two paths then

1) Use a tool like this to hardpatch the cheats into a ROM and inject that back in to be run instead.
2) The emulated system's memory is likely a portion within the main system's memory (quite often static between runs even but dynamic is also possible) in which case the baseline cheats can be ported across quite simply by finding the emulated memory start location (Switch cheat making talks seem to call it a base) and changing the location of the cheat or using said base.

2) Might need a bit more explaining
https://doc.kodewerx.org/hacking_gba.html
That details the various cheat formats on the GBA, and the principle carries for everything.
A cheat is comprised of three basic things/
i) The cheat type identifier. Write this, check this, do this operation... the list on the link above.
ii) The relevant location in memory (sometimes a register but let us leave that for today). In the basic write this area constantly to give me infinite health/ammo/whatever this is the area you need, if it is a check for a loop (IF this then ELSE do this, aka conditional) you will be reading this.
iii) The payload. You could write 0 to health but in most games that would just kill you, same for ammo but that at least might be useful in a hard mode cheat. To that end you need to tell it what to write as well.

As the GBA houses its whopping 256 kilobytes of memory in the 02?????? region you will find most cheats use that, some formats even eschewing the 2 part and assuming it to be the case (can make certain things harder but again we will leave that).
https://problemkaputt.de/gbatek.htm#gbamemorymap if you needed to know the GBA memory layout.
Gameshark arv3 code for a 32 bit write (16 bit and 8 bit constant writes are also available for those things that need them, the GBA code base generally picks sensible variable lengths but it is a 32 bit system even in 16 bit THUMB mode so 32 bit values can be picked for things that need nowhere near that number of combinations).
2aaaaaaa xxxxxxxx32-bit RAM write
Writes xxxxxxxx to 0aaaaaaa


Your basic infinite health code then looking something like
22?????? 0000FFFF
Where ? is the location of the health in memory.

You would want to find where the 2?????? range is for the emulator (easy enough to dump that region on both the original and the emulated version and see what patterns match at a suitable point in the game, assuming you don't just find the cheat equivalent in both)

The button press stuff could be harder to dealt with
https://doc.kodewerx.org/hacking_gba.html#button
You will then see a conditional read on 0x04000130 in the original codes. Probably a D for the same format, IF equal to so it looks for a certain combo (not ideal for certain gameplay types but I will leave that discussion for another day).
What the Switch will do here for button activators varies. It might emulate the button presses, and your cheats might also have system level button activators it can use (easy enough)

Other conditionals should go fairly easily as most of those are for checking if one thing has happened to in turn do another cheat (sometimes games might mess up if you have infinite health at the end of a level and it tries to say run down the health and give bonus points depending upon things, or in a RPG you might have a battle you are forced to lose).
 

songpol

Member
Newcomer
Joined
Nov 14, 2020
Messages
23
Trophies
0
Age
28
XP
233
Country
Thailand
can you help me with this cheat code please i try but not working can anyone figure out

  • Control All Units During Battle
  • 301908D1 0098
  • 30190A91 0098
  • 30190C51 0098
  • 30190E11 0098
  • 30190FD1 0098
  • 30191191 0098
  • 30191351 0098
  • 30191511 0098
  • 301916D1 0098
  • 30191891 0098
  • 30191A51 0098
  • 30191C11 0098
  • 30191DD1 0098
  • 30191F91 0098
  • 30192151 0098
  • 30192311 0098
i found is cheat code in this https://thefoodiegeek.net/final-fantasy-tactics-advance-cheats-100-working/
 

mte90

Well-Known Member
OP
Newcomer
Joined
Mar 28, 2020
Messages
98
Trophies
0
Age
33
Website
daniele.tech
XP
389
Country
Italy
Well this cheats are incomplete as you can see in the link you shared there are other stuff that you need to add (the master part) and set codebreaker as cheat type.
 

mte90

Well-Known Member
OP
Newcomer
Joined
Mar 28, 2020
Messages
98
Trophies
0
Age
33
Website
daniele.tech
XP
389
Country
Italy
I wrote it about what is missing, it isn't enough to copy only the cheat that you want you need the "master" stuff mentioned in the article you shared.
And about to set the cheat type there is a dropdown in the tool itself to set it.
 

songpol

Member
Newcomer
Joined
Nov 14, 2020
Messages
23
Trophies
0
Age
28
XP
233
Country
Thailand
I wrote it about what is missing, it isn't enough to copy only the cheat that you want you need the "master" stuff mentioned in the article you shared.
And about to set the cheat type there is a dropdown in the tool itself to set it.
i put both code master code and control all unit during battle code but not working it missing but can't figure out what wrong
  • Master Code – Must Be On
  • 000037AE 000A
  • 10000488 0007
  • Control All Units During Battle
  • 301908D1 0098
  • 30190A91 0098
  • 30190C51 0098
  • 30190E11 0098
  • 30190FD1 0098
  • 30191191 0098
  • 30191351 0098
  • 30191511 0098
  • 301916D1 0098
  • 30191891 0098
  • 30191A51 0098
  • 30191C11 0098
  • 30191DD1 0098
  • 30191F91 0098
  • 30192151 0098
  • 30192311 0098
 

mte90

Well-Known Member
OP
Newcomer
Joined
Mar 28, 2020
Messages
98
Trophies
0
Age
33
Website
daniele.tech
XP
389
Country
Italy
I don't understand, the software works but the trainer is not inserted in the rom or it is just empty when the rom boot?
Did you set Codebreaker as cheat type in the tool?
 

songpol

Member
Newcomer
Joined
Nov 14, 2020
Messages
23
Trophies
0
Age
28
XP
233
Country
Thailand
I mean in the GBAATM-Rebirth tool, this is the support thread for that tool not for an emulator.
Screenshot 2023-09-29 142457.png

and what next
 

mte90

Well-Known Member
OP
Newcomer
Joined
Mar 28, 2020
Messages
98
Trophies
0
Age
33
Website
daniele.tech
XP
389
Country
Italy
I don't speak screenshotish, so please add some words or I won't help you.
Also those doesn't seems the same cheat of the first screens...
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: I better over react and get all fussy for the lols