Author
|
Topic: Searching for a font and running crazy... (Read 1445 times)
|
NeXaR
Guest
|
|
« on: October 15, 2007, 06:09:39 pm » |
|
Well, first of all, I'm new here. So, hi to all! I'm starting a project to translate Final Fantasy Tactics - The War of the Lions (PSP) into spanish (yeah, they haven't translated that game, even after 2375834 different remakes :banghead: ) The thing is, I can't seem to find the in-game font so I can add the ñ, á, é, etc. Many of you would think "hell, there are no tools to hack PSP graphics yet" (or I think there aren't anyway). The thing is, this game must be an almost direct conversion from the PSX version; I can even extract/ insert TIM images from the "main" game file, like in a PSX game. BUT this game's font is not in TIM format. I have tried all the tile viewer/editors I've found, also with no result. I can find, however, the font used in the main menu (new game/continue and all that) and the one used in the credits, both are TIMs. So, I decided to try to find the font in the PSX version as a starting point. Guess what? I obtained the same result (only difference is, in the PSX version, there are many little files instead of the one big BIN file on the PSP's). The in-game font is hiding from me. Okay, I "guessed" it should be compressed or encrypted or something like that, so I searched for tutorials on that matter. I did found some clues on it, but it involves using debuggers and that kind of things, and I'm totally lost there. I positively know that, having the font, I can finish the rest of the work by myself, as I just finished with PSX's Parasite Eve yesterday (that font was on TIM format ). So, I'm requesting if anyone with the PSX version can help me find the font, because I bet that the one on the PSP version would be exactly the same byte by byte. Thanks for your time and (if I'm lucky enough) for your help. Cheers
|
|
|
|
KC
Guest
|
|
« Reply #1 on: October 16, 2007, 10:26:23 am » |
|
It's not compressed, but stored in a rather weird way. You can find a copy of it in EVENT\\FONT.BIN.
|
|
|
|
NeXaR
Guest
|
|
« Reply #2 on: October 16, 2007, 12:16:05 pm » |
|
I supposed that, but I only see garbage with all the tile viewers I have tried, like these: How do you "see" the actual font there? Or am I skipping something?
|
|
|
|
KC
Guest
|
|
« Reply #3 on: October 16, 2007, 01:02:58 pm » |
|
Well, it's linear, not planar (like tiles). And weird. With tilemolester, it's 1bpp linear and 2-Dimensional, width is 5. It's still not like it's in the game, but you can see that there's a font. I think there were some feidian configurations to convert it, but I don't know where. Maybe it was just in Terminus' files.
|
|
|
|
NeXaR
Guest
|
|
« Reply #4 on: October 16, 2007, 01:57:25 pm » |
|
Thank you very much. I'm now installing PHP in order to try this FEIDIAN thing. If it works, I'll try to find the contents of font.bin in the PSP main file.
|
|
|
|
Gemini
Guest
|
|
« Reply #5 on: October 16, 2007, 02:01:09 pm » |
|
|
|
|
|
NeXaR
Guest
|
|
« Reply #6 on: October 16, 2007, 03:04:28 pm » |
|
I can't seem to make it work... I use windows XP with php last version (5.2.4 I think). I go to command line, navigate to the FEIDIAN folder and enter this: php feidian.php -cr fft,16,138,0xE7614 battle.bin fft.bmp And all I get is this: <?
/* FEIDIAN: The Freaking Easy, Indispensable Dot-Image formAt coNverter Copyright (C) 2003,2004 Derrick Sobodash Version: 0.90a Web : http://feidian.sourceforge.net/ E-mail : d-xiansheng at users dot sourceforge dot net
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (license.txt); if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
error_reporting (E_WARNING | E_PARSE); include("include/subs.php"); include("settings.php");
echo (" ,---------------------------------------------------------------------------. | FEIDIAN: The Freaking Easy, Indispensible, Dot-Image formAt coNverter | | Version 0.90a (C)Derrick Sobodash 2003,2004 | `---------------------------------------------------------------------------' "); set_time_limit(6000000);
if ($argc < 5) { DisplayOptions(); die; } else { if($argv[2] == "i"){ $mode = $argv[1]; $command = $argv[3]; $in_file = $argv[4 ]; $out_file = $argv[5]; $invert = 1; } else { $mode = $argv[1]; $command = $argv[2]; $in_file = $argv[3]; $out_file = $argv[4]; $invert = 0; } }
[font=Verdana][size=20pt][BUNCH OF CODE][/size][/font]
else die(print "ERROR: You did not specify a valid mode!\\n");
function DisplayOptions() { echo <<<OPTIONS FEIDIAN is a generic converter for bitplane and bitmap images. It can work with any tile size (x,y does not matter) and custom tile definitions up to 16 colors. These can be created yourself or downloaded from the FEIDIAN website (http://feidian.sourceforge.net/). Conversions are done between bitplane tiles and bitmap linear graphics (suitable for Paintbrush or Photoshop).
There are many other features supported to aid in game translation and fonr development. For more information, review the readme.txt included with this program. For a brief overview of commands, check commands.txt.
Syntax: feidian.php -[mode] [string] [input] [output]
OPTIONS; }
?> It seem to me like an error executing the php script (maybe the php version should be older?), I have tried changing the values, but it returns the same no matter what. Any thougts? EDIT: Nevermind, tried it in PHP 4.4 and it works
|
|
« Last Edit: October 16, 2007, 05:52:48 pm by NeXaR »
|
|
|
|
NeXaR
Guest
|
|
« Reply #7 on: October 16, 2007, 08:54:23 pm » |
|
I am almost desperate now. I did extract the font (it was there twice, by the way), added the needed characters in the place of some japanese... So I put in some text with the new characters and... the japanese letters that I supposedly replaced show there instead.
I guess I'm done with this project, at least for now... The á é à ó ú were in there already after all, and I could skip ¡ and ¿... but I can't do this without the ñ. It's simply too hard to write relatively long texts in spanish without using it. Damn! (or maybe I could accomplish it on the PSX version...)
|
|
|
|
Kyrael Seraphine
Guest
|
|
« Reply #8 on: October 16, 2007, 09:36:22 pm » |
|
From the link Gemini gave, it would seem that the font is in there thrice, rather than twice. Once in battle.bin, once in world.bin and another time in font.bin. Final Fantasy Tactics (PSX) Tile Size: 10x14 Color Depth: 4 Color Dump Strings: -cr fft,16,138,0xE7614 Comments: The font is in battle.bin, and a copy unused by the game in font.bin Contributed by MaDMaLKaV -revised by D-Xiansheng-
Final Fantasy Tactics Tile Size: 10x14 Color Depth: 4 Color Dump Strings: -cr fft,16,138,0x5B8F8 Comments: In world.bin file there is another copy of the font, used in tutorial and in men?out from the storymode game. Contributed by Alexdp I'm not sure if that helps, though.
|
|
|
|
NeXaR
Guest
|
|
« Reply #9 on: October 16, 2007, 09:52:55 pm » |
|
Yeah, but that also suggest that there is one used in-game, one unused, and one used in the tutorial. I changed two, so assuming one of them is the unused, at least the game or the tutorial should show them, but this logic should be wrong at some point. BTW, the game has 3 "editable" files (by editable, I mean files that are supposed to have what I might need). EBOOT.BIN (I think this is the PSP executable?) BOOT.BIN (the one where I found the two fonts) FFTPACK.BIN (the one with the TIMs inside and all the script text) The rest are either the FMVs or the icon and stuff that show when you highlight the game in the XMB At this point, I guess that the font I'm searching for is in FFTPACK.BIN (as the other things), but "coded" in a somehow different way, so the exact hex values to search for are not the same as in PSX. I would search the entire file in Tile Molester for it, but it says that I don't have enough free memory to do it (file too big maybe?) and refuses to open (even if I have almost thrice the amount it's asking for, perhaps a limitation imposed by the way it's coded?). Thanks anyway
|
|
|
|
Ryusui
Guest
|
|
« Reply #10 on: October 17, 2007, 03:44:31 am » |
|
You could split the file. >_>
|
|
|
|
NeXaR
Guest
|
|
« Reply #11 on: October 17, 2007, 06:47:33 am » |
|
You could split the file. >_>
OUCH!! (me goes to the closest wall and strikes my head against it repeatedly) I don't know how I didn't think in that! (maybe because it were like 4 or 5 AM xD) Anyone know the max file size it can open?
|
|
|
|
Gemini
Guest
|
|
« Reply #12 on: October 17, 2007, 10:08:04 pm » |
|
You could split the file. >_>
Or he could just write a file extractor, which is how hacks are actually supposed to be done when the game uses a virtual file system.
|
|
|
|
NeXaR
Guest
|
|
« Reply #13 on: October 17, 2007, 10:28:37 pm » |
|
Or he could just write a file extractor, which is how hacks are actually supposed to be done when the game uses a virtual file system.
I think you overestimate my skills :laugh: I'm good (or I think so) strictly in translating the actual script. The other things... well, I'm dealing with them because no one is going to do them for me, that's it. BUT... It doesn't mean I wouldn't want to learn how to do such a thing... If you care to explain me... I can code basic console programs in C, but I know nothing of this "virtual file systems".
|
|
|
|
|
|