Hacking WIP [Tools] Switch ToolBox

DPyro

Well-Known Member
Member
Joined
Oct 17, 2008
Messages
370
Trophies
1
XP
834
Country
Canada
Awesome tool!
I just made a tool myself for viewing and extracting MK8D's BARS archives (they might work for Zelda's as well) but I'm wondering if I should make an entire thread for it.
Already posted it in the general Switch hacking thread so maybe not?
Looks like Zelda's bar files are slightly different.
 

Ac_K

Well-Known Member
OP
Newcomer
Joined
Mar 1, 2009
Messages
72
Trophies
0
XP
871
Country
France
2ufd64p.png


I think I'm done for today. So much improvements :).
Next step, support of files inside RomFS ^^!
 

Ac_K

Well-Known Member
OP
Newcomer
Joined
Mar 1, 2009
Messages
72
Trophies
0
XP
871
Country
France
Puyo Puyo MTX File Switch
Little Endian
-------------------------

0x00 - 8bytes - Size of file
0x08 - 8bytes - Unknown (Always 0x10) Version/Alignment ?
0x10 - 8bytes - Number of strings
0x18 - Number of strings * 8bytes - Strings offsets in file
{
Unicode Strings - determine the end of a string by have bytes 0xFFF8 at the end.
}

NARC File Switch
Little Endian
-----------------

0x00 - 4bytes - FourCC "NARC"
0x04 - 2bytes - Byte Order Mask (0xFEFF > big endian / 0xFFFE > little endian)
0x06 - 2bytes - Unknown (Version?), always 0x01
0x08 - 4bytes - Size of NARC file
0x0B - 2bytes - Unknown, always 0x10
0x0E - 2bytes - Unknown, always 0x03

0x10 - 4bytes - Region FourCC "BTAF"
0x14 - 4bytes - Size of BTAF region including FourCC
0x18 - 4bytes - Number of Files
0x0C - Number of Files * (2 * 4bytes) - Files informations
{
0x00 - 4bytes - Previous file size
0x04 - 4bytes - Current file size
}

Size of BTAF + 0x10 - 4bytes - Region FourCC "BTNF"
Size of BTAF + 0x14 - 4bytes - Size of BTNF region including FourCC
Size of BTAF + 0x18 - 0x17bytes - Unknown, always same values
Size of BTAF + 0x2F - Files names, first byte is length of string.

(Size of BTAF + Size of BTNF) + 0x10 - 4bytes - Region FourCC "GIMF"
(Size of BTAF + Size of BTNF) + 0x14 - 4bytes - Size of Files region
(Size of BTAF + Size of BTNF) + 0x18 - Files
> To get offset files: ((Size of BTAF + Size of BTNF) + 0x18) - Previous file size

Dunno if anyone are interessed by this but there is two descriptions of file format inside Switch Game.
I have to wrote support of them in my editor :)! If people wanna do data mining and have the skill to do it, contact me ;)!
 
Last edited by Ac_K,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan @ BakerMan:
    Update: Turns out he's epileptic
  • K3Nv2 @ K3Nv2:
    Get a 2nd opinion run mris etc they told me that also
  • Psionic Roshambo @ Psionic Roshambo:
    Also a food allergy study would be a good idea
  • K3Nv2 @ K3Nv2:
    Turns out you can't sprinkle methamphetamine on McDonald's French fries
    +1
  • ZeroT21 @ ZeroT21:
    they wouldn't be called french fries at that point
    +1
  • ZeroT21 @ ZeroT21:
    Probably just meth fries
    +1
  • K3Nv2 @ K3Nv2:
    White fries hold up
    +1
  • The Real Jdbye @ The Real Jdbye:
    @K3Nv2 sure you can
  • BakerMan @ BakerMan:
    why tf do people hate android users? is it the video quality? just because "AnDrOiD = pOoR" bc they don't cost an arm and a leg like iphones do?
    +1
  • BakerMan @ BakerMan:
    i won't be turned off by an iphone, but don't pick on me for having an android, that's just how this shit should work
  • ZeroT21 @ ZeroT21:
    Should say more what these kind of android users say bout nokia 3310 users
  • BigOnYa @ BigOnYa:
    I've owned both iPhone and Androids over the years. Both are just as good, other than Apples higher price. I'm currently on Android, Samsung S21 I think, and very happy with it.
  • K3Nv2 @ K3Nv2:
    Got my 60 minute steps in whew
    +2
  • BigOnYa @ BigOnYa:
    I get mine in everyday, going back n forth to the fridge for a beer.
    +1
  • K3Nv2 @ K3Nv2:
    6,000 steps in so far legs almost broke getting off
    +1
  • K3Nv2 @ K3Nv2:
    Your mind gets in a werid pattern of just finishing then when you're done you're like I need a soda
  • BigOnYa @ BigOnYa:
    You get a "walkers" high?
  • K3Nv2 @ K3Nv2:
    Not really I just use to love building up a sweat
  • BigOnYa @ BigOnYa:
    Funny, that's what uremum always says
  • K3Nv2 @ K3Nv2:
    Yeah and people that take viagra think they have a big dick
  • K3Nv2 @ K3Nv2:
    You cant fix one insult edit for another edit you pog
  • BigOnYa @ BigOnYa:
    Nuh I'm on my tablet n it always auto corrects me
  • K3Nv2 @ K3Nv2:
    Heorin and uremum do have close quarters
    K3Nv2 @ K3Nv2: Heorin and uremum do have close quarters