Thread: NPA format
View Single Post
Old 2009-04-24, 12:27
Minagi's Avatar
Minagi Minagi is offline
Join Date: Jun 2007
Posts: 85
Default NPA format

I've finished my documentation and program for the NPA file format used in Nitro+/Nitro+CHiRAL games since late 2006. I know crass can already extract the archives but it can only do that and it's without docs. My tool allows you to extract and create NPA archives. Currently Django and Lamento Trial are not working because the formats are slightly different but I plan to support them later.

download (bin):
download (src):

-h - Help. Displays this information.

-x (file) - Extract NPA archive
-g (id) - Game ID for encryption (if applicable). Defaults to ChaosHead if no encryption is entered

-c (folder) (output file) - Create archive
-z - Compress files

-x nss.npa - Extract nss.npa into the folder "nss"
-xg nss.npa MuramasaTr - Extract nss.npa into the folder "nss" using the Muramasa Trial encryption
-c nss nss.npa - Create an archive out of the folder "nss"
-cz nss nss.npa - Create a compressed archive out of the folder "nss"

(Type -h in the program to see the list of game IDs to use for decryption/encryption.)
DO NOT compress a CG folder. There is little change in size by doing so and it messes up the engine. This is a problem with the engine and Nitro+ doesn't compress their CG files because of it.

Please report any bugs. I'm also not a technical writer so let me know if there's something unclear in my documentation.

If you are having troubles with locales, try Tsukiko's modified version:

Last edited by Minagi; 2012-08-03 at 08:51.
Reply With Quote