morkt / GARbro

Visual Novels resource browser
MIT License
2.3k stars 244 forks source link

Support for English Sonicomi #30

Closed Redyn closed 7 years ago

Redyn commented 8 years ago

Hi, could you please add support for the JAST USA version of Sonicomi? It uses .npk archives like Tokyo Necro, so it shouldn't be hard to do. arc_unpacker recently added support for it, but unlike this utility, it doesn't support repacking. Anyway, it's probably only a matter of adding the Sonicomi encryption key, which can be found in:

https://github.com/vn-tools/arc_unpacker/blob/master/src/dec/nitroplus/npk2_archive_decoder_plugins.cc

Thank you.

Redyn commented 8 years ago

I just realized that not even this program supports packing .npk archives. Awwww... I don't suppose there are any plans to add that feature any time soon?

morkt commented 8 years ago

i've implemented creation of NPK archives (download), but i don't possess any of the related games so i can't test it.

Redyn commented 8 years ago

Thank you! Unpacking of Sonicomi archives works like a charm. Unfortunately, packing seems to be broken. I unpacked an archive and repacked it without touching any of its files or folders. The game crashes when it tries to load it.

Here's the npk archive I tried recreating (the original version, of course, not the repacked version): https://mega.nz/#!aZJXWA4A!IsPypwWw0tZqvKu4iMK5voyodgqi5ntVJAYH79zFx0w

Sorry for not providing this before. I wasn't sure certain if it was okay to post these kind of files.

Redyn commented 8 years ago

Oh, btw, I can also upload the game exe if you want. It can be used to test if the archives are being repacked correctly. As long as the proper script.npk file is in the same folder, it should run. If it's missing, corrupt or incorrectly packed, it will crash right after being executed. It doesn't require the rest of the files to run (other than Mware.dll, which I would be uploading as well).

morkt commented 8 years ago

i'll look into it, but it will take some time.

Redyn commented 8 years ago

Thanks for your efforts, much appreciated :)

morkt commented 7 years ago

appears to be working now, see latest release.

Redyn commented 7 years ago

Whoa. Sorry for the late reply. I just tried the new version and it works like a charm! Many thanks for fixing NPK packing!