Hacking WIP [Tools] Switch ToolBox

DPyro

Well-Known Member
Member
Joined
Oct 17, 2008
Messages
370
Trophies
1
XP
835
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
  • BigOnYa @ BigOnYa:
    You can find them $50-75 nowdays if catch a deal
  • K3Nv2 @ K3Nv2:
    Still remember grabbing this ps4 slim on black Friday for $200 when the msrp was still around 300
    +1
  • BigOnYa @ BigOnYa:
    I went to auction at a mom/pops video game store few months ago that was closing, and bought 11 slims for $200, 1 was DOA but 10 work fine. so hella deal. Already rgh3'ed 8 of them. But most younger kids don't even want anymore, unless it plays stupid "fortnight", or newer shit.
  • K3Nv2 @ K3Nv2:
    Think I'm gonna use my giftcard balance on a nice pair of headphones but $100 is still limited
  • K3Nv2 @ K3Nv2:
    Soundcore q30s are nice but they leak so much sound it sounds like speakers
  • Psionic Roshambo @ Psionic Roshambo:
    Ken spend the 100 on a gun and skii mask, wait for a jogger at the park jewelry money and headphones!
    +1
  • K3Nv2 @ K3Nv2:
    If only Amazon sold guns
  • K3Nv2 @ K3Nv2:
    Fucking dick heads think it's a bad idea to get a gun 2 days later
  • BigOnYa @ BigOnYa:
    Wait, I thought you were the dickhe...nvm
  • K3Nv2 @ K3Nv2:
    I got balls on my chin and two dicks on my forehead sir
    +1
  • BigOnYa @ BigOnYa:
    Sorry, no offense there double dickhead chinballs.
  • K3Nv2 @ K3Nv2:
    Chicks still love it
    +1
  • BigOnYa @ BigOnYa:
    "Mommy, look, what is that?". "That's your soon to be daddy."
    +1
  • K3Nv2 @ K3Nv2:
    That you'll only see once
    +2
  • Veho @ Veho:
    Double dickhead chinballs is still better than double dickhead eyeballs.
  • Veho @ Veho:
    As in, the balls will grow in your eye sockets.
  • K3Nv2 @ K3Nv2:
    I paid 5 grand to get them moved to my chin
    +1
  • Veho @ Veho:
    This you?
  • K3Nv2 @ K3Nv2:
    My hair can't be that cool
  • Veho @ Veho:
    Ah, yes, portrait mode, surely the best way to film a row of people. If only there were some way to fit a wider shot, at the expense of height... if only...
    Veho @ Veho: Ah, yes, portrait mode, surely the best way to film a row of people. If only there were some way...