Author Topic: [PS2] Final Fantasy X (Compression)  (Read 21124 times)

ignitz

  • Fast newbie
  • *
  • Posts: 44
  • Karma: 0
    • View Profile
[PS2] Final Fantasy X (Compression)
« 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

Dumper that I have maded (This is not the dumper that alrealdy have)
FFX - Dumper V0.1
Download

Prototype of Decompressor - It's work in 90% of cases
FFX Decompressor Prototype V0.2
Download
« Last Edit: 2009-03-05 05:39:13 by ignitz »

yoshi314

  • Insane poster
  • *
  • Posts: 319
  • Karma: 2
    • View Profile
Re: [PS2] Final Fantasy X (Compression)
« Reply #1 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.

ignitz

  • Fast newbie
  • *
  • Posts: 44
  • Karma: 0
    • View Profile
Re: [PS2] Final Fantasy X (Compression)
« Reply #2 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.

yoshi314

  • Insane poster
  • *
  • Posts: 319
  • Karma: 2
    • View Profile
Re: [PS2] Final Fantasy X (Compression)
« Reply #3 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.

ignitz

  • Fast newbie
  • *
  • Posts: 44
  • Karma: 0
    • View Profile
Re: [PS2] Final Fantasy X (Compression)
« Reply #4 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
« Last Edit: 2009-03-05 05:40:28 by ignitz »

yoshi314

  • Insane poster
  • *
  • Posts: 319
  • Karma: 2
    • View Profile
Re: [PS2] Final Fantasy X (Compression)
« Reply #5 on: 2009-03-05 09:25:15 »
i will take a look in a few hours, thanks.

ignitz

  • Fast newbie
  • *
  • Posts: 44
  • Karma: 0
    • View Profile
Re: [PS2] Final Fantasy X (Compression)
« Reply #6 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...

koral

  • Guest
Re: [PS2] Final Fantasy X (Compression)
« Reply #7 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?

yoshi314

  • Insane poster
  • *
  • Posts: 319
  • Karma: 2
    • View Profile
Re: [PS2] Final Fantasy X (Compression)
« Reply #8 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.

ignitz

  • Fast newbie
  • *
  • Posts: 44
  • Karma: 0
    • View Profile
Re: [PS2] Final Fantasy X (Compression)
« Reply #9 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.

darkvadd7

  • Cool newbie
  • *
  • Posts: 56
  • Karma: 1
    • View Profile
    • ChristopherNolan.fr
Re: [PS2] Final Fantasy X (Compression)
« Reply #10 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

The Skillster

  • No life
  • *
  • Posts: 2284
  • Karma: 3
  • Loving every Final Fantasy
    • View Profile
Re: [PS2] Final Fantasy X (Compression)
« Reply #11 on: 2009-05-28 22:33:57 »
Cant you just get the International version for that?
That is undubbed with english subs

darkvadd7

  • Cool newbie
  • *
  • Posts: 56
  • Karma: 1
    • View Profile
    • ChristopherNolan.fr
Re: [PS2] Final Fantasy X (Compression)
« Reply #12 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 ?
« Last Edit: 2009-05-30 11:36:41 by Vadd_VII »

ignitz

  • Fast newbie
  • *
  • Posts: 44
  • Karma: 0
    • View Profile
Re: [PS2] Final Fantasy X (Compression)
« Reply #13 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.
« Last Edit: 2009-08-09 15:49:09 by ignitz »

obesebear

  • Administrator
  • No life
  • *
  • Posts: 3267
  • Karma: 114
    • View Profile
Re: [PS2] Final Fantasy X (Compression)
« Reply #14 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.

ignitz

  • Fast newbie
  • *
  • Posts: 44
  • Karma: 0
    • View Profile
Re: [PS2] Final Fantasy X (Compression)
« Reply #15 on: 2009-08-09 17:34:40 »
Thanks  :mrgreen:

ffgriever

  • Cool newbie
  • *
  • Posts: 74
  • Karma: 0
    • View Profile
Re: [PS2] Final Fantasy X (Compression)
« Reply #16 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).

fuzzymillipede

  • Fast newbie
  • *
  • Posts: 30
  • Karma: 0
    • View Profile
Re: [PS2] Final Fantasy X (Compression)
« Reply #17 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).

darkvadd7

  • Cool newbie
  • *
  • Posts: 56
  • Karma: 1
    • View Profile
    • ChristopherNolan.fr
Re: [PS2] Final Fantasy X (Compression)
« Reply #18 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 !

The Skillster

  • No life
  • *
  • Posts: 2284
  • Karma: 3
  • Loving every Final Fantasy
    • View Profile
Re: [PS2] Final Fantasy X (Compression)
« Reply #19 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.

Kudistos Megistos

  • Banned
  • No life
  • *
  • Posts: 3936
  • Karma: 1
    • View Profile
Re: [PS2] Final Fantasy X (Compression)
« Reply #20 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?

Gemini

  • Insane poster
  • *
  • Posts: 260
  • Karma: 2
  • Not learner's Guru
    • View Profile
    • Devil Hackers
Re: [PS2] Final Fantasy X (Compression)
« Reply #21 on: 2010-01-25 19:32:43 »
English for voice acting, English and Japanese for written dialogue.

darkvadd7

  • Cool newbie
  • *
  • Posts: 56
  • Karma: 1
    • View Profile
    • ChristopherNolan.fr
Re: [PS2] Final Fantasy X (Compression)
« Reply #22 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

ffgriever

  • Cool newbie
  • *
  • Posts: 74
  • Karma: 0
    • View Profile
Re: [PS2] Final Fantasy X (Compression)
« Reply #23 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/
« Last Edit: 2010-02-15 08:52:24 by ffgriever »

ignitz

  • Fast newbie
  • *
  • Posts: 44
  • Karma: 0
    • View Profile
Re: [PS2] Final Fantasy X (Compression)
« Reply #24 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.