ROM Hack New Narctool (Version 0.2b)

dexter0

New Member
OP
Newbie
Joined
Dec 30, 2007
Messages
2
Trophies
0
XP
143
Country
United States
DOWNLOAD HERE:
http://members.cox.net/dexter0/software/narctool2b.zip

QUOTE said:
CHANGELOG
 Â *Added support for extracting NARCs containing folders that go 1 level deep
 Â *Temporarily removed the pack feature due to breaking the code

I have been testing this new version with the mkds course narcs and it works well. Please let me know if you come across an narc this version fails to unpack properly.
Also note that this is an upgraded version of narctool 0.1, not 0.1-p

I have also figured out the purpose of the two unknowns in the FNTB Header:
CODEtypedef struct {
ÂÂÂÂu32 id;      // "BTNF" or 0x464E5442
ÂÂÂÂu32 length;    ÂÂÂÂ// length of this section
ÂÂÂÂu32 offset;    ÂÂÂÂ// 0x00000008 If No Folders, Varies If Folders (Subtract 8 First)
ÂÂÂÂu16 extra1;           // Extra 0x0000
ÂÂÂÂu8 folders;           // Number Of Folders + 1 (for root folder)
ÂÂÂÂu8 extra2;           // Extra 0x00
} FNTBHeader;
 

dexter0

New Member
OP
Newbie
Joined
Dec 30, 2007
Messages
2
Trophies
0
XP
143
Country
United States
Yeah, both issues are because the code is based off 0.1 not 0.1p. First priority is fixing the compression routines. The pack feature is done but it can't compress the narcs into carcs properly. After that I will look into merging the 0.1-p modifications into the code so narcs from puyo puyo and pkm will extract.

I am keeping track of my progress here:
http://members.cox.net/dexter0/
 

Count Cannoli

Member
Newcomer
Joined
Jun 12, 2008
Messages
5
Trophies
0
XP
25
Country
United States
Well...Wario: Master of disguise creates an annoying noise and fails to unpack, Professor Layton and the Curious Village fails to unpack any files from any of them. It also gives a runtime error with Professor Layton, saying that the runtime requested it to terminate ina n unusual way.
 

cmccmc

Banned!
Banned
Joined
Oct 30, 2008
Messages
60
Trophies
0
XP
-38
Country
United States
I was wondering if the text in games in the narc files because i got bored about a weak ago and unpacked a bunch of games and all i could find are .narc files.
 

Noitora

::
Member
Joined
Aug 9, 2007
Messages
3,760
Trophies
1
Age
32
Location
Athens
Website
www.noitora.eu.pn
XP
289
Country
Greece
I'm using crystaltile for my narc needs but I'll use this one if it's better
biggrin.gif

Thanks dexter0.
 

Count Cannoli

Member
Newcomer
Joined
Jun 12, 2008
Messages
5
Trophies
0
XP
25
Country
United States
I get the same problem with Wario: Master of Disguise as described earlier, as well as Professor Layton. And for some reason it always seems to try unpacking a million files though I doubt there's hardly that many.
 

SCVgeo

Well-Known Member
Member
Joined
Nov 5, 2008
Messages
115
Trophies
0
Age
37
Location
USA
Website
projectpokemon.org
XP
175
Country
United States
Count Cannoli said:
I get the same problem with Wario: Master of Disguise as described earlier, as well as Professor Layton. And for some reason it always seems to try unpacking a million files though I doubt there's hardly that many.
Try this program: kiwi.ds' Editor

It is by far the best in performace of all the extraction programs.
 

wannya

Active Member
Newcomer
Joined
Sep 17, 2007
Messages
37
Trophies
0
Website
www.angeleden.net
XP
117
Country
Switzerland
CODEtypedef struct
{
ÂÂÂÂu32ÂÂÂÂÂÂÂÂÂÂÂÂblockType;ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ// block type
ÂÂÂÂu32ÂÂÂÂÂÂÂÂÂÂÂÂblockSize;ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ// block size

} ArchiveBlockHeader;

typedef struct ArchiveFNT
{
ÂÂÂÂu32ÂÂÂÂ start;
ÂÂÂÂu16ÂÂÂÂ index;
ÂÂÂÂu16ÂÂÂÂ parent;
}
ÂÂÂÂÂÂÂÂfor (count=0; countdataBlocks; count++)
ÂÂÂÂÂÂÂÂ{
ÂÂÂÂÂÂÂÂÂÂÂÂswitch (block->blockType)
ÂÂÂÂÂÂÂÂÂÂÂÂ{
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂcase 'FATB': fat = (ArchiveFatBlockHeader*)block;ÂÂÂÂbreak;
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂcase 'FNTB': fnt = (ArchiveDirBlockHeader*)block;ÂÂÂÂbreak;
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂcase 'FIMG': img = (ArchiveImgBlockHeader*)block;ÂÂÂÂbreak;
ÂÂÂÂÂÂÂÂÂÂÂÂ}
ÂÂÂÂÂÂÂÂÂÂÂÂblock = (ArchiveBlockHeader*)((u32)block + block->blockSize);
ÂÂÂÂÂÂÂÂ}
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Veho @ Veho: Thank you based Dinoh.