The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Change "oak" text everywhere

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old October 5th, 2015 (1:10 PM). Edited October 13th, 2015 by PokemonValor.
PokemonValor's Avatar
PokemonValor PokemonValor is offline
 
Join Date: Oct 2015
Location: Celadon City, Kanto
Gender: Male
Nature: Lax
Posts: 98
Hey I'm making a Fire red hack but I'm changing professor oak to a new professor. There's some scripts in the game that are like..default/automatic such as when you black out and mom tells you how OAK told her about healing or whatever, and also the option when you access the PC it says oak. What's the best way to go through and change all these instances?
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old October 5th, 2015 (2:43 PM).
Vendily's Avatar
Vendily Vendily is offline
 
Join Date: Aug 2015
Nature: Calm
Posts: 1,604
Quote:
Originally Posted by PokemonValor View Post
Hey I'm making a Fire red hack but I'm changing professor oak to a new professor. There's some scripts in the game that are like..default/automatic such as when you black out and mom tells you how OAK told her about healing or whatever, and also the option when you access the PC it says oak. What's the best way to go through and change all these instances?
Most of these can be done with XSE, you just need to edit the script. Depending on the length, you may need to repoint the whole script with a Hex editor (I recommend HxD).
This post has the offset of the fainting scripts.
To repoint a script with a Hex Editor, you need to search for the reversed form of the offset plus an 80 at the end. So the respawn from home script, which has an offset of 1A8DD8, would have a reverse of D8 8D 1A 80. Just search for all instances of that reverse offset and replace it with the reverse offset of your new script.
Good luck on your ROM hack.
__________________
| VPP Stats

Common Errors (and How to Fix Them) in Essentials
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old October 5th, 2015 (5:50 PM).
PokemonValor's Avatar
PokemonValor PokemonValor is offline
 
Join Date: Oct 2015
Location: Celadon City, Kanto
Gender: Male
Nature: Lax
Posts: 98
Awesome! Thanks a lot. So as for the PC? Do you know how to change that? The option on it is "PROF. OAK's PC". Is that just a script I can change and recompile quick too?
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old October 5th, 2015 (7:13 PM).
Uncommon's Avatar
Uncommon Uncommon is offline
Oozma Kappa
 
Join Date: Jun 2015
Location: Johto
Nature: Careful
Posts: 192
Quote:
Originally Posted by PokemonValor View Post
Awesome! Thanks a lot. So as for the PC? Do you know how to change that? The option on it is "PROF. OAK's PC". Is that just a script I can change and recompile quick too?
All you have to do is use Advance Text and search for "OAK's PC". I believe you should find it used in text scripts at 0x1A5BC6, 0x1A5C2E, and 0x417BD3 (but you should verify those numbers).
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old October 6th, 2015 (6:53 AM).
PokemonValor's Avatar
PokemonValor PokemonValor is offline
 
Join Date: Oct 2015
Location: Celadon City, Kanto
Gender: Male
Nature: Lax
Posts: 98
Awesome thanks a lot guys. So how do you know when you need to repoint?
__________________
Check out our hack, POKEMON VALOR in the Progressing Hacks page!
Always looking for feedback and suggestions.
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old October 6th, 2015 (12:41 PM).
Vendily's Avatar
Vendily Vendily is offline
 
Join Date: Aug 2015
Nature: Calm
Posts: 1,604
Quote:
Originally Posted by PokemonValor View Post
Awesome thanks a lot guys. So how do you know when you need to repoint?
Typically, If what you're typing is more than what was originally there, then you would have to repoint, or it might overwrite something it shouldn't or just fail to compile in XSE.
__________________
| VPP Stats

Common Errors (and How to Fix Them) in Essentials
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old October 6th, 2015 (2:33 PM).
PokemonValor's Avatar
PokemonValor PokemonValor is offline
 
Join Date: Oct 2015
Location: Celadon City, Kanto
Gender: Male
Nature: Lax
Posts: 98
I just wanted to make his name 4 letters long..so hopefully that'll be alright. But so when I searched the offsets, I didn't get what I expected. For 0x417BD3 I got...

Code:
'---------------
#org 0x417BD3
signmsg
comparehiddenvar 0xC9 0xADC0
nop
cmdc9
virtualgotoif 0xC5 0xCA00E7B4
virtualmsgbox 0xD0BFBFFF
virtualbuffer 0xBF 0xBBC6C0FF
comparehiddenvar 0xBF 0xC8C9
What do I go to next to change his name?
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old October 6th, 2015 (6:14 PM).
Vendily's Avatar
Vendily Vendily is offline
 
Join Date: Aug 2015
Nature: Calm
Posts: 1,604
Quote:
Originally Posted by PokemonValor View Post
I just wanted to make his name 4 letters long..so hopefully that'll be alright. But so when I searched the offsets, I didn't get what I expected. For 0x417BD3 I got...

Code:
'---------------
#org 0x417BD3
signmsg
comparehiddenvar 0xC9 0xADC0
nop
cmdc9
virtualgotoif 0xC5 0xCA00E7B4
virtualmsgbox 0xD0BFBFFF
virtualbuffer 0xBF 0xBBC6C0FF
comparehiddenvar 0xBF 0xC8C9
What do I go to next to change his name?
I don't know about the offsets Uncommon gave but If you were to go to 0x1A8DD8, The mother would repeatedly mention his name.
Spoiler:
Code:
//---------------
#org 0x1A8DD8
lockall
textcolor 0x1
applymovement 0x1 0x81A75ED
waitmovement 0x0
msgbox 0x81A5FDF MSG_KEEPOPEN //"MOM: [player]!\nWelcome home.\pIt ..."
call 0x81A6C26
msgbox 0x81A6046 MSG_KEEPOPEN //"MOM: Oh, good! You and your\nPOKéM..."
fadedefault
releaseall
end

//---------------
#org 0x1A6C26
fadescreen 0x1
fanfare 0x100
waitfanfare
special 0x0
fadescreen 0x0
return


//---------
// Strings
//---------
#org 0x1A5FDF
= MOM: [player]!\nWelcome home.\pIt sounds like you had quite\nan experience.\pMaybe you should take a quick\nrest.

#org 0x1A6046
= MOM: Oh, good! You and your\nPOKéMON are looking great.\pI just heard from PROF. OAK.\pHe said that POKéMON's energy is\nmeasured in HP.\pIf your POKéMON lose their HP,\nyou can restore them at any\lPOKéMON CENTER.\pIf you're going to travel far away,\nthe smart TRAINER stocks up on\lPOTIONS at the POKéMON MART.\pMake me proud, honey!\pTake care!


//-----------
// Movements
//-----------
#org 0x1A75ED
#raw 0x2D //Face Down (Delayed)
#raw 0xFE //End of Movements

We just need to change the offset of what she says.
Spoiler:
Code:
//---------------
#org 0x1A8DD8
lockall
textcolor 0x1
applymovement 0x1 0x81A75ED
waitmovement 0x0
msgbox 0x81A5FDF MSG_KEEPOPEN //"MOM: [player]!\nWelcome home.\pIt ..."
call 0x81A6C26
msgbox 0x8(New Offset) MSG_KEEPOPEN 
fadedefault
releaseall
end

//---------------
#org 0x1A6C26
fadescreen 0x1
fanfare 0x100
waitfanfare
special 0x0
fadescreen 0x0
return


//---------
// Strings
//---------
#org 0x1A5FDF
= MOM: [player]!\nWelcome home.\pIt sounds like you had quite\nan experience.\pMaybe you should take a quick\nrest.

#org 0x(New Offset)
= MOM: Oh, good! You and your\nPOKéMON are looking great.\pI just heard from PROF. OAK.\pHe said that POKéMON's energy is\nmeasured in HP.\pIf your POKéMON lose their HP,\nyou can restore them at any\lPOKéMON CENTER.\pIf you're going to travel far away,\nthe smart TRAINER stocks up on\lPOTIONS at the POKéMON MART.\pMake me proud, honey!\pTake care!


//-----------
// Movements
//-----------
#org 0x1A75ED
#raw 0x2D //Face Down (Delayed)
#raw 0xFE //End of Movements

Then you just change the Prof.'s name.
his can be expanded to any thing in XSE. You just need enough freespace.
__________________
| VPP Stats

Common Errors (and How to Fix Them) in Essentials
Reply With Quote
  #9   Link to this post, but load the entire thread.  
Old October 6th, 2015 (6:20 PM).
PokemonValor's Avatar
PokemonValor PokemonValor is offline
 
Join Date: Oct 2015
Location: Celadon City, Kanto
Gender: Male
Nature: Lax
Posts: 98
Oh okay so that's how I would have to change the offsets if that's ever a problem. Well I was able to change his name when Mom is talking to you, but now I'm onto the PC where the option is "PROF. OAK's PC". And I can see that the offsets Uncommon gave me were right, because in the hex viewer in XSE I could see the strings...but now how do I edit those?
__________________
Check out our hack, POKEMON VALOR in the Progressing Hacks page!
Always looking for feedback and suggestions.
Reply With Quote
  #10   Link to this post, but load the entire thread.  
Old October 6th, 2015 (6:35 PM).
Uncommon's Avatar
Uncommon Uncommon is offline
Oozma Kappa
 
Join Date: Jun 2015
Location: Johto
Nature: Careful
Posts: 192
Quote:
Originally Posted by PokemonValor View Post
Oh okay so that's how I would have to change the offsets if that's ever a problem. Well I was able to change his name when Mom is talking to you, but now I'm onto the PC where the option is "PROF. OAK's PC". And I can see that the offsets Uncommon gave me were right, because in the hex viewer in XSE I could see the strings...but now how do I edit those?
I only gave the offsets as a check - those are the offsets for the text itself, not the script with the text, which XSE can’t open as a script. It sounds like what you’re looking for is the offset for the script like Vendily gave. Problem is I don’t know how to find these for events that aren’t editable in A-Map, like the PC.

The best way I know of to edit these is to search for “OAK’s PC" in Advance Text. You can edit the text right there and have A-Text repoint it for you without having to deal with the script at all.

I suspect you can also convert the text you want to hex, then search for it in a hex editor, but I’m not having any success doing that at the moment. Does anyone else want to chime in on that?
Reply With Quote
  #11   Link to this post, but load the entire thread.  
Old October 6th, 2015 (6:47 PM).
PokemonValor's Avatar
PokemonValor PokemonValor is offline
 
Join Date: Oct 2015
Location: Celadon City, Kanto
Gender: Male
Nature: Lax
Posts: 98
Ah okay so I tried it in advanced text and I change "OAK" to "VINE" (the new professor which is unfortunately 1 character longer) and it says it has to repoint so I say yes but then I get "The text pointer wasn't found. The text can't be edited". But if I change it to "BOB", so without repointing, it works okay. So why won't it repoint?
__________________
Check out our hack, POKEMON VALOR in the Progressing Hacks page!
Always looking for feedback and suggestions.
Reply With Quote
  #12   Link to this post, but load the entire thread.  
Old October 6th, 2015 (7:01 PM).
Crizzle's Avatar
Crizzle Crizzle is offline
Legend
 
Join Date: Apr 2015
Location: USA
Age: 28
Gender: Male
Posts: 943
Quote:
Originally Posted by PokemonValor View Post
Ah okay so I tried it in advanced text and I change "OAK" to "VINE" (the new professor which is unfortunately 1 character longer) and it says it has to repoint so I say yes but then I get "The text pointer wasn't found. The text can't be edited". But if I change it to "BOB", so without repointing, it works okay. So why won't it repoint?
Don't repoint with advance text. Never repoint with advance text.
__________________
Pokemon Savage Silver
Check out the crappy hacks that I made:

Credit to Corazon(or whatever he calls himself now) for banner.
Pokemon CAWPS
Pokemon Outlaw
Reply With Quote
  #13   Link to this post, but load the entire thread.  
Old October 6th, 2015 (7:05 PM).
Uncommon's Avatar
Uncommon Uncommon is offline
Oozma Kappa
 
Join Date: Jun 2015
Location: Johto
Nature: Careful
Posts: 192
Quote:
Originally Posted by PokemonValor View Post
Ah okay so I tried it in advanced text and I change "OAK" to "VINE" (the new professor which is unfortunately 1 character longer) and it says it has to repoint so I say yes but then I get "The text pointer wasn't found. The text can't be edited". But if I change it to "BOB", so without repointing, it works okay. So why won't it repoint?
Took a while to recreate but I think I know what happened. When you search for “OAK’s PC”, make sure you click the checkbox for “Go to beginning of text” (before hitting Search). Write that result to the INI and then edit and save/repoint it. It needs to repoint the whole text string, not just the words you want.
Reply With Quote
  #14   Link to this post, but load the entire thread.  
Old October 6th, 2015 (7:14 PM).
PokemonValor's Avatar
PokemonValor PokemonValor is offline
 
Join Date: Oct 2015
Location: Celadon City, Kanto
Gender: Male
Nature: Lax
Posts: 98
HALLELUJAH. Got it working, thanks a lot. Plus I can use this method to change things like when you try and ride your bike inside and oak flips on you. I appreciate it
__________________
Check out our hack, POKEMON VALOR in the Progressing Hacks page!
Always looking for feedback and suggestions.
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

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 -8. The time now is 9:09 AM.