reimporting compile heart .pac files using quickbms

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
domx9200
Posts: 3
Joined: Sun Sep 27, 2020 5:22 pm

reimporting compile heart .pac files using quickbms

Post by domx9200 »

Does anybody have a guide on how to do that? does clog have a specific way to allow for this or do I need to do some weirdness to get it to work, and if clog DOES have a way to do this, is the neptunia compression method that built into quickbms capable of doing that?

also how would I go about reimporting the files, does the append function start appending at the pointer location in the file, or does it just append at the end of the file no matter what? sorry for the barrage of questions but i'm just new to using quickbms and really only have modified already existing scripts up to this point.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: reimporting compile heart .pac files using quickbms

Post by aluigi »

What exact bms script are you using?
With reimport2.bat the new larger file is appended at the end of the archive and its offset and size fields are edited.
domx9200
Posts: 3
Joined: Sun Sep 27, 2020 5:22 pm

Re: reimporting compile heart .pac files using quickbms

Post by domx9200 »

Hi, thanks for responding, I'm using the Neptunia Re;Birth 1 .pac script that can be found on the download site for quickbms. https://aluigi.altervista.org/bms/neptunia_rebirth1.bms
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: reimporting compile heart .pac files using quickbms

Post by aluigi »

Ah ok neptunia compression, I ported the decompression code to C just few days ago.
There is no re-compression code so unfortunately no reimporting is allowed.
domx9200
Posts: 3
Joined: Sun Sep 27, 2020 5:22 pm

Re: reimporting compile heart .pac files using quickbms

Post by domx9200 »

Unfortunate. That's alright though, there are tools out there that are able to recompress the files. The main issue I was having with them is that they weren't putting the files in the same order as the original archive, which has proven to cause problems with what i'm attempting. I was just wondering if quickbms was able to do it. That being said, thanks for responding.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: reimporting compile heart .pac files using quickbms

Post by aluigi »

In theory it may be possible to manually disable compression and then using reimport2.bat as usual.
It may work or may not work, it's something that requires hex editing and using quickbms with the -V option for finding the offset of the ZIP field (that must be set to 0)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: reimporting compile heart .pac files using quickbms

Post by aluigi »

I have two updates:

Apparently there is a rebuilder/reimporter for the Neptunia files:
https://github.com/u3shit/neptools

I released a beta version of quickbms that automatically does what I wrote in my previous post.
This is the beta: http://aluigi.org/beta/quickbms_beta.zip
For using the new feature edit reimport2.bat and add the -e option:

Code: Select all

quickbms.exe -G -w -r -r -e