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:
    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.
  • BakerMan @ BakerMan:
    imagine not having hands, cringe
    +1
  • AncientBoi @ AncientBoi:
    ESPECIALLY for things I do to myself :sad:.. :tpi::rofl2: Or others :shy::blush::evil:
    +1
  • The Real Jdbye @ The Real Jdbye:
    @SylverReZ if you could find a v5 DS ML you would have the best of both worlds since the v5 units had the same backlight brightness levels as the DS Lite unlockable with flashme
  • The Real Jdbye @ The Real Jdbye:
    but that's a long shot
  • The Real Jdbye @ The Real Jdbye:
    i think only the red mario kart edition phat was v5
  • BigOnYa @ BigOnYa:
    A woman with no arms and no legs was sitting on a beach. A man comes along and the woman says, "I've never been hugged before." So the man feels bad and hugs her. She says "Well i've also never been kissed before." So he gives her a kiss on the cheek. She says "Well I've also never been fucked before." So the man picks her up, and throws her in the ocean and says "Now you're fucked."
    +2
  • BakerMan @ BakerMan:
    lmao
  • BakerMan @ BakerMan:
    anyways, we need to re-normalize physical media

    if i didn't want my games to be permanent, then i'd rent them
    +1
  • BigOnYa @ BigOnYa:
    Agreed, that why I try to buy all my games on disc, Xbox anyways. Switch games (which I pirate tbh) don't matter much, I stay offline 24/7 anyways.
  • AncientBoi @ AncientBoi:
    I don't pirate them, I Use Them :mellow:. Like I do @BigOnYa 's couch :tpi::evil::rofl2:
    +1
  • cearp @ cearp:
    @BakerMan - you can still "own" digital media, arguably easier and better than physical since you can make copies and backups, as much as you like.

    The issue is DRM
  • cearp @ cearp:
    You can buy drm free games / music / ebooks, and if you keep backups of your data (like documents and family photos etc), then you shouldn't lose the game. but with a disk, your toddler could put it in the toaster and there goes your $60

    :rofl2:
  • cearp @ cearp:
    still, I agree physical media is nice to have. just pointing out the issue is drm
  • rqkaiju2 @ rqkaiju2:
    i like physical media because it actually feels like you own it. thats why i plan on burning music to cds
  • cearp @ cearp:
    It's nice to not have to have a lot of physical things though, saves space
    +1
  • AncientBoi @ AncientBoi:
    Nor clothes 🤮 . Saves on time, soap, water and money having to wash them. :D
    AncientBoi @ AncientBoi: Nor clothes 🤮 . Saves on time, soap, water and money having to wash them. :D