Hacking wwt+wit: Wiimms WBFS+ISO Tools

Naguz

Active Member
Newcomer
Joined
May 9, 2008
Messages
44
Trophies
1
XP
255
Country
Norway
The patch i linked from the package page.
Code:
--- Makefile.oldÂÂÂÂ2010-12-04 17:30:12.632812436 +0100
+++ MakefileÂÂÂÂ2010-12-04 18:00:59.263996597 +0100
@@ -154,7 +154,7 @@

#-------------------------------------------------------------------------------

-INSTALL_PATHÂÂÂÂ= /usr/local
+INSTALL_PATHÂÂÂÂ= $(DESTDIR)/usr
INSTALL_SCRIPTSÂÂÂÂ= install.sh load-titles.sh
RM_FILESÂÂÂÂ+= $(INSTALL_SCRIPTS)
SCRIPTSÂÂÂÂÂÂÂÂ= ./scripts

I have tried building straight from source, same error. Hm, Maybe I should youst edit the qtwitgui PKGBUILD (build/package script) and remove wit from dependencies, and then use the binary version provided. Thanks for the tip.
 

Buhntz

Member
Newcomer
Joined
Mar 14, 2009
Messages
12
Trophies
0
XP
184
Country
United States
Wiimm, thanks a lot for your extremely useful tool set. Just wanted to let you know that your installer script windows-install.sh has a small bug that breaks the PATH environment variable on Windows systems. Path is an expandable string value (REG_EXPAND_SZ) stored in the registry under HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment. Running your install script changes PATH to a multi-string value (REG_SZ) which causes all kinds of ill side-effects. The system basically does not search any of the specified directories any longer.

My "fix" was to go to Control Panel -> System -> Advanced -> Environment Variables, double-clicking on "Path", and without making any changes just hitting "OK" -> "OK". Windows then saves the path back into the registry using the proper REG_EXPAND_SZ value type. Just a heads up if other people ask you about command prompts acting strange and not finding executables outside of the current directory any longer.
 

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 v1.29a - 2011-05-21
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:


Highlights of this release:

  • New command: wit+wwt GETTITLES: Update the title database.
    .

Change log:


Code:
wit v1.29a r2655 - 2011-05-21

- Script 'load-titles.sh' will be copied on install into the share folder to
ÂÂ allow later and easy update of the title database.
- New command: wit+wwt GETTITLES: Change to the share folder an call script
ÂÂ 'load-titles.sh' to update the title database.

Known bugs:

- The GameCube support is in development and EXPERIMENTAL!
- There are new problems while reading from non seekable sources (e.g. pipes).
ÂÂ The reason is the complete new and more intelligent wiidisc lib which makes
ÂÂ more lookups ==> The best is to use version 1.01c for pipes.

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.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
I'm back in the scene again. In the last time job+family takes much time and all my free time are consumed by my Custom Mario Kart activities (SZS tools and more).

If there are open questions, please ask again.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
Hielkenator said:
@Wiimm:

Could you post instructions for converting Disc-ex format games ,back to iso or wbfs?

Thank you in advance.
What are "Disc-ex format games"

generally you can use ...
CODEwit copy source_of_any_format_maybe_splittedÂÂdest.wbfs
to convert all known formats to a wbfs file. This includes extracted file systems (partition builder).
Here is a list of supported files formats: http://wit.wiimm.de/info/iso-images.html#formats
 

XFlak

Wiitired but still kicking
Member
Joined
Sep 12, 2009
Messages
13,918
Trophies
3
Age
38
Location
Cyprus, originally from Toronto
Website
modmii.github.io
XP
9,974
Country
Cyprus
@Wiimm,
by discex format games he means "FST" (extracted file systems). The command you gave awhile back was:
wit cp folder_name game_name.wbfs
which is very similar to the code you gave above, is "cp" short for "copy"? Thx!

@Hielkenator,
no biggie, but I answered your question already here: http://gbatemp.net/t277659-ciosx-rev21d2x-...t&p=3684778
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
"cp" is a unix like short cut for "copy".
And "source_of_any_format_maybe_splitted" is any possible source including an extracted file system.
Here are the requirements for a FST: http://wit.wiimm.de/info/composing.html

btw:
Because of the transparent usage of FST as an Wii image you can use "wit dump fst.dir" to make a very fast preview of your virtual image. It's also possible to use "wwt add fst.dir" to add such image directly to a wbfs partition.

btw2:
My tools look always into the source to find the correct input format. File names and extensions are irrelevant for detecting the source file format.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
First read this: http://wit.wiimm.de/cmd/wit/skel

The main idea is to create a data base with skeletons of many games to find out special things like special partitions, geometry of the dvd, used tickets, tmd and certs or looking into file lists. Friends of my has already created skeletons for me. Now I'm able to look into many games that I did not own.
 

airline38

Well-Known Member
Member
Joined
Mar 28, 2010
Messages
741
Trophies
1
XP
807
Country
Taiwan
@Wiimm , is there any "uninstall" batch file for Cygwin (Windows) version
if I would like to uninstall from my WinXP ? (I have executed "windows-install.bat")
 

airline38

Well-Known Member
Member
Joined
Mar 28, 2010
Messages
741
Trophies
1
XP
807
Country
Taiwan
Wiimm said:
Already implemented, but not tested very well and therefor not distributed.

* Load this: http://wit.wiimm.de/download/wit-install.zip
* Extract the filed into C:/Programms/Wiimm/WIT
* Call windows-uninstall.bat
* If you want you can remove C:/Programms/Wiimm/WIT, if not it is possible to call windows-install.bat again.

Doesn't work.
I can't but force to remove "C:/Programms/Wiimm/WIT".
 

wadrockzz

New Member
Newbie
Joined
May 17, 2009
Messages
2
Trophies
0
XP
73
Country
United States
Hey Wiimm...

I found a WBFS to Fat32 HDD Converter (WBFS2Fat) to convert my HDD from WBFS to Fat32. It said my WBFS Drive is corrupted. "Blocks used multiple times" (Try wwt -v to fix). I found this thread in doing so and tried the WWT repair option. It is giving me Error #17 "No WBFS Partition found". I can see my WBFS drive using Wii Backup Manager and can play from this drive. Any ideas on why it is giving me a corrupt error message and that WTT cannot find a WBFS Partition?

I am a noob on CLI and this app but, I've spent some hours reading and attempting to resolve it.

Any help would be much appreciated!
 

Drknyss03

Active Member
Newcomer
Joined
May 21, 2009
Messages
27
Trophies
0
XP
41
Country
United States
Can anyone provide me with a little guidance? I was looking to convert my WBFS Hard Drive to Fat32 using the guide here:

http://gbatemp.net/t292391-howto-get-conve...o-fat32-or-ntfs

When the software finds my USB WBFS drive, it has an a error that my drive was corrupt and running "wwt -v" may fix it.

I ran wwt Verify on my WBFS drive and this is the end result:

WBFS #1: 214 discs verified, 10 bad discs found.

Is there another command I need to run now? Just looking for what I may need to do next. Thanks in advance!
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
<img src="http://wit.wiimm.de/images/wiimms-tools.png" border="0" class="linked-image" />

<!--sizeo:5--><span style="font-size:18pt;line-height:100%"><!--/sizeo--><!--coloro:#0000FF--><span style="color:#0000FF"><!--/coloro--><b>WIT: Wiimms ISO Tools v2.00a - 2011-07-08</b><!--colorc--></span><!--/colorc--><!--sizec--></span><!--/sizec-->
<!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo--><!--coloro:#800000--><span style="color:#800000"><!--/coloro--><b>A command line ISO+WBFS tool set for various os.</b><!--colorc--></span><!--/colorc--><!--sizec--></span><!--/sizec-->

<a href="http://wit.wiimm.de/" target="_blank"><b>WIT</b></a> (Wiimms ISO Tools) is a set of <a href="http://wit.wiimm.de/info/command-line.html" target="_blank">command line</a> tools to manipulate Wii ISO images and WBFS containers. The two main tools are called <a href="http://wit.wiimm.de/wit" target="_blank"><b>wit</b></a> (Wiimms ISO Tool) and <a href="http://wit.wiimm.de/wwt" target="_blank"><b>wwt</b></a> (Wiimms WBFS Tool, the WBFS manager).

<!--sizeo:2--><span style="font-size:10pt;line-height:100%"><!--/sizeo--><!--coloro:#0000c0--><span style="color:#0000c0"><!--/coloro--><b>Feature overview:</b><!--colorc--></span><!--/colorc--><!--sizec--></span><!--/sizec-->
<ul><li><a href="http://wit.wiimm.de/features.html#1" target="_blank"><b>WIT (Wiimms ISO Toolset) is a set of command line tools.</b></a></li><li><a href="http://wit.wiimm.de/features.html#3" target="_blank"><b>wit (Wiimms ISO tool) is the main Wii and GameCube ISO manipulation tool.</b></a></li><li><a href="http://wit.wiimm.de/features.html#4" target="_blank"><b>wwt (Wiimms WBFS tool) is a complete WBFS manager including FS checking and repairing, time stamps and multi WBFS support.</b></a></li><li><a href="http://wit.wiimm.de/features.html#5" target="_blank"><b>wdf (Wiimms WDF Tool) is a little tool to manage WDF, CISO and WIA files.</b></a></li><li><a href="http://wit.wiimm.de/features.html#6" target="_blank"><b>wfuse (Wiimms FUSE Tool) mounts Wii and GameCube images and WBFS files and partitions using FUSE.</b></a></li><li><a href="http://wit.wiimm.de/features.html#7" target="_blank"><b>WIT supports 6 Wii disc file types (ISO, CISO, WDF, WIA, WBFS and FST) and can read from pipes (indirect RAR/ZIP/7Z support).</b></a></li><li><a href="http://wit.wiimm.de/features.html#8" target="_blank"><b>wit can verify and compare (diff) Wii and GameCube ISO images.</b></a></li><li><a href="http://wit.wiimm.de/features.html#9" target="_blank"><b>wit can extract and compose Wii ISO images.</b></a></li><li><a href="http://wit.wiimm.de/features.html#10" target="_blank"><b>wit can patch Wii and GameCube ISO images while copying.</b></a></li><li><a href="http://wit.wiimm.de/features.html#11" target="_blank"><b>wit can mix partitions from different sources into a new Wii ISO images.</b></a></li><li><a href="http://wit.wiimm.de/features.html#12" target="_blank"><b>wit and wwt support many diagnostic commands.</b></a></li><li><a href="http://wit.wiimm.de/features.html#13" target="_blank"><b>Advanced shell support.</b></a></li></ul>Visit <a href="http://wit.wiimm.de/features.html" target="_blank"><b>http://wit.wiimm.de/features.html</b></a> for more details.

<!--sizeo:2--><span style="font-size:10pt;line-height:100%"><!--/sizeo--><!--coloro:#0000c0--><span style="color:#0000c0"><!--/coloro--><b>Download of the current version:</b><!--colorc--></span><!--/colorc--><!--sizec--></span><!--/sizec-->
<ul><li> <a href="http://wit.wiimm.de/download/wit-v2.00a-r2834-i386.tar.gz" target="_blank"><b>wit-v2.00a-r2834-i386.tar.gz</b></a> : Linux/i386 version</li><li> <a href="http://wit.wiimm.de/download/wit-v2.00a-r2834-x86_64.tar.gz" target="_blank"><b>wit-v2.00a-r2834-x86_64.tar.gz</b></a> : Linux/x86_64 version</li><li> <a href="http://wit.wiimm.de/download/wit-v2.00a-r2834-mac.tar.gz" target="_blank"><b>wit-v2.00a-r2834-mac.tar.gz</b></a> : Mac OS universal binaries (ppc, i386 and x86-64)</li><li> <a href="http://wit.wiimm.de/download/wit-v2.00a-r2834-cygwin.zip" target="_blank"><b>wit-v2.00a-r2834-cygwin.zip</b></a> : Cygwin (Windows) version</li><li> Other releases are available at <a href="http://wit.wiimm.de/download.html" target="_blank"><b>http://wit.wiimm.de/download.html</b></a>.</li></ul>

<!--sizeo:2--><span style="font-size:10pt;line-height:100%"><!--/sizeo--><!--coloro:#0000c0--><span style="color:#0000c0"><!--/coloro--><b>There are also some GUI available:</b><!--colorc--></span><!--/colorc--><!--sizec--></span><!--/sizec-->
<ul><li> <a href="http://wit.wiimm.de/r/qtwitgui" target="_blank"><b>QtWitGui</b>, manipulate and convert single ISO images.</a>
This QT based GUI focuses on manipulating single ISO images. It can do much more.
<!--coloro:#ffffff--><span style="color:#ffffff"><!--/coloro-->.<!--colorc--></span><!--/colorc-->
</li><li> <a href="http://wit.wiimm.de/r/wiibafu" target="_blank"><b>Wii Backup Fusion</b>, a WBFS and ISO manager.</a>
This QT based GUI is a complete WBFS manager and ISO tool.
<!--coloro:#ffffff--><span style="color:#ffffff"><!--/coloro-->.<!--colorc--></span><!--/colorc-->
</li><li> <a href="http://wit.wiimm.de/r/wcdwm" target="_blank"><b>Wii Covers Download & WBFS Manager for Windows</b>, a WBFS and ISO manager.</a>
This is a very young Java based WBFS manager. (<a href="http://gbatemp.net/t274044-wcdwm-wii-covers-dowbload-wbfs-manager-v1-2" target="_blank">GBA temp discussion</a>)</li></ul>

<!--sizeo:2--><span style="font-size:10pt;line-height:100%"><!--/sizeo--><!--coloro:#0000c0--><span style="color:#0000c0"><!--/coloro--><b>Highlights of this release:</b><!--colorc--></span><!--/colorc--><!--sizec--></span><!--/sizec-->
<ul><li> Because no bugs (exclude installing) reported since months my WIT tools seems to be perfect (or ready to use or something between). So it's time to increase the major version and to proclaim <b>v2.00a</b>. I have written more than 100 000 code lines for this project.
<!--coloro:#ffffff--><span style="color:#ffffff"><!--/coloro-->.<!--colorc--></span><!--/colorc-->
</li><li> I don't know if this project is really finished or only paused. At the moment I work on my SZS Tools. But there are more ideas for WIT; see the "roadmap" section in the change log for details.
<!--coloro:#ffffff--><span style="color:#ffffff"><!--/coloro-->.<!--colorc--></span><!--/colorc--></li></ul>

<!--sizeo:2--><span style="font-size:10pt;line-height:100%"><!--/sizeo--><!--coloro:#0000c0--><span style="color:#0000c0"><!--/coloro--><b>Change log:</b><!--colorc--></span><!--/colorc--><!--sizec--></span><!--/sizec-->

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->wit v2.00a r2834 - 2011-07-08

- Because no bugs (exclude installing) reported since months my WIT tools
ÂÂ seems to be perfect (or ready to use or something between). So it's time
ÂÂ to increase the major version and to proclaim v2.00a. The whole project
ÂÂ consists about 100 000 code lines.
- Bug fix for Windows install script: Remove duplicate WIT entries.


Known bugs:

- The GameCube support is in development and EXPERIMENTAL!
- There are new problems while reading from non seekable sources (e.g. pipes).
ÂÂ The reason is the complete new and more intelligent wiidisc lib which makes
ÂÂ more lookups ==> The best is to use version 1.01c for pipes.


Road map (for some point in the future):

I have already stopped the development in favor of my SZS tools. But there
are some already planned extensions:

- Since many versions the code contains a WBFS extension, enabled by defining
ÂÂ the symbol NEW_WBFS_INTERFACE (set by "make new all"). If enabled, the free
ÂÂ blocks table is managed in a total different way. Already implemented are:
ÂÂÂÂ- WBFS access: While opening a WBFS the free blocks table is ignored.
ÂÂÂÂÂÂInstead of using the stored one an internal memory map of used blocks is
ÂÂÂÂÂÂbuilt. This needs only a part of a second. Some advantages:
ÂÂÂÂÂÂ - Errors in the free blocks table are irrelevant.
ÂÂÂÂÂÂ - Blocks overlaps and invalid block assignings are automatically
ÂÂÂÂÂÂÂÂ detected and reported.
ÂÂÂÂÂÂ - If removing a discs with overlaps, the blocks are still marked used.
ÂÂÂÂÂÂ - Blocks, that are not handled by the free blocks tables (a result of a
ÂÂÂÂÂÂÂÂ calculation bug in the original libwbfs) can be used.
ÂÂÂÂÂÂIf closing, a new (and corrected) free blocks table will be written. This
ÂÂÂÂÂÂmakes the whole process compatible to other WBFS managers and loaders.
ÂÂÂÂ- wwt ADD: Before adding a disc it size is compared against the free size
ÂÂÂÂÂÂof the WBFS. This allows an early "disc full" error message.
ÂÂÂÂ- wwt ADD: If adding a disc a continuous memory block is searched to
ÂÂÂÂÂÂminimize the fragmentation.
ÂÂ Missing:
ÂÂÂÂ- Report errors while scanning the WBFS.
ÂÂÂÂ- The commands "wwt CHECK", "wwt REPAIR" and "wwt EDIT" must use the new
ÂÂÂÂÂÂinterface.

- GameCube support is still incomplete.

- There are already code fragments implemented to trim discs in three levels:
ÂÂÂÂ- Move partitions as whole to eliminate disc holes.
ÂÂÂÂ- Move partitionÂÂsectors to reduce partition size (alternative for
ÂÂÂÂÂÂpartition scrubbing). Fake signing is necessary.
ÂÂÂÂ- Move files of partitons to optimize the step above.
ÂÂ For all trimming levels alignment factors may be set and it should be
ÂÂ possible to set special alignments for GameCube sound files.

- On the fly patching: Create a new image a combination of 2 or more sources.
ÂÂ Therefor trimming is needed.

- A better (real) windows installer.<!--c2--></div><!--ec2-->

The source is published under the license of GPL2. Checkout the sources directly from the <a href="http://opensvn.wiimm.de/wii/trunk/wiimms-iso-tools/" target="_blank"><b>SVN repository</b></a> or <a href="http://wit.wiimm.de/r/viewvc" target="_blank"><b>browse the source</b></a>. Visit <a href="http://wit.wiimm.de/" target="_blank"><b>http://wit.wiimm.de/</b></a> for more information.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: Better leave them alone i guess