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
  • No one is chatting at the moment.
  • BigOnYa @ BigOnYa:
    Did you pay your power bill? Or give all yo money to my wife, again.
  • K3Nv2 @ K3Nv2:
    Oh good the estimated time is the same exact time they just said
    +1
  • BigOnYa @ BigOnYa:
    Load up your pc and monitor, and head to a McDonalds dining room, they have free WiFi
  • K3Nv2 @ K3Nv2:
    Sir please watch your porn in the bathroom
    +2
  • BigOnYa @ BigOnYa:
    No sir we can not sell you anymore apple pies, after what you did with the last one.
  • K3Nv2 @ K3Nv2:
    We ran out
  • HiradeGirl @ HiradeGirl:
    for your life
    +1
  • K3Nv2 @ K3Nv2:
    My life has no value my fat ass is staying right here
  • K3Nv2 @ K3Nv2:
    Nearly 4 hours without power :(
  • Veho @ Veho:
    SO POWERLESS
  • K3Nv2 @ K3Nv2:
    Tell Kanye I need power
  • DinohScene @ DinohScene:
    Better start running in your hamster wheel
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Meth addicts on a treadmill connected to a generator "Unlimited POWER!!!'
  • Veho @ Veho:
    Before or after a hit?
  • Veho @ Veho:
    Do you dangle a baggie in front of them, like a carrot?
  • The Real Jdbye @ The Real Jdbye:
    they're the same thing
  • The Real Jdbye @ The Real Jdbye:
    i like that idea
  • Veho @ Veho:
    What's the same thing?
  • The Real Jdbye @ The Real Jdbye:
    before or after a hit
  • Veho @ Veho:
    Nah, a hit gives them mad meth powers, but makes them more difficult to control.
  • Veho @ Veho:
    Before a hit they're like zombies, persistent but slow.
  • Veho @ Veho:
    It's a tradeoff.
    Veho @ Veho: It's a tradeoff.