wwt+wit: Wiimms WBFS+ISO Tools

Discussion in 'Wii - Hacking' started by Wiimm, Sep 28, 2009.

  1. Wiimm
    OP

    Wiimm Developer

    Member
    2,159
    368
    Aug 11, 2009
    Gambia, The
    Germany
    Not released yet, but fixed: http://wit.wiimm.de/changelog.html#r0
     
    JosJuice likes this.


  2. Bri11

    Bri11 Advanced Member

    Newcomer
    55
    0
    Jun 5, 2017
    United States
    How do I convert a WBFS file to an ISO image?
     
  3. GreyWolf

    GreyWolf GBAtemp Psycho!

    Member
    3,951
    760
    Mar 2, 2015
    United States
    wit copy game.wbfs game.iso
     
  4. Bri11

    Bri11 Advanced Member

    Newcomer
    55
    0
    Jun 5, 2017
    United States
    I'm playing Mario Kart Wii on Dolphin Emulator, and for some reason the Wiimote won't connect to Dolphin.
     
  5. Wiimm
    OP

    Wiimm Developer

    Member
    2,159
    368
    Aug 11, 2009
    Gambia, The
    Germany
    Wrong thread!
    Ask the Dolphin forums.
     
    Last edited by Wiimm, Jul 24, 2017
  6. Bri11

    Bri11 Advanced Member

    Newcomer
    55
    0
    Jun 5, 2017
    United States
    I split the image, but the size of the new image was almost similar to the size of the original.
     
  7. Wiimm
    OP

    Wiimm Developer

    Member
    2,159
    368
    Aug 11, 2009
    Gambia, The
    Germany
    Details?
    File listing with size?
     
  8. BullyWiiPlaza

    BullyWiiPlaza Nintendo Hacking <3

    Member
    1,727
    1,409
    Aug 2, 2014
    Germany
    @Wiimm:
    I have a WBFS drive and I want to list all the files contained in the ISOs (!) and filter them for certain extensions. What would be the best way to accomplish this?

    It seems like I have to extract all to ISO and then use wit to list the ISO files or is there a faster way?

    Listing WBFS entries works with the following command:
    Code:
    > wwt LIST-LLL
    
    ID6      m-date    m-time   MiB Reg. 187/500 discs (450 GiB)
    -----------------------------------------------------------------------------------------------------
    RJ2E52 ---------- --:--:-- 2672 USA  007: Quantum of Solace
    RJ2P52 ---------- --:--:-- 3496 PAL  007: Quantum of Solace
    SFWX69 ---------- --:--:-- 3192 EURO 2010 FIFA World Cup South Africa
    RUUE01 ---------- --:--:--  336 USA  Animal
    ...
    -----------------------------------------------------------------------------------------------------
    Total: 187/500 discs, 461280 MiB  450 GiB used, 15648 MiB  15 GiB free.
    
    But extracting all does not work the same way:
    Code:
    > wwt --iso extract . -D D:\
    ****  wwt: Wiimms WBFS Tool v2.40a r7331 cygwin - Dirk Clemens - 2017-01-05  ****
    !! wwt: ERROR #19 [NO WBFS FOUND] in AnalyzePartitions() @ src/wbfs-interface.c#447
    !!      no WBFS partitions found -> abort
    Why is the partition found with LIST and not found with e.g. EXTRACT? I'm on Windows 10.
     
    Last edited by BullyWiiPlaza, Jul 30, 2017
  9. Wiimm
    OP

    Wiimm Developer

    Member
    2,159
    368
    Aug 11, 2009
    Gambia, The
    Germany
    You didn't define a WBFS partition. Use one off --part=device --auto or --all (short -p device, -a -A)
     
  10. Wiimm
    OP

    Wiimm Developer

    Member
    2,159
    368
    Aug 11, 2009
    Gambia, The
    Germany
    [​IMG]

    WIT: Wiimms ISO Tools v3.00a - 2017-08-13
    A command line ISO+WBFS tool set for various os.

    WIT (Wiimms ISO Tools) is a set of command line tools to manipulate Wii ISO images and WBFS containers. The two main tools are called wit (Wiimms ISO Tool) and wwt (Wiimms WBFS Tool, the WBFS manager).

    Feature overview:
    Visit http://wit.wiimm.de/features.html for more details.

    Download of the current version:

    There are also some GUI available:

    Change log:

    Code:
    wit v3.00a r7387 - 2017-08-13
    
     - At the beginning of Wiimms-SZS-Tools I extraced the universal usable source
       code from Wiimms-ISO-Tools and created an independent C source code library
       called »dcLib«. I use this dcLib also for some other projects like mkw-ana,
       Wiimmfi, XDump and some more private projects. Now I inserted the expanded
       and more functional dcLib back into Wiimms-ISO-Tools and removed old WIT
       specific functions and members with same name or functionality. The great
       advantage is the easier management of the shared sources. The adapted code
       works fine with at least one issue: The error codes (numbers, not names)
       changed. If you used »wit error« to translate numbers to messages, you'll
       not have any problems.
    
     - New options: --color[=mode], --256-colors, --no-colors: Define the color
       mode of the tools. If a command is prefixed by 'C-', then --color=ON is
       used implicitly as default. By default, the color support is only enabled
       for terminals. However, commands have to be recoded to support colors.
    
     - List of commands with color support:
        - HELP (complete help system)
        - wit ID6 + ID8 (highlight unusal IDs)
        - wwt SPACE
    
     - Bug fix: When extracting GameCube images, »fst.bin« was 4 times too large.
    
     - Some minor fixes.
    
     - Windows only: Cygwin update to v2.8.1, 2017-07-03.
    
     - Apple Mac is no longer supported because I no longer have access to a Mac.
    
    
    The source is published under the license of GPL2. Checkout the sources directly from the SVN repository or browse the source. Visit http://wit.wiimm.de/ for more information.
     
  11. BullyWiiPlaza

    BullyWiiPlaza Nintendo Hacking <3

    Member
    1,727
    1,409
    Aug 2, 2014
    Germany
    How do you use wfuse? In the documentation it says the following:
    This doesn't work, there is no wfuse binary. Please fix the documentation, I would like to know how to mount the WBFS drive on my computer so I can browse the ISOs and files of each game. Also, there is no stand-alone download for wfuse.

    Thank you :)
     
    Last edited by BullyWiiPlaza, Aug 19, 2017
  12. GreyWolf

    GreyWolf GBAtemp Psycho!

    Member
    3,951
    760
    Mar 2, 2015
    United States
    wfuse was only for macOS/Linux
     
    BullyWiiPlaza likes this.
  13. BullyWiiPlaza

    BullyWiiPlaza Nintendo Hacking <3

    Member
    1,727
    1,409
    Aug 2, 2014
    Germany
    Oh, I use Windows. So no chance of a port? :/
    Nevermind, not needed anymore.

    @Wiimm:
    How do you only extract a single file using wit?
    Code:
    wit FILES RUUE01.wbfs
    prints for instance the following:
    Code:
    ./files/hp_r.elf
    I tried it like this:
    Code:
    wit EXTRACT RUUE01.wbfs --dest=test --files=:./files/hp_r.elf
    But it doesn't work. Please let me know how it's done.
     
    Last edited by BullyWiiPlaza, Aug 19, 2017
  14. Wiimm
    OP

    Wiimm Developer

    Member
    2,159
    368
    Aug 11, 2009
    Gambia, The
    Germany
    FUSE is not compatible with Cygwin/Windows. There are/were several projects to change this. So I'm not sure about the current state of Cygwin.

    However I like and use it every time, when I want to investigate game images. In this case I mount it on Linux and use often the Total Commander on Windows.


    EDIT
    @BullyWiiPlaza
    does "hp_r.elf" really exists?
    In PAL no *.elf exists.


    EDIT 2:
    forgotten, "+FILENAME" is correct (not ":FILENAME")
     
    Last edited by Wiimm, Aug 19, 2017
  15. BullyWiiPlaza

    BullyWiiPlaza Nintendo Hacking <3

    Member
    1,727
    1,409
    Aug 2, 2014
    Germany
    Sorry, wrong game.
    Code:
    WIT FILES RWOP69.wbfs > Files.txt
    Files.txt:
    Code:
    
    path + file
    -------------------
    ./
    ./cert.bin
    ./disc/
    ./disc/header.bin
    ./disc/region.bin
    ./files/
    ./files/data.big
    ./files/hp_r.elf
    ./files/movies.big
    ./files/music.big
    ./files/opening.bnr
    ./h3.bin
    ./setup.bat
    ./setup.sh
    ./setup.txt
    ./sys/
    ./sys/apploader.img
    ./sys/bi2.bin
    ./sys/boot.bin
    ./sys/fst.bin
    ./sys/main.dol
    ./ticket.bin
    ./tmd.bin
    Trying to extract:
    Code:
    > wit EXTRACT RWOP69.wbfs --dest=Test --files=+/files/hp_r.elf
    *****  wit: Wiimms ISO Tool v3.00a r7387 cygwin - Dirk Clemens - 2017-08-13  *****
    wit: EXTRACT 1/1 WBFS:RWOP69.wbfs/#0 -> Test/
    
    This worked finally.
     
    Last edited by BullyWiiPlaza, Aug 19, 2017
  16. Wiimm
    OP

    Wiimm Developer

    Member
    2,159
    368
    Aug 11, 2009
    Gambia, The
    Germany
    A forgotten minus sign. Long options always preceded by -- => --files
     
  17. BullyWiiPlaza

    BullyWiiPlaza Nintendo Hacking <3

    Member
    1,727
    1,409
    Aug 2, 2014
    Germany
    Nevermind, I got it now. I edited the previous post. Sorry.
     
    Last edited by BullyWiiPlaza, Aug 19, 2017
  18. Wiimm
    OP

    Wiimm Developer

    Member
    2,159
    368
    Aug 11, 2009
    Gambia, The
    Germany
    BullyWiiPlaza likes this.
  19. BullyWiiPlaza

    BullyWiiPlaza Nintendo Hacking <3

    Member
    1,727
    1,409
    Aug 2, 2014
    Germany
    Even better, now no other useless folders and files are dumped as well. :)
     
  20. piratesephiroth

    piratesephiroth I wish I could read

    Member
    3,002
    1,617
    Sep 5, 2013
    Brazil
    When composing/converting files, why isn't it possible to create an encrypted but unsigned image?
    If we want it to be encrypted then it must also be fakesigned, and fakesigning isn't even useful for anything anymore.
     
    Last edited by piratesephiroth, Aug 29, 2017