Hacking WIT: Wiimms ISO Tools / beta test

  • Thread starter Thread starter Wiimm
  • Start date Start date
  • Views Views 44,284
  • Replies Replies 223
Wiimm said:
iDarkTrace said:
I've been wondering... is there a Windows version of this tool?
Have you ever followed my signature or visited my WIT threads?
I think many Users dont know what cygwin or win32 means.
Given the destructive potential of anything that accesses harddisks it might be better this way.
But while I like flaming I think it is not warranted here. (No offence meant)

PS
Cygwin ~ Unix tools/compiler for Windows
Win32 ~ 32 Bit Windows
 
Wiimm said:
Ok, I will write "Windows" in the future.

Have you tested the V1.14a again to shrink down the merged ISO file ? How is it ?

--------------
Just saw the v1.14a beta 2 ........ I am testing now !!
 
I got below error messages when I tried to use v1.14a with the "ignore file option"

wit: unknown option -- f
wit: unknown option -- e
wit: unknown option -- /
wit: unknown option -- f
wit: unknown option -- e
wit: unknown option -- /

The file content is something like:

-/files/Scene/UI/Channel.szs
-/files/Scene/UI/Channel_U.szs
-/files/sound/revo_kart.brsar
-/files/contents/globe.arc
-/files/Scene/Model/Earth.szs
-/files/sound/strm/o_Option_32.brstm
+/files/

Is the above format correct ? or what's the correct format I have to change ?
 
@airline38
please tell me the used command line

EDIT
After a test i found out, that the cygwin release interpret @file on its own way. So you mus escape that like:
--ignore-files "@file_path"
 
airline38 said:
Wiimm said:
I have written a little introduction into command line usage, hope that it help: http://wit.wiimm.de/info/command-line.html

Can you take a look at the post below ?

http://gbatemp.net/t243210-mariokart-pwns?...t&p=3029487 (post#164)

The ignore file format is accepted by wit (thanks for ur advise) . However, I don't know why
the test result of merged file (with ignore file option) is still the same as 8.2GB.

Maybe your ignored files are not contigious hence not suitable for a partition injection?
 
Wiimm said:
my docu says: try
wit dump image1 --show usage --ignore-files ruleset
to show all the holes in the usage map.

I got [SYNTAX ERROR] below. Seems the problem is still the mkw.txt file.


ohnoes.png
\Wii\WiiGF>wit dump mario.iso --ignore-files "@mkw.txt" --show usage
!! wit: ERROR #29 [SYNTAX ERROR] in AddFilePattern() @ src/match-pattern.c#135
!! File pattern rule must begin with '+', '-' or ':' => ??-
-> Type 'wit -h', 'wit help' or 'wit help command' for more help.
---------------------------------------------------------------------------------------------
But I don't get error message if I use "ignore "@mkw.txt" in the wit mix command.

Also the wit dump command can't accept "ignore" as a qualifier.

ohnoes.png
\Wii\WiiGF>wit dump mario.iso ignore "@mkw.txt" --show usage
!! wit: ERROR #19 [CAN'T OPEN FILE] in SetupReadSF() @ src/lib-sf.c#312
!! Can't open file: ignore
 
airline38 said:
I got [SYNTAX ERROR] below. Seems the problem is still the mkw.txt file.


ohnoes.png
\Wii\WiiGF>wit dump mario.iso --ignore-files "@mkw.txt" --show usage
!! wit: ERROR #29 [SYNTAX ERROR] in AddFilePattern() @ src/match-pattern.c#135
!! File pattern rule must begin with '+', '-' or ':' => ??-
-> Type 'wit -h', 'wit help' or 'wit help command' for more help.
---------------------------------------------------------------------------------------------
But I don't get error message if I use "ignore "@mkw.txt" in the wit mix command.
It seems that there is an illegal character in the mkw.txt. (1. column before a minus sign)

QUOTE(airline38 @ Aug 7 2010, 02:35 AM) Also the wit dump command can't accept "ignore" as a qualifier.

ohnoes.png
\Wii\WiiGF>wit dump mario.iso ignore "@mkw.txt" --show usage
!! wit: ERROR #19 [CAN'T OPEN FILE] in SetupReadSF() @ src/lib-sf.c#312
!! Can't open file: ignore
replace "ignore" by "--ignore-files".
Qualifiers (ignore) are new and only allowed for command MIX to allow different options for different images.
 
I can't get the 'ignore file' worked. Is there a code (EX:ANSI ,Unicode , UTF-8 .....)
limitation of the ignore file ? Suppose a normal TEXT file is OK. Is it correct ?

On the other hand, I tried another way : (split file size)

wit mix mario.iso indiana.iso --dest output.iso --overlay --split-size 8

Then I got a 8GB file and the other 0.2GB file. Not sure if this way will work ..............
 
Wiimm said:
[Qualifiers (ignore) are new and only allowed for command MIX to allow different options for different images.

Can you create a test "ignore file" of Mario Kart for me to test ?
 
@Wiimm, pls see below results I used ur mkw.txt file to test:

1. Wii Dump: (seems OK)

ohnoes.png
\Wii\WiiGF>wit dump mario.iso --ignore-files "@mkw.txt" --test

Dump of file mario.iso

Real path: /WiiGF/mario.iso
ID & type: RMCJ01, ISO
File size: 118240000/hex = 4699979776 = 4482 MiB
Disc name: MarioKartWii
DB title: Mario Kart Wii
Region: Japan [JAPA]
Region setting: 0 / 00 80 80 80 80 80 80 80
Directories: 77
Files: 2049
Used ISO blocks: 5291 * 32 KiB = 165 MiB

1 partition table with 3 partitions:

tab.idx n(part) offset(part.tab) .. end(p.tab)
--------------------------------------------------------
0 3 10008*4 = 40020 .. 40038

2. Wit Mix: (same mkw.txt file but it seems wit mix can't recognize)

ohnoes.png
\Wii\WiiGF>wit mix mario.iso ignore "@mkw.txt" indiana.iso --dest output.iso --overlay --test

***** wit: Wiimms ISO Tool v1.14a.beta2 r1485 cygwin - Dirk Clemens - 2010-08-06 *****
! wit: Warning: use at least one '.' or '/' in a filename to distinguish file
! names from keywords:
!! wit: ERROR #19 [CAN'T OPEN FILE] in SetupReadSF() @ src/lib-sf.c#312
!! Can't open file:
 
Wiimm said:
Oh yes, there is a bug!
Please wait for the next beta.
it's not a bug, it's a feature.

When analyzing the command line 1 do the following steps:[*] Extract options and their parameters[*] Extract the first global param as command[*] Expand @file global params (global means; not option param)[*] Execute the command and consume the other global params.If file contains the 3 lines "-a -b -c" then
Code:
# the command line
wit mix image1.iso ignore @file

# expands to
wit mix image1.iso ignore -a -b -c

Only the -a is bind to ignore and the other are taken as images.

workaround: put in the file;
CODEignore -a
ignore -b
ignore -c
and use the command: wit mix image1.iso @file
 
WIT: Wiimms ISO Tools v1.14a - 2010-08-07
Beta test version, for EXPERIMENTAL use only.

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).

For productive versions see the main WIT thread or visit http://wit.wiimm.de/.

Download this EXPERIMENTAL release:
Please report positive and negative tests!



Change log:


Code:
wit v1.14a.beta2 r1485 - 2010-08-06

- New option --rm-files: This patching option defines filter rules to remove
ÂÂ real files and directories from the FST of the DATA partition. Fake signing
ÂÂ of the TMD is necessary.
- New option --zero-files: This patching option defines filter rules to zero
ÂÂ (set size to zero) real files of the FST of the DATA partition. Fake
ÂÂ signing$ of the TMD is necessary.
- New option --ignore-files: This option defines filter rules to ignore
ÂÂ system and real directories and files of the FST of the DATA partition.
ÂÂ Fake signing is not necessary, but the partition becomes invalid, because
ÂÂ the content of some files is not copied.
- New qualifier for "wit MIX": "IGNORE ruleset": Ignore files when copying a
ÂÂ disc image. See http://wit.wiimm.de/wit/cmd-mix.html#ignore for details.

wit v1.14a.beta3 r1493 - 2010-08-07

- Some modification for expanding '@file' parameters: wit MIX needs control.
- Bug fix: "wit MIX ... ignore @file" works now.
- Option --psel redesigned: it is now possible to allow or deny any partiton
ÂÂ by partiton type, partiton table and/or by partiton index. Only with the
ÂÂ unambiguous partiton index it is possible to select the one wanted DATA
ÂÂ partition if multiple exists.

The source is published under the license of GPL2. Checkout the sources directly from the SVN repository or browse the source. This URLs are different from the product version. Visit http://wit.wiimm.de/ for more information.
 
Guys, when I type in a command in the Command Window it gives me this " 'wit' is not recognized as an internal or external command, operable program or batch file"

Help please?


Never mind, I fixed the problem.
 

Site & Scene News

Popular threads in this forum