Wii on Wii U Virtual Console: Injecting Games

Discussion in 'Wii U - Tutorials' started by piratesephiroth, Sep 3, 2017.

  1. piratesephiroth
    OP

    piratesephiroth I wish I could read

    Member
    3,002
    1,617
    Sep 5, 2013
    Brazil
    Requirements:
    WiiScrubber v1.40;
    nfs2iso2nfs v0.5.1; it may require the Wii common Key. You can use wiiscrubber's key.bin renamed to wii_common_key.bin.
    A clean rip of your Wii game;
    The extracted contents of a Wii VC title for the Wii U (except the .nfs files);
    -the 2 below require java to be installed-
    jnustool (requires Wii U common key so you'll have to search online - hint: it begins with D7B0. Open the "config" file in notepad and paste the key inside, replacing [COMMONKEY]);
    NUSpacker (must be @ihaveamac's version, requires Wii U common key as well)

    Current limitations:
    It's possible to use the gamepad to emulate ONLY the Classic Controller.
    Wii Remote emulation is possible but there's no gyroscope or infrared commands (at least for now).
    (Input emulation patches by @FIX94)

    The game must be already compatible with the Classic Controller but that isn't a guarantee that it's going to work.
    Here's a compatibility list: http://wiki.gbatemp.net/wiki/WiiU_VC_Wii_inject_compatibility_list

    Integrity checks are still in place so only clean disc rips work.
    The game iso must be pristine: untrimmed, unscrubbed and the partitions signed.
    No homebrew, no mods, no wimmfi patched games until sigpatches are implemented.

    Patched isos work now! Original idea by @Tock46!

    Homebrew works now, even a special version of Nintendont by @FIX94

    Trimmed isos still don't work, at least not isos trimmed by WiiScrubber.



    HOW TO DO IT


    0. Downloading a Wii VC Title
    This may be illegal and I'm just telling you so you don't ever do it by mistake OK?
    You can use the command line to download games' contents directly if you know the title id and title key.
    I heard you can get them on a certain titlekeys site...

    Once you have that, this is the command
    Code:
    java -jar JNUSTool.jar TITLEID TITLEKEY
    [​IMG]

    Note: You should get a game that contains the latest revision of fw.img (r590), that's the only version supported by @FIX94's patches.
    Here's some info you can use to verify that you have a good file:
    Size: 1785497 bytes.
    CRC32: E2F27E9B
    MD5: 3CAF52A9A440EEE4F125A3AD22E305C8
    SHA: A5A75EBF3164874830A1D5992495DE510AB3F74E

    Now here's a list of some titles that contain the preferred fw.img (verified mostly by @fejich and @markehmus)
    DONKEY KONG JUNGLE BEAT [VBXE01]
    Kirby's Epic Yarn [VARE01]
    Lost in Shadow [VA8E01]
    Mario Strikers Charged [VBFE01]
    Mario Super Sluggers [VBHE01]
    Pandora's Tower [VAPE01]
    PIKMIN 2 [VBTE01]
    PIKMIN [VBUE01]
    Resident Evil 4 Wii Edition [VBDE01]
    Resident Evil The Umbrella Chronicles [VBWE01]
    Rhythm Heaven Fever [VAKE01]
    Sin and Punishment Star Successor [VALE01]
    Super Mario Galaxy [VBKJ01]
    Super Paper Mario [VBBE01]
    The Legend of Zelda Skyward Sword [VANE01]
    Trauma Team [VA6E01]
    Wario Land Shake It [VBGE01]
    WARIO WARE SMOOTH MOVES [VBVE01]





    -----------------------------------------------

    1. WiiScrubber
    First setup WiiScrubber. Remember it needs the Wii common keys so run MakeKeyBin.exe first and do as it says.
    Run it and open you iso. Right-click the UPDATE partition and select "Delete partition". Confirm.
    [​IMG]

    Now click on the + box to expand the DATA partition, then expand partition.bin.
    Right click tmd.bin, select "Extract" and save it.
    Do the same with ticket.bin.
    [​IMG]

    Rename the extracted ticket.bin to rvlt.tik
    Rename the extracted tmd.bin to rvlt.tmd

    Copy/move both files to the "code" folder of the Wii VC title.

    Your iso is now ready and you can close WiiScrubber.


    2. nfs2iso2nfs
    Move your iso to the "content" folder of the Wii VC. Rename the file to "game.iso".
    The content folder should contain only game.iso and the "assets" folder. Delete any nfs files that are still present.

    Copy nfs2iso2nfs.exe to the content folder and run it. If everything is in place, it will begin the conversion process.
    It should take around 15 minutes. Its console window will close when it's finished.
    Once it ends you can delete your iso file and nfs2iso2nfs.exe (and wii_common_key.bin if it exists).
    The content folder should contain only the nfs files and the "assets" folder.

    Optional: You can enable Classic Controller emulation for playing using only the gamepad.
    Open meta.xml (it's in the meta folder) in notepad.
    Look for the line
    Code:
    <drc_use type="unsignedInt" length="4">1</drc_use>
    replace it with
    Code:
    <drc_use type="unsignedInt" length="4">65537</drc_use>
    and save the file.
    Note that this will only work if the game supports the Classic Controller.
    If it doesn't either it won't boot or you won't be able to do anything and only the gamepad's power button will work.
    Here's a list of such games: https://wiki.gbatemp.net/wiki/List_of_Wii_games_compatible_with_Classic_Controller


    3.NUSpacker
    The final part, building the installation files.
    NUSpacker requires the Wii U common key. You should find it online and then open the file "encryptKeyWith" with
    notepad and paste the key inside (hint: it begins with D7B0)

    It's also a command line tool so you'll have to write down the commands, or simply create a new text file,
    write the command inside, save it and change the extension from .txt to .bat

    I recommend copying the Wii VC folder (that contains the other 3 folders, code, content and meta) to nuspacker's folder.
    That will make everything easier.

    The command works like this (replace with the names of your own folders)
    If you folders have spaces in their names, enclose them in quotation marks, like "Just Dance".
    Code:
    java -jar nuspacker.jar -in GAME_FOLDER -out INSTALATION_FILES_FOLDER
    Wiait until it finishes the process.
    Now just copy the folder with the installation data to the "install" folder SD card, run a CFW and install it with WUP Installer GX2!

    PS: If you make a nonfunctional game, remember to uninstall it before trying again.
    If you install a fiunctional game over a broken installation, it will still appear as broken.
     

    Attached Files:

    Last edited by piratesephiroth, Sep 17, 2017 at 7:39 PM - Reason: fixed minor mistake in nfs2iso2nfs's check of fw.img's revision
    gbamix, desvamp, Link5261 and 52 others like this.


  2. ShadowOne333

    ShadowOne333 GBAtemp Guru

    Member
    6,856
    4,346
    Jan 17, 2013
    Mexico
    May Lord Miyamoto bless you with the knowledge to get sigpatches running haha
     
    Dekirai, iAqua, CheatFreak47 and 7 others like this.
  3. Feffe

    Feffe Advanced Member

    Newcomer
    71
    29
    Oct 12, 2008
    Italy
    Are those vWii side? Wii U side? Inside the "Virtual Console" wrapper?
     
  4. piratesephiroth
    OP

    piratesephiroth I wish I could read

    Member
    3,002
    1,617
    Sep 5, 2013
    Brazil
    I'm not sure but I think it's inside the wrapper, fw.img. It does the job of emulating the disc interface (and is able to even emulate a classic controller) so it must be the one doing the checking.
     
    Last edited by piratesephiroth, Sep 3, 2017
  5. lisreal2401

    lisreal2401 GBAtemp Fan

    Member
    480
    197
    Jun 4, 2013
    United States
    nfs2iso is only building the first 500mbs of my input game Paper Mario which is way smaller then my output game Black Ops - do I need to use a game that is larger than the ISO I'm trying to convert?
     
  6. piratesephiroth
    OP

    piratesephiroth I wish I could read

    Member
    3,002
    1,617
    Sep 5, 2013
    Brazil
    Are you using my updated version of nfs2iso2nfs? Do you have enough empty space on your drive?
    The total nfs files should be as big as the original iso.
     
  7. SupremeDevice

    SupremeDevice Member

    Newcomer
    23
    12
    Jan 5, 2017
    United States
    Nope, the size of all the .nfs files should be only about the size of the game you injected. The size of the original game doesn't matter.
     
  8. lisreal2401

    lisreal2401 GBAtemp Fan

    Member
    480
    197
    Jun 4, 2013
    United States
    Yes, the conversion begins fine but the output NFS files are the same size as the input game... is it using files in the code folder to set that or what?
     
  9. the_randomizer

    the_randomizer The Temp's official fox whisperer

    Member
    21,186
    10,073
    Apr 29, 2011
    United States
    Dr. Wahwee's castle
    It'll be interesting to see how compatible the compatibility layer they used is to run Wii VC games.
     
    KiiWii likes this.
  10. SupremeDevice

    SupremeDevice Member

    Newcomer
    23
    12
    Jan 5, 2017
    United States
    If I had to guess, anything that only uses one partition should be fine, but Nintendo's been known for not implementing perfect emulation before
     
  11. lisreal2401

    lisreal2401 GBAtemp Fan

    Member
    480
    197
    Jun 4, 2013
    United States
    I know what I did wrong - nfs2iso had the nfs files in the folder when I ran it, making it... nfs2iso and making my Black Ops ISO not Black Ops. I deleted the nfs files but only realized I fucked up when I thought about it. And now I need to get the ISO again... fuckkkkkk.
     
  12. the_randomizer

    the_randomizer The Temp's official fox whisperer

    Member
    21,186
    10,073
    Apr 29, 2011
    United States
    Dr. Wahwee's castle
    Of course, other developers have done better emulation, M2, NERD, to name a couple of teams.
     
  13. UsualNoise

    UsualNoise Advanced Member

    Newcomer
    78
    22
    Jan 7, 2009
    United States
    1) To confirm, you need at least one Wii VC game on your Wii U already, correct?
    2) You mention needing CFW to run WUP Installer GX2. I installed a bunch of games with WUP Installer mod Y without needing CFW. Does the mod Y flavor work with Wii VC installation as well, or do you actually need CFW?

    Thanks for this!!
     
  14. piratesephiroth
    OP

    piratesephiroth I wish I could read

    Member
    3,002
    1,617
    Sep 5, 2013
    Brazil
    no, you need the unpacked files of a Wii U Wii VC.
    You need a CFW to install and run them because you're packing the instalation files yourself, therefore they're not signed.
     
    Masterwin likes this.
  15. UsualNoise

    UsualNoise Advanced Member

    Newcomer
    78
    22
    Jan 7, 2009
    United States
    OK thanks, so can I get that from an already-owned VC title if I have one? Or do I need to look 'elsewhere'?
     
  16. duffmmann

    duffmmann GBAtemp Psycho!

    Member
    3,642
    1,479
    Mar 11, 2009
    United States
    This is awesome, I didn't even think this would even be possible at this point. I can't wait to play some of the best Wii (classic controller controlled) games right on my Wii U gamepad. Shame mods don't work though, Project M would be perfect for this.

    Anyone doing injects looking to make the most of the ability to use the gamepad as a classic controller, this is a list of the Wii games playable with the classic controller: http://gbatemp.net/threads/wii-on-wii-u-virtual-console-injecting-games.483007/ I personally would like to see Rune Factory Frontier, Mario Kart Wii, Brawl, Sonic Colors, and Fire Emblem Radiant Dawn to be playable in this way on the Wii U.

    I'm curious though can this method also be used for injecting WiiWare titles? Or is it only Wii retail games?
     
    Last edited by duffmmann, Sep 3, 2017
  17. piratesephiroth
    OP

    piratesephiroth I wish I could read

    Member
    3,002
    1,617
    Sep 5, 2013
    Brazil
    yeah, you actually can extract the relevant files from an already installed title using ftpiiu-everywhere (on the wii u) or WFS-Extract (on the PC).
    You just have to know its title id.
     
    Last edited by piratesephiroth, Sep 3, 2017
    UsualNoise likes this.
  18. fejich

    fejich Member

    Newcomer
    47
    30
    Nov 26, 2016
    China
    Try to modify the NSMBW Mario Wii with gamepad control. Failed, only get a black screen
     
  19. SupremeDevice

    SupremeDevice Member

    Newcomer
    23
    12
    Jan 5, 2017
    United States
    Modified ISOs do not work.
     
  20. piratesephiroth
    OP

    piratesephiroth I wish I could read

    Member
    3,002
    1,617
    Sep 5, 2013
    Brazil
    He edited meta.xml, I think.