Hacking wwt+wit: Wiimms WBFS+ISO Tools

flacs

New Member
Newbie
Joined
Dec 10, 2018
Messages
1
Trophies
0
Age
124
XP
58
Country
Antarctica
When using wfuse with GameCube ISOs and reading at offset 0x20000, I seem to get data from offset 0x8000. Looks like an offset shifting problem?

Thanks for making these tools! Is the current source code available anywhere? GitHub would be my personal preference, but even tarballs would be helpful.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
When using wfuse with GameCube ISOs and reading at offset 0x20000, I seem to get data from offset 0x8000. Looks like an offset shifting problem?
Maybe an x4 issue:
GC uses direct offsets up to 4 GB. But these offsets are to small for a Wii discs with up to to 9 GB. So each offset (and many sizes) must be multiplied by 4 to get the real offset. And while implementing GC support, I sometimes forgot to disable this multiplication by 4.
 
Last edited by Wiimm,

leseratte

Wiimmfi Team
Member
Joined
Jun 2, 2012
Messages
453
Trophies
1
XP
1,859
Country
Germany
@pthfdr
I'd imagine an image skeleton file might be helpful for Wiimm to debug this.
Can you provide the skeleton (.skel) file created by "wit skel test.iso", please?
And can you test if extracting works when you call wit like this:
Code:
LC_ALL=C wit extract test.iso folder/
 
Last edited by leseratte,
D

Deleted User

Guest
@pthfdr
I'd imagine an image skeleton file might be helpful for Wiimm to debug this.
Can you provide the skeleton (.skel) file created by "wit skel test.iso", please?
And can you test if extracting works when you call wit like this:
Code:
LC_ALL=C wit extract test.iso folder/
I tried using LC_ALL. It does not work.
I was using JFS and the error occured. If I perform the extraction under tmpfs it works.
So, maybe you shouls output the name byte by byte (using escape codes like \xXX).
 

Rincewindwiz

Member
Newcomer
Joined
Feb 12, 2019
Messages
15
Trophies
0
Age
58
XP
90
Country
United Kingdom
Hi All
Came across WIT in an attempt to convert an ISO to WBFS.
And I'm struggling with the format of the command line so any help gratefully appreciated
(some examples in the doc would really help!)

I'm using
wit copy --source "E:\Video\Processing\Wii\Game.iso" --wbfs --dest "E:\TEMP\Game.wbfs"

and I get
!! wit: ERROR #126 [FATAL ERROR] in wd_read_part() @ src/libwbfs/wiidisc.c#865
!! ASSERTION FAILED !!!

Any ideas?

Thanks in advance
 

sideskroll

Well-Known Member
Member
Joined
Aug 25, 2010
Messages
653
Trophies
0
Age
41
Location
Here
XP
420
Country
Peru
Hi All
Came across WIT in an attempt to convert an ISO to WBFS.
And I'm struggling with the format of the command line so any help gratefully appreciated
(some examples in the doc would really help!)

I'm using
wit copy --source "E:\Video\Processing\Wii\Game.iso" --wbfs --dest "E:\TEMP\Game.wbfs"

and I get
!! wit: ERROR #126 [FATAL ERROR] in wd_read_part() @ src/libwbfs/wiidisc.c#865
!! ASSERTION FAILED !!!

Any ideas?

Thanks in advance
Hi, If you want to transfer the iso to an external hdd and remove the update partition (but nothing else) you could use my parameters (like you, I was unable to find concrete, to the point info anywhere) so after lots and LOTS of experimentation I arrived at what I find works for me. You can do a search for my screenname in this thread and find the post with the commands.

Edit: here it is.
https://gbatemp.net/threads/wwt-wit-wiimms-wbfs-iso-tools.182236/page-94#post-7828089
 
Last edited by sideskroll,
  • Like
Reactions: Rincewindwiz

Rincewindwiz

Member
Newcomer
Joined
Feb 12, 2019
Messages
15
Trophies
0
Age
58
XP
90
Country
United Kingdom
Hi, If you want to transfer the iso to an external hdd and remove the update partition (but nothing else) you could use my parameters (like you, I was unable to find concrete, to the point info anywhere) so after lots and LOTS of experimentation I arrived at what I find works for me. You can do a search for my screenname in this thread and find the post with the commands.



Thanks. Truly awesome. Saved several days of frustration. So good that on only the second attempt I managed to convert an ISO (Full size 4.5GB) to wbfs (with all the sexy naming parameters) correctly.
And seriously quick!

BUT . . .

I tried the same command line on another (scrubbed I presume because its only 1.5GB or so) ISO I get the error message (same as reported in my first post)
wit: Wiimms ISO Tool v3.02a r7679 cygwin - Dirk Clemens - 2018-11-23

1 object scanned, 1 supported file found.
!! wit: ERROR #126 [FATAL ERROR] in wd_read_part() @ src/libwbfs/wiidisc.c#865
!! ASSERTION FAILED !!!

I have two of these ISOs. Both produce the same error which is cryptic to say the lease!!!
 

ca032769

INFOCOM Collector
Member
Joined
Jan 11, 2012
Messages
636
Trophies
1
Location
Riverside, CA
XP
1,888
Country
United States
Hi All
Came across WIT in an attempt to convert an ISO to WBFS.
And I'm struggling with the format of the command line so any help gratefully appreciated
(some examples in the doc would really help!)

I'm using
wit copy --source "E:\Video\Processing\Wii\Game.iso" --wbfs --dest "E:\TEMP\Game.wbfs"

and I get
!! wit: ERROR #126 [FATAL ERROR] in wd_read_part() @ src/libwbfs/wiidisc.c#865
!! ASSERTION FAILED !!!

Any ideas?

Thanks in advance

Why not just use Wii Backup Manager: https://gbatemp.net/threads/wii-backup-manager-for-windows.188295/
 

Joe_B

Active Member
Newcomer
Joined
Dec 11, 2018
Messages
43
Trophies
0
Age
44
XP
123
Country
Canada
Hello!

I have 2 folders in Windows containing .wbfs files.

First folder, I type "wit verify *", and it does its thing nicely, and after a while, I can see which are ok and which are not ok.

Second folder, I type "wit verify *", and I get:

!! wit: ERROR #76 [CAN'T OPEN FILE] in SetupReadSF() @ src/lib-sf.c#447
!! Can't open file: *
1 object scanned.
wit: Command 'Verify' returns with status #76 [CAN'T OPEN FILE]

What's happening?
 

Joe_B

Active Member
Newcomer
Joined
Dec 11, 2018
Messages
43
Trophies
0
Age
44
XP
123
Country
Canada
Hello!

I have 2 folders in Windows containing .wbfs files.

First folder, I type "wit verify *", and it does its thing nicely, and after a while, I can see which are ok and which are not ok.

Second folder, I type "wit verify *", and I get:

!! wit: ERROR #76 [CAN'T OPEN FILE] in SetupReadSF() @ src/lib-sf.c#447
!! Can't open file: *
1 object scanned.
wit: Command 'Verify' returns with status #76 [CAN'T OPEN FILE]

What's happening?

Ok, I found what the problem was...

There were a few games with special characters in the file name, and as soon as I renamed them, WIT started behaving like expected. For example, the accent in Pokémon, others had a few dots (.) in the file name, another had character •

For some reason, even if there are many valid files in the folder, but there is only just one file with a "bad" character in the filename, then the whole process is being aborted instantly and the error 76 comes up.
 

Joe_B

Active Member
Newcomer
Joined
Dec 11, 2018
Messages
43
Trophies
0
Age
44
XP
123
Country
Canada
Hello again!

I searched the help and found nothing... Is there a way to print the results to a text file? The Windows console is not big enough. I start the job, and when I come back, I scroll up, but I don't see the beginning of what happened.

thanks!
 
Last edited by Joe_B,

Rincewindwiz

Member
Newcomer
Joined
Feb 12, 2019
Messages
15
Trophies
0
Age
58
XP
90
Country
United Kingdom
in DOS you can always 'pipe' the program output to a text file
For example
DIR > Textfile.txt
will send all output fro the DIR command to a text file.
 
  • Like
Reactions: Joe_B

Joe_B

Active Member
Newcomer
Joined
Dec 11, 2018
Messages
43
Trophies
0
Age
44
XP
123
Country
Canada
in DOS you can always 'pipe' the program output to a text file
For example
DIR > Textfile.txt
will send all output fro the DIR command to a text file.

Oh! I see!

I can add the same command then when I want to output a DIR to a text file, I just have to put it at the end of the WIT command...

Didn't think about this, lol... Thanks!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/watch?v=A0FyqCEfD0E