I was asked for a guide to rebuilding NARC files and rather than just PM a response I figured someone else might be interested. I will assume you are familiar with hexadecimal and a hex editor although not necessarily with the ARM/DS/GBA method of number handling. Natrium42's narctool does have a build option but manual is always nice to know (especially for when narctool comes across something it does not agree with):
narctool 0.1-p - by natrium42, modifications by Pipian
Tool for working with NARC and compressed NARC files (CARC files).
Usage:
narctool d
decompress CARC file into NARC file
narctool c
compress NARC file into CARC file
narctool u
unpack NARC file into directory
narctool p
pack directory into NARC file
The following post should be considered unfinished as I have to include exceptions (nameless files -> pokemon) and want to add some more on (sub)directories.
As well as my own personal stuff I have referenced tahaxan NARC file description , pipian's ierukana and narctool's (original and Pipian's modified) source as well, if you find a point needs more clarification might I suggest you have a look there (sometimes I find stuff just needs phrasing differently to be understandable to me).
Rebuilding from scratch is a tough one, I will be using award.narc (uncompressed with lzsstool from Euro mario karts award.carc) as a demo. The file is all available in bits and pieces from the following post but here is the first 150 "lines"
CODE00000000 4E41 5243 FEFF 0001 48C8 0200 1000 0300 NARC....H.......
00000010 4254 4146 3C00 0000 0600 0000 0000 0000 BTAF
narctool 0.1-p - by natrium42, modifications by Pipian
Tool for working with NARC and compressed NARC files (CARC files).
Usage:
narctool d
decompress CARC file into NARC file
narctool c
compress NARC file into CARC file
narctool u
unpack NARC file into directory
narctool p
pack directory into NARC file
The following post should be considered unfinished as I have to include exceptions (nameless files -> pokemon) and want to add some more on (sub)directories.
As well as my own personal stuff I have referenced tahaxan NARC file description , pipian's ierukana and narctool's (original and Pipian's modified) source as well, if you find a point needs more clarification might I suggest you have a look there (sometimes I find stuff just needs phrasing differently to be understandable to me).
Rebuilding from scratch is a tough one, I will be using award.narc (uncompressed with lzsstool from Euro mario karts award.carc) as a demo. The file is all available in bits and pieces from the following post but here is the first 150 "lines"
CODE00000000 4E41 5243 FEFF 0001 48C8 0200 1000 0300 NARC....H.......
00000010 4254 4146 3C00 0000 0600 0000 0000 0000 BTAF