Hacking wwt+wit: Wiimms WBFS+ISO Tools

Skeeve

Well-Known Member
Newcomer
Joined
Jan 1, 2010
Messages
75
Trophies
0
XP
146
Country
Gambia, The
:(

I get this:

Code:
$ wit list *.iso
!! wit: ERROR #21 [WRONG FILE TYPE] in SourceIteratorHelper() @ src/lib-sf.c#3239
!!	  Not a ISO image: D43P01.iso
!! wit: ERROR #21 [WRONG FILE TYPE] in SourceIteratorHelper() @ src/lib-sf.c#3239
!!	  Not a ISO image: GJKD52.iso
!! wit: ERROR #21 [WRONG FILE TYPE] in SourceIteratorHelper() @ src/lib-sf.c#3239
!!	  Not a ISO image: GKDP01.iso
!! wit: ERROR #21 [WRONG FILE TYPE] in SourceIteratorHelper() @ src/lib-sf.c#3239
!!	  Not a ISO image: GLMP01.iso
!! wit: ERROR #21 [WRONG FILE TYPE] in SourceIteratorHelper() @ src/lib-sf.c#3239
!!	  Not a ISO image: GM4P01.iso
!! wit: ERROR #21 [WRONG FILE TYPE] in SourceIteratorHelper() @ src/lib-sf.c#3239
!!	  Not a ISO image: GM5D7D.iso
!! wit: ERROR #21 [WRONG FILE TYPE] in SourceIteratorHelper() @ src/lib-sf.c#3239
!!	  Not a ISO image: GMSP01.iso
!! wit: ERROR #21 [WRONG FILE TYPE] in SourceIteratorHelper() @ src/lib-sf.c#3239
!!	  Not a ISO image: GSWD64.iso
!! wit: ERROR #21 [WRONG FILE TYPE] in SourceIteratorHelper() @ src/lib-sf.c#3239
!!	  Not a ISO image: GTKP51.iso
!! wit: ERROR #21 [WRONG FILE TYPE] in SourceIteratorHelper() @ src/lib-sf.c#3239
!!	  Not a ISO image: GZ2P01.iso
!! wit: ERROR #21 [WRONG FILE TYPE] in SourceIteratorHelper() @ src/lib-sf.c#3239
!!	  Not a ISO image: GZLP01.iso
!! wit: ERROR #21 [WRONG FILE TYPE] in SourceIteratorHelper() @ src/lib-sf.c#3239
!!	  Not a ISO image: PZLP01.iso
ID6	 0 discs (0 GiB)
-----------------------
-----------------------
Total: 0 discs, 0 MiB ~ 0 GiB used.
 

MortenGrnvig

New Member
Newbie
Joined
Feb 26, 2012
Messages
2
Trophies
0
XP
2
Country
@ Wiimm

This morning when me and my daugther wanted to play wii, the wii froze up (it has done that before if the correct options for what cios to use is not chosen, it can be different for certan games, but you know all about that), i had 273 games and not all have been played before so i ran in to one taht did not work with standart options, i've usually been able to just turn off the wii and start over and choose another cios.

But today the harddisk could'nt be recognized after that episode, it has a driveletter when i use it with the pc, but wbfs manager can't see it as a wbfs drive anymore too - when looking at it in paragon partition manager (in "edit sectors") i can see all games are still there. But somehow the information about the harddrive beeing a wbfs drive and all the games got lost.

Do i have the slightest chance of restoring anything?

** Edit **

Problem Solved.

Thanks to Wiimm for his wonderfull program. And then following the wise words Wiimm is laying out there in this thread : http://gbatemp.net/t...nce-to-recover/

@ Wiimm - I have the utmost respect for you, thank you.
 
  • Like
Reactions: 1 person

Skeeve

Well-Known Member
Newcomer
Joined
Jan 1, 2010
Messages
75
Trophies
0
XP
146
Country
Gambia, The
"DiscEx" is the keyword? Ok, I will check what DiscEx does.
I've just "installed" a GameCube game using cfg usbloader and wit can't verify this either:

Code:
$ wit verify /Volumes/WIIWARE/games/D43P01/game.iso
*****  wit: Wiimms ISO Tool v1.01c r1366 mac - Dirk Clemens - 2010-07-11  *****
!! wit: ERROR #21 [WRONG FILE TYPE] in SourceIteratorHelper() @ src/lib-sf.c#3239
!!	  Not a ISO image: /Volumes/WIIWARE/games/D43P01/game.iso
! wit: No valid source file found.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
Thanx Skeeve, I collect the info but I haven't the time to analyze this in the next days.

@MortenGrnvig
Hope you haven't used the old "EDIT" command. "RECOVER" and "FORMAT --recover" are more automated.
 
  • Like
Reactions: 1 person

MortenGrnvig

New Member
Newbie
Joined
Feb 26, 2012
Messages
2
Trophies
0
XP
2
Country
@ Wiimm

I used (in admin mode/win 7) :

wwt analyze

and then

wwt init --recover /dev/your_drive

and then when i was happy with what i saw i went with the --force option

wwt init --recover --force /dev/your_drive


i had 273 games on there - i got 264 games back, and i am more than happy with that
wii backup manager recognizes the harddisk again, but were those last 9 games went i have no idea. But it works on the Wii again.

I was under the impression that a "init" and "format" did the same thing, but just to be sure i did "wwt format --recover" and after that with the --force option, as per your question.

that seemed to do the same thing and only the 264 of the 273 games came back.

I have been reading all pages in the link i reffered to - so i saw your warnings about the "edit" :)

Wiimm you wrote..

1. try "wwt analyze /dev/your_drive" to get info. If you get more than the CALC lines there is a good chance to rescue. See docu for "command ANALYZE" in file "wwt.txt"

2. try "wwt init --recover /dev/your_drive" to see, what format would do. If you like that than call same command with option --force.

Actually the games missing, are the ones that began to act up a little, ex. wii sports for revolution (the game that was with the wii), were the tennis game suddently did not work, I think i'll by a coupple of extra harddisks and begin to take backups hehe :)
 

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 make some plausibility checks. For each disc, the disc header is copied to the WBFS management section. My tools compare them and only verified discs are candidates to recover. And this means, that some of your discs are have been overwritten by other discs.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
"DiscEx" is the keyword? Ok, I will check what DiscEx does.
I've just "installed" a GameCube game using cfg usbloader and wit can't verify this either:

Code:
$ wit verify /Volumes/WIIWARE/games/D43P01/game.iso
*****  wit: Wiimms ISO Tool v1.01c r1366 mac - Dirk Clemens - 2010-07-11  *****
!! wit: ERROR #21 [WRONG FILE TYPE] in SourceIteratorHelper() @ src/lib-sf.c#3239
!!	  Not a ISO image: /Volumes/WIIWARE/games/D43P01/game.iso
! wit: No valid source file found.

Ok, I was sleeping .....

I have tested it (dump via cfg loader) and I'm wondering to have no troubles. And now I see "VERIFY".
* GameCube discs haven't any check sums to verify.
 

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.04a - 2012-03-10
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:

Change log:

Code:
wit v2.04a r3554 - 2012-03-10

- New option: wit --force: Ignore partition size errors and allow access to
damaged partitions. "wwt --force" works similar.

- New options: --disc-id=id, --boot-id=id, --ticket-id=id, --tmd-id=id and
--wbfs-id=id: Patch only the specific ID. These options are handled after
the --id and --modify options. patching the WBFS ID while adding a game is
now also possible.

- New implementation of command "wit ID6": It generates an ID6 list of all
sources. This is similar as before, only the meaning of the parameters
changed. If option --long is set, a table with 5 IDs (DISC, BOOT, TICKET,
TMD and WBFS) is printed. BOOT, TICKET and TMD IDs are taken from the main
partition. If --long is set twice, all IDs of all partitions are printed.

- wwt LLLL: List contains date and time (in seconds) columns.

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.
 
  • Like
Reactions: 2 people

gcb

Active Member
Newcomer
Joined
Nov 14, 2010
Messages
42
Trophies
0
XP
96
Country
Brazil
i can't add a wbfs file to my wbfs partition

just got wit-v2.04a-r3554-i386 and tried to understand it... apparently i failed or hit a bug.

Code:
hobo$ wit-v2.04a-r3554-i386/bin/wwt SPACE /dev/sdc2
size used used% free discs file (sizes in MiB)
--------------------------------------------------------------
29828 26952 90% 2876 10/215 /dev/sdc2

hobo$ wit-v2.04a-r3554-i386/bin/wwt SPACE something.wbfs
size used used% free discs file (sizes in MiB)
--------------------------------------------------------------
1528 1528 100% 0 1/215 something.wbfs

hobo$ wit-v2.04a-r3554-i386/bin/wwt UPDATE something.wbfs /dev/sdc2 --test
***** wwt: Wiimms WBFS Tool v2.04a r3554 i386 - Dirk Clemens - 2012-03-10 *****
!! wwt: ERROR #17 [NO WBFS FOUND] in AnalyzePartitions() @ src/wbfs-interface.c#448
!! no WBFS partitions found -> abort

hobo$ wit-v2.04a-r3554-i386/bin/wwt ADD --source something.wbfs   /dev/sdc2  --test
*****  wwt: Wiimms WBFS Tool v2.04a r3554 i386 - Dirk Clemens - 2012-03-10  *****
!! wwt: ERROR #17 [NO WBFS FOUND] in AnalyzePartitions() @ src/wbfs-interface.c#448
!!	  no WBFS partitions found -> abort

could you guys please add the simplest way to do those basic things in the 1st post? i'd be very thankful
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
Direct answer: yes.







Ok, I start with some suggestions:
  • use "--part /dev/sdc2" (or short "-p /dev/sdc2") to address a WBFS drive. Only some commands allow additionally to add a WBFS drive without option.
  • Use --all instead of --part ... for auto detection of a WBFS drive.
  • Try: wwt add -a something.wbfs -t
 

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.05a - 2012-04-14
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:

Change log:

Code:
wit v2.05a r3591 - 2012-04-14

- "wit VERIFY" will now ignore extracted file systems.
- wit --id=.....X: ID change failed if only the sixt character was modified.
- All ID patching options (--id, --disc-id, ...) accept now a plus sign '+' as
wildcard for multiple '.' to fill the complete entered ID to 4/6 characters.
- The listing command "wit ID6" accepts now all ID patching options to test
the effect of them.

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.
 
  • Like
Reactions: 2 people

Alouest

Member
Newcomer
Joined
Feb 14, 2011
Messages
5
Trophies
0
XP
25
Country
France
Hello,

I have delete games on my wii's HDD... but not the good ones :toot:

I like to try new things so I try the RECOVER function of the WWT tool.

Code:
alouest@alouest-desktop:~/Telechargement/wii/wit-v2.05a-r3591-i386$ wwt RECOVER -a
*****  wwt: Wiimms WBFS Tool v2.05a r3591 i386 - Dirk Clemens - 2012-04-14  *****

RECOVER /dev/sdd

!! wwt: ERROR #41 [FATAL ERROR] in RecoverWBFS() @ src/wbfs-interface.c#1155
!!	  ASSERTION FAILED !!!

Anybody here know where is the problem ?

Thanks for your help !

Al
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
It's a bug with the new WBFS Interface with only impact to the RECOVER command.

Try v2.02a, the last one with the old interface.


EDIT:
Download http://wit.wiimm.de/download/bin/i386/wwt-r3597 and replace the file /usr/local/bin/wwt
 

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.05b - 2012-04-20
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:


Change log:

Code:
wit v2.05b r3611 - 2012-04-20

- Bug fix for assertion failure in "wwt RECOVER".

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.
 
  • Like
Reactions: 1 person

moli

Active Member
Newcomer
Joined
Mar 4, 2009
Messages
36
Trophies
0
Age
46
Website
moli.hu
XP
173
Country
Hungary
Dear Wiimm,

First i'd like to thank your for your work on wit tools.
I've got some questions:

1) may i safely remove update partitions from the games? Calculating with the average image size it takes up about 10%, which is plenty enough. I'm asking this because majority of scrubbed games downloadable are already had its update partitions removed anyway.....

2) can i currently remove the update partition from a .wia without full recompression? Because i tried to copy a .wia to an other .wia and it looks like it recompressed the whole image. Is it because the partitions do overlap in the compressed chunks? Please try to implement this feature, would help me a lot.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: I'm devastated