+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  Final Fantasy IV DS hacking: Script, Dialogue, and Tabling question
Pages: [1]
Author Topic: Final Fantasy IV DS hacking: Script, Dialogue, and Tabling question  (Read 2 times)
xkappax
Guest
« on: August 10, 2008, 12:49:25 pm »

Hello everyone.

I have decided, as a personal project, to try to hack the script of Final Fantasy IV DS. While this is very much a personal project, it's something I'm really serious about and really want to do. I am trying to make some edits to the script in final fantasy iv ds, and i've run into some snags. I am changing some small things like the characters names, since I grew up in an era where naming your character was very much commonplace.

I am not really a total n00b, I have a little bit of rom hacking experience. Coupled with my obsessive compulsiveness, I can't really let this rest until I figure it out.
That being said, I have uploaded a few screens of what I did, what i'm trying to do, and where I'm stuck.

Basically, I've got the characters renamed already on the menu screen and battle screen (please don't laugh at my names, Karl is a character from my comics, and Sara is my name)

I also have found some of the text, which would be the "speculation" text. Everytime you go to your menu on the world map, your character has a little thought bubble, and I was able to edit these no problem.

This is where the problem comes in. I have located what I believe to be the text. I cannot figure out if I need to be making a table, exploring compression, or what.

This is a shot of a file from the game open in a hex editor, and this is where I believe the script is located. The file is called CAST_EVENT_MSD.dat and it is located in the N folder of the rom (probably for "north america"). If you look at the top line, you can see the name "Cecil" very clearly.

I can view bits and pieces of the text throughout in what appears to be unicode, but then there are just garbled symbols, too. and this worries me as well. At the top of this file there is this:

to me this looks like this dat files is calling in files that I cannot find anywhere else. Which leads me to believe that this is some sort of compressed file, but when I look at it in the hex editor, I cannot tell if this is compressed or not. It doesn't look like the examples that i've read about in the countless tutorials that I've read.

Anyway, all of that being said, I was wondering if someone can shed some light on where I need to go from here. Should I be tabling this? Is this compressed? basically what should I be doing to get this script to be to the point where I can edit it?

thank you all for your help/advice/wisdom in advance.
« Last Edit: August 30, 2008, 06:54:54 am by xkappax »
Deathlike2
Guest
« Reply #1 on: August 10, 2008, 01:37:53 pm »

It sounds to me that the area you've modified is not what you want. What you would have to do is trace what Namingway actually modifies to get a complete set of stuff you need to modify.
Ryusui
Guest
« Reply #2 on: August 10, 2008, 01:43:36 pm »

It might be that the names are "hard-coded" into the script. That is, you might have to extract the game's script, replace all the instances of every name, and reinsert it.

Oh, and Deathlike2: the point is, in this version Namingway doesn't modify anything, since the game uses voice acting. When you first meet Namingway, he offers to change Cecil's name, but no matter what you enter in the resulting name entry screen, Namingway discovers he can't rename Cecil and goes off to find a new purpose in the world, setting off an all-new sidequest.
xkappax
Guest
« Reply #3 on: August 10, 2008, 02:00:02 pm »

Thank you for the responses. I think we're getting somewhere. When you say "extract the script"... what exactly do you mean? I have extracted many files from the rom and I'm able to edit certain aspects of it using a hex editor ... for example, I was able to change Cecil's name to "Karl" (yeah, i know it's weird, but i like his name as that) on the battle screens. It does not change in the script though, and I don't know what file I am supposed to be looking at in order to do this.

Does anyone know a utility that will allow me to take the script out and then make these changes and then reinsert it? I am kinda new to all of this. I don't really understand tables and the like, but I think if someone could point me in the right direction, I could possibly go from there.

If anyone needs more clarification on what I am trying to do, please PM me or something and I can give you an even more detailed account if need be.
Deathlike2
Guest
« Reply #4 on: August 10, 2008, 02:22:06 pm »

Quote from: Ryusui on August 10, 2008, 01:43:36 pm
It might be that the names are "hard-coded" into the script. That is, you might have to extract the game's script, replace all the instances of every name, and reinsert it.

It wouldn't be the first or the last of that happening...

Quote
Oh, and Deathlike2: the point is, in this version Namingway doesn't modify anything, since the game uses voice acting. When you first meet Namingway, he offers to change Cecil's name, but no matter what you enter in the resulting name entry screen, Namingway discovers he can't rename Cecil and goes off to find a new purpose in the world, setting off an all-new sidequest.

Methinks someone (the devs) tried a little too hard to make something out of nothing.... oh well.
Ryusui
Guest
« Reply #5 on: August 10, 2008, 02:41:59 pm »

It's an in-joke. All previous versions of FFIV featured Namingway, who allowed you to rename your party members as you see fit. Rather than remove him from this version, they simply gave him a different purpose...a whole bunch of different purposes, to be precise. Every time you meet him he's got a different name and a different job: Mappingway the cartographer, Livingway the naturalist, Recordingway the journalist, etc.. Each time you meet him, though, he adds another new feature to the game: meeting Mappingway gives you the magic map, which gives you prizes for filling out 100% of every area, Livingway unlocks the Bestiary through the Fat Chocobo, and likewise for Recordingway and the Movie Viewer.

Anyway. The game's script is likely buried somewhere in all those files; you'll need to find it and modify it.
xkappax
Guest
« Reply #6 on: August 10, 2008, 02:46:07 pm »

I have a bunch of files that are .mds or .msd files. These seem to contain much of the menu text. I cannot for the life of me find the script though. I was able to find the battle message script, and I changed that too. ...

could it possibly be compressed, and if so, what do I do about this?

I just radiate an aura of not knowing what I'm doing, don't I?

I did some reading up on tables and the like, and I can't really make heads or tails out of it. I thought that was mainly for translation purposes anyway.

once again, any help is much appreciated.
xkappax
Guest
« Reply #7 on: August 16, 2008, 07:27:05 am »

I have edited my first post showing screen shots of what I have completed and what I am trying to/intend to do eventually.

It would be greatly appreciated if you could read it and let me know what you think as far as the direction I should proceed in next.

thanks a lot!
Kajitani-Eizan
Guest
« Reply #8 on: August 16, 2008, 09:56:06 am »

unfortunately, i'm not sure i can help much with the hacking endeavor, but just wanted to say i love The Sword That Cuts Things... Albonshasta introduced it to me a few years ago Tongue
xkappax
Guest
« Reply #9 on: August 17, 2008, 10:31:58 am »

oh, thank you so much for your kind words about the animation. ^_^

as you can see, art imitates life, and as Kitsune doesn't like that he can't name his characters in video games anymore... neither do I.

In romhacking news: I got the script out of the game and edited it, but now I have NO idea how to get it back in. Getting the script out was extremely simple, actually, but recompressing it is turning out to be ridiculous, because I don't think the data before the script is compressed, however the script is, which is really weird.

I will try to post some more screen shots later if I can get them.
xkappax
Guest
« Reply #10 on: August 17, 2008, 11:40:03 am »

all right, we figured this out!
« Last Edit: August 30, 2008, 06:53:42 am by xkappax »
Pages: [1]  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC