Qhimm.com Forums

Miscellaneous Forums => Scripting and Reverse Engineering => Topic started by: ignitz on 2009-02-22 00:49:17

Title: [PS2] Final Fantasy X (Compression)
Post by: ignitz on 2009-02-22 00:49:17
I'm here to ask for anyone that have wisdom of compression methods.

In Final Fantasy X have a similar Lempel-Ziv compression, I send a example of 2 files that ".DEC" are descompressed by RAM via emulator and the compressed file.

If anyone can help me I will be grateful.

FFX - Sample Files (http://www.niitsuma.co.cc/arquivos/FFX%20-%20sample%20files.7z)

Dumper that I have maded (This is not the dumper that alrealdy have)
FFX - Dumper V0.1
Download (http://www.niitsuma.co.cc/arquivos/FFX%20-%20Dumper%20v0.1%20-%20IGNITZ.7z)

Prototype of Decompressor - It's work in 90% of cases
FFX Decompressor Prototype V0.2
Download (http://www.megaupload.com/?d=4DWU8JS2)
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: yoshi314 on 2009-02-27 13:10:09
you might ask around romhacking.net .

that sample looks like some variation of RLE at first glance, though.
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: ignitz on 2009-02-28 01:38:15
I make the decompressor, it's a LZ and RLE variant like LZSS, it's easy to make a decompressor, if anyone interst in source code in C, ask.
the code it's big and confused, I will remake the code.
Tnaks for the helping.
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: yoshi314 on 2009-02-28 08:37:56
i'm always curious about implementations of different decompression algorithms, although i'm rather new to the whole topic.

you might either pm it, or post here.
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: ignitz on 2009-03-01 06:24:48
Sure, i sent the source code and the sample files to you email that you have in your perfil.
if anyone wants to view, ask that i will sent.
I need a programmer to make the compressor because I know how to make the decompressor but compressor I don't have experience, and I'm a programmer from a month.
 :mrgreen:

----------------------------------------------------------------------------------
Here the source code with sample of files. DEC is descompressed and DAT is DATA fils compressed.
http://www.megaupload.com/?d=4DWU8JS2

Now I making the other FFXdumper for extracting files from ISO.
It's working, but have to wait 4GB of files and fix some things XD.

----------------------------------------------------------------------------------

Two programs that I maded in the first post
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: yoshi314 on 2009-03-05 09:25:15
i will take a look in a few hours, thanks.
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: ignitz on 2009-03-05 14:41:54
I found a way to decompress Phantasy Star Generations 1 of PS2 too, it's a unique LZ too. Well, I'm haveing luck in these things...
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: koral on 2009-03-05 17:50:00
This is pretty interesting ignitz.
How much do we generally know about the FFX game data? Yaz0r's tools let us view the models and stuff, but he didn't actually share his findings anywhere, did he?
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: yoshi314 on 2009-03-06 06:54:56
Quote
but he didn't actually share his findings anywhere, did he?
i don't recall him posting any docs, or sources. when his ffx tools were around.
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: ignitz on 2009-03-08 19:36:14
There's other extractor that work better than mine.

FFX-2 Universal Extr./Reb.
You can find i these things link.
http://www.alucard.cc/forums/index.php?module=Downloads;catd=72
Have a lot of tools but this is interesting for us.
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: darkvadd7 on 2009-05-28 13:12:52
Do you think it is possible to make an undub version of Final Fantasy X PAL version ?
I meen, extract japanese voices from the original game and put them into the french game ? (same thing for the videos)
It will be great ! :-D
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: The Skillster on 2009-05-28 22:33:57
Cant you just get the International version for that?
That is undubbed with english subs
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: darkvadd7 on 2009-05-29 12:06:51
Yes I can, but I'm french, and I prefer french subs. But the international version is what I want, in french.  :-D

Quote
There's other extractor that work better than mine.

FFX-2 Universal Extr./Reb.
You can find i these things link.
http://www.alucard.cc/forums/index.php?module=Downloads;catd=72
Have a lot of tools but this is interesting for us.

How do you use this tool please ?  :|

Do you think it will be possible with a rebuilder to replace sound files with japanese ones ?
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: ignitz on 2009-08-09 15:36:07
Yes I can, but I'm french, and I prefer french subs. But the international version is what I want, in french.  :-D

Quote
There's other extractor that work better than mine.

FFX-2 Universal Extr./Reb.
You can find i these things link.
http://www.alucard.cc/forums/index.php?module=Downloads;catd=72
Have a lot of tools but this is interesting for us.

How do you use this tool please ?  :|

Do you think it will be possible with a rebuilder to replace sound files with japanese ones ?

Yes, it's possible but not yet included. Can anyone send me a login to edit the wiki of qhimm in section of FFX, maybe someone curious can read the info and continue the file catalog.

The default of catalog can be with my extractor (source code) or the extractor FFX-2 Universal Extr./Reb of forum alucard?
My extractor not completed, still in v0.1.
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: obesebear on 2009-08-09 17:12:45
Shoot halkun a PM, I'm pretty sure he can give you access.  If not, you could try Alhexx.
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: ignitz on 2009-08-09 17:34:40
Thanks  :mrgreen:
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: ffgriever on 2009-09-28 20:12:45
Hi. Do you still need the compressor/decompressor? Two weeks (or so) ago I coded simple compression/decompression utility for my friend (rle+lzss). It works just fine with type1 compressed files. I have tested it with FFX (PAL) and FFX:International (jap/eng). I unpacked scene files for a dozen of locations, changed the text, compressed the files back, inserted them into image and played the game without any problems. So I guess it should work quite well. If it doesn't, I'll fix it whenever I'll get the chance. ;)

I've just uploaded the file on rhdn, but it will take some time for it to be accepted. Here is the temporary link: http://www.okami.pl/down/ffxtool_01a.zip


There is only one thing I didn't test properly. I'm not sure, whether the maximum run length is 259 or 515 bytes. But if it was 259, then 0x7f value would be somehow reserved, which would be quite weird (couldn't find any original file with that big run). Though, if it is reserved for anything else, I wouldn't be that much surprised (I'm working on FF12 now, which I coded entire and complete toolset for... So I DO know that S-E is sometimes a pain in the ass).


PS. There is an error in the sample files you've posted in the first post. Either the emulation was not perfect or you screwed something up with the memory dump (or you dumped it at the stage, where some parts were already modified/overwritten).
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: fuzzymillipede on 2009-11-19 02:42:41
I would be very interested in a compression utility that could compress FFX model/animation files (I think they are .ffb).
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: darkvadd7 on 2010-01-24 23:44:34
Hi !

I want to make an undub version of Final Fantasy X. I have already extract files from japanese version and french version, but now I don't know how recognize voices files, and how to replace them.

Thanks !
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: The Skillster on 2010-01-25 18:03:35
There is a Final Fantasy X international version flying around on the internet, has english dub with Japanese speech.
I think it is a chinese hack, works well from what I tried.
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: Kudistos Megistos on 2010-01-25 18:49:42
There is a Final Fantasy X international version flying around on the internet, has english dub with Japanese speech.
I think it is a chinese hack, works well from what I tried.

NANI?

Surely it was English subs with Japanese speech? (which would be great for me, thanks to my hatred of English dubs). Or am I wrong?
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: Gemini on 2010-01-25 19:32:43
English for voice acting, English and Japanese for written dialogue.
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: darkvadd7 on 2010-01-28 08:50:45
It exsists an undub version of Final fantasy X - International, but I wan't to do this on the french version. At least, to make the render in NTSC instead of PAL (60 fps, without black borders...). And better if I can introduce japanese voices  :-D
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: ffgriever on 2010-02-15 08:28:07
If anyone cares, I updated the Final Fantasy X compression/decompression app at rhdn to version 0.3. It fixes some problems with "type1" files and adds "type2" support (for both compression and decompression).

http://www.romhacking.net/utils/639/
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: ignitz on 2010-02-20 14:42:29
If anyone cares, I updated the Final Fantasy X compression/decompression app at rhdn to version 0.3. It fixes some problems with "type1" files and adds "type2" support (for both compression and decompression).

http://www.romhacking.net/utils/639/

Thanks for the good work, will be helpful.
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: darkvadd7 on 2010-03-07 13:21:30
Hi !

I tried to reinsert japanese voices, and to modified the LBA, it works. But the header of the iso file needs to be modified, and I don't know from what it can be modified. For example, the french iso starts with DDDD... and the japanese iso starts with D5D5...

Thanks !
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: LJH on 2010-03-25 20:43:27
This forum is mostly focused on FF7 and FF8 from what I can tell...
But there's a dedicated FFX Hacking site at http://www.ffxhackers.net/
You might be able to find more interested people there. (Of course, best of all is cover both bases)
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: ignitz on 2010-04-19 10:09:06
Thanks for ffgriever for the tool, works perfect.

heres a preview
http://www.youtube.com/watch?v=jMAGLpnz2EE
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: halkun on 2010-04-19 17:09:34
This forum is mostly focused on FF7 and FF8 from what I can tell...
But there's a dedicated FFX Hacking site at http://www.ffxhackers.net/
You might be able to find more interested people there. (Of course, best of all is cover both bases)

This is false. Any Squaresoft program is welcome :)
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: LJH on 2010-04-20 06:17:37
Yes, I do realise you accept them all, but the point still stands that the majority focus here is on 7 and to a lesser extent 8, while that place is dedicated to only X and X-2 (although not much stuff for X-2 yet).
Title: Re: [PS2] Final Fantasy X (Compression)
Post by: trgiangvp3 on 2010-08-05 11:57:27
[user was infracted for this post]

Could anyone tell me how to extract audio from FFX DVD, please???
Thank!