Hacking wwt+wit: Wiimms WBFS+ISO Tools

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
WARNING:
Don't use "wit copy --remove ..." to transfer images from one disc to another!

Someone told me, that the images on the source disc are also removed, if the copy fails because of disc full.
Without option --remove, the tool works like expected.
 

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 v2.13a - 2013-03-28
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.htmlfor more details.

Download of the current version:
There are also some GUI available:

Change log:

Code:
wit v2.13a r4298 - 2013-03-28
 
- New docu file: INSTALL.txt
 
- Mac+Linux+Unix: Script 'install.sh' will call itself with 'sudo' if not
  started by user 'root'.
 
- Windows: Cygwin updated.
 
- Bug fix: If writing an image failed ('disc full' for example), the tools
  didn't aborted and, if option --remove was set, deleted the source image.
  This bug arrived with the implementation of preallocation, because of a
  lost error status.

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.
 

Henk Poley

New Member
Newbie
Joined
Apr 27, 2013
Messages
2
Trophies
0
Age
41
Location
Schagen
XP
98
Country
Netherlands
Is there a way to just copy everything from a source to a destination? Extract WBFS -> Dir, Add Dir -> WBFS, WBFS -> WBFS

I've now just run `wwt list` then massaged the output with a text editor to turn it into a comma separated list of ID6. But it ought to be a thing that computers are great at, just do everything. I tried the --include wildcards, --auto and --all.

Edit:
Dir -> WBFS: `wwt update -A -r .`
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
wwt add -p /dev/DEST /dev/SOURCE --test
-p /dev/DEST defines the destination partition and all others inkl /dev/SOURCE are source parameters
Option --test enters test mode, remove it for a real copy.
 

JPeterson

Member
Newcomer
Joined
Nov 13, 2011
Messages
13
Trophies
1
XP
48
Country
United States
### Command line trim

Do you want to add a `wit trim` that's similar to `wit scrub` but remove the padding instead of marking it as sparse?

Is there a command line program that trim GC and Wii ISOs?

I want a command line tool to trim (rather than sparse) GC and Wii ISOs because

* Compared to a GUI tool (f.e. Wii Scrubber): I want to script the trim because there are many files to trim
* Trim compared to sparse: the backup program I use (`robocopy /mir`) doesn't retain the sparse mark (but write the 0x00 padding data instead)
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
Final release!

wiimms-tools.png


WIT: Wiimms ISO Tools v2.20a - 2013-05-01
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:

Final Release:
  • After 4 years development this version should be the last release of the WIT-Tools until further notice; with exception of bug fix releases. I will discontinue adding new features. That's the reason for the little version jump to v2.20a.

Change log:

Code:
wit v2.20a r4399 - 2013-05-01

 - After 4 years development this version should be the last release of the
   WIT-Tools until further notice; with exception of bug fix releases. I will
   discontinue adding new features. That's the reason for the little version
   jump to v2.20a.
 - New command: "wwt NEW" is a short cut for "wwt ADD --update --newer".
 - Cygwin (Windows) DDLs updated.
 - Title data base updated.

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.
 

tmv_josue

Well-Known Member
Member
Joined
May 18, 2010
Messages
390
Trophies
0
Location
Cancún
XP
216
Country
Mexico
Good work Wiimm and thanks for all your effort, It's a pity that it is the last version, although at this point everything works fine so you have achieved an excellent tool :yaywii:. Good luck.
 

Little Baron

Active Member
Newcomer
Joined
May 26, 2010
Messages
26
Trophies
0
Website
Visit site
XP
151
Country
Gambia, The
Thank you for all efforts. the wit tools are really good. In the last years I have asked 3 times for special thinks and the answer was always "use wit". At the beginning, I hate the tool because of the command line, but now I have many little batch files and all do their jobs fast and perfect. I don't miss any GUI now.

I have checked out the latest version and counted the code lines in src/: >100.000! WOW!
I wondering how 1 man can program such large tool with so less bugs.
Chapeau!!
 

tmv_josue

Well-Known Member
Member
Joined
May 18, 2010
Messages
390
Trophies
0
Location
Cancún
XP
216
Country
Mexico
Hi, I wondered is there any way to shrink a GC iso in a iso file? like DiscEX does with it's compression command.
 

temps

Well-Known Member
Newcomer
Joined
Mar 24, 2010
Messages
50
Trophies
0
XP
175
Country
Thanks so much for such great tools. I use wit a lot and it works well. I have a quick question - I want to convert ISOs to wbfs with a wildcard in Linux, deleting the original ISO and assigning the id6+descriptive name. I tried
Code:
wit cv *.iso %X --wbfs
but I get an error

Thanks
 

temps

Well-Known Member
Newcomer
Joined
Mar 24, 2010
Messages
50
Trophies
0
XP
175
Country
Code:
!! wit: ERROR #25 [CAN'T OPEN FILE] in SetupReadSF() @ src/lib-sf.c#409
!!      Can't open file: %X
I understand that wit is thinking that %X is a filename. If I run
Code:
wit mv bs-wrmbi.wbfs %X
Then it will rename the file so that it has id6+descriptive text. What I want to do is convert a number of iso images to wbfs and at the same time give them the id6+descriptive text name.
 

PsyBlade

Snake Charmer
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
does it work for a single iso?
eg 'wit cv xxx.iso %X --wbfs'
if yes try executing with a single iso but multiple times
eg 'find -iname "*.iso" -exec wit cv \{\} %X --wbfs \;'
 

temps

Well-Known Member
Newcomer
Joined
Mar 24, 2010
Messages
50
Trophies
0
XP
175
Country
PsyBlade. Thanks - yes, that's the problem a single file doesn't work either. This WORKS!

Code:
find -iname "*.iso" -exec wit cp "{}" %X --wbfs \; -exec rm "{}" \;

Thanks for the help anyway.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
CONVERT (alias CV) works in-place and needs no destination. %-escapes are only allowed for destination paths.

What you want is:
wit convert *.iso --wbfs -vv --test
or
wit copy *.iso %X --wbfs --remove -vv --test

Remove --test for real execution.
 

temps

Well-Known Member
Newcomer
Joined
Mar 24, 2010
Messages
50
Trophies
0
XP
175
Country
Elegant. Thank you. I thought there'd be a better solution. What does "-vv" mean? I just looked on the website and I can't find it.
 

temps

Well-Known Member
Newcomer
Joined
Mar 24, 2010
Messages
50
Trophies
0
XP
175
Country
OK I get it. The first command line is not removing the iso after it's converting, the second "wit copy *.iso %X --wbfs --remove -vv --test" is removing the source iso after conversion. The -vv confused me but now I understand. I haven't got any ISO's left to try it out on.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • BigOnYa @ BigOnYa:
    Biomutant looks cool tho, may have to try that
  • Quincy @ Quincy:
    Usually when such a big title leaks the Temp will be the first to report about it (going off of historical reports here, Pokemon SV being the latest one I can recall seeing pop up here)
  • K3Nv2 @ K3Nv2:
    I still like how a freaking mp3 file hacks webos all that security defeated by text yet again
  • BigOnYa @ BigOnYa:
    They have simulators for everything nowdays, cray cray. How about a sim that shows you playing the Switch.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
    K3Nv2 @ K3Nv2: @BigOnYa...