Sharpii

Discussion in 'Wii - Hacking' started by person66, Sep 27, 2011.

Sep 27, 2011

Sharpii by person66 at 4:00 PM (13,379 Views / 2 Likes) 153 replies

  1. person66
    OP

    Member person66 If it isn't edited, it isn't a true person66 post

    Joined:
    Jun 16, 2009
    Messages:
    1,110
    Location:
    Canada
    Country:
    Canada
    Sharpii
    A Command-line libWiiSharp App

    Last Update: Feb 15 2013 - v1.7.2: Fixed a bug that would prevent you from changing a wad type; Wad info now also displays the full, 16-character Title ID

    For the last little while I have been working on this program called Sharpii. It is a command line app for windows that I made, which uses leathl's libWiiSharp.dll to perform tasks such as
    • Pack, unpack, or edit .wad files
    • Pack, and unpack U8 archives
    • Patch IOS .wad files with various patches
    • Download files from NUS
    • Convert a .wav file to .bns, and vice versa
    • Convert an image file to a .tpl, and vice versa
    • Send a .dol or .wad to the Homebrew Channel over Wi-Fi
    For more details see the readme below


    Download:
    Sharpii can be downloaded here: http://code.google.c.../downloads/list
    The source code is also available on google code


    Readme:
    Warning: Spoilers inside!


    Changelog:
    1.7.2
    - Fixed a bug that would prevent you from changing a wad type
    - Wad info now also displays the full, 16-character Title ID
    1.7.1
    - Fixed a bug that prevented Sharpii from checking for SharpiiIP in the system variables
    1.7
    - Sharpii can now be installed for use without the exe
    - SharpiiIP is now a system variable, not a user one.
    - Sharpii now looks for DLLs in the same directory as the exe
    - Bug fixes
    1.6
    - SendWad now supports AHBPROT (use '-ahb')
    - IP can now be saved in an environmental variable (SharpiiIP) for both SendWad and SendDol (manually or with '-saveip')
    - Pointless aster eggs are fun!
    - Code cleanup/bug fixes

    Older Changelogs:
    Warning: Spoilers inside!


    If you want to donate (I'm not asking you to though) I now have a paypal, so donations can be sent to xxperson66@gmail.com

    If you have any problems, comments, or suggestions, please add them below :yay:
     
    2 people like this.


  2. G0dLiKe

    Member G0dLiKe who needs a title ;)

    Joined:
    Aug 2, 2009
    Messages:
    1,674
    Country:
    United States
    Great stuff, thx [​IMG]
     
  3. XFlak

    Member XFlak Wiitired but still kicking

    Joined:
    Sep 12, 2009
    Messages:
    9,122
    Location:
    Ontario
    Country:
    Canada
    awesome work person66, it was an honour to play with this before it was officially released.
    Thanks!

    edit: sweet, I'm in the credits! Much appreciated buddy!
     
  4. JoostinOnline

    Member JoostinOnline Certified Crash Test Dummy

    Joined:
    Apr 2, 2011
    Messages:
    10,834
    Location:
    The Twilight Zone
    Country:
    United States
    I'm glad you released this, it is a great contribution and I know I will be using it. [​IMG]
     
  5. FIX94

    Global Moderator FIX94 Global Moderator

    Joined:
    Dec 3, 2009
    Messages:
    6,515
    Location:
    ???
    Country:
    Germany
    Wow what a useful app, I'll use it for sure [​IMG] Great work!
     
  6. person66
    OP

    Member person66 If it isn't edited, it isn't a true person66 post

    Joined:
    Jun 16, 2009
    Messages:
    1,110
    Location:
    Canada
    Country:
    Canada
    Thanks for the positive feedback, I just updated this to 1.1, it can now download files from NUS, using something similar to this:

    Code:
    Sharpii.exe NUSD -id 0000000100000002 -v 513 -o out -local -wad -decrypt
    Which would download System menu 4.3U, or use local files if present, and save just the WAD and decrypted contents to a folder called 'out'.

    Note that the only necessary arguments are -id and -v or -version
     
  7. XFlak

    Member XFlak Wiitired but still kicking

    Joined:
    Sep 12, 2009
    Messages:
    9,122
    Location:
    Ontario
    Country:
    Canada
    Great work buddy, this could replace like 4 or 5 tools ModMii is currently using! One day when I'm not feeling too lazy I might just have to incorporate sharpii into ModMii [​IMG]
     
  8. person66
    OP

    Member person66 If it isn't edited, it isn't a true person66 post

    Joined:
    Jun 16, 2009
    Messages:
    1,110
    Location:
    Canada
    Country:
    Canada
    Wow, I would be honoured if this is ever included in ModMii, if you or anyone else can think of any other features that would be helpful/useful (even if they aren't a part of libwiisharp) then I would be more then happy to look in to adding them. Right now I am thinking about adding support for sending wads to the homebrew channel (like crap and customizemii), but I am always looking for new ideas.
     
  9. XFlak

    Member XFlak Wiitired but still kicking

    Joined:
    Sep 12, 2009
    Messages:
    9,122
    Location:
    Ontario
    Country:
    Canada
    you can add the version patch to the IOS patching options, the libwiisharp mod used by ModMii already supports it so it should be pretty simple for u to add.

    Another idea would be to be able to mix and match wads, like inserting the audio clip from wad 1 into wad 2 without first needing to extract the audio from wad 1.
     
  10. SifJar

    Member SifJar Not a pirate

    Joined:
    Apr 4, 2009
    Messages:
    6,022
    Country:
    United Kingdom
    One idea I have is downloading one content from a title (e.g. for getting the base .app for creating themes). I'm pretty sure there is already a standalone tool for this which uses libWiiSharp, so I would assume it shouldn't be too hard to implement.

    On a side note, this is pretty cool. I have thought several times how handy it would be to have a tool like this. And the name is pure genius.

    Glancing through the source, it looks like it can already patch the version of IOS, as well as the IOS slot it installs to.
     
  11. person66
    OP

    Member person66 If it isn't edited, it isn't a true person66 post

    Joined:
    Jun 16, 2009
    Messages:
    1,110
    Location:
    Canada
    Country:
    Canada
    There is some other type of version patch that scooby's mod of patchIOS does, but I honestly don't know what it does. Anyone care to explain?

    And for downloading one content from a title, I assume you are talking about something similar to NusFileGrabber included with modmii? I can look in to something like that.
     
  12. SifJar

    Member SifJar Not a pirate

    Joined:
    Apr 4, 2009
    Messages:
    6,022
    Country:
    United Kingdom
    Yeah, that's exactly what I meant.

    And I was unaware of any other version patch...not sure how else the version could be patched...interesting.
     
  13. XFlak

    Member XFlak Wiitired but still kicking

    Joined:
    Sep 12, 2009
    Messages:
    9,122
    Location:
    Ontario
    Country:
    Canada
    the version patch is the one triggered by "-VP" in scooby's patchios mod. This patch is what allows you to "downgrade" an IOS. For example, without the version patch, you will not be able to overwrite IOSxx v65535 with IOSxx v21006. It's thanks to the version patch that any title deleter is no longer a part of the "remove stubs" softmod process

    edit: note that the version patch is not the same as patching the version #
     
  14. SifJar

    Member SifJar Not a pirate

    Joined:
    Apr 4, 2009
    Messages:
    6,022
    Country:
    United Kingdom
    Ah thanks for the explanation XFlak. So it disables version checking in the patched IOS? How does that aid stub deletion? (Sorry this is probably off topic...maybe you could PM me? I'm interested in this and haven't heard of it until now)
     
  15. techboy

    Member techboy GBAtemp Advanced Maniac

    Joined:
    Mar 15, 2009
    Messages:
    1,720
    Location:
    Pennsylvania
    Country:
    United States
    Nice [​IMG] Been wondering if there was a tool like this.

    I think that it allows you to just install the lower-version (real) title over top of the stub without deleting the stub.
     
  16. XFlak

    Member XFlak Wiitired but still kicking

    Joined:
    Sep 12, 2009
    Messages:
    9,122
    Location:
    Ontario
    Country:
    Canada
    correct [​IMG]
     
  17. SifJar

    Member SifJar Not a pirate

    Joined:
    Apr 4, 2009
    Messages:
    6,022
    Country:
    United Kingdom
    Can you not do that anyway with the NAND Permissions patch? I always assumed you could.
     
  18. XFlak

    Member XFlak Wiitired but still kicking

    Joined:
    Sep 12, 2009
    Messages:
    9,122
    Location:
    Ontario
    Country:
    Canada
    I don't think NP is enough (otherwise why the need for the version patch?)... IIRC, dr. clipper was the one who first implemented the version patch in his IOS236 Installer... it may have been added in v2 though
     
  19. person66
    OP

    Member person66 If it isn't edited, it isn't a true person66 post

    Joined:
    Jun 16, 2009
    Messages:
    1,110
    Location:
    Canada
    Country:
    Canada
    OK, quick update, I added version patch support, and Sharpii now uses scooby74029's mod of libWiiSharp (thanks scooby!)
    I also fixed a couple bugs I found while testing.

    If you have any problems let me know.

    I will start to work on some of the suggested features later on this week [​IMG]
     
  20. JoostinOnline

    Member JoostinOnline Certified Crash Test Dummy

    Joined:
    Apr 2, 2011
    Messages:
    10,834
    Location:
    The Twilight Zone
    Country:
    United States
    I want it to find me a girlfriend.
     

Share This Page