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
I would like to report a bug (tested in v2.40a using an Animal Crossing PAL ISO). When extracting a GameCube game, the fst.bin file ends up being 4 times too large, with the last 3/4 of it being garbage. I suppose that the FST size stored at 0x428 is being multiplied by 4 even though that only should be done with Wii games. I haven't tested if the import code has an equivalent bug.
Not released yet, but fixed: http://wit.wiimm.de/changelog.html#r0
 
  • Like
Reactions: JosJuice

BullyWiiPlaza

Nintendo Hacking <3
Member
Joined
Aug 2, 2014
Messages
1,932
Trophies
0
XP
2,477
Country
Germany
@Wiimm:
I have a WBFS drive and I want to list all the files contained in the ISOs (!) and filter them for certain extensions. What would be the best way to accomplish this?

It seems like I have to extract all to ISO and then use wit to list the ISO files or is there a faster way?

Listing WBFS entries works with the following command:
Code:
> wwt LIST-LLL

ID6      m-date    m-time   MiB Reg. 187/500 discs (450 GiB)
-----------------------------------------------------------------------------------------------------
RJ2E52 ---------- --:--:-- 2672 USA  007: Quantum of Solace
RJ2P52 ---------- --:--:-- 3496 PAL  007: Quantum of Solace
SFWX69 ---------- --:--:-- 3192 EURO 2010 FIFA World Cup South Africa
RUUE01 ---------- --:--:--  336 USA  Animal
...
-----------------------------------------------------------------------------------------------------
Total: 187/500 discs, 461280 MiB  450 GiB used, 15648 MiB  15 GiB free.
But extracting all does not work the same way:
Code:
> wwt --iso extract . -D D:\
****  wwt: Wiimms WBFS Tool v2.40a r7331 cygwin - Dirk Clemens - 2017-01-05  ****
!! wwt: ERROR #19 [NO WBFS FOUND] in AnalyzePartitions() @ src/wbfs-interface.c#447
!!      no WBFS partitions found -> abort
Why is the partition found with LIST and not found with e.g. EXTRACT? I'm on Windows 10.
 
Last edited by BullyWiiPlaza,

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 v3.00a - 2017-08-13
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 v3.00a r7387 - 2017-08-13

 - At the beginning of Wiimms-SZS-Tools I extraced the universal usable source
   code from Wiimms-ISO-Tools and created an independent C source code library
   called »dcLib«. I use this dcLib also for some other projects like mkw-ana,
   Wiimmfi, XDump and some more private projects. Now I inserted the expanded
   and more functional dcLib back into Wiimms-ISO-Tools and removed old WIT
   specific functions and members with same name or functionality. The great
   advantage is the easier management of the shared sources. The adapted code
   works fine with at least one issue: The error codes (numbers, not names)
   changed. If you used »wit error« to translate numbers to messages, you'll
   not have any problems.

 - New options: --color[=mode], --256-colors, --no-colors: Define the color
   mode of the tools. If a command is prefixed by 'C-', then --color=ON is
   used implicitly as default. By default, the color support is only enabled
   for terminals. However, commands have to be recoded to support colors.

 - List of commands with color support:
    - HELP (complete help system)
    - wit ID6 + ID8 (highlight unusal IDs)
    - wwt SPACE

 - Bug fix: When extracting GameCube images, »fst.bin« was 4 times too large.

 - Some minor fixes.

 - Windows only: Cygwin update to v2.8.1, 2017-07-03.

 - Apple Mac is no longer supported because I no longer have access to a Mac.

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.
 

BullyWiiPlaza

Nintendo Hacking <3
Member
Joined
Aug 2, 2014
Messages
1,932
Trophies
0
XP
2,477
Country
Germany
How do you use wfuse? In the documentation it says the following:
Mount a Wii or GameCube image or a WBFS file or partition to a mount point using FUSE (Filesystem in USErspace). Use 'wfuse --umount mountdir' for unmounting.
This doesn't work, there is no wfuse binary. Please fix the documentation, I would like to know how to mount the WBFS drive on my computer so I can browse the ISOs and files of each game. Also, there is no stand-alone download for wfuse.

Thank you :)
 
Last edited by BullyWiiPlaza,

GreyWolf

Well-Known Member
Member
Joined
Mar 2, 2015
Messages
5,399
Trophies
0
Age
54
XP
1,515
Country
United States
How do you use wfuse? In the documentation it says the following:

This doesn't work, there is no wfuse binary. Please fix the documentation, I would like to know how to mount the WBFS drive on my computer so I can browse the ISOs and files of each game. Also, there is no stand-alone download for wfuse.

Thank you :)

wfuse was only for macOS/Linux
 
  • Like
Reactions: BullyWiiPlaza

BullyWiiPlaza

Nintendo Hacking <3
Member
Joined
Aug 2, 2014
Messages
1,932
Trophies
0
XP
2,477
Country
Germany
wfuse was only for macOS/Linux
Oh, I use Windows. So no chance of a port? :/
Nevermind, not needed anymore.

@Wiimm:
How do you only extract a single file using wit?
Code:
wit FILES RUUE01.wbfs
prints for instance the following:
Code:
./files/hp_r.elf

I tried it like this:
Code:
wit EXTRACT RUUE01.wbfs --dest=test --files=:./files/hp_r.elf
But it doesn't work. Please let me know how it's done.
 
Last edited by BullyWiiPlaza,

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
FUSE is not compatible with Cygwin/Windows. There are/were several projects to change this. So I'm not sure about the current state of Cygwin.

However I like and use it every time, when I want to investigate game images. In this case I mount it on Linux and use often the Total Commander on Windows.


EDIT
@BullyWiiPlaza
does "hp_r.elf" really exists?
In PAL no *.elf exists.


EDIT 2:
forgotten, "+FILENAME" is correct (not ":FILENAME")
 
Last edited by Wiimm,

BullyWiiPlaza

Nintendo Hacking <3
Member
Joined
Aug 2, 2014
Messages
1,932
Trophies
0
XP
2,477
Country
Germany
FUSE is not compatible with Cygwin/Windows. There are/were several projects to change this. So I'm not sure about the current state of Cygwin.

However I like and use it every time, when I want to investigate game images. In this case I mount it on Linux and use often the Total Commander on Windows.


EDIT
@BullyWiiPlaza
does "hp_r.elf" really exists?
In PAL no *.elf exists.


EDIT 2:
forgotten, "+FILENAME" is correct (not ":FILENAME")
Sorry, wrong game.
Code:
WIT FILES RWOP69.wbfs > Files.txt
Files.txt:
Code:
path + file
-------------------
./
./cert.bin
./disc/
./disc/header.bin
./disc/region.bin
./files/
./files/data.big
./files/hp_r.elf
./files/movies.big
./files/music.big
./files/opening.bnr
./h3.bin
./setup.bat
./setup.sh
./setup.txt
./sys/
./sys/apploader.img
./sys/bi2.bin
./sys/boot.bin
./sys/fst.bin
./sys/main.dol
./ticket.bin
./tmd.bin
Trying to extract:
Code:
> wit EXTRACT RWOP69.wbfs --dest=Test --files=+/files/hp_r.elf
*****  wit: Wiimms ISO Tool v3.00a r7387 cygwin - Dirk Clemens - 2017-08-13  *****
wit: EXTRACT 1/1 WBFS:RWOP69.wbfs/#0 -> Test/
This worked finally.
 
Last edited by BullyWiiPlaza,

piratesephiroth

I wish I could read
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
2
Age
103
XP
3,233
Country
Brazil
When composing/converting files, why isn't it possible to create an encrypted but unsigned image?
If we want it to be encrypted then it must also be fakesigned, and fakesigning isn't even useful for anything anymore.
 
Last edited by piratesephiroth,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Veho @ Veho: The cybertruck is a death trap.