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
@[member='jayjay960']
Here are 2 new binaries for Linux/386 revision 3380. It is a BETA because I'm on the way to change the patch id and this is not completed now.
* http://wit.wiimm.de/download/x/wit-3380
* http://wit.wiimm.de/download/x/wwt-3380
Both images support --force to ignore some checks while scanning a disc. Please try them.
 

Skeeve

Well-Known Member
Newcomer
Joined
Jan 1, 2010
Messages
75
Trophies
1
XP
159
Country
Gambia, The
Hi Wiimm!

I don't understand this:

Code:
$ wwt extract --test --update --part /dev/disk2s1 --split --DEST "/Volumes/HOMEBREW/wbfs/%T [%I]/" --wbfs --verbose
wwt: Wiimms WBFS Tool v1.01c r1366 mac - Dirk Clemens - 2010-07-11
One WBFS partition found.
!! wwt: ERROR #26 [MISSING PARAMETERS] in cmd_extract() @ src/wwt.c#1924
!!	  missing parameters
wwt: Command 'EXTRACT' returns with status #26 [MISSING PARAMETERS]
What is the command EXTRACT missing?
 

Skeeve

Well-Known Member
Newcomer
Joined
Jan 1, 2010
Messages
75
Trophies
1
XP
159
Country
Gambia, The
No, wiimm. The wbfs formatted disk is okay. I'm just copying all the files back to the fat formatted disk.

Explanation: I have a wbfs formatted disk on /dev/disk2s1 and a fat32 formatted on /Volumes/HOMEBREW with a different set of files.

I did an wwt add --update yesterday to copy all new files from fat32 to wbfs.

Today I wanted to copy every missing file from wbfs to fat32 so that both are in sync.

I did the --test command from above with \* for the 2thing to copy". First run was okay, listing several files which would be copied and which would not be copied. I did a second run an now ALL files would be copied. I did a quick check just to see that many (if not all) of the files from the fat32 disk are gone.
 

Skeeve

Well-Known Member
Newcomer
Joined
Jan 1, 2010
Messages
75
Trophies
1
XP
159
Country
Gambia, The
See, wiimm, what I just found on your homepage:

10. wit v1.26a r2223 - 2011-01-27

- Bug fix for "wwt EXTRACT --test": If extracting to an already existing file
the old file was removed.

Seems to be exactly what happend to me as I'm (see above) using v1.01c r1366
 

Skeeve

Well-Known Member
Newcomer
Joined
Jan 1, 2010
Messages
75
Trophies
1
XP
159
Country
Gambia, The
So as it seems I have a too old version, I tried to compile on my OS X 10.5 but unfortunately failed. I could compile before. Here is what I did:

Code:
$ svn up
D	lib
D	svn-revision.flag
A	gen-text-file.sh
[...long list shortened...]
U	setup.sh
U	Makefile
U   .
Updated to revision 3389.
$ make clean
***	  rm output files + distrib
$ make
***  create templates.sed	
***  create version.h		
***	text logo.inc		
***	text ui-head.inc	  
***  object gen-ui.o		
***  object LzFind.o		
***  object Lzma2Dec.o	  
***  object Lzma2Enc.o	  
***  object LzmaDec.o		
***  object LzmaEnc.o		
***  object cert.o		  
***  object dclib-utf8.o	
***  object debug.o		  
***  object file-formats.o  
***  object iso-interface.o  
***  object lib-bzip2.o	  
***  object lib-ciso.o	  
***  object lib-file.o	  
***  object lib-lzma.o	  
***  object lib-sf.o		
***  object lib-std.o		
***  object lib-wdf.o		
***  object lib-wia.o		
***  object libwbfs.o		
***  object match-pattern.o  
***  object patch.o		  
***  object rijndael.o	  
***  object sha1_one.o	  
***  object sha1dgst.o	  
***  object blocksort.o		[libbz2]
***  object bzlib.o			[libbz2]
***  object compress.o		 [libbz2]
***  object crctable.o		 [libbz2]
***  object decompress.o	   [libbz2]
***  object huffman.o		  [libbz2]
***  object randtable.o		[libbz2]
***	 asm ssl-asm.o		
***  object titles.o		
***  object tools.o		  
***  object ui.o			
***  object wbfs-interface.o
***  object wiidisc.o		
***  helper gen-ui		  
*** +object wdf.o			
***  object wit-mix.o		
***	tool wdf				
*** +object wfuse.o		  
In file included from /usr/local/include/fuse/fuse.h:857,
from /usr/local/include/fuse.h:9,
from src/wfuse.c:42:
/usr/local/include/fuse/fuse_compat.h:69:24: error: sys/statfs.h: No such file or directory
In file included from /usr/local/include/fuse/fuse.h:857,
from /usr/local/include/fuse.h:9,
from src/wfuse.c:42:
/usr/local/include/fuse/fuse_compat.h:91: warning: ‘struct statfs’ declared inside parameter list
/usr/local/include/fuse/fuse_compat.h:91: warning: its scope is only this definition or declaration, which is probably not what you want
/usr/local/include/fuse/fuse_compat.h:140: warning: ‘struct statfs’ declared inside parameter list
make: *** [wfuse.o] Error 1

What am I missing?
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
This seems an error in wfuse for (some) Mac versions. I have edited the file /usr/local/include/fuse/fuse_compat.h:69 to
Code:
#ifndef __FreeBSD__
//#include 
#include
I repeat PsyBlades question: Why not use the binary instead?


See, wiimm, what I just found on your homepage:

10. wit v1.26a r2223 - 2011-01-27

- Bug fix for "wwt EXTRACT --test": If extracting to an already existing file
the old file was removed.

Seems to be exactly what happend to me as I'm (see above) using v1.01c r1366
It's very long ago and I haven't remembered this bug. But no programmer is perfect.
 

Skeeve

Well-Known Member
Newcomer
Joined
Jan 1, 2010
Messages
75
Trophies
1
XP
159
Country
Gambia, The
I'd like to be able to compile it just because ;) I could compile before, now something seems to be missing here. I think it's because I don't have this fuse-stuff. Is there a switch to compile without fuse?

Sorry, Wiimm! Didn't see the comment about editing the header file. Now that I've done that, it compiled. Thanks.
 

PsyBlade

Snake Charmer
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
running "wwt check Y:" is supposed to work isn't it?

because all I get is the error below
checking via "wwt check -A" DOES work



C:\Dokumente und Einstellungen\x\Desktop\wit-v2.03a-r3309-cygwin\bin>wwt check Y:
***** wwt: Wiimms WBFS Tool v2.03a r3309 cygwin - Dirk Clemens - 2011-12-30 **
***

!! wwt: ERROR #25 [CAN'T OPEN FILE] in AnalyzePartitions() @ src/wbfs-interface.
c#346
!! Can't open file: /cygdrive/y
!! -> Permission denied [13]
!! wwt: ERROR #17 [NO WBFS FOUND] in AnalyzePartitions() @ src/wbfs-interface.c#
448
!! no WBFS partitions found -> abort
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
It's not a bug, it's a feature ;)

"Y:" is an alias for "/cygdrive/y" and both are links to a mounted file system. -a/-A tries to find the partition using /proc/partitions (giving "sda1"...) and that are block devices. When I start using cygwin I didn't find any way to find out which block device is used for paths like "/cygdrive/y".
 

Skeeve

Well-Known Member
Newcomer
Joined
Jan 1, 2010
Messages
75
Trophies
1
XP
159
Country
Gambia, The
I used cleanrip to rip some of my GameCube discs. Now I have a handful of files named GAMEID.iso. On http://wit.wiimm.de/ I read "Wiimms ISO Tools is a set of command line tools to manipulate Wii and GameCube ISO images and WBFS containers" but I can't figure out, how to handle these dumps. wit LIST /path/to/the/files/*.iso does not recognize them as gamecube isos. What am I missing?
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
The command is correct and I haven't any problems with it:
Code:
# wit list pool/gc/*.iso

ID6     2 discs (2784 MiB)
-------------------------------------------
GM4P01  Mario Kart: Double Dash!!
GZLP01  The Legend of Zelda: The Wind Waker
-------------------------------------------
Total: 2 discs, 2784 MiB used.


# wit dump pool/gc/mkdd.iso

Dump of file pool/gc/mkdd.iso

Real path:         /disk/ide1/nonopen/wit/pool/gc/mkdd.iso
ISO file size:      57058000/hex = 1459978240 = 1392 MiB
Scrubbed size:      24368000/hex =  607551488 =  579 MiB, 41.6%, 18541*32K
File & disc type:  ISO/GC  &  GameCube
Disc & part IDs:   disc=GM4P01, ticket=...., tmd=-, boot=GM4P01
Disc name:         Mario Kart Double Dash!
DB title:          Mario Kart: Double Dash!!
ID Region:         PAL [PAL ]
BI2 Region:        2 [Europe]
Partitions:             1  []
Directories:           34
Files:                329
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • linuxares @ linuxares:
    Thor from "Pirate Software" said its just better to pirate the game than buy from a keyshop if you care about the devs
    +2
  • The Real Jdbye @ The Real Jdbye:
    devs don't get hit with the chargebacks, the keys are free to generate
  • The Real Jdbye @ The Real Jdbye:
    at least on steam
  • linuxares @ linuxares:
    Except he said the DEVS get hits with the chargeback cost
    +1
  • linuxares @ linuxares:
    since the key gets bought with a stolen credit card
  • The Real Jdbye @ The Real Jdbye:
    there's nothing to charge back because the keys don't cost them money to generate in the first place
  • K3Nv2 @ K3Nv2:
    If the game has a crack sure
  • K3Nv2 @ K3Nv2:
    Most these crack sites have dead links anymore or the crack don't even work
  • linuxares @ linuxares:
    @The Real Jdbye What don't you get? If someone use a stolen creditcard. Then sell said key on G2A. If I the dev sold the game key, I will get the charge back cost. That's how it works, it doesn't matter if I generate 300 keys if 300 of them are bought with stolen credit cards. I never said it was on Steam, but its the dev that gets hit. There is a ton of stories out there if you google it.
    +1
  • K3Nv2 @ K3Nv2:
    Just buy other people's steam account :teach:
  • linuxares @ linuxares:
    Just tell them you're dead ;D
    +1
  • K3Nv2 @ K3Nv2:
    They already know
  • linuxares @ linuxares:
    I honestly wonder how the EU would say if I willed my account to you. And Valve be like "nope!"
    +1
  • cearp @ cearp:
    @K3Nv2 - sounds like you need a better place to find cracks!
  • K3Nv2 @ K3Nv2:
    Psionics offline right now or I would
  • SylverReZ @ SylverReZ:
    @cearp, Psi is offline at the minute, but he knows where to find them.
  • cearp @ cearp:
    get your mind out of the gutter, I'm talking about piracy
  • cearp @ cearp:
    not that type of crack
    +1
  • K3Nv2 @ K3Nv2:
    I mean the drug not the booty pervs
    +2
  • linuxares @ linuxares:
    @cearp At a plumber convenstion. Loads of cracks!
    +2
  • K3Nv2 @ K3Nv2:
    A plumber is either on crack or in crack or showcasing crack
    +2
  • cearp @ cearp:
    or of course, dealing with cracks (in pipes)
  • K3Nv2 @ K3Nv2:
    Sure he could be on cracked flooring causing the leak
  • K3Nv2 @ K3Nv2:
    How much you bet delta going to be DRMd to hell and back
    K3Nv2 @ K3Nv2: How much you bet delta going to be DRMd to hell and back