[PC] Coropata (.PAC archives)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Habanero
Posts: 55
Joined: Sat Jun 15, 2019 9:14 am

[PC] Coropata (.PAC archives)

Post by Habanero »

An old Nintendo DS game came out on PC recently, and I wanted to see if it's possible to do some basic modding or file extraction. The format is .pac, which appears to be a generic archive format that's used in Nintendo DS games, among others.

The file header says "DW_PACK", and Google shows me that a Neptunia game also used this format which was posted here before.

Here's the header.

Image

Ideally I'd like to do stuff like palette swaps, etc., which would require repacking the .pac files. If that's possible (and/or if you know of a tool), lemme know.

Thanks.

https://mega.nz/folder/Z9g0EAyT#a98AfZ-NrJ1kmH51oaRWHg
Zolodei
Posts: 36
Joined: Sat Sep 16, 2017 6:34 pm

Re: [PC] Coropata (.PAC archives)

Post by Zolodei »

The script gives an error, maybe the algorithm was changed

I pulled out one file, can anyone find the correct algorithm.
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: [PC] Coropata (.PAC archives)

Post by spiritovod »

Resulted files are somehow encrypted anyway (maybe similar to Neptunia, but with different table). Here is fixed script for dumping files from pac.

Update: Thanks to aluigi it should work properly now.
Last edited by spiritovod on Sat Apr 24, 2021 12:08 am, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [PC] Coropata (.PAC archives)

Post by aluigi »

The algorithm is neptunia0, so:
comtype neptunia -> comtype neptunia0

I updated the script.
In quickbms 0.11 neptunia0 will be called automatically if neptunia fails ;)