Hacking wwt+wit: Wiimms WBFS+ISO Tools

lolof

Member
Newcomer
Joined
Dec 17, 2011
Messages
11
Trophies
0
XP
9
Country
United States
Hello,
Fantastic tool!

If I want to update the content of wbfs1 with missing games that are on wbfs2 and vis versa, I should do this ?

wwt sync 'wbfs1' 'wbfs2'

or

wwt add 'wbfs1' 'wbfs2'
wwt add 'wbfs2' 'wbfs1'

Thanks
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
add+update+sync works only in one direction, but you can define both devices as destination and source path.
Example:
Code:
# first find out the drive names
wwt find
/dev/sdc2
/dev/sdd2

# now update
# here --all is a short cut for all connected drives == -p /dev/sdc2 -p /dev/sdd2 
wwt update --all /dev/sdc2 /dev/sdd2 --test
#          ^^^^^ ^^^^^^^^^^^^^^^^^^^
#          dest       2x source
Because of --test it will only show what it would do.

The difference between update and sync is, that sync will also remove discs on the dest, if they are not exist in at least one source.
 

lolof

Member
Newcomer
Joined
Dec 17, 2011
Messages
11
Trophies
0
XP
9
Country
United States
Thank you very much, now I understand how it is working.
It's very impressive what could be done from your cmd lime. I am on osx and I can't find such power tools from a gui.
Even Wii Backup Fusion who is based on your tools crash with basics things like game checking.
Today with wwt, was the first time I was able to format a HD with multiple partition in WBFS on osx ... I don't understand why we do not have an ultimate GUI for this on OSX. If only I was cable to program..... :-(
As all is working perfectly from cmd line, I will learn to use it.
Thanks very much.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
Some more explanations:
wwt add 'wbfs1' 'wbfs2'
wwt add 'wbfs2' 'wbfs1'
First, this will be work too, but with warnings for already existing discs.


ADD will add discs. If a disc already exist, a warning is printed at the disc is not copied. The options allow different behavior:
--overwrite overwrites exiting discs.
--newer overwrites only if the source is younger.
--update ignores already existing discs.
--sync and --syn-all makes the destination equal to the source.
"sync" in an short cut for "add --sync" and "update" for "add --update". Include and exclude lists can be used with all options. The best is to use --test to verify that the tools do what the user want.
 

guigui

Member
Newcomer
Joined
Aug 25, 2011
Messages
11
Trophies
0
XP
4
Country
France
Hello all,

Thanks for the great work on wit+wwt. I have been using them with WiiJManager (from zon7) form more than a year now and have been pleased with it.

However, today, my USB external drive contains more than 100 .wbfs images of my wii games. I think that WiiJManager can not handle that many images since, when I try to read my USB drive with it, I get an error reading like "index out of bounds, 100".

Anyway, since I always used WiiJManager, I dont even know how to properly use the command line. Here is what I would like to do :
I have on my computer the .iso file of my latest game (I can convert it to .wdf, .wbfs or else) and I simply want to copy it my USB external drive that is already filled with my other .wbfs games.

Will you give me an exemple of command line that does just that ?

Thanks again.
 

guigui

Member
Newcomer
Joined
Aug 25, 2011
Messages
11
Trophies
0
XP
4
Country
France
Thanks for answering Wiimm.

I work on Linux, so no Windows Backup Manager for me.

I already tried some stuffs with wwt but could not specify the location where to copy to. I guess the --auto will do this !

Do I need to convert .iso file to another format (.wbfs, .wdf or else) prior to copying on .wbfs partition ? If I dont convert, does the copy to .wbfs will take the least space possible on my drive ?
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
My tools detect the source format automatically. All source formats are equal and always transformed in the best way. The option auto tries to find out the WBFS drive automatically. More options for "wwt add": http://wit.wiimm.de/wwt/cmd-add.html#opt
 

guigui

Member
Newcomer
Joined
Aug 25, 2011
Messages
11
Trophies
0
XP
4
Country
France
Ok about the auto detection thing.

Thanks Wiimm, you helped me a lot, the --auto option worked like a charm.

Is there any place I can donate a little to support you ? In any case, keep up the good work.
 

wishmasterf

Well-Known Member
Member
Joined
Apr 20, 2009
Messages
167
Trophies
0
Location
Austria
Website
Visit site
XP
92
Country
Australia
I want to copy wii-games from one wbfs partition to another. But i cant find the right command. Please help me.

I tried:

wit COPY --source /dev/sdd1 -D /dev/sdc1 -P
Thanks!

Sorry found the answer in FAQ.... RTFM i know. wwt -p /dev/wbfs1 -p /dev/wbfs2 UPDATE /dev/wbfs1 /dev/wbfs2
 

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.03a - 2011-12-30
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:

Highlights of this release:
  • I have implmented a new WBFS interface to detect and reduce WBFS errors. Most common are errors in the free blocks table. Instead of using the stored one an internal memory map of used blocks is built. This needs only a part of a second. See change log for more details.

Change log:

Code:
wit v2.03a r3309 - 2011-12-30

- wit+wwt SKELETON: Support of GameCube images.
- New command: wwt DUP: Duplicate an existing WBFS to a new file including
block assigning errors. The idea is to have a command, that can duplicate
a defect WBFS for tests.
- Command "wwt DUMP" accept now --show for a fine control of printed data.
The dump may now contain also a usage table and a integrity check report.

- For a long time the code contains a WBFS extension. Now I have ompleted,
enabled and tested it. With this extension the WBFS "free blocks table" is
managed in a total different way:
- WBFS access: While opening a WBFS the free blocks table is ignored.
Instead of using the stored one an internal memory map of used blocks is
built. This needs only a part of a second. Some advantages:
- Errors in the free blocks table are irrelevant.
- Blocks overlaps and invalid block assignings are automatically
detected, reported, and fixed for internal usage.
- If removing a discs with overlaps, the blocks are still marked used.
- Blocks, that are not handled by the free blocks tables (the table is
sometiems to small -> a result of a calculation bug in the original
libwbfs) can be used. If closing, a new and fixed free blocks table
will be written. This makes the whole process compatible to other
WBFS managers and USB loaders.
- wwt ADD: Before adding a disc its size is compared against the free size
of the WBFS. This allows an early "disc full" error message.
- wwt ADD: If adding a disc to a partition a continuous memory block is
searched to minimize the (non existent) fragmentation. This disabled for
WBFS files by default because a file itself can be fragmented. 
- wwt ADD+PHANTOM --wbfs-alloc=mode: Set the WBFS block allocation mode.
- The commands "wwt CHECK", "wwt REPAIR" and "wwt EDIT" have been modified
to work with the new interface.

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.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
What changed your mind about the allocation mode?
Do you mean the wbfs block allocation?

Perfectionism!
And the never ending discussions.
And with the new internal data model the implementation was so simple: http://opensvn.wiimm.de/viewvc/wii/trunk/wiimms-iso-tools/src/libwbfs/libwbfs.c?annotate=3309#l1594
 

D34DL1N3R

Nephilim
Member
Joined
Dec 6, 2008
Messages
3,670
Trophies
1
XP
3,220
Country
United States
wwt -A VERIFY

I have a game with the message "!HO-ERR". What does this error mean and how to fix it? Thanks!

This means, that a H0 checksum is wrong (data corrupted) and that yo have a bad dump.
Message details: http://wit.wiimm.de/...erify.html#desc

Thank you! While I was waiting for a reply I tried to fix them and it didn't do anything, so I figured it was best to just delete the 3 of them with wwt prior to using wbfs2fat. The only other messages I got on nearly 200 games were a few that said something about tickets and whatnot, but still gave an "ok" status. I figured they are fine and just displaying that because they are modified? One is Manhunt 2 (Unedited Mod) and another was SSX (patched to work with USB Loaders before the fix was built in), and one other I forgot but it was also patched for the same reason as SSX was).
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: @K3Nv2, svebe