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
  • No one is chatting at the moment.
  • BigOnYa @ BigOnYa:
    Biomutant looks cool tho, may have to try that
  • Quincy @ Quincy:
    Usually when such a big title leaks the Temp will be the first to report about it (going off of historical reports here, Pokemon SV being the latest one I can recall seeing pop up here)
  • K3Nv2 @ K3Nv2:
    I still like how a freaking mp3 file hacks webos all that security defeated by text yet again
  • BigOnYa @ BigOnYa:
    They have simulators for everything nowdays, cray cray. How about a sim that shows you playing the Switch.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
    K3Nv2 @ K3Nv2: @BigOnYa...