YKCMP_V1 (de)compressor

Do you know a tool, link or website for working on a specific game files or to help game research? Let's collect them here!
iltrof
Posts: 11
Joined: Fri Sep 07, 2018 1:37 pm

YKCMP_V1 (de)compressor

Post by iltrof »

What is this?
YKCMP_V1 is a compression format used in games developed by Nippon Ichi Software.
It was already possible to decompress YKCMP_V1s, but it didn't look like anybody implemented proper compression for it yet,
or at least it wasn't easily accessible. So, I wrote a simple tool to do both tasks.

Where?
GitHub

Basic usage
To decompress: ykcmp.exe input_file [output_file]
To compress: ykcmp.exe -c input_file [output_file]

The GitHub page has more info on the options (and the algorithm, for the curious)

P.S.: Also, what's the status on adding YKCMP to quickbms?
While writing this post I noticed it seems to be upcoming in the next version, but it's just the "fake" version of compression where it doesn't really compress anything, isn't it?
Maybe it'd be possible to have proper compression as an alternative for modding purposes, since otherwise the files become up to several times larger. Though I'm sorry the code is not in pure C :?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: YKCMP_V1 (de)compressor

Post by aluigi »

The decompression algorithm will be available in the upcoming new quickbms (already implemented in my beta from https://github.com/Xkeeper0/disgaea-pc- ... andler.php) while the compression will be a fake compressor, so it can be used only with reimport2.bat
yasim98
Posts: 3
Joined: Thu Oct 07, 2021 4:58 pm

Re: YKCMP_V1 (de)compressor

Post by yasim98 »

Is there a way to use this decompressor https://github.com/iltrof/ykcmp to unpack disgaea 6 for switch models.dat?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: YKCMP_V1 (de)compressor

Post by aluigi »

There is a script for quickbms using that algorithm:
http://aluigi.altervista.org/bms/ykcmp.bms
yasim98
Posts: 3
Joined: Thu Oct 07, 2021 4:58 pm

Re: YKCMP_V1 (de)compressor

Post by yasim98 »

I have this error extracting the models.dat of the game. Is it possible that they have changed the method?

Edit: I used the fafullfs script and it worked. Damn, you are really skilled, thankyou!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: YKCMP_V1 (de)compressor

Post by aluigi »

;)
DostiBOT
Posts: 3
Joined: Thu Oct 28, 2021 3:27 am

Re: YKCMP_V1 (de)compressor

Post by DostiBOT »

Is there a way to extract the 3d models from the .nmbm files?