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
  • Veho @ Veho:
    Nah, a hit gives them mad meth powers, but makes them more difficult to control.
    +1
  • Veho @ Veho:
    Before a hit they're like zombies, persistent but slow.
    +1
  • Veho @ Veho:
    It's a tradeoff.
    +1
  • The Real Jdbye @ The Real Jdbye:
    no i mean, before a hit is after the previous hit
    +1
  • The Real Jdbye @ The Real Jdbye:
    if you keep them well enough fed, it's the same thing
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    By the power of Florida Man, I have the power!!! *Lifts up meth pipe* Meth Man!!! lol
  • BakerMan @ BakerMan:
    Guys, I just learned my little brother is in the hospital because he had a seizure last night.
  • cearp @ cearp:
    Sorry to hear that BakerMan
    +2
  • BakerMan @ BakerMan:
    Just found out he's doing alright, doing a lot of complaining too, rightfully so. Who wouldn't complain after having a seizure and being hospitalized?
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Glad he is OK and complaining is cool :)
    +1
  • K3Nv2 @ K3Nv2:
    Yeah been there had that no fun
    +1
  • K3Nv2 @ K3Nv2:
    They'll give him sleep studies eegs and possibly one week hospital stay
    +1
  • BakerMan @ BakerMan:
    I hope it's not a week.
  • K3Nv2 @ K3Nv2:
    It's standard so doctors can get a idea about what's going on
  • BakerMan @ BakerMan:
    understood
  • BakerMan @ BakerMan:
    well, i'm glad he seems to be doing fine, and ig i'm going to start spewing goofy shit again
  • 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
  • ZeroT21 @ ZeroT21:
    they wouldn't be called french fries at that point
  • ZeroT21 @ ZeroT21:
    Probably just meth fries
  • K3Nv2 @ K3Nv2:
    White fries hold up
    K3Nv2 @ K3Nv2: White fries hold up