ROM Hack RELEASE SARC Tool - A tool for extracting/packing SARC/SZS files

AboodXD

I hack NSMB games, and other shiz.
OP
Member
Joined
Oct 11, 2014
Messages
2,880
Trophies
1
Location
Not under a rock.
XP
2,921
Country
United Arab Emirates
SARC Tool v0.5
A tool for extracting/packing SARC/SZS files

Code:
Usage:
  main [option...] file/folder

Packing Options:
 -o <output>           output file name (Optional)
 -little (or -l)       output will be in little endian if this is used
 -compress <level>     Yaz0 (SZS) compress the output with the specified level(0-9) (If unsure, use 1)
                       0: No compression (Fastest)
                       9: Best compression (Slowest)

Download.
Source code (GitHub).

Examples:
  • Extracting an szs file named "test.szs":
    Code:
    main test.szs
  • Extracting a sarc file named "test.sarc":
    Code:
    main test.sarc
  • Packing a folder named "test" as a big endian (Wii U) sarc file:
    Code:
    main test
  • Packing a folder named "test" as a little endian (3DS / Switch) sarc file:
    Code:
    main -little test
  • Packing a folder named "test" as a big endian (Wii U) sarc file with the file name "test2.sarc":
    Code:
    main -o test2.sarc test
  • Packing a folder named "test" as a big endian (Wii U) szs file using level 9 (best/slowest compression):
    Code:
    main -compress 9 test
  • Packing a folder named "test" as a little endian (3DS / Switch) szs file using level 9 (best/slowest compression):
    Code:
    main -little -compress 9 test
  • Packing a folder named "test" as a big endian (Wii U) szs file with the file name "test2.szs", using level 9 (best/slowest compression):
    Code:
    main -compress 9 -o test2.szs test
 
Last edited by AboodXD,

AboodXD

I hack NSMB games, and other shiz.
OP
Member
Joined
Oct 11, 2014
Messages
2,880
Trophies
1
Location
Not under a rock.
XP
2,921
Country
United Arab Emirates
Nice Work! Can't wait for BNTX Injecting
It has been done already. I made both an injector and an actual editor, but I have yet to release them.

The problem is that I fear people will start making lazy mods for Odyssey, just like they did for MK8; that's why I didn't release the editor yet.
 
Last edited by AboodXD,

RetroGamer732

Well-Known Member
Member
Joined
Oct 30, 2015
Messages
166
Trophies
0
XP
238
Country
United States
It has been done already. I made both an injector and an actual editor, but I have yet to release them.

The problem is that I fear people will start making lazy mods for Odyssey, just like they did for MK8DX; that's why I didn't release the editor yet.
What do you mean by lazy mods? I ask because I like to make mods and I just like getting opinions on quality vs lazy.
 

AboodXD

I hack NSMB games, and other shiz.
OP
Member
Joined
Oct 11, 2014
Messages
2,880
Trophies
1
Location
Not under a rock.
XP
2,921
Country
United Arab Emirates
What do you mean by lazy mods? I ask because I like to make mods and I just like getting opinions on quality vs lazy.
The majority of MK8 custom tracks are lazily made, half baked, and they just suck.

The only good custom tracks are Atlas's and Wexos's; that's it.

I don't want people to do to SMO and MK8DX what they did to MK8.
This is also why Wexos is planning to not release a new version of his toolbox.
 

RetroGamer732

Well-Known Member
Member
Joined
Oct 30, 2015
Messages
166
Trophies
0
XP
238
Country
United States
The majority of MK8 custom tracks are lazily made, half baked, and they just suck.

The only good custom tracks are Atlas's and Wexos's; that's it.

I don't want people to do to SMO and MK8DX what they did to MK8.
This is also why Wexos is planning to not release a new version of his toolbox.
Okay, I was thinking you meant lazy texture edits (I primarily mod Smash). I'm personally someone who likes putting in new characters rather than stages, and I've even been guilty of lazy mods myself, but I've always been trying to improve my work.
 

AboodXD

I hack NSMB games, and other shiz.
OP
Member
Joined
Oct 11, 2014
Messages
2,880
Trophies
1
Location
Not under a rock.
XP
2,921
Country
United Arab Emirates
Just released version 0.4.

Changelog:
* Fixed getting alignment for the first file. (packing 1 file)
* Added alignment for SHARC and SHARCFB.
* Fixed a rare edge case where extracting doesn't work.

Download.
 
Last edited by AboodXD,

TheZoroark007

Well-Known Member
Member
Joined
Apr 2, 2014
Messages
611
Trophies
0
Age
25
XP
1,648
Country
Germany
I am somehow unable to pack a working .szs file for Mario Kart 8 Deluxe. At first I thought I messed up while creating the .bfres so I unpacked an already existing, working mod (https://gamebanana.com/skins/164232) with Sarc_tool 0.4, put the .bfres into a folder named "Kinopico" and ran the command "sarc_tool.exe main -little -compress 9 Kinopico". It created a .szs file but when I wanted to test that file on my switch the game closed with an error message stating "The software was closed because an error occurred" as as soon as I selected the character. What am I doing wrong here ?

Here is my compiled file if that helps: https://www.dropbox.com/s/w26zma2v7y3bdxu/Kinopico.szs?dl=0
 

cualquiercosa327

Well-Known Member
Member
Joined
Mar 24, 2009
Messages
201
Trophies
1
XP
428
Country
Hello, first give you thanks for this great program: it is very useful!

i am trying to mod Smile Basic 4 for Switch (jap version is the only available yet) changing the vibration files it included for the one i want.
All 62 bnvib files are included on an file with arc extension.

Curiously the other files of the game also have the same extension and i could extract them without any problem with sactool.
I have look it with a hexeditor and it seems this file is a SBA2 format.
Could you add this format on your tool?
A lot of thanks
 

windmill

Well-Known Member
Member
Joined
Sep 23, 2018
Messages
148
Trophies
0
Age
21
XP
1,329
Country
United States
Incompatible with Miitopia's enemy.sarc fille. Repacking a completely vanilla file will still crash upon load.
 

Elly_0312

New Member
Newbie
Joined
Apr 4, 2021
Messages
1
Trophies
0
Age
25
XP
31
Country
United States
Any tutorial as to how to use this? I've been trying for a couple of days and I really can't figure it out
╥__╥

(and all I want this is to rip some sfx from a switch game) ANY help would be dearly appreciate it
 

AboodXD

I hack NSMB games, and other shiz.
OP
Member
Joined
Oct 11, 2014
Messages
2,880
Trophies
1
Location
Not under a rock.
XP
2,921
Country
United Arab Emirates
Any tutorial as to how to use this? I've been trying for a couple of days and I really can't figure it out
╥__╥

(and all I want this is to rip some sfx from a switch game) ANY help would be dearly appreciate it
Could you state how you tried to use it and in what way it failed?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • SylverReZ @ SylverReZ:
    @mthrnite, Cheetah Girls, the sequel to Action 52's Cheetah Men.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    Pokemon Black I played that one a lot
  • K3Nv2 @ K3Nv2:
    Honestly never messed with Pokémon on ds much
  • mthrnite @ mthrnite:
    I played pokemon once, was bored, never tried again
  • Psionic Roshambo @ Psionic Roshambo:
    Oh Dragon Quest IX
  • K3Nv2 @ K3Nv2:
    Spent like 5 hours on switch one never touched it again
  • Psionic Roshambo @ Psionic Roshambo:
    Sentinel of the stary skies
  • K3Nv2 @ K3Nv2:
    Ds is 20 years old this year
  • Psionic Roshambo @ Psionic Roshambo:
    So MJ no longer wants to play with it?
  • K3Nv2 @ K3Nv2:
    He put it down when the 3ds came out
  • SylverReZ @ SylverReZ:
    @K3Nv2, RIP Felix does great videos on the PS3 yellow-light-of-death.
  • Jayro @ Jayro:
    Eventhough the New 3DS XL is more powerful, I still feel like the DS Lite was a more polished system. It's a real shame that it never got an XL variant keeping the GBA slot. You'd have to go on AliExpress and buy an ML shell to give a DS phat the unofficial "DS Lite" treatment, and that's the best we'll ever get I'm afraid.
    +1
  • Jayro @ Jayro:
    The phat model had amazingly loud speakers tho.
    +1
  • SylverReZ @ SylverReZ:
    @Jayro, I don't see whats so special about the DS ML, its just a DS lite in a phat shell. At least the phat model had louder speakers, whereas the lite has a much better screen.
    +1
  • SylverReZ @ SylverReZ:
    They probably said "Hey, why not we combine the two together and make a 'new' DS to sell".
  • Veho @ Veho:
    It's a DS Lite in a slightly bigger DS Lite shell.
    +1
  • Veho @ Veho:
    It's not a Nintendo / iQue official product, it's a 3rd party custom.
    +1
  • Veho @ Veho:
    Nothing special about it other than it's more comfortable than the Lite
    for people with beefy hands.
    +1
  • Jayro @ Jayro:
    I have yaoi anime hands, very lorge but slender.
  • Jayro @ Jayro:
    I'm Slenderman.
  • Veho @ Veho:
    I have hands.
    Veho @ Veho: +1