Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User:CM360/sandbox/Wii U Creating homebrew channels: Difference between revisions

User page
(Start on NUSPacker section)
(Create framework page for making homebrew channels)
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== What You Need ==
== What You Need ==
* The latest release of {{GitHub|phacoxcll/cdecrypt/releases|phacoxcll's CDecrypt fork}} (the <code>CDecrypt.zip</code> file)
* The latest release of {{GitHub|phacoxcll/cdecrypt/releases|phacoxcll's CDecrypt fork}} (The <code>CDecrypt.zip</code> file)
** Only a Windows build is provided, Mac and Linux users may need to manually compile the source code.
* The latest release of {{GitHub|ihaveamac/nuspacker/blob/master/NUSPacker.jar|NUSPacker}} (direct download)
* The latest release of [https://github.com/ihaveamac/nuspacker/blob/master/NUSPacker.jar?raw=true NUSPacker] (direct download)
** Using NUSPacker requires that you have [https://www.java.com/en/download/ Java] installed on your system.
** NUSPacker requires that you have [https://www.java.com/en/download/ Java] installed on your system to work.
* An image editor that supports the <code>.tga</code> image format.
* An image editor that supports the <code>.tga</code> image format
** These instructions will use [https://getpaint.net/download.html paint.net]
** These instructions will use [https://getpaint.net/download.html paint.net].
* The [https://gist.github.com/cm-360/696d84f674149a6caacb0cf78c894635 MetaVerify.py] script (click "Download ZIP" on the GitHub page to download)
** This script requires that you have [https://www.python.org/downloads/ Python 3.7.4+] installed on your system to work.
* The {{GitHub|dimok789/homebrew_launcher/releases/download/v2.1/homebrew_launcher_channel.v2.1.zip|Homebrew Launcher Channel v2.1}} (direct download)
* The {{GitHub|dimok789/homebrew_launcher/releases/download/v2.1/homebrew_launcher_channel.v2.1.zip|Homebrew Launcher Channel v2.1}} (direct download)
* tga_verify
* The <code>.rpx</code> file of whichever homebrew program you are making a channel for
* The <code>.rpx</code> file of whichever homebrew program you are making a channel for
* The Wii U Common Key
* The Wii U Common Key
** This is in the <code>otp.bin</code> file from your console's NAND dump. Extract it using this [https://www.dropbox.com/sh/gxkf72jia1adpyg/AADjKnHiumn5XSiroEFfPkkWa/CommonKeyExtractor.zip?dl=1 Common Key Extractor]. Copy the key and save it in a text file somewhere; it will be needed later.
** This is in the <code>otp.bin</code> file from your console's NAND dump. The key can be obtained by opening this file in a hex editor, and is located at offsets <code>0x000000E0</code> to <code>0x000000EF</code>. If extracted correctly, it should be a 32-character long hexadecimal number starting with <code>D7B0</code>.
** If you cannot get the extractor to work, the key can also be obtained by opening <code>otp.bin</code> in a hex editor, and is located at offsets <code>0x000000E0</code> to <code>0x000000EF</code>. If extracted correctly, it should be a 32-character long hexadecimal number starting with <code>D7B0</code>.


== Section I - CDecrypt ==
== Section I - Extracting with CDecrypt ==
# Unzip the Homebrew Launcher Channel (will be referred to as the HBLC from here)
#* You can rename the containing folder for organizational purposes. For these instructions, we will rename it from <code>homebrew_launcher_channel.v2.1</code> to <code>my-cool-app</code>
# Unzip CDecrypt
# Create a file named <code>keys.txt</code> in the same directory as the CDecrypt executable, and paste the Wii U Common Key on the first line
# Open a terminal and navigate to the location of the CDecrypt executable
# Use CDecrypt to decrypt the contents of the HBLC
#* For example, if you have the contents of the HBLC in a folder named <code>my-cool-app</code>, the command would be something like: <code>CDecrypt "/path/to/my-cool-app/" "/path/to/my-cool-app/"</code>
#* The folder with the HBLC's contents should now contain three new folders: <code>code</code>, <code>content</code>, and <code>meta</code>. Delete everything in this directory <strong>except</strong> these three folders
#* PLACEHOLDER FOR WHAT TO DO IF COMMON KEY IS WRONG


== Section II - Editing code files ==
== Section II - Editing code files ==
Line 29: Line 17:
== Section III - Editing meta files ==
== Section III - Editing meta files ==


== Section IV - NUSPacker ==
== Section IV - Repacking with NUSPacker ==
# Open a terminal and navigate to the location of <code>NUSPacker.jar</code>
# Use NUSPacker to rebuild
#* For example, if the directory of your edited HBLC is <code>my-cool-app</code>, the command would be something like: <code>java -jar NUSPacker.jar -in "/path/to/my-cool-app/" -out "/path/to/my-cool-app/" -encryptKeyWith XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</code> (replace the XXXX... with the Wii U Common Key)

Revision as of 00:19, 13 October 2022

What You Need

  • The latest release of phacoxcll's CDecrypt fork (The CDecrypt.zip file)
  • The latest release of NUSPacker (direct download)
    • Using NUSPacker requires that you have Java installed on your system.
  • An image editor that supports the .tga image format.
  • The Homebrew Launcher Channel v2.1 (direct download)
  • tga_verify
  • The .rpx file of whichever homebrew program you are making a channel for
  • The Wii U Common Key
    • This is in the otp.bin file from your console's NAND dump. The key can be obtained by opening this file in a hex editor, and is located at offsets 0x000000E0 to 0x000000EF. If extracted correctly, it should be a 32-character long hexadecimal number starting with D7B0.

Section I - Extracting with CDecrypt

Section II - Editing code files

Section III - Editing meta files

Section IV - Repacking with NUSPacker