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

Discussion in 'Switch - ROM Hacking, Saves, Translations & Tools' started by AboodXD, Jul 1, 2018.

  1. AboodXD
    OP

    AboodXD I hack NSMB games, and other shiz.

    Member
    10
    Oct 11, 2014
    United Arab Emirates
    Not under a rock.
    SARC Tool v0.4
    A tool for extracting/packing SARC/SZS files

    Code:
    Usage:
      main [option...] file/folder
    
    Packing Options:
     -o <output>           output file name (Optional)
     -little               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, Jul 8, 2018
  2. Getzabelz

    Getzabelz Member

    Newcomer
    2
    May 19, 2018
    Spain
    What is this for?
     
    PeterMount likes this.
  3. Asia81

    Asia81 In my Ecchi World <3

    Member
    14
    Nov 15, 2014
    France
    If you have to ask, this not for you.
     
    GoldYoshi, Anonymous456 and AboodXD like this.
  4. AboodXD
    OP

    AboodXD I hack NSMB games, and other shiz.

    Member
    10
    Oct 11, 2014
    United Arab Emirates
    Not under a rock.
     
  5. RetroGamer732

    RetroGamer732 GBAtemp Regular

    Member
    2
    Oct 30, 2015
    United States
    Nice Work! Can't wait for BNTX Injecting
     
  6. AboodXD
    OP

    AboodXD I hack NSMB games, and other shiz.

    Member
    10
    Oct 11, 2014
    United Arab Emirates
    Not under a rock.
    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, Jul 2, 2018
  7. RetroGamer732

    RetroGamer732 GBAtemp Regular

    Member
    2
    Oct 30, 2015
    United States
    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.
     
  8. AboodXD
    OP

    AboodXD I hack NSMB games, and other shiz.

    Member
    10
    Oct 11, 2014
    United Arab Emirates
    Not under a rock.
    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.
     
  9. RetroGamer732

    RetroGamer732 GBAtemp Regular

    Member
    2
    Oct 30, 2015
    United States
    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.
     
  10. AboodXD
    OP

    AboodXD I hack NSMB games, and other shiz.

    Member
    10
    Oct 11, 2014
    United Arab Emirates
    Not under a rock.
    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, Jul 8, 2018
  11. TheZoroark007

    TheZoroark007 GBAtemp Advanced Fan

    Member
    6
    Apr 2, 2014
    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
     
  12. OutOfMind
    This message by OutOfMind has been removed from public view by porkiewpyne, Sep 23, 2018.
    Sep 23, 2018
  13. NWwind

    NWwind Advanced Member

    Newcomer
    3
    Feb 22, 2018
    Hong Kong
    Wiimms SZS Tools can do this (?). Isn't it?
     
  14. Gigaboy

    Gigaboy Member

    Newcomer
    1
    May 12, 2019
    United States
    In case anyone was interested, I made GUI for SARC Tool v0.4. It was coded in Java and only verified to run on Windows. (It doesn't have the best coding practices either.)
    GitHub - SARC Tool GUI
     
    Last edited by Gigaboy, May 16, 2019 at 3:46 AM
Loading...