Hacking wwt+wit: Wiimms WBFS+ISO Tools

EtherealX

Well-Known Member
Member
Joined
Jul 14, 2009
Messages
125
Trophies
0
XP
50
Country
United States
Wiimm said:
wit copy test.iso %I.wbfs --split-size 2G

Thanks for the prompt response.

Is it possible to prevent it from splitting files that are under 4g (but over 2g?) Or do I need to check files manually first?

I'm basically looking for a one-stop command that will convert files to .wbfs, if they're over 4g then split them into 2g parts, if its under 4g, then just convert as usual.

-TIA
 

EtherealX

Well-Known Member
Member
Joined
Jul 14, 2009
Messages
125
Trophies
0
XP
50
Country
United States
Thanks again! I managed to whip up a simple droplet for osx that does all the work for me. All is well.

Much appreciated and awesome work!
 

Socram

Member
Newcomer
Joined
Sep 15, 2010
Messages
5
Trophies
0
XP
1
Country
Gambia, The
Wiimm said:
@Socran
First try "wwt check" to see what happen. If it can not find a wbfs than try "wwt analyze". It looks inside the partition to find any WBFS fragments.

wwt check:
Code:
*****ÂÂwwt: Wiimms WBFS Tool v1.16a r1645 cygwin - Dirk Clemens - 2010-09-01ÂÂ*****

!! wwt: ERROR #15 [NO WBFS FOUND] in AnalyzePartitions() @ src/wbfs-interface.c#381
!!ÂÂÂÂÂÂno WBFS partitions found -> abort

wwt analyze:
CODE!! wwt: ERROR #23 [CAN'T OPEN FILE] in cmd_analyze() @ src/wwt.c#373
!!ÂÂÂÂÂÂCan't open file: /dev/sda
!!ÂÂÂÂÂÂ-> Permission denied
!! wwt: ERROR #23 [CAN'T OPEN FILE] in cmd_analyze() @ src/wwt.c#373
!!ÂÂÂÂÂÂCan't open file: /dev/sdb
!!ÂÂÂÂÂÂ-> Permission denied
!! wwt: ERROR #23 [CAN'T OPEN FILE] in cmd_analyze() @ src/wwt.c#373
!!ÂÂÂÂÂÂCan't open file: /dev/sdd
!!ÂÂÂÂÂÂ-> Permission denied
!! wwt: ERROR #23 [CAN'T OPEN FILE] in cmd_analyze() @ src/wwt.c#373
!!ÂÂÂÂÂÂCan't open file: /dev/sdg
!!ÂÂÂÂÂÂ-> Permission denied

The WBFS partition is on drive letter I, so wwt doesn't even try to open it.
 

Socram

Member
Newcomer
Joined
Sep 15, 2010
Messages
5
Trophies
0
XP
1
Country
Gambia, The
Need you Wiimm!
ohnoes.png
 

Socram

Member
Newcomer
Joined
Sep 15, 2010
Messages
5
Trophies
0
XP
1
Country
Gambia, The
Ok, here's the wwt check result:
Code:
*****ÂÂwwt: Wiimms WBFS Tool v1.16a r1645 cygwin - Dirk Clemens - 2010-09-01ÂÂ*****

CHECK /dev/sdg2

* Summary of WBFS Check: 1016 errors found:
ÂÂ 965 free WBFS sectors marked as used!
ÂÂÂÂ51 WBFS sectors are used by 2 or more discs!
ÂÂ Total: 12 discs are invalid!

wwt analyze comes up with this:
Code:
ANALYZE /dev/sda

ANALYZE /dev/sda1

ANALYZE /dev/sdb

ANALYZE /dev/sdb1

ANALYZE /dev/sdb2

ANALYZE /dev/sdg

ANALYZE /dev/sdg1

ANALYZE /dev/sdg2
------------------------------------------------------------------------------------
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ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 186a0000ÂÂ200ÂÂc350ÂÂ400000ÂÂ1f4 1400ÂÂWBFS header scanning
DISCS:ÂÂÂÂÂÂ-ÂÂ0 186a0000ÂÂ200ÂÂc350ÂÂ400000ÂÂ1f4 1400ÂÂ17 disc header found
------------------------------------------------------------------------------------
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,291
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,467
Country
Germany
12 discs shares some wbfs blocks ==> they are corrupt

you have now 2 choices:[*] repair only the free blocks table and test the bad games:
Code:
wwt repair --part /dev/sdg2
wwt verify --part /dev/sdg2
The verify command takes a lot of time because of decrypting all content. Remove the games manually with
Code:
wwt rm --no-free --part /dev/sdg2 id6_aa id6_bb...
... or remove automatically with (the previous is not needed then)
Code:
wwt verify --part /dev/sdg2 --remove --no-free
wwt repair --part /dev/sdg2
[*] repair and auto remove the discs with shared block:
Code:
wwt repair --part /dev/sdg2 --repair=all
And then: dump again from dvd.
For details of the command use: wwt help
Use the --test option to enter test mode (no modification done)
 

Socram

Member
Newcomer
Joined
Sep 15, 2010
Messages
5
Trophies
0
XP
1
Country
Gambia, The
Okay... the "wwt repair --part /dev/sdg2" command seemed to repair the free blocks table, but it doesn't solve the problem with non-starting games. I will remove and readd them when I have more time, presumably next week.

Thanks for now
wink.gif
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,291
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,467
Country
Germany
@Socram:

wwt can repair the WBFS but not the ISO images within because it know nothing about the missing content.

At the moment you have a bad WBFS: If removing a game with shared blocks the blocks are marked free but they are still in used by another game. Adding games will use this blocks and the problems of bad images are there again.

"wwt remove --no-free id6" removes games without marking the blocks as free.
 

KiiNG

Well-Known Member
Member
Joined
Aug 20, 2009
Messages
180
Trophies
0
XP
26
Country
United States
So in attempts to organize my wbfs folder, I tried..

#wit move *.wbf1 %T[%I].wbf1

and receive..

!! wit: ERROR #26 [WRONG FILE TYPE] in SourceIteratorHelper() @ src/lib-sf.c#3610
! wit: No valid source file found.

Am I missing something here?
 

Hooya

Well-Known Member
Member
Joined
Aug 25, 2006
Messages
1,878
Trophies
0
Age
41
Location
Central Illinois
Website
Visit site
XP
287
Country
United States
I'm trying to do something that should be simple, but I can't get the syntax right.

Code:
wtt analyze
finds my wbfs drive on /dev/sdd1

I want to extract all my images from the wbfs drive to .wbfs format on /Media/wiidisks

What exactly is the command for that? I keep getting bad syntax errors on the extract command, or "no wbfs drive found" errors.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,291
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,467
Country
Germany
@Kiing:
*.wbf1 are invalid wbfs (because they are continuation files).
Have you renamed *.wbfs before and wit has forgotten the *.wbf1 files?
That is may be a bug. No time to test & solve it in the next days.

@Hooya:
wwt extract --auto --wbfs --dest /Media/wiidisks --test

--test: do nothing, just report what to do. Remove it.
--split: add it when you want splittet wbfs files
--split-size mysize: define another split size (default=4g)
--update: don't extract already extracted files

more help: wwt help extract
 

KiiNG

Well-Known Member
Member
Joined
Aug 20, 2009
Messages
180
Trophies
0
XP
26
Country
United States
Wiimm said:
@Kiing:
*.wbf1 are invalid wbfs (because they are continuation files).
Have you renamed *.wbfs before and wit has forgotten the *.wbf1 files?
That is may be a bug. No time to test & solve it in the next days.

That would be true unless I'm using the wrong syntax to rename them. I used the below to rename the .wbfs files appropriately.

#wit move *.wbfs %T[%I].wbfs

edit:

#wit move /dir %X ..is only renaming the .wbfs too, leaving the wbf1,etcs untouched.
 

Hooya

Well-Known Member
Member
Joined
Aug 25, 2006
Messages
1,878
Trophies
0
Age
41
Location
Central Illinois
Website
Visit site
XP
287
Country
United States
Wiimm said:
@Kiing:
*.wbf1 are invalid wbfs (because they are continuation files).
Have you renamed *.wbfs before and wit has forgotten the *.wbf1 files?
That is may be a bug. No time to test & solve it in the next days.

@Hooya:
wwt extract --auto --wbfs --dest /Media/wiidisks --test

--test: do nothing, just report what to do. Remove it.
--split: add it when you want splittet wbfs files
--split-size mysize: define another split size (default=4g)
--update: don't extract already extracted files

more help: wwt help extract

I still get a missing parameters error.... Any idea why that might be? I'm using the latest version I grabbed from your website. Did I misunderstand the requirements for running the program (installation issues, there shouldn't be any, right?)?

Code:
*****ÂÂwwt: Wiimms WBFS Tool v1.16a r1645 x86_64 - Dirk Clemens - 2010-09-01ÂÂ*****
!! wwt: ERROR #31 [MISSING PARAMETERS] in cmd_extract() @ src/wwt.c#1946
!!ÂÂÂÂÂÂmissing parameters

If I use the command #wwt extract /dev/sdd1 --wbfs --dest /Media/wiidisks
I get this error:

Code:
!! wwt: ERROR #15 [NO WBFS FOUND] in AnalyzePartitions() @ src/wbfs-interface.c#381
!!ÂÂÂÂÂÂno WBFS partitions found -> abort

The output of #wwt analyze is:

CODEÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ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 688ff8cfÂÂ200ÂÂd11f 1000000ÂÂ1f4ÂÂ600ÂÂWBFS header scanning
INODE-TIM: okÂÂ1 688ff8cfÂÂ200ÂÂd11f 1000000ÂÂ1f4ÂÂ600ÂÂ2010-09-24 22:55:04 n=500
DISCS:ÂÂÂÂÂÂ-ÂÂ0 688ff8cfÂÂ200ÂÂd11f 1000000ÂÂ1f4ÂÂ600ÂÂ134 disc header found
------------------------------------------------------------------------------------

I had already used wwt to fix some blocks that were empty that were showing up as used, so that's what the timestamp is I think.
 

Hooya

Well-Known Member
Member
Joined
Aug 25, 2006
Messages
1,878
Trophies
0
Age
41
Location
Central Illinois
Website
Visit site
XP
287
Country
United States
Was given the suggestion by Kiing to try:

#wwt -p /dev/sdd1 extract --wbfs --dest /Media/wiidisks --progress

To see if it was a space issue, but that still gives me missing parameters! This is weird and frustrating!
 

Hooya

Well-Known Member
Member
Joined
Aug 25, 2006
Messages
1,878
Trophies
0
Age
41
Location
Central Illinois
Website
Visit site
XP
287
Country
United States
Got it. Needed to add \* to the end of the command to tell wwt what exactly to extract!

Thanks guys. Now extracting... this will take a few hours. 130+ games...

Next step is to rename them all to friendly names and split the big ones down. I'll use the commands on the previous page for that.
 

Hooya

Well-Known Member
Member
Joined
Aug 25, 2006
Messages
1,878
Trophies
0
Age
41
Location
Central Illinois
Website
Visit site
XP
287
Country
United States
Code:
wit move /media/F999-3192/*.wbfs --titles /documents/Downloads/Wii/Disk\ Tools/wit-v1.16a-r1645-x86_64/lib/titles.txtÂÂ-d /media/F999-3192/%T[%I].wbfs --progress

Doesn't want to work, it tries to name each file [].wbfs, ignoring the %T and %I things. what am I missing to rename my files a nice and readable title?
 

KiiNG

Well-Known Member
Member
Joined
Aug 20, 2009
Messages
180
Trophies
0
XP
26
Country
United States
Hooya said:
Code:
wit move /media/F999-3192/*.wbfs --titles /documents/Downloads/Wii/Disk\ Tools/wit-v1.16a-r1645-x86_64/lib/titles.txtÂÂ-d /media/F999-3192/%T[%I].wbfs --progress

Doesn't want to work, it tries to name each file [].wbfs, ignoring the %T and %I things. what am I missing to rename my files a nice and readable title?

This is what I do.. it doesn't seem to rename the subsequent .wbf1, wbf2 files, but it does rename the main .wbfs file for you.

#wit move /media/F999-3192/ %X --progress
 

Hooya

Well-Known Member
Member
Joined
Aug 25, 2006
Messages
1,878
Trophies
0
Age
41
Location
Central Illinois
Website
Visit site
XP
287
Country
United States
That command still gives me the error:

Code:
!! wit: ERROR #24 [CAN'T CREATE FILE] in exec_move() @ src/wit.c#1723
!!ÂÂÂÂÂÂFile already exists: [].iso
!! wit: ERROR #24 [CAN'T CREATE FILE] in exec_move() @ src/wit.c#1723
!!ÂÂÂÂÂÂFile already exists: [].iso
!! wit: ERROR #24 [CAN'T CREATE FILE] in exec_move() @ src/wit.c#1723
!!ÂÂÂÂÂÂFile already exists: [].iso
!! wit: ERROR #24 [CAN'T CREATE FILE] in exec_move() @ src/wit.c#1723
!!ÂÂÂÂÂÂFile already exists: [].iso
!! wit: ERROR #24 [CAN'T CREATE FILE] in exec_move() @ src/wit.c#1723
!!ÂÂÂÂÂÂFile already exists: [].iso
!! wit: ERROR #24 [CAN'T CREATE FILE] in exec_move() @ src/wit.c#1723
!!ÂÂÂÂÂÂFile already exists: [].iso
!! wit: ERROR #24 [CAN'T CREATE FILE] in exec_move() @ src/wit.c#1723
!!ÂÂÂÂÂÂFile already exists: [].iso
!! wit: ERROR #24 [CAN'T CREATE FILE] in exec_move() @ src/wit.c#1723
!!ÂÂÂÂÂÂFile already exists: [].iso
!! wit: ERROR #24 [CAN'T CREATE FILE] in exec_move() @ src/wit.c#1723
!!ÂÂÂÂÂÂFile already exists: [].iso
!! wit: ERROR #24 [CAN'T CREATE FILE] in exec_move() @ src/wit.c#1723
!!ÂÂÂÂÂÂFile already exists: [].iso
!! wit: ERROR #24 [CAN'T CREATE FILE] in exec_move() @ src/wit.c#1723
!!ÂÂÂÂÂÂFile already exists: [].iso
!! wit: ERROR #24 [CAN'T CREATE FILE] in exec_move() @ src/wit.c#1723
!!ÂÂÂÂÂÂFile already exists: [].iso
!! wit: ERROR #24 [CAN'T CREATE FILE] in exec_move() @ src/wit.c#1723
!!ÂÂÂÂÂÂFile already exists: [].iso
!! wit: ERROR #24 [CAN'T CREATE FILE] in exec_move() @ src/wit.c#1723
!!ÂÂÂÂÂÂFile already exists: [].iso
!! wit: ERROR #24 [CAN'T CREATE FILE] in exec_move() @ src/wit.c#1723
!!ÂÂÂÂÂÂFile already exists: [].iso
!! wit: ERROR #24 [CAN'T CREATE FILE] in exec_move() @ src/wit.c#1723
!!ÂÂÂÂÂÂFile already exists: [].iso
!! wit: ERROR #24 [CAN'T CREATE FILE] in exec_move() @ src/wit.c#1723
!!ÂÂÂÂÂÂFile already exists: [].iso

Over for every file. When using the syntax exactly as you put it... Variations on that command all produce a similar output. It does not want to rename the files based on any %X style parameter.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Skelletonike @ Skelletonike:
    3h left until work finishes, bah
  • Skelletonike @ Skelletonike:
    link doesn't work
    +2
  • Skelletonike @ Skelletonike:
    1H left, such a slow week.
  • Sonic Angel Knight @ Sonic Angel Knight:
    Okay, I had spaghetti :P
  • SylverReZ @ SylverReZ:
    Hope they made lots of spaget
  • K3N1 @ K3N1:
    Chill dog
  • SylverReZ @ SylverReZ:
    Chilli dog
  • Skelletonike @ Skelletonike:
    Damn, I'm loving the new zelda.
  • xtremegamer @ xtremegamer:
    loving the new zelda, i started a game, it was so fucking good, so i
    am waiting on my friend to get home so we can start a new one together
  • Skelletonike @ Skelletonike:
    I just dislike that they don't let me choose the voices before the game starts. Happened with botw as well, had to change to japanese and restart.
  • K3N1 @ K3N1:
    But the important question is can you choose gender
  • Skelletonike @ Skelletonike:
    Same way you can choose Gerald's gender.
  • Skelletonike @ Skelletonike:
    *Geralt, damn autocorrect.
  • Psionic Roshambo @ Psionic Roshambo:
    But can he be trans? Lol
  • K3N1 @ K3N1:
    Zelda transforms into link
  • Psionic Roshambo @ Psionic Roshambo:
    Link I'm not the princess your looking for.... *Pulls a crying game*
  • K3N1 @ K3N1:
    *skirt up* it's exactly what I always wanted
  • Skelletonike @ Skelletonike:
    Just scanned all my zelda amiibos, took a while but didn't get anything that cool, did get the lon lon ranch hylian fabrics though.
  • Skelletonike @ Skelletonike:
    It was pretty funny when I scanned wolf link and got a shit load of meat.
  • K3N1 @ K3N1:
    @Skelletonike, btw I ran that custom for mgs4 on the deck I'm amazed it got that far in game
  • K3N1 @ K3N1:
    Plug in*
    K3N1 @ K3N1: Plug in*