Hacking wwt+wit: Wiimms WBFS+ISO Tools

t0_0

Active Member
Newcomer
Joined
Mar 3, 2017
Messages
43
Trophies
0
XP
101
Country
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,

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
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.
 
  • Like
Reactions: t0_0

t0_0

Active Member
Newcomer
Joined
Mar 3, 2017
Messages
43
Trophies
0
XP
101
Country
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,

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
Without any problem the games were selectable and playable on my wii (one ISO and one wbfs)
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.
 

t0_0

Active Member
Newcomer
Joined
Mar 3, 2017
Messages
43
Trophies
0
XP
101
Country
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.
 

t0_0

Active Member
Newcomer
Joined
Mar 3, 2017
Messages
43
Trophies
0
XP
101
Country
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.
 

XFlak

Wiitired but still kicking
Member
Joined
Sep 12, 2009
Messages
13,809
Trophies
3
Age
38
Location
Cyprus, originally from Toronto
Website
modmii.github.io
XP
9,796
Country
Cyprus
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
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
wiimms-tools.png


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.

--------------------- MERGED ---------------------------
 
  • Like
Reactions: cvskid

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,649
Country
France
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,

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,649
Country
France
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.
 
  • Like
Reactions: cvskid

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
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,
  • Like
Reactions: cvskid

deef0000dragon1

New Member
Newbie
Joined
Dec 2, 2018
Messages
2
Trophies
0
Age
27
Location
Mars
XP
56
Country
United States
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.
 

qashto

New Member
Newbie
Joined
Dec 7, 2018
Messages
1
Trophies
0
Age
27
XP
48
Country
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?
 

tswntk

Well-Known Member
Member
Joined
Aug 6, 2012
Messages
1,018
Trophies
1
XP
2,367
Country
Switzerland
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......

from the OP of this thread:
WIT (Wiimms ISO Tools) is a set of command line tools to manipulate Wii ISO images and WBFS containers.

not too sure if will work on GC iso. For that you can use GameCube Rebuilder
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: @BakerMan, I have a piano keyboard but I never use it