wwt+wit: Wiimms WBFS+ISO Tools

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

  1. t0_0

    t0_0 Member

    Newcomer
    1
    Mar 3, 2017
    Netherlands
    double post
     
    Last edited by t0_0, Jul 11, 2018
  2. t0_0

    t0_0 Member

    Newcomer
    1
    Mar 3, 2017
    Netherlands
    Haven't updated my wii HD in years (only 32 GB) and I am now trying to format a HD to wbfs and add some games on it. Using Linux (ubuntu 18.04)
    I used qwbfs manager but I can't get it to format any of my HD's so I am now trying wit/wwt. Seems to have all the features I need and did some testing on my old HD and it was working nicely.

    Unfortunately still not possible to format my disk to wbfs and add an .iso on there. This is what I did.

    sudo wwt --force FORMAT /dev/sdb
    ***** wwt: Wiimms WBFS Tool v2.31a r0 x86_64 - Dirk Clemens - 2016-02-08 *****
    FORMAT BLOCK DEVICE /dev/sdb [75 GiB, hss=512]
    ** 1 file formatted.

    after that tried to copy an iso to the just created wbfs drive

    sudo wwt ADD /home/t0/file\ like\ this.iso
    ***** wwt: Wiimms WBFS Tool v2.31a r0 x86_64 - Dirk Clemens - 2016-02-08 *****
    !! wwt: ERROR #19 [NO WBFS FOUND] in AnalyzePartitions() @ src/wbfs-interface.c#447
    !! no WBFS partitions found -> abort

    used sudo and without - both failed

    sudo wwt LIST did find something

    ID6 0/215 discs (0 GiB)
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    Total: 0/215 discs, 0 MiB ~ 0 GiB used, 76290 MiB ~ 75 GiB free.

    without sudo it doesn't

    wwt LIST

    !! wwt: ERROR #19 [NO WBFS FOUND] in AnalyzePartitions() @ src/wbfs-interface.c#447
    !! no WBFS partitions found -> abort

    Is there something I missed?

    [edit]

    sudo wwt analyze /dev/sdb

    ANALYZE /dev/sdb
    ------------------------------------------------------------------------------------
    HD SECTORS WBFS SECTORS DISCS (all values in hex)
    WBFS total sec total sec max inode
    NAME magic vrs num size num size num size ADDITIONAL INFORMATION
    ------------------------------------------------------------------------------------
    HEADER: ok 1 9502f90 200 9502 200000 d7 2600 WBFS header scanning
    INODE-TIM: ok 1 9502f90 200 9502 200000 d7 2600 2018-07-11 22:12:14 n=215
    ------------------------------------------------------------------------------------
     
    Last edited by t0_0, Jul 12, 2018
  3. Wiimm
    OP

    Wiimm Developer

    Member
    6
    Aug 11, 2009
    Germany
    Germany
    Device for add missed:
    Add --part /dev/sdb (or -p /dev/sdb) for a specific drive.
    Add --auto (or -a) for auto detection (only possible if exact one WBFS drive is found).
    Add --all (or -A) to add to all found partitions.
     
    t0_0 likes this.
  4. t0_0

    t0_0 Member

    Newcomer
    1
    Mar 3, 2017
    Netherlands
    thanks! Just successfully copied two files on the drive and will give it a try.

    [edit]

    Without any problem the games were selectable and playable on my wii (one ISO and one wbfs)
     
    Last edited by t0_0, Jul 12, 2018
  5. Wiimm
    OP

    Wiimm Developer

    Member
    6
    Aug 11, 2009
    Germany
    Germany
    Nothing else expected. I use my tools since 2009 with 2 drives and add/replace images >100 times each year for MKW track tests. In the last years I had never any issues.

    btw, wwt ignores the "used block table". Instead it analyses the whole file structure and repairs the header if necessary. It needs <1s to do this.
     
  6. t0_0

    t0_0 Member

    Newcomer
    1
    Mar 3, 2017
    Netherlands
    Hi - what is the best method to copy wbfs files from a wbfs file system? I tried copy --wbfs and it seemed to work but none of the files are recognized by the wii.
    I like to copy all wbfs files to a FAT32 formatted HD.
     
  7. XFlak

    XFlak Wiitired but still kicking

    Member
    7
    Sep 12, 2009
    Canada
    Ontario
    Have u tried wii backup manager? It's got a front end Gui and everything. Wiimm's tools are for slightly more advanced users or for brains/backend-support for other tools. Wiimm himself is a legend and even created his own unique wii format if I'm not mistaken.
     
  8. t0_0

    t0_0 Member

    Newcomer
    1
    Mar 3, 2017
    Netherlands
    Hi XFlag - thanks for the suggestion. I like to use (native) Linux tools as much as possible for maintaining my Wii games collection.
    If I can't get it to work with Wiimms tools I will certainly give backup manager a try. Seems to work under wine so at least I don't have to boot into Windows then.
     
  9. XFlak

    XFlak Wiitired but still kicking

    Member
    7
    Sep 12, 2009
    Canada
    Ontario
    How much maintainence on your collection do you really need at this point? For me, and I would think for most people at this stage in the Wii's life cycle, it's a set it and forget it strategy i.e. You'll maybe use a game manager once, then when will u ever need to transfer/convert games again, not like many new games are being released these days, plus after they're converted u can just copy like you would normally with any other kind of of files
     
  10. t0_0

    t0_0 Member

    Newcomer
    1
    Mar 3, 2017
    Netherlands
    Just gave it another try with EXTRACT instead of COPY and worked fine this time.
    sudo wwt extract -a <<ID6>>
     
  11. Wiimm
    OP

    Wiimm Developer

    Member
    6
    Aug 11, 2009
    Germany
    Germany
    [​IMG]

    WIT: Wiimms ISO Tools v3.02a - 2018-11-23
    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 https://wit.wiimm.de/features.html for more details.

    Download of the current version:

    There are also some GUI available:

    Change log:

    Code:
    wit v3.02a r7679 - 2018-11-23
    
     - Windows version only: Update to Cygwin 2.11.1.
    
     - Options --wiimmfi & --domain: Domain 'sake.gamespy.com' is replaced too,
       but only if the new domain is not longer than 11 characters. This is a
       special support for 'Super Smash Bros. Brawl'.
    
     - Option --dsync[=MODE] changed: --dsync accepts an optional parameter MODE
       now. If set, it one of OFF (disable), ON (enable) or AUTO (default). With
       AUTO, DSYNC is enabled if the progress counters are active. This option has
       only impact, if compiler and operation system support the flag O_DSYNC.
       Linux does.
    
     - Option --progress (-P) changed: Print progress counter. If --verbose is set
       at least twice, printing is enabled too. If progress is enabled, the
       default of --dsync is changed.
    
     - Some minor bug fixes.
    
    
    — Posts automatically merged - Please don't double post! —
     
    cvskid likes this.
  12. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    21
    Oct 27, 2002
    France
    Engine room, learning
    is sake.gamespy.com replaced with wiimmfi.de like nintendo url ?
    I noticed some nas url references.

    Just trying to understand what should be patched for usbloadergx internal patch system for wiimmfi.
    I don't talk about the mario kart newly patching system, just the regular game patches which can be done at launch.

    - if url is bigger than 11, and sake url not replaced, it's not a problem? (I don't think it's a problem for me, as I don't allow users to provide an url)
    - do I need to replace some urls to use nas urls?
     
    Last edited by Cyan, Nov 24, 2018
  13. FancyNintendoGamer567

    FancyNintendoGamer567 GBAtemp Advanced Fan

    Member
    4
    Feb 13, 2017
    United States
    But how do we utilize this exclusive support for SSBB in --wiimmfi/--domain? Trying to patch Brawl's main.dol never worked for me?
     
  14. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    21
    Oct 27, 2002
    France
    Engine room, learning
    just use the --wiimmfi option and it'll patch all the needed urls.
    the "--domain" tag is used to patch nintendo's url to another custom url, not for wiimmfi server.
    there's not that much custom servers to use that function, but it's there if needed one day.
     
    cvskid likes this.
  15. Wiimm
    OP

    Wiimm Developer

    Member
    6
    Aug 11, 2009
    Germany
    Germany
    @Cyan
    As I know, you can find "sake.gamespy.com" only in SSBB. It seems to be a mistake by Nintendo, because usually the domain is "GAMENAME.sake.gs.nintendowifi.net". And yes, it is replaced too.

    If it is not replaced, there are some issues. Poke Acer of Wii-Homebrew.com is able to explain it.
     
    Last edited by Wiimm, Nov 25, 2018
    cvskid likes this.
  16. deef0000dragon1

    deef0000dragon1 Newbie

    Newcomer
    1
    Dec 2, 2018
    United States
    Mars
    tldr: I currently cant get a simple wit extract, followed by a wit copy to create a working ISO.

    I am working on a gamecube TAS robot for my senior design project. Part of the project requires the manipulation of game files to allow for debugging. Specifically, we are using the hardware port on the gamecube as a data output, and want to insert code into the game so that, after X frames, the game writes the memory out to the port. My plan was to use GCIT or WIT to create a file structure from the game, edit the file (I think it is main.dol), and then rebuild the ISO. Unfortunately, I cant get GCIT or WIT to produce a working ISO even with only wit extract followed by wit copy.

    Wit extract DOES produce a folder structure similar to that produced by GCIT, so it appears to be working, but wit copy doesn't work in dolphin, nor is it recognized by GCIT.

    Is there something that I am missing to get a clean folder and clean iso?

    Running on 3.01a (3.02a seems bugged on windows, refusing to run simple commands at all.)


    If I am overlooking a much simpler solution to editing the game files, A point in the right direction would also be helpful.
     
  17. deef0000dragon1

    deef0000dragon1 Newbie

    Newcomer
    1
    Dec 2, 2018
    United States
    Mars
  18. qashto

    qashto Newbie

    Newcomer
    1
    Dec 7, 2018
    United States
    qashto:GAMES qashto$ wit id /Users/qashto/Documents/emu/Dolphin/GAMES/Super\ Smash\ Bros.\ Melee\ \(USA\)\ \(En\,Ja\)\ \(v1.02\).iso
    !! wit: ERROR #126 [FATAL ERROR] in wd_read_part() @ src/libwbfs/wiidisc.c#865
    !! ASSERTION FAILED !!!
    qashto:GAMES qashto$ wit id /Users/qashto/Documents/emu/Dolphin/GAMES
    !! wit: ERROR #126 [FATAL ERROR] in wd_read_part() @ src/libwbfs/wiidisc.c#865
    !! ASSERTION FAILED !!!

    I get these errors on macOS and PC. Am I doing something wrong?
     
  19. tswntk

    tswntk GBAtemp Advanced Fan

    Member
    5
    Aug 6, 2012
    Switzerland
    from the OP of this thread:
    not too sure if will work on GC iso. For that you can use GameCube Rebuilder
     
  20. bengalih

    bengalih Advanced Member

    Newcomer
    3
    Jun 28, 2009
    United States
    Just wanted to say thanks for the continued development!
     
  21. aplumafreak500

    aplumafreak500 Member

    Newcomer
    2
    Dec 20, 2014
    United States
    Meyersdale, PA
Loading...