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
wiimms-tools.png


WIT: Wiimms ISO Tools v2.09a - 2012-09-08
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.09a r4047 - 2012-09-08

- Option --scan-progress prints more info and flush every log output.
- Bug fix: "wit MOVE a.wbfs ..." will work now.
- New escapes for output files: The old '%f' is the source filename without
path (like 'name.ext'). Now we have also '%g' and '%h' as split of '%f':
'%g' is file name without extension ('name') and '%h' is the extension
('.ext').
- Bug fix: "wit COPY --recurse a --dest b" threw an error, because the tool
thought, that no source was defined (same as with --source before).

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

PsyBlade

Snake Charmer
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
BUG: in wwt and wit
they want write rights for no aparant reason and give strange error messages on read only


psyblade@[member='exile']:~/projects/wbfs2fat/test/wiimm/Kiwi [RIVEXJ]$ wwt list -p RIVEXJ.wbfs

ID6 1/215 discs (0 GiB)
------------------------------------------------------------
RIVEXJ Kiwi
------------------------------------------------------------
Total: 1/215 discs, 70 MiB ~ 0 GiB used, 0 MiB ~ 0 GiB free.

psyblade@[member='exile']:~/projects/wbfs2fat/test/wiimm/Kiwi [RIVEXJ]$ wit verify RIVEXJ.wbfs
***** wit: Wiimms ISO Tool v2.09a r4051 x86_64 - Dirk Clemens - 2012-09-09 *****
+OK .0 DATA RIVEXJ RIVEXJ.wbfs/#0
psyblade@[member='exile']:~/projects/wbfs2fat/test/wiimm/Kiwi [RIVEXJ]$ chmod -w RIVEXJ.wbfs
psyblade@[member='exile']:~/projects/wbfs2fat/test/wiimm/Kiwi [RIVEXJ]$ wwt list -p RIVEXJ.wbfs
!! wwt: ERROR #25 [CAN'T OPEN FILE] in OpenWBFSHelper() @ src/wbfs-interface.c#1110
!! Can't open file: /mnt/btrfs/persist/projects/wbfs2fat/test/wiimm/Kiwi [RIVEXJ]/RIVEXJ.wbfs
!! -> Permission denied [13]
psyblade@[member='exile']:~/projects/wbfs2fat/test/wiimm/Kiwi [RIVEXJ]$ wit verify RIVEXJ.wbfs
***** wit: Wiimms ISO Tool v2.09a r4051 x86_64 - Dirk Clemens - 2012-09-09 *****
!! wit: ERROR #28 [WRONG FILE TYPE] in SourceIteratorHelper() @ src/lib-sf.c#5857
!! GameCube or Wii ISO image expected: RIVEXJ.wbfs
! 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
The "-> Permission denied [13]" message was delivered by the system. And I open wbfs files read/write (implemented when WBFS are always partitions).

by the way: "wit copy" will not work. I have made a mistake and exchanged || and &&.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
Bug fix release v2.09b is online:

Code:
wit v2.09b r4053 - 2012-09-09

- Bug fix: Because of the --recurse bug fix of v2.08a, "wit COPY" failed.
The readonly issue of WBFS must wait.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
The beta repository contains version v2.10a.beta1 for testing.

Change Log
Code:
- Write privileges are not longer needed, if a WBFS file or partition is only
read.

@[member='PsyBlade']:
Will you give it a try?
I'm sorry but how do we get access to the beta's :)

It's not a distribution, only sources are available and you have to compile it by yourself:
Code:
svn co http://opensvn.wiimm.de/wii/branches/public/wiimms-iso-tools/
cd wiimms-iso-tools/
make
 

PsyBlade

Snake Charmer
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
Its working now
thank you


I too had trouble with the link you gave
the right url is shown as target and opened when clicked but
right click - copy link gave
http://api.viglink.com/api/click?format=go&key=a919b18ecb60e22ded3c4b59aae4c684&loc=http%3A%2F%2Fgbatemp.net%2Ftopic%2F182236-wwtwit-wiimms-wbfsiso-tools%2Fpage__st__1440__p__4383210%23entry4383210&v=1&libid=1347312985074&out=http%3A%2F%2Fopensvn.wiimm.de%2Fwii%2Fbranches%2Fpublic%2Fwiimms-iso-tools%2F&ref=http%3A%2F%2Fgbatemp.net%2Fforum%2F104-nintendo-wii-discussions%2F&title=wwt%2Bwit%3A%20Wiimms%20WBFS%2BISO%20Tools%20-%20GBAtemp.net%20-%20Page%2097&txt=beta%20repository&jsonp=vglnk_jsonp_13473134016498
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
Fine, that it works!



I have posted the pure link: http : // opensvn.wiimm.de / wii / branches / public / wiimms-iso-tools /
If using firefox, I get the correct link. But if using opera or chrome, I get your variant. For firefox I have installed several filters and also disabled most plugins.
 

tueidj

I R Expert
Member
Joined
Jan 8, 2009
Messages
2,569
Trophies
0
Website
Visit site
XP
999
Country
I too had trouble with the link you gave
the right url is shown as target and opened when clicked but
right click - copy link gave
http://api.viglink.com/api/click?format=go&key=a919b18ecb60e22ded3c4b59aae4c684&loc=http%3A%2F%2Fgbatemp.net%2Ftopic%2F182236-wwtwit-wiimms-wbfsiso-tools%2Fpage__st__1440__p__4383210%23entry4383210&v=1&libid=1347312985074&out=http%3A%2F%2Fopensvn.wiimm.de%2Fwii%2Fbranches%2Fpublic%2Fwiimms-iso-tools%2F&ref=http%3A%2F%2Fgbatemp.net%2Fforum%2F104-nintendo-wii-discussions%2F&title=wwt%2Bwit%3A%20Wiimms%20WBFS%2BISO%20Tools%20-%20GBAtemp.net%20-%20Page%2097&txt=beta%20repository&jsonp=vglnk_jsonp_13473134016498
Relevant: http://www.viglink.com/support/optout
 
  • Like
Reactions: 1 person

Nickkk

Well-Known Member
Newcomer
Joined
May 25, 2012
Messages
61
Trophies
0
Website
desairem.altervista.org
XP
159
Country
Swaziland
I just tried to follow your hint on how to enable permanent privileged WBFS read/write permissions which you describe in http://wit.wiimm.de/info/command-line.html#sudo.
But once I add the line "ALL ALL=NOPASSWD: /usr/local/bin/wbfs-chmod" to the file /etc/sudoers I get the warning that there is a syntax error, and I undo all the changes. Is the syntax the same for Mac?
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
I just tried to follow your hint on how to enable permanent privileged WBFS read/write permissions which you describe in http://wit.wiimm.de/info/command-line.html#sudo.
But once I add the line "ALL ALL=NOPASSWD: /usr/local/bin/wbfs-chmod" to the file /etc/sudoers I get the warning that there is a syntax error, and I undo all the changes. Is the syntax the same for Mac?

I have never tested it on the Mac. But it works fine on my linux systems. Perhaps you must place the script in another dir and change the path.

What happens, if root is calling the script?
 

PsyBlade

Snake Charmer
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
running "man sudoers" or "man sudo" in a console should give you the manual

http://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man5/sudoers.5.html#//apple_ref/doc/man/5/sudoers
has it too
 

Nickkk

Well-Known Member
Newcomer
Joined
May 25, 2012
Messages
61
Trophies
0
Website
desairem.altervista.org
XP
159
Country
Swaziland
Ok I got it, I wrote the command manually instead of pasting it and now it works ...
I'm looking for a way to modify the wbfs-chmod file in order for the /usr/local/bin/wwt path to be flexible, because I'd like to execute the wwt file which comes inside the Witgui app bundle. Any idea on how to solve this?
 

Nickkk

Well-Known Member
Newcomer
Joined
May 25, 2012
Messages
61
Trophies
0
Website
desairem.altervista.org
XP
159
Country
Swaziland
Ok I got it, I wrote the command manually instead of pasting it and now it works ...
I'm looking for a way to modify the wbfs-chmod file in order for the /usr/local/bin/wwt path to be flexible, because I'd like to execute the wwt file which comes inside the Witgui app bundle. Any idea on how to solve this?
I finally resolved it by myself, modifying the wbfs-chmod file as follows:

Code:
#!/bin/bash
$1 find | while read dev
do
echo chmod 666 "$dev"
chmod 666 "$dev"
done

Now when I launch wbfs-chmod I give it an argument which is the wwt path.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: @K3Nv2, 4th what?