[Help] How to dump a game to USB format?

Discussion in 'Wii U - Hacking & Backup Loaders' started by Txustra, Nov 14, 2016.

  1. Txustra
    OP

    Txustra GBAtemp Fan

    Member
    330
    55
    May 18, 2013
    Hello tempers.
    I have succesfully transfered the patched files of the uncensored Tokyo Mirage Sessions from loadiine to the USB version (via wupclient, not NUSPacker) and I have to say that it works perfectly, as you can see in the images at the end of the post.

    Now my question is if it is possible to redump the game (installed as usb format -the game was taken from Wii U USB helper-) again as usbformat to share it with you in that iso site.

    Your help is welcome.

    1.jpg 2.jpg 3.jpg
     
    Last edited by Txustra, Nov 14, 2016
  2. Txustra
    OP

    Txustra GBAtemp Fan

    Member
    330
    55
    May 18, 2013
    So... I guess it is impossible? :(
     
  3. JimmyZ

    JimmyZ Sarcastic Troll

    Member
    569
    318
    Apr 2, 2009
    Zimbabwe
    I actually wrote a longer answer, but no.
     
  4. nexusmtz

    nexusmtz GBAtemp Maniac

    Member
    1,251
    433
    Feb 17, 2016
    United States
    Non-answer: It wouldn't be an install, but you could zip up the replacement files in the proper structure and provide instructions to unzip to an SD card and run a cpdir command.
     
    Tarantus likes this.
  5. NWPlayer123

    NWPlayer123 GBAtemp Addict

    Member
    2,629
    6,226
    Feb 17, 2012
    United States
    The Everfree Forest
    If you want to install mods, it's actually fairly easy with sigpatches and that packer someone made to generate the .app needed to install, um, iosu lets you get the key or ticket for the game (in this case TMS#FE), there are numerous programs to download it to your computer that are 4x faster than trying to dump over the network, so you have the raw legit installable files for the main game
    You can "install" mods by making a custom "update", extracting an update if there is one, updating the version number in the three xmls, and adding in the modded files, and generating the .app, it'll install as a 0004000E update and the system will load it as it sees it as the latest version
     
    zeldaism, markehmus and Keizel like this.
  6. nexusmtz

    nexusmtz GBAtemp Maniac

    Member
    1,251
    433
    Feb 17, 2016
    United States
    Would this update, once installed, be accepted without sigpatches (as long as nothing is subject to file verification)? That could be a factor in deciding whether to do it manually or as a package.
     
  7. NWPlayer123

    NWPlayer123 GBAtemp Addict

    Member
    2,629
    6,226
    Feb 17, 2012
    United States
    The Everfree Forest
    uhh don't think so, everything needs to be signed, it's just easier to distribute if the user already has the base game, packaging all the modified files is way less size than reinstalling the entire game and
    my theory is that the base game will boot but it'll complain about the "update" and either use the base game or force you to redownload, might be able to get it so the base game loads without sigpatches and the modded version loads with sigpatches cause of lack of verification, I haven't actually tested it out yet as I'm only using redNAND for modded stuff
     
    nexusmtz likes this.
  8. Tarantus

    Tarantus GBAtemp Regular

    Member
    100
    27
    Mar 11, 2015
    Brazil
    -24.100361, -45.689251
    @Txustra would you care to explain how you did to do it?
     
  9. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    18,029
    8,551
    Oct 27, 2002
    France
    Engine room, learning
    Get the loadiine patched version
    get the full game in NUS format from NUS or WUD
    install the NUS format with WUP installer
    Run a fw.img to enable NAND file access
    run a file access program (WUP Server or Ftpii_everywhere)
    replace modified files from loadiine into your NAND's original files.

    (ftpii_everywhere is faster than wup server, but dangerous too, don't edit random files!)
     
    AboodXD likes this.
  10. Txustra
    OP

    Txustra GBAtemp Fan

    Member
    330
    55
    May 18, 2013
    Thats what I actually did with wupserver, but transfering files directly form sd to Wii U internal, wich is waaaay faster.
     
  11. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    18,029
    8,551
    Oct 27, 2002
    France
    Engine room, learning
    ah yes, I saw we could mount sd and nand at the same time and make a w.up("sd path", "nand path").
    probably faster (and safer) than using ftpii_everywhere in fxp mode.
     
  12. Txustra
    OP

    Txustra GBAtemp Fan

    Member
    330
    55
    May 18, 2013
    It tooks "only" about 4 hours more or less. I think it is ok considering there was files with 2gb and 4gb size...
     
  13. Tarantus

    Tarantus GBAtemp Regular

    Member
    100
    27
    Mar 11, 2015
    Brazil
    -24.100361, -45.689251
    Seems like I need to learn all WUPServer/Client commands xD
    Since there is no doc for this, I supose I've to read everything from the source code, right? That wouldn't be a big problem, but how about the "right path" do follow? How do I mount SD and USB to work with both? Is just like a common command line OS with dir/ls, copy, move, etc?
     
  14. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    18,029
    8,551
    Oct 27, 2002
    France
    Engine room, learning
    someone made a list !
    I'll look at it and edit here in a minute.

    edit:
    https://gbatemp.net/posts/6848008

    I think the list is still incomplete (missing the unmount command, and the latest addition by Fix94)
    missing commands


    I guess what you want is :

    w.mount_sd()
    w.cp("sd path", "nand path")
    or
    w.cpdir("/vol/storage_sdcard/path/", "/vol/storage_mcl01 or usb01/usr/title/00050000/YOUR_GAME_TITLE_ID/content/", )
    w.unmount_sd()


    You don't need to un/mount the storage_usb01?
     
    Tarantus likes this.
  15. Txustra
    OP

    Txustra GBAtemp Fan

    Member
    330
    55
    May 18, 2013
    If you put all the necessary files into a folder within your SD, use the comand w.cpdir (same arguments) instead, which will copy all files inside that directory instead of doing w.cp for each one.
     
  16. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    18,029
    8,551
    Oct 27, 2002
    France
    Engine room, learning
    yes, it will copy everything.
    I'm looking if it's subfolder recursive too, but it should be.

    edit: yes, it's recursive and create subfolders.
    I don't know if "mkdir" check for existing folders though. still looking.

    edit2:
    it works, but only on console -> PC direction.
    I don't think console->console can check for existing folders, it only creates it? is it skipped if it already exist?

    @FIX94 maybe you know how it works?
    I tried to look at the client.py, but all I found is that it relied on svcioctl

    cpdir -> self.mkdir(_dstpath, 0x600) -> w.FSA_MakeDir(fsa_handle, path, flags) -> svcIoctl 0x07
     
  17. AboodXD

    AboodXD I hack NSMB games, and other shiz.

    Member
    2,664
    1,392
    Oct 11, 2014
    United Arab Emirates
    Not under a rock.
    No, that won't work.

    Me and @EclipseSin have done some testing and it seems like the games softlock. (Which means that the games won't accept fake updates)

    @Maschell says it's probably something related to FS.
     
  18. conanac

    conanac Be an Angel

    Member
    254
    102
    Sep 13, 2009
    United States
    Here are the steps that you could try:
    1. Run wupserver at WiiU (either with SysNAND or RedNAND setting)
    2. Run wupclient.py at PC
    3. Use the following command and replace XXXXXXXX with your game title ID to dump or copy either the original or the modified game files from your USB (it could take a while if the game files are big size):
      Code:
      mount_sd()
      w.mkdir("/vol/storage_sdcard/dumpgame", 0x600)
      w.cpdir("/vol/storage_usb01/usr/title/00050000/XXXXXXXX","/vol/storage_sdcard/dumpgame")
      unmount_sd()
      
    4. Follow the instructions for using NUSPacker or WiiUInstallerPackerv4 to repack the game files in your SD card "dumpgame" folder to the installable package
    5. Run RedNAND and install the package using WUPInstaller after copying that package into "install" folder in your SD card
    6. Test playing the game in RedNAND
    7. Profit
    If you want to use NUSPacker make sure you have or use the latest RedNAND iosuhax from dimok github code repository.

    I have done almost similar thing, but using the disc directly instead of USB for the source of game files. Here is the video to show the result after I used similar steps to create "eShop" US version of "Animal Crossing: Amiibo Festival" game. I did this since there is no eShop US version for this game, and I would like to play the game without the need of using the disc.



    Cheers.
     
    Last edited by conanac, Nov 19, 2016
    AboodXD and Txustra like this.