PDA

View Full Version : [Tutorial] Editing Fire Red's Intro Text Made Easy


metapod23
March 7th, 2010, 01:01 PM
Before reading:
There's an even easier fix that's been brought to my attention. Click the "Special Dialog" box in A-Text when editing the intro dialogue. This should fix any problems. If for some reason it doesn't, proceed to my more complicated solution. :)

I hope at least this thread's existence will make some people's lives a lot easier when it comes to the intro text, though. :)

On with the probably pointless rest of the thread:

This thread is for those who have had the same problem I did when editing the intro text to Fire Red - the whole "In the world which you are about to enter" stuff. If I'm the only one who's had this problem, then just ignore this thread.

Tools Needed
Advance Text
Hex Workshop
XSE (optional, but helpful)

The problem I'm talking about is having Fire Red's intro text dialogue cut off after two lines with that little flat arrow showing up afterward after you've tried to edit the text in Advance-Text. For instance, if I wanted to change the first page of the intro text to:

"Hi, welcome to my hack!
I hope you enjoy playing it, because
it's really really fun!

Don't you think it will be fun to play?
Well, I hope you do!
If you do, please let me know,
because I worked really hard on it!"

I would go into A-Text, search for the original text, "write to INI" and change it like so:

http://img641.imageshack.us/img641/4672/textedit1.png

I'd click "Save Text" and that would be that, right? Nope! Because after finding the text and replacing it with what I want, it looks fine in A-Text, but when I start up the game it looks like this:

http://img690.imageshack.us/img690/3308/textedit2.png

Pretty frustrating (for me anyway)! So what's the deal? Well, it has to do with the fact that, for whatever reason, the intro text doesn't like to use \l and \p to separate lines of text. It only likes to use \n! Weird, huh?

As you might know, A-Text automatically converts the codes for how we separate the lines. So once \n is used, the next line separation will be \l, because that's the way it does it in game. But it just won't work for the intro text! But don't worry, there's a fairly simple solution using Hex Workshop. But first thing's first. Let's write the text in a way that we can edit it simply in Hex Workshop.

We can leave it basically unchanged except for one small difference. Whenever you would want to start a new paragraph with \p, instead of hitting return/enter twice to go to a new paragraph in A-Text, put a space and hit return once:

http://img341.imageshack.us/img341/1637/textedit3.png

^ See how I did it there? This is done to reserve the right amount of space we'll need, since we'll only be using \n for the intro. Thus, instead of having \p separate out paragraphs, we'll have to use /n/n. Got it?

Now that you've saved the text in A-Map the right way, it's time to edit in Hex Workshop. Open up the Rom in Hex Workshop and go to offset 0x1C5A04:

http://img246.imageshack.us/img246/9775/textedit4.png

Now this is where the intro text begins, but I highly recommend using XSE's built-in Hex Viewer to find the few #s you need to edit, because it shows you what the numbers mean in english!

http://img535.imageshack.us/img535/6632/textedit5.png

^ See, that's much easier to follow. See on the right side where there's a period after a word? That's standing in for the \p or \l or \n. So we find the one we want to edit. In my example, there's a period right after "because" that's marking the line change. If we click on it, XSE tells us the offset where it's located, so we can just navigate to that in Hex Workshop.

Once we find it in Hex Workshop, it's time to change it from \l to \n. All you really need to know for this is that, in Hex:

\n = FE
\l = FA
a space = 00

\p is FB, but if you followed this tut, you won't have that in your text script. So navigate to the # you want to replace in Hex Workshop. For a line space it will say FA. We need to change that to FE, like so:

http://img517.imageshack.us/img517/1563/textedit6.png

So now I've just changed the line spacing after the word "because" from \l to \n! So let's test it in the game. We boot up the game and it looks like this:

http://img532.imageshack.us/img532/7636/textedit7.png

Success! Another line of text! But now it's time to change the part where we have a paragraph instead of a line break. For paragraphs, we need to have FE twice. This is why I had you put a space and a regular line break before. So the code in Hex Workshop after "really fun!" will be 00 FA. We need to change that to FE FE, like so:

http://img411.imageshack.us/img411/8885/textedit8.png

Save and test it in the game, and:

http://img121.imageshack.us/img121/1506/textedit9.png

It worked! And so you just follow this process for all the lines breaks until you have this:

http://img517.imageshack.us/img517/8237/textedit10.png

And so on with the other two pages of text. This way, with only some minor Hex Workshop editing, you can write your intro dialogue to Fire Red in A-Text and not have to worry about it not showing up! I hope somebody finds this tutorial useful, as I have found this the best and easiest method that I know of to change the intro text properly.

Team Rocket's Raichu
March 8th, 2010, 03:24 PM
Wow, this seems a little hard, but useful. Thank you.

metapod23
March 8th, 2010, 04:54 PM
Wow, this seems a little hard, but useful. Thank you.

Haha, well there goes the thread title! But this was easier for me than, say, trying to go into Hex Workshop and edit the text letter by letter, which is the only other way I know of to do this. :)

Also, I might have a tendency to make things sound more complicated than they really are ...

universalconsole
March 9th, 2010, 12:53 PM
I wish i wrote this
dang!
thanks alot
really helped

diegoisawesome
March 9th, 2010, 04:10 PM
I'm pretty sure that ticking the 'Special Dialog' box under the text will fix any problems you'd have here.

metapod23
March 10th, 2010, 06:43 AM
I'm pretty sure that ticking the 'Special Dialog' box under the text will fix any problems you'd have here.

Oh, well that seemed to make things easier. I wish something in the program explained that ...

This would be a really good solution, though, if that "Special Dialog" box wasn't there! :P

diegoisawesome
March 10th, 2010, 04:12 PM
Oh, well that seemed to make things easier. I wish something in the program explained that ...

This would be a really good solution, though, if that "Special Dialog" box wasn't there! :P
True dat. Even though A-Text as many glitches, it serves well for some editing.
Somebody should make a text editor that is glitch-free and much better to use.

Team Rocket's Raichu
March 10th, 2010, 04:46 PM
True dat. Even though A-Text as many glitches, it serves well for some editing.
Somebody should make a text editor that is glitch-free and much better to use.

Let's see if we can get HackMew to do it, or another major tool maker. HackMew could hack A-Text like (s)he did with UNlz.gba.

diegoisawesome
March 10th, 2010, 04:50 PM
Let's see if we can get HackMew to do it, or another major tool maker. HackMew could hack A-Text like he did with UNlz.gba.
HackMew's a boy. XD
Anyways, maybe he'll do it, but maybe it's just too much of a tool used by lazy hackers to do anything with.

Team Rocket's Raichu
March 10th, 2010, 05:13 PM
HackMew's a boy. XD
Anyways, maybe he'll do it, but maybe it's just too much of a tool used by lazy hackers to do anything with.

I sent him a PM saying something like this. It is similar not the same though.

HackMew could you make or hack A-Text? A-Text is full of bugs. You may think it is a lazy way out of scripting, but there is somethings you can't make scripts for. Example: The text Oak says at the beginning.

Thank you for your time. :)

colcolstyles
March 10th, 2010, 07:27 PM
HackMew could you make or hack A-Text? A-Text is full of bugs. You may think it is a lazy way out of scripting, but there is somethings you can't make scripts for. Example: The text Oak says at the beginning.

Thank you for your time.

I think that HackMew is already planning a tool that is designed to edit the entire intro. Included in this tool, I assume, will be a way to edit Oak's speech's text.

HackMew's a boy. XD

Correction: HackMew is a man.

diegoisawesome
March 10th, 2010, 07:31 PM
headslap

I meant to say that HackMew is male.
And yeah, I'm guessing that A-Intro will have that in, but what about other things?
Ex. text that appears when you faint

colcolstyles
March 10th, 2010, 07:49 PM
And yeah, I'm guessing that A-Intro will have that in, but what about other things?
Ex. text that appears when you faint

Get a hex editor and a table file. It'll take you a couple minutes tops if you know what you're doing.

BLAZEQUAZA
March 15th, 2010, 04:21 PM
Cool, I'm making a Fire Red Hack and no other TUT's worked

U.Flame
May 9th, 2010, 01:01 PM
I can`t believe all I had to do was click "Special Dialog". Now I can put the finishing touches on my Mother`s Day hack and release it by the end of the day! Thanks!

The_Talking_Shellder
May 9th, 2010, 02:53 PM
Thank you for this! I haven't had any success with other tutorials, but this one worked.

PeregrineFig
May 24th, 2010, 12:42 PM
I found an easy way to do this for people like me that can't run Advance Text. What you do is, take the first, say, three words of the page you're editing and convert it into hex, then search for it in a hex editor, now take the offset that text starts at and invert it, (for example 7530EB would be EB 30 75) and add 08 (so in the previous example you end up with EB 30 75 08), then search that in a hex editor. Now, open your ROM in XSE. Start a dynamic script, but don't put any scripting commands in it, just a text string, like this:


#dynamic 0x740000
#org @start
= (The text will go here)


Now, don't put in that equal sign, leave the line blank but have your cursor in that line. Use XSE's text adjuster and type out your intro text page, not exceeding 8 lines in length. Now convert and insert it, and go through and change any \p or \l commands to \n, then add \x at the very end. Hit compile, and invert the offset the same way you did earlier. Now back to the hex editor, edit the offset you found after searching earlier to point to your new text. (So, if the old offset was 7530EB and the new is 768954, replace EB 30 75 08 with 54 89 76 08) Save the changes, and boot it up. I did the edit shown in the thumbnail with this method, as my Vista with heavy user account controls won't run A-Text. I hope this helps someone, and metapod, sorry for writing a full tutorial in your tutorial thread :P

metapod23
May 25th, 2010, 06:07 AM
I found an easy way to do this for people like me that can't run Advance Text. What you do is, take the first, say, three words of the page you're editing and convert it into hex, then search for it in a hex editor, now take the offset that text starts at and invert it, (for example 7530EB would be EB 30 75) and add 08 (so in the previous example you end up with EB 30 75 08), then search that in a hex editor. Now, open your ROM in XSE. Start a dynamic script, but don't put any scripting commands in it, just a text string, like this:


#dynamic 0x740000
#org @start
= (The text will go here)


Now, don't put in that equal sign, leave the line blank but have your cursor in that line. Use XSE's text adjuster and type out your intro text page, not exceeding 8 lines in length. Now convert and insert it, and go through and change any \p or \l commands to \n, then add \x at the very end. Hit compile, and invert the offset the same way you did earlier. Now back to the hex editor, edit the offset you found after searching earlier to point to your new text. (So, if the old offset was 7530EB and the new is 768954, replace EB 30 75 08 with 54 89 76 08) Save the changes, and boot it up. I did the edit shown in the thumbnail with this method, as my Vista with heavy user account controls won't run A-Text. I hope this helps someone, and metapod, sorry for writing a full tutorial in your tutorial thread :P

No prob. :) Hopefully it will help someone.

zZJoennZz
June 2nd, 2010, 08:25 PM
This tutorial help me alot.. ! ^_^

ERROR
June 23rd, 2010, 07:48 AM
never wouldve thought of using advance text for editing the intro text

Darkmoonazara
August 15th, 2010, 11:59 AM
When I use A-text, I can't find that "enter" thing. Do you know why?

Kurapika
February 23rd, 2013, 07:27 PM
When I use A-text, I can't find that "enter" thing. Do you know why?
You need to double click "Introduction". ;)

GoGoJJTech
February 23rd, 2013, 08:07 PM
This helps a lot I could relate to this problem thanks for the help.

Zemekis
May 30th, 2013, 11:51 AM
Hey guys, I've been working on a hack and i'm having trouble editing the intro as well. But not the VERY intro text, I want to cut out the part where you choose between boy/girl. For the purposes of my hack you need to play as male. In metapod23's AshGray, you automatically start as male. How is this done?

TrainerRed009
June 21st, 2013, 07:25 AM
WoW
Great this is very helpfull.
good job metapod23 i very like yor pokemon ash gray.

ChaosBringer41
November 28th, 2013, 04:20 AM
My version of Advance Text doesn't have those little arrows/triangles next to the options. I've got what look like square windows by my options. I can't get that 'enter' option to come up.

I've tried to download Hex Workshop, but whatever computer/internet setup I use, the virus checker active blocks it! (This is both my netbook and public access computers at the local library) The hex editor that I use - I forget the whole name, but it starts with 'Trans' - is new to me, and I am not that great with it so far. i.e. I don't understand all of its functions.

Sniper
November 28th, 2013, 04:41 AM
My version of Advance Text doesn't have those little arrows/triangles next to the options. I've got what look like square windows by my options. I can't get that 'enter' option to come up.

I've tried to download Hex Workshop, but whatever computer/internet setup I use, the virus checker active blocks it! (This is both my netbook and public access computers at the local library) The hex editor that I use - I forget the whole name, but it starts with 'Trans' - is new to me, and I am not that great with it so far. i.e. I don't understand all of its functions.

Try using HxD, if your virus checker blocks it again. I suggest you deactivate it for a while.

Urritguyz
January 31st, 2015, 02:57 AM
Advanced Text won't open FireRed for me. It won't even open a clean version of the ROM. However it does open LeafGreen. Does anyone know why this happens? And are there any alternatives to Advanced Text I can use? I need it because I can't access all of the scripts via AdvancedMap. Any help is appreciated.

Percy
January 31st, 2015, 11:16 PM
Advanced Text won't open FireRed for me. It won't even open a clean version of the ROM. However it does open LeafGreen. Does anyone know why this happens? And are there any alternatives to Advanced Text I can use? I need it because I can't access all of the scripts via AdvancedMap. Any help is appreciated.

Maybe its an issue with the ini for BPRE?

Urritguyz
February 1st, 2015, 10:16 AM
Maybe its an issue with the ini for BPRE?

You were right. Thanks for the help!

Tensano
March 24th, 2015, 04:40 PM
When I open my rom the center box stays blank. Any idea how to fix this?