Hacking Emulation ROM Hack GBA Emulator Translation inserting text without crashing

q-tipper

Member
OP
Newcomer
Joined
Dec 27, 2022
Messages
8
Trophies
0
Age
32
XP
54
Country
Estonia
i want to add text without crashing, let me explain:
If, for example, I add a single letter to a text, adding 1 byte to the game, the game will no longer work, is there a way to avoid this?
 

Maeson

Well-Known Member
Member
Joined
Apr 3, 2013
Messages
1,193
Trophies
2
XP
3,459
Country
Spain
Of course the game will not longer work, by adding bytes of information you shift everything after those bytes, so when the code of the game looks for the exact part of a code or text, it is no longer there and reads the incorrect data.

If you want to change text, you have to either use the space already used by the text, or learn how the text routine work, locate free space on the rom and relocate the text there, changing the pointers that tell the game where it needs to look for each string of text.
 

Maeson

Well-Known Member
Member
Joined
Apr 3, 2013
Messages
1,193
Trophies
2
XP
3,459
Country
Spain
It's often long strings of "00", sometimes "FF". "Random" characters are game code.


You can check romhacking.net for tutorials and newbie information on this stuff.
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,405
Country
United Kingdom
Hashes should not be a problem for the GBA.

As above you need to repoint. GBA pointers are typically within the ROM itself, which leads most to the shorthand of "pointers start with 08" as the GBA ROM is visible at 08000000 through 09FFFFFF (and a few other locations but I am going to be hard pressed to find an example of anything using those) and as most are 16 megs or less then only 08 gets touched. To that end most search for 08 and if you have a bunch of them with say 6 bytes between them (08??##%% where the blank is the location in the ROM, give or take some byte flipping, though 08 is a perfectly valid thing to find within the pointer itself so don't expect hard 6 byte gaps, and I have seen other things within pointer fields like formatting commands). Obviously everything uses pointers but text should be fairly obvious (if you know where the text is then the pointer will match, and most other things will be fairly fixed lengths where text might not be).

Most look for extra space at the end of the ROM (00 and FF being the usual filler, I have examples of games that use it as useful info but most of those come down to "skip 100 bytes and then start using that as blank space").
Bonus for the GBA is you can trivially expand a GBA ROM to 32 megabytes if you need to (literally just add space to the end of the ROM), though if you can keep it under 16 megs then that is considered good form for various flash cart users (very few will not be able to run the full 32 but it can be tedious vs 16).
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Sirloin sounds good tonight
    +1
  • BakerMan @ BakerMan:
    yeah it does
  • BakerMan @ BakerMan:
    RIP Vimm's Lair (most of the games anyway), you will be missed

    also i think this is a great time and reason to bring back a hashtag previously used about ubisoft
    +1
  • BakerMan @ BakerMan:
    #stopkillinggames
    +1
  • BigOnYa @ BigOnYa:
    #mailmesomesirloinsteak
  • K3Nv2 @ K3Nv2:
    Mail you deeze nuts
  • BigOnYa @ BigOnYa:
    That be cheap, flat rate small envelope. Me- "Hey this envelope is empty, oh that makes since."
  • K3Nv2 @ K3Nv2:
    Still fits in your mouth the same way
  • BigOnYa @ BigOnYa:
    I was looking at steaks other day at grocery, can't believe some cuts (angus) are like $25 a pound. Crazyness. Price of good fish is just as bad.
  • BakerMan @ BakerMan:
    when i go to college,what do you guys think i should major?
  • BakerMan @ BakerMan:
    inb4 computer science
  • BigOnYa @ BigOnYa:
    Fake Leg scratching 101
  • K3Nv2 @ K3Nv2:
    IT support you can act like your own farts smell like cherries that way
  • K3Nv2 @ K3Nv2:
    Odin 2s $300 lol no
  • Scarlet @ Scarlet:
    The Mini is even more lol
  • K3Nv2 @ K3Nv2:
    That RG cube is starting to look like the better value price creep option
    +1
  • BigOnYa @ BigOnYa:
    I want a handheld gaming system with a tablet sized screen, like a 8 or10" screen, with controllers that can detach like the Switch.
  • BakerMan @ BakerMan:
    @BigOnYa i was legitimately trying to scratch my leg, this is reminding me of that cylinder post
  • Scarlet @ Scarlet:
    I don't see the buzz about a square screen personally. I think there will be a review on the site within a few weeks though if you are interested.
    +1
  • Scarlet @ Scarlet:
    I've put down the money on the Odin 2 Mini since I just love that Vita form factor. Loved the power of the Odin 2 but the size always put me off, this one seems exactly what I've been wanting.
  • K3Nv2 @ K3Nv2:
    I don't care about the square screen it's just nice to hold something you don't have to stretch your arms a foots length
  • K3Nv2 @ K3Nv2:
    All these things expecting to be super huge is overrated just run a type c cable to your TV if you want a big display or in my case screen mirror it
  • BigOnYa @ BigOnYa:
    On the go tho I meant, I use my 10" tablet and a Bluetooth controller for retro gaming while sitting on my porch or on long car rides sometimes. Easier on my eyes than the Switch screen.
  • K3Nv2 @ K3Nv2:
    My point is we already have enough shit with big displays having something pocketable with up to ps2 would be fine on the go
    K3Nv2 @ K3Nv2: My point is we already have enough shit with big displays having something pocketable with up to...