morkt / GARbro

Visual Novels resource browser
MIT License
2.2k stars 234 forks source link

New GIGA encryption? "Data not recognized as zlib-compressed stream" #398

Open Veshurik opened 4 years ago

Veshurik commented 4 years ago

Hello, I noticed that interesting things - all new GIGA releases starting "Ai Kiss" doesn't open in GARBro, because Data not recognized as zlib-compressed stream.

It can be opened with Data Extract v. 1.20, but with random order and other names, not with names as original archives.

Maybe, you know how to fix it? Thanks.

GaryTheSavage commented 4 years ago

@Veshurik Data Extract v. 1.20 ? What is that?

Veshurik commented 4 years ago

It's extractor program, you can download it. Extract Data English v.1.20

Ryona-Fang commented 4 years ago

Extract Data English v.1.20

Can you please be more specific ? I tried searching it on google but all that comes out is gibberish.

GaryTheSavage commented 4 years ago

@Ryona-Fang I managed to find one on this website. https://vnerogereview.wordpress.com/otakus-toolbox/ In an archive with a bunch of other tools. And it actually worked.

Ryona-Fang commented 4 years ago

@Ryona-Fang I managed to find one on this website. https://vnerogereview.wordpress.com/otakus-toolbox/ In an archive with a bunch of other tools. And it actually worked.

Thank you :+1:

andylinpersonal commented 4 years ago

Hello, I noticed that interesting things - all new GIGA releases starting "Ai Kiss" doesn't open in GARBro, because Data not recognized as zlib-compressed stream.

It can be opened with Data Extract v. 1.20, but with random order and other names, not with names as original archives.

Maybe, you know how to fix it? Thanks.

@Veshurik

PS: I just analyzed Ai Kiss...

Ai Kiss has an unknown compression type "0x07", but it is indeed raw data without any processing, just like "Compression.None". So the only thing we need to do is adding this value into the code.

Bgm.arc image

Veshurik commented 4 years ago

Hello, I noticed that interesting things - all new GIGA releases starting "Ai Kiss" doesn't open in GARBro, because Data not recognized as zlib-compressed stream. It can be opened with Data Extract v. 1.20, but with random order and other names, not with names as original archives. Maybe, you know how to fix it? Thanks.

@Veshurik

PS: I just analyzed Ai Kiss...

Ai Kiss has an unknown compression type "0x07", but it is indeed raw data without any processing, just like "Compression.None". So the only thing we need to do is adding this value into the code.

Bgm.arc image

Can you please explain more? Right now I'm trying with "Full Kiss S", but don't understand what to do. I open .PAC file with Notepad++, and it writes PAC at the start.

AyamiKaze commented 4 years ago

https://github.com/MZSHproject/Niflheim/tree/master/NeXAS/BALDR_HEART Just now I upload it. It's successful. I test with oniama.

AyamiKaze commented 4 years ago

https://github.com/MZSHproject/Niflheim/tree/master/NeXAS/BALDR_HEART Just now I upload it. It's successful. I test with oniama.

The new version just change header of file ( PAC\0 -> PAC\x7F, mode=4 -> mode=7 ). And use zstd to compress file.

Veshurik commented 4 years ago

https://github.com/MZSHproject/Niflheim/tree/master/NeXAS/BALDR_HEART Just now I upload it. It's successful. I test with oniama.

Can you please complile that for me?

AyamiKaze commented 4 years ago

https://github.com/MZSHproject/Niflheim/tree/master/NeXAS/BALDR_HEART Just now I upload it. It's successful. I test with oniama.

Can you please complile that for me?

NeXAS_Unpack.zip

Veshurik commented 4 years ago

You're life saver! Thanks! It works!

mymzc4njm commented 3 years ago

https://github.com/MZSHproject/Niflheim/tree/master/NeXAS/BALDR_HEART Just now I upload it. It's successful. I test with oniama.

Can you please complile that for me?

NeXAS_Unpack.zip

I know I'm too late, but I have a question. Can I repack .pac? I want make nude patch, but don't know how to repack. GARbro doesn't support pac repack.

JoGaTo commented 3 years ago

So will the NeXAS_Unpack thing will unpack the latest AiKiss game that came out a couple of days ago? GARbro can't extract anything from the new game because of "Data not recognized as zlib-compressed stream" but was able to extract images from ExtractData, Crass, and exchpac, however cannot extract config.pac from any of them, and I need that for one of the files inside as that file is needed to merge the images using tools from exchpac.

EDIT: Nevermind, just tried it. It works.

Veshurik commented 3 years ago

Yep, it works perfectly, thanks to author of this program. This is version with manual, if someone don't understand how to use it. GIGA Extract.zip

Veshurik commented 3 years ago

https://github.com/MZSHproject/Niflheim/tree/master/NeXAS/BALDR_HEART Just now I upload it. It's successful. I test with oniama.

The new version just change header of file ( PAC\0 -> PAC\x7F, mode=4 -> mode=7 ). And use zstd to compress file.

Hello again. I'm tryng this program on Senkou no Clarias, but the program crashes. Do you know why? Thanks

AyamiKaze commented 3 years ago

https://github.com/MZSHproject/Niflheim/tree/master/NeXAS/BALDR_HEART Just now I upload it. It's successful. I test with oniama.

The new version just change header of file ( PAC\0 -> PAC\x7F, mode=4 -> mode=7 ). And use zstd to compress file.

Hello again. I'm tryng this program on Senkou no Clarias, but the program crashes. Do you know why? Thanks

Release.zip

Veshurik commented 3 years ago

https://github.com/MZSHproject/Niflheim/tree/master/NeXAS/BALDR_HEART Just now I upload it. It's successful. I test with oniama.

The new version just change header of file ( PAC\0 -> PAC\x7F, mode=4 -> mode=7 ). And use zstd to compress file.

Hello again. I'm tryng this program on Senkou no Clarias, but the program crashes. Do you know why? Thanks

Release.zip

Thank you very much! Hm... I'm trying it, and still program crashes (drag and drop .arc file on .exe with unpack). What am I doing wrong? Uhm, the problem was in folder file name with "/" symbol. Now it works...

AyamiKaze commented 3 years ago

https://github.com/AyamiKaze/GARbro/releases I've uploaded GARbro to support new NeXAS with Zstandard

Veshurik commented 3 years ago

https://github.com/AyamiKaze/GARbro/releases I've uploaded GARbro to support new NeXAS with Zstandard

Oh, you decided to create your own GarBro version? Thanks!

Veshurik commented 2 years ago

Hello again. I have a new problem with Senkou no Clarias F - Grimm o Tsumugishi Mono game. When I drag Update.pac on the .exe program, it crashes. But Update2.pac works okay. Is it because of the size of archive? Can anyone help, what to do? Thanks!

AyamiKaze commented 2 years ago

Hello again. I have a new problem with Senkou no Clarias F - Grimm o Tsumugishi Mono game. When I drag Update.pac on the .exe program, it crashes. But Update2.pac works okay. Is it because of the size of archive? Can anyone help, what to do? Thanks!

Send me Upadate.pac.

AyamiKaze commented 2 years ago

Hello again. I have a new problem with Senkou no Clarias F - Grimm o Tsumugishi Mono game. When I drag Update.pac on the .exe program, it crashes. But Update2.pac works okay. Is it because of the size of archive? Can anyone help, what to do? Thanks!

GARbro_mod_by_AyamiKaze_211227.zip

AyamiKaze commented 2 years ago

Hello again. I have a new problem with Senkou no Clarias F - Grimm o Tsumugishi Mono game. When I drag Update.pac on the .exe program, it crashes. But Update2.pac works okay. Is it because of the size of archive? Can anyone help, what to do? Thanks!

GARbro_mod_by_AyamiKaze_211227.zip

https://github.com/AyamiKaze/GARbro/releases also update.

Veshurik commented 2 years ago

Man, thank you very much!!!

AyamiKaze commented 2 years ago

Finally I check pac_unpack's code.
struct index { uint8 name[64]; uint32 Offset; uint32 FileSize; uint32 ComSize; }Index[7000]; // This is max file count.
https://github.com/AyamiKaze/Niflheim/blob/d8123c815e34386a3998bb119de61dd59f3421bc/NeXAS/BALDR_HEART/pac_unpack/pac_unpack.c#L33 For unpack pac whtich have file count over 7000, just change 7000 to the max file count. For example :file count is 7100, change 7000 to 7100.
For pack pac, it's sam as unpack.

mymzc4njm commented 2 years ago

Hello again. I have a new problem with Senkou no Clarias F - Grimm o Tsumugishi Mono game. When I drag Update.pac on the .exe program, it crashes. But Update2.pac works okay. Is it because of the size of archive? Can anyone help, what to do? Thanks!

GARbro_mod_by_AyamiKaze_211227.zip

https://github.com/AyamiKaze/GARbro/releases also update.

(Sorry for bad English) How update GARbro? I want use your mod and other mod too.

Other: https://github.com/crskycode/GARbro/releases/tag/GARbro-Mod-1.0.0.5