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
11
Trophies
0
XP
30
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.
 

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!!
 

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
    K3Nv2 @ K3Nv2: It's a shame some people's cake always resort to the same taste