News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: PS2 Specific Questions (Kindom Hearts Final Mix)  (Read 6511 times)

Xyphox

  • Jr. Member
  • **
  • Posts: 7
    • View Profile
PS2 Specific Questions (Kindom Hearts Final Mix)
« on: November 21, 2011, 12:19:05 am »
I would like to start doing a translation on Kingdom Hearts Final Mix.

I've read about virtual files systems and whatnot. For example, when you open the disc in windows, you only see a few files adding up to 4 megs or so. Obviously not the entire game. When I open the file with a hex editor, I can see where the files are because there are a bunch of zeroes before and after. I'm guessing it's to pad the file to the end of the sector. However, I can't find the file pointer table. What does it normally look like? Is it normally a bunch of hex values that are the actual addresses I can go to in the iso file? I really have no idea what to look for or where I would find it.

My next question is how would I go about changing the font? I see the "TIM2" in quite a few spots when I look through the file, but when I run TextER, it only pulls 3 files. None of them are the font.

I have no problem hacking nes and snes games, so I should be able to handle this. I'm also a computer science graduate, so I plan to make some utilities to make this easier for everyone once I figure it out.

I've done searches and read all of the documents I can find on this site, and I still can't figure it out.

Thanks in advance for any help you can provide.
« Last Edit: September 16, 2012, 02:55:07 pm by Xyphox »

Auryn

  • Hero Member
  • *****
  • Posts: 649
    • View Profile
Re: PS2 Specific Questions
« Reply #1 on: November 21, 2011, 05:29:04 am »
Well, you have to first find out if there is really a Virtual file system or the files just are hidden.
In the first case you have to crack the system to see where the files are actually there.
For the second, you maybe can find some traces of the files in the disc TOC.
Anyway by a look at the DVD one of the above really apply to KHFM.

A font can be in any file and not only in tim(2) files.

I am not very experienced on PS2 hacking but I made some research before answering here.

First of all, I checked the files of KHFM and KH2FM:


As you see, you are missing the big GB files in KHFM but those files are always in company of a nice IDX file as you see in the right part of the pic.
So my guess is that you are missing only one big file named KINGDOM.IMG.
The first thing you have to do is a way to find that file on disc and then extract it or at least make it visible.


To where the file is, well, by a look at the LBA, I would say it's sure to say that it start somewhere after LBA 2478 and the size can be calculated from the image size and the visible size.

The keys for your files are probably inside KINGDOM.IDX but I can't tell you how they work but the KHFM and KH2FM IDXs look like they have the same structure.

What is an help if it not depresses you a bit??
Well when you get that big file in your hands, it's looking like you have to extract/decompress or decrypt it and I can assure you that you will get alot of file out of it (KH2.IMG contains 5000+ files).

Why i know this, because there is an extractor that maybe you can try to misuse when got the KINGDOM.IMG file in your hands. If you can't misuse it, you can at least try to contact the maker so that you can create your own:
http://xeeynamo.blogspot.com/2011/07/kingdom-hearts-ii-final-mix.html#more

In general, PS2 executables are ELF and you got those PRX so if you are not lucky and you not find everything you need in the IDX/IMG file, you probably need extractors/decrypter or decompressors from the net.

Last but not least you will need a program to reinsert the hidden IMG file into the iso (depending on how you extracted it) so maybe Apache (if you modified the TOC to make the file visible) or probably need to program your own tool to reinsert it.

Xyphox

  • Jr. Member
  • **
  • Posts: 7
    • View Profile
Re: PS2 Specific Questions
« Reply #2 on: November 21, 2011, 03:00:43 pm »
Wow, that was very helpful. I didn't realize that KH2 had the same structure as KH1, but with the files visible. I should be able to figure out how to extract the file by comparing the two. I can just write my own program that does that if I need to.

I'll probably be making another post once I figure out how to extract the files from KINGDOM.IMG. My main problem will be figuring out how to change the font.

Thank you so much!

Xyphox

  • Jr. Member
  • **
  • Posts: 7
    • View Profile
Re: PS2 Specific Questions
« Reply #3 on: September 13, 2012, 01:11:57 am »
Alright, I realize I'm bumping an old topic, but I've made some progress. I couldn't quite figure out where KINGDOM.IMG starts. I tried pulling everything after KINGDOM.IDX, but that doesn't seem to match up with the KINGDOM.IDX file. It's so easy to see how the KH2.IDX file lays out where all of the files are in the KH2.IMG file, but I can't figure it out for KINGDOM.IDX.

So.. I just started working on the ISO as a whole and I was successfully able to change some text. The problem now is that unless I want everything to be in upper case, I have to find the font. Would anybody with some experience in this help me out? If I can just change the font, I won't even need to understand the invisible KINGDOM.IMG file. I can just add everything I need to the font by replacing all of the Japanese characters.

Auryn

  • Hero Member
  • *****
  • Posts: 649
    • View Profile
Re: PS2 Specific Questions
« Reply #4 on: September 13, 2012, 03:28:55 am »
I am not up to date with PS2 emulators but if there is one that allow you to dump/see the VRAM, you can probably at least see the font. Maybe you have all you need already on it, you just need the right value and you can maybe evaluate the value by the position in the font.
I would take a look at the SLPS_251.98 with a graphic editor as well.

Xyphox

  • Jr. Member
  • **
  • Posts: 7
    • View Profile
Re: PS2 Specific Questions
« Reply #5 on: September 13, 2012, 02:10:16 pm »
What graphic editor would you suggest? I have win7 x64 and have noticed that a lot of them don't work.

Auryn

  • Hero Member
  • *****
  • Posts: 649
    • View Profile
Re: PS2 Specific Questions
« Reply #6 on: September 13, 2012, 07:18:19 pm »
Because I work mostly with NDS, i would say Cristal Tile but I know that in my laptop win7 x64 has some little problems.
Just try them and eventually run them in compatibility mode in win7

Xyphox

  • Jr. Member
  • **
  • Posts: 7
    • View Profile
Re: PS2 Specific Questions
« Reply #7 on: September 15, 2012, 04:35:00 pm »
I used tile molester and I couldn't find anything in the ram dump or in the SLPS_251.98 file. I'm not sure what else to try. The lower case alphabet definitely isn't there. There are just a few lower case letters to spell out "Playstation". I've tried all of the possible combinations.

I feel stuck, I don't know what else to try. I guess I could just do the whole game in upper case. The only problem is that there are a lot of times where there isn't any room for the entire English word. For example, "ATTACK" won't fit in the menu because the Japanese word for attack is only 4 characters. This would have to be fixed in the font, or I'd have to abbreviate it "ATK" or something, which would be really stupid.

Auryn

  • Hero Member
  • *****
  • Posts: 649
    • View Profile
Re: PS2 Specific Questions
« Reply #8 on: September 15, 2012, 06:04:40 pm »
well, did you see the upper case letters graphically somewhere??
width table is normally not far away.

Xyphox

  • Jr. Member
  • **
  • Posts: 7
    • View Profile
Re: PS2 Specific Questions (Kindom Hearts Final Mix)
« Reply #9 on: September 16, 2012, 02:56:18 pm »
No, I didn't see anything that looked like any kind of graphics. Just a bunch of nothing.

Gedankenschild

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Re: PS2 Specific Questions (Kindom Hearts Final Mix)
« Reply #10 on: September 17, 2012, 01:05:52 pm »
I'd love to play KHFM in English, even in upper case and with 'ATK'! (Might as well turn that into 'HIT' as it's called in the 100 Acre Wood...)

Xyphox

  • Jr. Member
  • **
  • Posts: 7
    • View Profile
Re: PS2 Specific Questions (Kindom Hearts Final Mix)
« Reply #11 on: September 17, 2012, 04:26:14 pm »
Alright, I guess I'll get started on it.

I know there's a FF12 International Patch and a KH2 Final Mix patch. I looked at those and couldn't find the fonts either, so it must be possible.

Maybe once I show some screenshots and actual progress, some people with font editing experience will be more inclined to help me out.

LostTemplar

  • Hero Member
  • *****
  • Posts: 906
    • View Profile
    • au-ro-ra.net
Re: PS2 Specific Questions (Kindom Hearts Final Mix)
« Reply #12 on: September 18, 2012, 03:30:25 am »
I know there's a FF12 International Patch and a KH2 Final Mix patch. I looked at those and couldn't find the fonts either, so it must be possible.

Generally speaking, all is possible, because all you need has to be on the disc, otherwise how would the console know what to display? Games are no black magic after all. But of course, sometimes stuff like the font and script are well hidden, that's true. Especially on CD/DVD-based game systems, because the Japanese developers tend to ignore the optical medium's file system and use their own virtual one.

You should probably look into how the game loads all the data if there's no KINGDOM.IMG. You'll probably have to use a debugger, like Auryin suggested. It's a bit of an advanced topic, but practice makes perfect!

gledson999

  • Jr. Member
  • **
  • Posts: 30
    • View Profile
    • Canal Retro Jogos
Re: PS2 Specific Questions (Kindom Hearts Final Mix)
« Reply #13 on: October 31, 2012, 10:30:25 pm »
I need the table file of the Kingdom Heart 2 Final Mix+ can anyone make a table, I will make a portuguese translation of this game

LostTemplar

  • Hero Member
  • *****
  • Posts: 906
    • View Profile
    • au-ro-ra.net
Re: PS2 Specific Questions (Kindom Hearts Final Mix)
« Reply #14 on: November 01, 2012, 09:47:36 am »
You should try to make one yourself. It's pretty much the easiest part of any translation, so if you can't even make a table it's highly doubtful whether you're able to do the other technical things that will follow.

gledson999

  • Jr. Member
  • **
  • Posts: 30
    • View Profile
    • Canal Retro Jogos
Re: PS2 Specific Questions (Kindom Hearts Final Mix)
« Reply #15 on: November 01, 2012, 12:59:59 pm »
I never had trouble with creating tables, this one has no bad way if you want to try it too bad can be very difficult, I believe that only if a person who is very expert in the  romhacking scene  :-\

Metal Knuckles

  • Full Member
  • ***
  • Posts: 121
  • WE MUST GATTAI
    • View Profile
    • Sonic Retro
Re: PS2 Specific Questions (Kindom Hearts Final Mix)
« Reply #16 on: November 04, 2012, 01:10:07 am »
Have you hit up the guys over at TransGen for assistance? They were making decent progress on translating Re:Chain of Memories before it was announced for release by Square.