How can I open Nintendo Switch NARC Files?

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Ice Bro
Posts: 9
Joined: Fri Jun 15, 2018 9:18 pm

How can I open Nintendo Switch NARC Files?

Post by Ice Bro »

I recently found Mario Tennis Aces NARC files in ROM but no way to open them. Can someone help me there. Here is an example file:
http://www.mediafire.com/file/jd6x7v11z ... mario.narc
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: How can I open Nintendo Switch NARC Files?

Post by aluigi »

There is a "NARC" magic, then a "BTAF" magic at offset 0x10, a "BTNF" and so on like seen in pokemon_grac.bms but the format is slightly different.
There are both offsets and filenames, maybe I will make a script later.
Ice Bro
Posts: 9
Joined: Fri Jun 15, 2018 9:18 pm

Re: How can I open Nintendo Switch NARC Files?

Post by Ice Bro »

Thanks
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: How can I open Nintendo Switch NARC Files?

Post by aluigi »

LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Re: How can I open Nintendo Switch NARC Files?

Post by LolHacksRule »

I hate to be a contender to revive this topic but there's an issue extracting files from the NPTL, NTEX and BIN files (all disguised NARCs) like this one: http://www.filedropper.com/bowser, will the script be fixed? Another issue is some files extract improperly.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: How can I open Nintendo Switch NARC Files?

Post by aluigi »

This NARC format is compatible with http://aluigi.org/bms/mario_golf_narc.bms

Yeah there are at least 4 different scripts that cover the various versions and variants of NARC.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: How can I open Nintendo Switch NARC Files?

Post by aluigi »

Anyway the extracted file may use some type of compression.
Probably needs another look.
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Re: How can I open Nintendo Switch NARC Files?

Post by LolHacksRule »

Upon more checking, the files extracted from the "disguised" NARCs with the current script are always 0B, yet tools like EFE and Karameru extract them completely fine in their compressed format, RTB made a script to decompress a portion these formats, not all though (The P header and BNVIB compression are some it doesn't know so far).