ROM Hack Nintedo ARChive Format

  • Thread starter Deleted User
  • Start date
  • Views 6,215
  • Replies 39
D

Deleted User

Guest
OP
As many of you know, I've done a lot of reversing for nintendo ds games, mainly phoenix wright related stuff.

Lately I've seen in an increasing number of games the use of a specific file format for packing files together. We could refer to it as the NARC file format. It is the used extension in some games.
The archive not only point to data, but gives a structure between sprites, tiles, strings, ect... So it is really important to understand it.
Seeing this, it would be best to unite our efforts and make a full library to handle this file format.


To do so, I propose a little schedule :

1) Find exactly which games used this format. It might be tedious, as although games like Pokemon P/D makes a direct use of the format with explicit extensions, games like GS4 have their own packing format, and in some part of the data you can recognize some NARC files.

2) Completly document the format. So far I'm able to extract chunks of data, but I've not found the exact type of each chunk. For example each chunk has an identiefer as a string of 4 characers. LBAL chunks are array of strings, with an easy to find structure. On the other hand GMIF chunk seems to contain a list of sub NARC, the offsets to these NARCs being referenced by a BTAF chunk.

3) Make a library to handle these files, with a grahical browser. It is really important here to make a packing function too, as for hacking purpose we want to inject data in the same way as devellopers do.

I will soon change the wiki version on my website, the current one being awful to use (a lot of white page lately...). As soon as it is done, I'll make a page for this format. If some moderators read this, maybe we could use the GBATemp wiki, but I'm not sure if rom hacking is on topic.
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,321
Country
United Kingdom
Search for natrium42's narctool (it does carc (lz compressed narc) as well)
also have a read of http://www.pipian.com/ierukana/hacking/ds_narc.html (some of the other stuff is detailed a fair amount as well).
http://pokeguide.filb.de/index.php may prove of interest.

Oh and tony hawks uses an xml derivative if I recall.

With regard to other files I volunteer my sound file exploits and I can also drum up loads of info on text files (various pointer systems ranging from simple to unusual to downright weird are used).
 
D

Deleted User

Guest
OP
wow I feel like an idiot. I had reversed almost everything on the page already... All the work goes to the trashbin :'(
 

arctic_flame

GBAtemp ATMEGA8 Fan
Member
Joined
Nov 4, 2006
Messages
2,835
Trophies
0
Age
32
Location
England land
XP
168
Country
Well, Natrium's tool is unfinished, and doesn't work if the archive contains folders, so you could still do it...

P.S. Mario Kart DS contains .carc /.narc files
 
D

Deleted User

Guest
OP
Yes in fact my own tools was already more advanced than natrium's one. So it could be interesting that I go further into this.

P.S. : everything I said was not to flame natrium's work but to make progress into ds hacking.
 

Heran Bago

Where do puyo come from?
Member
Joined
Nov 6, 2005
Messages
3,100
Trophies
0
Age
35
Location
Foggy California
Website
heranbago.com
XP
1,187
Country
United States
Didn't some gamecube games contain .arc? I'd keep going at it deufeufeu, and release your tools of course.
biggrin.gif


edit: woa no, i was thinking of that other one the zeldas used.
 
D

Deleted User

Guest
OP
I'm currently in the process of making the ultimate viewer/inserter for all kind of data... You'll start by taking a file, it show up the hex dump, and then you decide what could be the data : a narc, an image with some packing info, ect... At the end when you have fully found the structure, it generates and xml. You could embeed in this file some python script for specific encoding/decoding, for example with pokemon there's some encryption that would fit there. Then to extract or insert data it will be straightforward.

These are not some ideas thrown in the air, I'm really makin this... In fact I needed to make a common program for working on the last phoenix wright and ffxii:rw. I will call it Narc-o-matic, if you have a better name... It should be up within the next two centuries (or replace centuries by weeks if you are optimistic).
 

Zidapi

Well-Known Member
Member
Joined
Dec 1, 2002
Messages
3,112
Trophies
3
Age
42
Website
Visit site
XP
2,681
Country
I vote nARCotic too, sounds cool and i think once it's released alot of people will be addicted to going through all the releases looking for goodies
tongue.gif
 
D

Deleted User

Guest
OP
Dirtie : I got a lot more than this. It seems people started to get interested into narc with pokemon, I got the structures of at least 3 games , the last phoenix wright, the last ff and of course pokemon...

For the name, narcotics will not show up directly on google, and narctool is the name of natrium tool.

I'll soon start an alpha testing with interested tempers. You can go there http://deufeufeu.free.fr/wiki/index.php?title=NARC-O-MATIC
 

Lick

New Member
Newbie
Joined
Apr 27, 2007
Messages
3
Trophies
0
XP
1
Country
Netherlands
Could someone send me the NARC archives of a few games, I'm interested in writing my own loader on the DS.

Thanks!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Nut on the hill