• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Staff applications for our PokéCommunity Daily and Social Media team are now open! Interested in joining staff? Then click here for more info!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Other✓] Change "oak" text everywhere

  • 98
    Posts
    9
    Years
    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?
     
    Last edited:
    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.
     
    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).
     
    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.
     
    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 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:
    We just need to change the offset of what she says.
    Spoiler:
    Then you just change the Prof.'s name.
    his can be expanded to any thing in XSE. You just need enough freespace.
     
    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?
     
    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?
     
    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?
     
    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.
     
    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.
     
    Back
    Top