Glitch City Laboratories Archives

Glitch City Laboratories closed on 1 September 2020 (announcement). This is an archived copy of a thread from Glitch City Laboratories Forums.

You can join Glitch City Research Institute to ask questions or discuss current developments.

You may also download the archive of this forum in .tar.gz, .sql.gz, or .sqlite.gz formats.

Emulation & ROM Hacking

English Pokémon FireRed and LeafGreen (USA v1.1/PAL) "walk through walls" code - Page 1

English Pokémon FireRed and LeafGreen (USA v1.1/PAL) "walk through walls" code

Posted by: SatoMew
Date: 2015-02-14 11:04:13
I'm sure a lot of people have searched the Web for this and gave up since the same code that was always provided didn't work. This is because it's for the English version 1.0 and does not work in version 1.1 of the American release, which is also the PAL release.

The code for v1.0:
509197D3 542975F4
78DA95DF 44018CB4


This is an Action Replay MAX v3/v4 code. Using GameHacking.org's GBA Code Converter, I figured out what it does. It changes the value of address 0x08058E2E from 0x20C0 to 0x2100. You can confirm this using the memory viewer in VBA or VBA-M.

I then tried to find the equivalent address in FireRed/LeafGreen v1.1, and it's 0x08058E42. Its default value is unchanged (0x20C0) and setting it to 0x2100 enables the behavior of "walking through walls".

But now I don't know how to generate a proper code for v1.1. Can anyone help?

Re: English Pokémon FireRed and LeafGreen (USA v1.1/PAL) "walk through walls" code

Posted by: Torchickens
Date: 2015-02-14 17:15:26
Cool, I didn't know of that converter. It looks pretty useful. Thanks for sharing.

Do you know of some kind of converter for making DS Action Replay codes from DeSmuME internal addresses as well? I know there is something called the NDS Trainer Toolkit for a physical DS but you have to buy it. Though I should probably buy it, it is a bad idea to use DS emulators sometimes (feels much better to use the actual DS and DS emulators can be slow/have noticeable errors).

Closer to the topic, I will look into it even though I am not experienced with GBA hacking.

Edit: Can you tell me the exact steps you did to find out what 509197D3 542975F4 78DA95DF 44018CB4 does please?

English Pokémon FireRed and LeafGreen (USA v1.1/PAL) "walk through walls" code

Posted by: SatoMew
Date: 2015-02-14 17:31:29

Cool, I didn't know of that converter. It looks pretty useful. Thanks for sharing.


You're welcome. I found it on this post from a Project Pokémon thread.


Do you know of some kind of converter for making DS Action Replay codes from DeSmuME internal addresses as well? I know there is something called the NDS Trainer Toolkit for a physical DS but you have to buy it. Though I should probably buy it, it is a bad idea to use DS emulators sometimes (feels much better to use the actual DS and DS emulators can have errors).


I don't but I made a quick search and found this thread on the DeSmuME forums where someone asks how to convert raw/internal codes from DeSmuME into Action Replay codes.


Closer to the topic, I will look into it even though I am not experienced with GBA hacking.


Thank you! :)


Edit: Can you tell me the exact steps you did to find out what 509197D3 542975F4 78DA95DF 44018CB4 does please?


In the Format dropdown menu, select "Action Replay MAX (v3/v4)" and tick "Encrypted". Then paste the code and click "Process Code". The page should then load the results.

Re: English Pokémon FireRed and LeafGreen (USA v1.1/PAL) "walk through walls" code

Posted by: Torchickens
Date: 2015-02-14 18:10:28
Thanks.

Oh, it seems like for Nintendo DS you may be able to just put the RAW address in the code, like 0XXXXXXX YYYYYYYY where X represents the address and Y represents the value. I will test that out. (e.g. one line in a wild Bulbasaur code for US HeartGold is 02247D90 00000XXX this begs a question what would happen if you used a value even greater than FFFF because code-type 0 apparently supports 32-bit values (FFFFFFFF max).

[quote="Trainer Toolkit for Nintendo DS User Manual"]
0XXXXXXX YYYYYYYY 32bit write of YYYYYYYY to location:
(xxxxxxx + offset)
1XXXXXXX ????YYYY 16bit write of YYYY to location:
(XXXXXX + offset)
2XXXXXXX ??????YY 8bit write of YY to location:
(XXXXXXX + offset)


I also found documentation about code types other than 0-2, like 3 ("if less than") on that PDF. Sounds fun how it can be a mini programming language itself.

English Pokémon FireRed and LeafGreen (USA v1.1/PAL) "walk through walls" code

Posted by: SatoMew
Date: 2015-02-14 18:25:28
No problem. And that's some nice info, I'll have to check it out sometime.

On a slightly unrelated note, HackMew did an excellent work in explaining why you can't run inside buildings in the Generation III games and provided details on how to fix that. You can look at his findings here.

In FireRed v1.1, the address is not 0x080BD494. After messing around a bit, I discovered the address (0x080BD4A8). Here's an aniGIF of the result (my apologies for it being slightly slowed down, I exported the AVI to GIF in VirtualDub but I haven't learned how to configure it yet).

[img]http://i.imgur.com/dlRr8u0.gif[/img]

Re: English Pokémon FireRed and LeafGreen (USA v1.1/PAL) "walk through walls" code

Posted by: Torchickens
Date: 2015-02-14 18:56:27

On a slightly unrelated note, HackMew did an excellent work in explaining why you can't run inside buildings in the Generation III games and provided details on how to fix that. You can look at his findings here.

In FireRed v1.1, the address is not 0x080BD494. After messing around a bit, I discovered the address (0x080BD4A8). Here's an aniGIF of the result (my apologies for it being slightly slowed down, I exported the AVI to GIF in VirtualDub but I haven't learned how to configure it yet).
[img]http://i.imgur.com/dlRr8u0.gif[/img]


That's pretty interesting. Your GIF isn't showing up for me within this thread, but I can see it when I view the link.

I got a working code!

167DCBA7 F604FFD2
78DA95DF 44018CB4

I selected ROM Patch (because the 80 indicates it's in the ROM. Notice that 0x8000000 is 0x0000000 in a hex editor) with a value of 2100 (and 0021 also works, I am unsure whether 2100 would write to how it appears in memory viewer; 0021 or not). I was unaware that Action Replay could make temporary patches to the ROM like Game Genie.

Edit on March 1st 2015: Changed GIF URL per request.

English Pokémon FireRed and LeafGreen (USA v1.1/PAL) "walk through walls" code

Posted by: SatoMew
Date: 2015-02-14 19:00:13

I got a working code!

167DCBA7 F604FFD2
78DA95DF 44018CB4

I selected ROM Patch (because the 80 indicates it's in the ROM. Notice that 0x8000000 is 0x0000000 in a hex editor) with a value of 2100 (and 0021 also works, I am unsure whether 2100 would write to how it appears in memory viewer; 0021 or not). I was unaware that Action Replay could make temporary patches to the ROM like Game Genie.


Wow, thank you~! :)

Re: English Pokémon FireRed and LeafGreen (USA v1.1/PAL) "walk through walls" code

Posted by: Torchickens
Date: 2015-02-14 19:16:33
You're welcome. :)

Now we have a better idea how to make non-Codebreaker codes for Game Boy Advance. I hope that tool doesn't go offline.

English Pokémon FireRed and LeafGreen (USA v1.1/PAL) "walk through walls" code

Posted by: SatoMew
Date: 2015-02-14 19:20:52
I think it's still important to find a code that only writes to RAM like the one for v1.0 since you can easily undo the effect by disabling the code, unlike with a ROM patch code.

Nonetheless, here's a ROM patch code for running inside buildings in v1.1:
7580F2ED 37728739
A05A144C 078B0074