PHO - Pokémon Hackers Online
Go Back   PHO - Pokémon Hackers Online > Hacking Suite > Resources and Tutorials > Generation 3 (Traditional)

Notices

Generation 3 (Traditional) Traditionally, Generation 3 is hacked using tools, hex editors and patches. This is for you if you do that.

User Tag List

Reply
 
Thread Tools Display Modes
Old 1st March 2018, 10:59 PM   #1
Diegoisawesome
Oh god the bees
Ex-Staff
 
Diegoisawesome's Avatar
 
Join Date: Jul 2013
Location: :noitacoL
Age: 21
Posts: 60
Diegoisawesome
Default There, I Fixed It: Game Freak Presents in FireRed V1.0

Game Freak Presents in FireRed V1.0


What are you even talking about? Game Freak Presents?


In V1.0 of FireRed and LeafGreen, there's supposed to be text that appears during the Game Freak introduction that says "PRESENTS", making it say, in all, "GAME FREAK PRESENTS". However, the developers forgot a section of code that loads the text to the screen, though it's present in the OAM tilespace. This was rectified in V1.1.

The fix


Compile this routine into any place in the ROM:

Code:
.text .align 2 .thumb .thumb_func .global gamefreakpresents start: ldr r0, [r6, #0x14] ldr r3, branch1 bl bx_r3 bl main strh r4, [r6, #0x12] ldr r3, return bx_r3: bx r3 main: push {r4-r7,lr} mov r4, #0x0 ldr r6, mem1 mov r5, #0xD0 lsl r5, r5, #0xF retry: asr r1, r5, #0x10 ldr r0, addr1 mov r2, #0x6C mov r3, #0x5 push {r4} ldr r4, branch2 bl bx_r4 pop {r4} lsl r0, r0, #0x18 lsr r0, r0, #0x18 lsl r2, r0, #0x4 add r2, r2, r0 lsl r2, r2, #0x2 add r2, r2, r6 ldrh r3, [r2, #0x4] lsl r0, r3, #0x16 lsr r0, r0, #0x16 lsl r1, r4, #0x2 add r0, r0, r1 ldr r7, val1 add r1, r7, #0x0 and r0, r1 ldr r7, val2 add r1, r7, #0x0 and r3, r1 orr r3, r0 strh r3, [r2, #0x4] mov r0, #0x80 lsl r0, r0, #0xE add r5, r5, r0 add r4, #0x1 cmp r4, #0x1 ble retry pop {r4-r7} pop {r0} bx r0 bx_r4: bx r4 .align 2 mem1: .word 0x0202063C addr1: .word 0x0840BCFC branch1: .word 0x08007281 branch2: .word 0x08006F8D return: .word 0x080ECE71 val1: .word 0x000003FF val2: .word 0xFFFFFC00
Write down the offset you assemble this to.

Now, at 0xECE1C in the hex editor, write 00480047XXXXXX080000, replacing XXXXXX with the reversed offset+1 to the routine you inserted earlier. That's it!

The result



Yessir, this is V1.0!

That's really all there is to it. Now you can actually present the game to your fans!

Last edited by Alice; 2nd March 2018 at 10:36 PM.
Diegoisawesome is offline   Reply With Quote
Likes Adrevi, Lunos liked this post
Sponsored Links
Reply

Tags
firered, fixed, freak, game, presents, v10, [Tutorial]

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:35 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc. User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo.
Pokémon Hackers Online (PHO) is in no way affiliated with or endorsed by Nintendo LLC, Creatures, GAMEFREAK inc,
The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast.
All forum/site content (unless noted otherwise) and site designs are © 2006-2013 Pokémon Hackers Online (PHO).
Green Charizard Christos TreeckoLv100

"Black 2" by ARTPOP. Kyurem artwork by XOUS.

no new posts