ROM Hack Guide to rebuilding NARC files from scratch.

FAST6191

Techromancer
OP
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,377
Country
United Kingdom
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
 
  • Like
Reactions: Sliter

ksonic1055

Well-Known Member
Newcomer
Joined
Jul 10, 2007
Messages
45
Trophies
0
XP
11
Country
United States
I am having trouble combining all of the files. Also, there are subdirectories that need to be included. And after the files are all together, how will I know where to add all of this stuff you refer to? Ive read this through several times and it is still unclear. Is it possible for a step by step explanation that includes more information? Something like:

Open cmd and use copy /b to consolidate all files

open new file with hex editor and go to...and here add... ect


I think that would help everyone who is just beginning with this stuff to understand what is being done.


thanks for all your help.
 

ksonic1055

Well-Known Member
Newcomer
Joined
Jul 10, 2007
Messages
45
Trophies
0
XP
11
Country
United States
Never mind. I have gotten all of the files combined to one, however some are supposed to be in different subdirectories. Will this be set up later?

Ill keep trying to figure out your directions.
 

FAST6191

Techromancer
OP
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,377
Country
United Kingdom
The subdirectories are purely referenced in the BTNF section (it is the bit that I am adding in as we speak), you need all the files you are to copy /b together in the same directory (well you could add a subdirectory in the copy command but that would be making things more complex than perhaps they should).
 

ksonic1055

Well-Known Member
Newcomer
Joined
Jul 10, 2007
Messages
45
Trophies
0
XP
11
Country
United States
ok perfect then. I have all of them put together. Now i need to add the NARC, BTAF, BTNF, and GMIF sections right?

Those go before the files right? So how do i bump all of the file data downwards to make room at the top of the file i am creating? (talking about hex editor as u may have guessed)


thanks
 

FAST6191

Techromancer
OP
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,377
Country
United Kingdom
You could use copy /b again but most hex editors will have an insert X amount of space or even allow you to paste it in there. Just make sure to press the insert key (with page down and such) if it decides to overwrite in something like hex workshop.

Some hex editors I use:
general: hex workshop, x ways forensics and xvi32 and today I added Tiny Hexer to the list

small: virtual dub inbuilt (not any use for rom hacking really), notepad++ inbuilt (I use this for turning end of lines into standard characters and stuff).

rom hacking:
crystaltile2, an exceptional Chinese app. It would be in English but I have not got it to build yet (MS Visual studio 2003 © with MFC is what it needs):
http://gbatemp.net/index.php?showtopic=53383
Take your pick of the ones here:
http://www.romhacking.net/?category=13&Pla...Go&title=&desc=
Hexposure, translhextion WindHex32 are definitely worth a look (try getting a custom character set on hex workshop an you will see why)
 

FAST6191

Techromancer
OP
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,377
Country
United Kingdom
I do not often build many tools for stuff that I do.
I could try and use what C I have to improve narctool though.

You saw crystaltile2 I take it as well, that looks like something could happen.
 

ksonic1055

Well-Known Member
Newcomer
Joined
Jul 10, 2007
Messages
45
Trophies
0
XP
11
Country
United States
If you can fix narctool's unpack to directory, and pack to .narc functions it would be amazing. I have a bunch of directories that i need converted to .narc... the process described above is time consuming...

Yes i think there will be some jumps in the near future in crystaltile2 soon, but when u said it is a recompile, did u mean it could convert a directory to a narc?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Jayro @ Jayro:
    The phat model had amazingly loud speakers tho.
    +1
  • SylverReZ @ SylverReZ:
    @Jayro, I don't see whats so special about the DS ML, its just a DS lite in a phat shell. At least the phat model had louder speakers, whereas the lite has a much better screen.
    +1
  • SylverReZ @ SylverReZ:
    They probably said "Hey, why not we combine the two together and make a 'new' DS to sell".
  • Veho @ Veho:
    It's a DS Lite in a slightly bigger DS Lite shell.
    +1
  • Veho @ Veho:
    It's not a Nintendo / iQue official product, it's a 3rd party custom.
    +1
  • Veho @ Veho:
    Nothing special about it other than it's more comfortable than the Lite
    for people with beefy hands.
    +1
  • Jayro @ Jayro:
    I have yaoi anime hands, very lorge but slender.
  • Jayro @ Jayro:
    I'm Slenderman.
  • Veho @ Veho:
    I have hands.
  • BakerMan @ BakerMan:
    imagine not having hands, cringe
    +1
  • AncientBoi @ AncientBoi:
    ESPECIALLY for things I do to myself :sad:.. :tpi::rofl2: Or others :shy::blush::evil:
    +1
  • The Real Jdbye @ The Real Jdbye:
    @SylverReZ if you could find a v5 DS ML you would have the best of both worlds since the v5 units had the same backlight brightness levels as the DS Lite unlockable with flashme
  • The Real Jdbye @ The Real Jdbye:
    but that's a long shot
  • The Real Jdbye @ The Real Jdbye:
    i think only the red mario kart edition phat was v5
  • BigOnYa @ BigOnYa:
    A woman with no arms and no legs was sitting on a beach. A man comes along and the woman says, "I've never been hugged before." So the man feels bad and hugs her. She says "Well i've also never been kissed before." So he gives her a kiss on the cheek. She says "Well I've also never been fucked before." So the man picks her up, and throws her in the ocean and says "Now you're fucked."
    +1
  • BakerMan @ BakerMan:
    lmao
  • BakerMan @ BakerMan:
    anyways, we need to re-normalize physical media

    if i didn't want my games to be permanent, then i'd rent them
    +1
  • BigOnYa @ BigOnYa:
    Agreed, that why I try to buy all my games on disc, Xbox anyways. Switch games (which I pirate tbh) don't matter much, I stay offline 24/7 anyways.
  • AncientBoi @ AncientBoi:
    I don't pirate them, I Use Them :mellow:. Like I do @BigOnYa 's couch :tpi::evil::rofl2:
    +1
  • cearp @ cearp:
    @BakerMan - you can still "own" digital media, arguably easier and better than physical since you can make copies and backups, as much as you like.

    The issue is DRM
  • cearp @ cearp:
    You can buy drm free games / music / ebooks, and if you keep backups of your data (like documents and family photos etc), then you shouldn't lose the game. but with a disk, your toddler could put it in the toaster and there goes your $60

    :rofl2:
  • cearp @ cearp:
    still, I agree physical media is nice to have. just pointing out the issue is drm
  • rqkaiju2 @ rqkaiju2:
    i like physical media because it actually feels like you own it. thats why i plan on burning music to cds
    rqkaiju2 @ rqkaiju2: i like physical media because it actually feels like you own it. thats why i plan on burning...