RELEASE Ryjin: A NSZ Converter Mod

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by GnK23, Oct 15, 2019.

  1. GnK23
    OP

    GnK23 GBAtemp Regular

    Member
    3
    Apr 6, 2016
    United States
    Nope sorry there is none. The program will run just a little bit longer to start than usual because of the decompression of the exe. This varies from person to person
     
    DuoForce likes this.
  2. fofe99

    fofe99 Newbie

    Newcomer
    1
    Jun 2, 2019
    Australia
    a few games i compressed with nut using level 22 compression
    >Hollow Knight NSP - 3.55GB
    >Hollow Knight NSZ - 666MB

    >Snipperclips NSP - 946MB
    >Snipperclips NSZ - 120MB

    >Dragon Ball Heroes World Mission NSP - 7GB
    >Dragon Ball Heroes World Mission NSZ - 1.31GB

    >SUPERHOT NSP - 2.46GB
    >SUPERHOT NSZ - 701MB
     
    Broduskii and GnK23 like this.
  3. GnK23
    OP

    GnK23 GBAtemp Regular

    Member
    3
    Apr 6, 2016
    United States
    In my next update i will be allowing users to select their compression level
     
  4. aut0mat3d

    aut0mat3d GBAtemp Regular

    Member
    4
    Mar 15, 2017
    Australia
    Did i missed that? - compress with NUT?
    I have here a Collection of .nsp on HDD and it would be nice to have them compressed/checked/deleted in one batch without copying around and other Mess :D
     
  5. Stealphie

    Stealphie GBAtemp Regular

    Member
    3
    Mar 27, 2019
    Brazil
    Rio Grande do Sul
    when i open this, it just crashes
     
  6. GnK23
    OP

    GnK23 GBAtemp Regular

    Member
    3
    Apr 6, 2016
    United States
    Do you have a working keys.txt?
     
  7. Stealphie

    Stealphie GBAtemp Regular

    Member
    3
    Mar 27, 2019
    Brazil
    Rio Grande do Sul
    i just googled it.
    if i need to backup my own, how do i do that?
    (using atmosphere 0.9.4 on 9.0.1 firmware)
     
  8. chrisrlink

    chrisrlink Intel Pentium III Hamster inside

    Member
    9
    Aug 27, 2009
    United States
    inside your crappy old PC
    GnK23 likes this.
  9. Stealphie

    Stealphie GBAtemp Regular

    Member
    3
    Mar 27, 2019
    Brazil
    Rio Grande do Sul
  10. fofe99

    fofe99 Newbie

    Newcomer
    1
    Jun 2, 2019
    Australia
    i meant the compressor python script blawwar has posted on github
     
  11. GnK23
    OP

    GnK23 GBAtemp Regular

    Member
    3
    Apr 6, 2016
    United States
    New RYJIN update on the first page

    Everything is now compressed on a single exe. no more folders no more zip. @nicoboss

    Ryjin :A NSZ Compressor Mod V1.4
    CHANGELOG
    -NSZ GENERATED CAN BE INSTALLED BY TINFOIL/LITHIUM 5.x
    -Enabled CPU threading for faster conversion speed
    -Enabled automated batch conversion
    -Applied fix for memory issue for updates [commit 53f7026]
    -Applied all changes patch support, ticket error fix, bug fixes [commit #58dab25]
    -Applied fix for Update issues resolved by NSZ 1.0
    -Applied fix for source folders with spacing
    -Converted the python into single exe.
    -Combined the Automatic and Manual script into a single program
     
    platanos likes this.
  12. GnK23
    OP

    GnK23 GBAtemp Regular

    Member
    3
    Apr 6, 2016
    United States
    The next release ryjin 2 running on the latest nsz commit will be back to the usual python format. I realized converting files to exe was a big mistake. The reason for this was that whenever you run the program 16mb of file is being dumped to your temp folder. This was the reason for the slowdown. When I check my temp folder it was full of trash. 5gb of python left overs because of the converted python program.
    Ryjin 2 will also feature block compression as well as solid compression thanks to @nicoboss for allowing multithread to exist innboth compression. There will be a big reminder inside the program to esure that you will know the difference between the two compression type. Will upload the ryjin 2 tomorrow morning. Thank you.
     
    Last edited by GnK23, Oct 26, 2019
    platanos likes this.
  13. nicoboss

    nicoboss Advanced Member

    Newcomer
    4
    Feb 1, 2019
    Switzerland
    You don't need a reminder. Multithreaded compression is now the default for booth solid and block compression. I even removed --enable_solid_multithreading as further research proofed solid multithreaded compression to have an equal compression ratio often even resulting in the multithreaded solid compression being a few kilobytes smaller.
    For your problem with packing: I recomend you to ship it as zip but include portable python with all the libraries preinstalled like I did for the portable version of https://nicobosshard.itch.io/floatmotion
     
  14. GnK23
    OP

    GnK23 GBAtemp Regular

    Member
    3
    Apr 6, 2016
    United States
    Instead of one file I would select directory okay check. There is now the second problem I message you earlier. Whenever I convert nsz 2.0 up to the latest commit to exe. The exe file does nothing. Blank screen then exit even as I run the script for ryjin. Nothing. Double clicking the generated exe does not even show anything on the screen.
     
    Last edited by GnK23, Oct 26, 2019
  15. GnK23
    OP

    GnK23 GBAtemp Regular

    Member
    3
    Apr 6, 2016
    United States
    Ryjin 2.0 Final
    Posted on the first page.
    For future updates just download latest commit and drop it inside the ryjin folder. I wont be updating ryjin anymore since it has already served its purpose.
    Went back to the old python format to support future updates by nicoboss.
     
    platanos and nicoboss like this.
  16. nicoboss

    nicoboss Advanced Member

    Newcomer
    4
    Feb 1, 2019
    Switzerland
    @GnK23 What do you think about building like this: http://www.nicobosshard.ch/nsz/nsz_nuitka_17f153d_portable.zip
    Built using "nuitka nsz.py --standalone" with python 3.7.5 x86_x64 and mingw-w64
    Nuitka converts python to C making it much faster: https://nuitka.net/
    Extract, insert keys.txt, and run it like ".\nsz.exe -C .\Game.nsp --threads 16 -w"
    No Python or library installation required and much better performance!
    At least my future NSZ releases will probably use this method.
    Also NSZ v3.0 will probably have a GUI.
     
    Last edited by nicoboss, Oct 27, 2019
    GnK23 likes this.
  17. rogras

    rogras Advanced Member

    Newcomer
    3
    Apr 2, 2009
    TR
  18. Rahkeesh

    Rahkeesh GBAtemp Maniac

    Member
    7
    Apr 3, 2018
    United States
    Is there a way to force deletion of the NSP immediately after an NSZ is created, or having different input/output dirs?

    I have a hard drive with little space and want to batch convert all the NSP there to NSZ, but don't have space to store both.
     
  19. GnK23
    OP

    GnK23 GBAtemp Regular

    Member
    3
    Apr 6, 2016
    United States
    Will check on the codes again during my spare time. Personally I removed the delete command from my script because I don't want to accidentally delete my nsp.

    EDIT:
    I checked the codes and it is not possible without editing the main nsz.py. If @nicoboss will add a new command to delete the nsp after it compresses then it will be possible to add it for the batch program. My codes simply executes command in a batch format.
     
    Last edited by GnK23, Oct 31, 2019
    Rahkeesh likes this.
  20. Philliyxx

    Philliyxx GBAtemp Regular

    Member
    4
    Sep 21, 2018
    United States
    Can you compress nsz further/again after converting the nsp to nsz the first time? I did a few already deleted the nsp but may want to choose a higher compression level.
     
Quick Reply
Draft saved Draft deleted
Loading...