Hacking WIT: Wiimms ISO Tools / beta test

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
WIT: Wiimms ISO Tools v1.10a - 2010-07-05
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:
Highlights of this release:
  • I have rewritten the wiidisc lib (part of libwmfs) from scratch. It has a complete new interface and an improved functionality. It uses dynamic data structures and collect data as needed and allow direct access to any partition. It has considerable advantages for the whole WIT project.
    .
  • I have rewritten all commands to use the new wiidisc interface. Most commands work as usal, but some commands has been improved:
    • "wit DUMP --show=all" shows more information about ISO images. Try "wit DUMP --show=files,usage,dmap".
    • "wit ILIST --show=all" shows the offset and/or the size in HEX and/or DEC.
    • "wit CMP" : If using the option --psel the partition tables are normalized before comparing. This enables DIFF to compare DATA partitions only independent from the existence of other partitions.
    .
Please report positive and negative tests!


Change log:

Code:
wit v1.10a.beta r1333 - 2010-07-05 (BETA TEST)
 
- New option: --width wd: Define the width (number of columns) for help and
other messages and disables the automatic detection of the terminal width.
- wwt EXTRACT: Support '%X' and '%Y' in output filenames.
- I have rewritten the wiidisc lib (part of libwmfs) from scratch. It has a
complete new interface and an improved functionality. It uses dynamic data
structures and collect data as needed. This has considerable advantages
for the whole WIT project:
- All information about a Wii disc is now in one hand. Things like usage
maps and partition data are loaded/built once and only if needed.
- wit DUMP --show=files: Print a list with images files (like -F+ before).
Option --show=offset,size,dec,hex,header controls the output columns.
- wit DUMP --show=usage: Print a wii sector usage map.
- wit ILIST: Redesigned. Option --show=offset,size,dec,hex,header,path
controls the output columns.
- Option --psel extended:
--psel=NO-ID : use all partitions but not partitions with an ID type.
--psel=PTAB0 : use all partitions of table #0 but no other partitions.
--psel=ALL  : use all partitions (the default).
--psel=WHOLE : use all partitions and don't scrub partitions
--psel=RAW  : more than 'WHOLE': copy whole dics
- wit DIFF: If using the option --psel the partition tables are normalized
before comparing. This enables DIFF to compare DATA partitions only
independent from the existence of other partitions.
 
Missing docu:
 
- wit commands ILIST + EXTRACT
- Option --show => see built in help
- file ./setup.txt when composing

The source is published under the licence 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.
 

giantpune

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
2,860
Trophies
0
XP
213
Country
United States
nice!

heres a couple little things i see...
it seems that "ILIST --show=offset,..." always shows the offset in hex. i dont see how to get it to display in dec.

ILIST still doesnt show me all the partitions. i tried -psel=all and it still misses the VC partitions in SSBB.

DUMP is now broken for these partitions. using the latest stable wit, i get this...
Code:
Dump of file /media/1TB_3GbS_2/SSBB_japan.iso

ÂÂID & type:ÂÂÂÂÂÂ RSBJ01, ISO
ÂÂFile size:ÂÂÂÂÂÂ 1fb4e0000/hex = 8511160320 = 8117 MiB
ÂÂDisc name:ÂÂÂÂÂÂ Super Smash Bros. Brawl
ÂÂRegion:ÂÂÂÂÂÂÂÂÂÂJapan [JAPA]
ÂÂRegion setting:ÂÂ0 / 00 80 80 80ÂÂ80 80 80 80
ÂÂDiretories:ÂÂÂÂÂÂÂÂ 211
ÂÂFiles:ÂÂÂÂÂÂÂÂÂÂÂÂ 5312
ÂÂUsed ISO blocks: 232340 => 7261 MiB

ÂÂ2 partition tables with 16 partitions:

ÂÂÂÂ tab.idxÂÂ n(part)ÂÂÂÂÂÂ offset(part.tab) .. end(p.tab)
ÂÂÂÂ--------------------------------------------------------
ÂÂÂÂÂÂÂÂ0ÂÂÂÂÂÂÂÂ2ÂÂÂÂÂÂ 10008*4 =ÂÂÂÂÂÂ40020 ..ÂÂÂÂÂÂ40030
ÂÂÂÂÂÂÂÂ1ÂÂÂÂÂÂ 14ÂÂÂÂÂÂ 10010*4 =ÂÂÂÂÂÂ40040 ..ÂÂÂÂÂÂ400b0

ÂÂ16 partitions:

ÂÂÂÂ indexÂÂÂÂÂÂtypeÂÂÂÂÂÂoffset .. end offsetÂÂ size/hex =ÂÂ size/dec =ÂÂMiB
ÂÂÂÂ--------------------------------------------------------------------------
ÂÂÂÂÂÂ0.0ÂÂ UPDATE 1ÂÂÂÂÂÂ 50000 ..ÂÂÂÂad30000ÂÂÂÂace0000 =ÂÂ181272576 =ÂÂ173
ÂÂÂÂÂÂ0.1ÂÂÂÂ DATA 0ÂÂÂÂ f800000 ..ÂÂ1da550000ÂÂ1cad50000 = 7697924096 = 7341
ÂÂÂÂÂÂ1.0ÂÂÂÂ "HA8J"ÂÂ 1da550000 ..ÂÂ1daff8000ÂÂÂÂ aa8000 =ÂÂ 11173888 =ÂÂ 11
ÂÂÂÂÂÂ1.1ÂÂÂÂ "HA9J"ÂÂ 1db000000 ..ÂÂ1dbaa8000ÂÂÂÂ aa8000 =ÂÂ 11173888 =ÂÂ 11
ÂÂÂÂÂÂ1.2ÂÂÂÂ "HBAJ"ÂÂ 1dbab0000 ..ÂÂ1dc580000ÂÂÂÂ ad0000 =ÂÂ 11337728 =ÂÂ 11
ÂÂÂÂÂÂ1.3ÂÂÂÂ "HBBJ"ÂÂ 1dc580000 ..ÂÂ1dd0f0000ÂÂÂÂ b70000 =ÂÂ 11993088 =ÂÂ 11
ÂÂÂÂÂÂ1.4ÂÂÂÂ "HBCJ"ÂÂ 1dd0f0000 ..ÂÂ1ddbc0000ÂÂÂÂ ad0000 =ÂÂ 11337728 =ÂÂ 11
ÂÂÂÂÂÂ1.5ÂÂÂÂ "HBDJ"ÂÂ 1ddbc0000 ..ÂÂ1de668000ÂÂÂÂ aa8000 =ÂÂ 11173888 =ÂÂ 11
ÂÂÂÂÂÂ1.6ÂÂÂÂ "HBEJ"ÂÂ 1de670000 ..ÂÂ1df158000ÂÂÂÂ ae8000 =ÂÂ 11436032 =ÂÂ 11
ÂÂÂÂÂÂ1.7ÂÂÂÂ "HBFJ"ÂÂ 1df160000 ..ÂÂ1dfcf8000ÂÂÂÂ b98000 =ÂÂ 12156928 =ÂÂ 12
ÂÂÂÂÂÂ1.8ÂÂÂÂ "HBGJ"ÂÂ 1dfd00000 ..ÂÂ1e0898000ÂÂÂÂ b98000 =ÂÂ 12156928 =ÂÂ 12
ÂÂÂÂÂÂ1.9ÂÂÂÂ "HBHJ"ÂÂ 1e08a0000 ..ÂÂ1e1760000ÂÂÂÂ ec0000 =ÂÂ 15466496 =ÂÂ 15
ÂÂÂÂÂÂ1.10ÂÂÂÂ"HBIJ"ÂÂ 1e1760000 ..ÂÂ1e2708000ÂÂÂÂ fa8000 =ÂÂ 16416768 =ÂÂ 16
ÂÂÂÂÂÂ1.11ÂÂÂÂ"HBJJ"ÂÂ 1e2710000 ..ÂÂ1e3758000ÂÂÂÂ1048000 =ÂÂ 17072128 =ÂÂ 16
ÂÂÂÂÂÂ1.12ÂÂÂÂ"HBKJ"ÂÂ 1e3760000 ..ÂÂ1e6e28000ÂÂÂÂ36c8000 =ÂÂ 57442304 =ÂÂ 55
ÂÂÂÂÂÂ1.13ÂÂÂÂ"HBLJ"ÂÂ 1e6e30000 ..ÂÂ1e9060000ÂÂÂÂ2230000 =ÂÂ 35848192 =ÂÂ 34

using this beta version, i get this

Code:
Dump of file /media/1TB_3GbS_2/SSBB_japan.iso

ÂÂID & type:ÂÂÂÂÂÂ RSBJ01, ISO
ÂÂFile size:ÂÂÂÂÂÂ 1fb4e0000/hex = 8511160320 = 8117 MiB
ÂÂDisc name:ÂÂÂÂÂÂ Super Smash Bros. Brawl
ÂÂRegion:ÂÂÂÂÂÂÂÂÂÂJapan [JAPA]
ÂÂRegion setting:ÂÂ0 / 00 80 80 80ÂÂ80 80 80 80
ÂÂDirectories:ÂÂÂÂÂÂÂÂ219
ÂÂFiles:ÂÂÂÂÂÂÂÂÂÂÂÂ 5366
ÂÂUsed ISO blocks: 232340 * 32 KiB = 7261 MiB

ÂÂ2 partition tables with 16 partitions (patching recommended):

ÂÂÂÂ tab.idxÂÂ n(part)ÂÂÂÂÂÂ offset(part.tab) .. end(p.tab)
ÂÂÂÂ--------------------------------------------------------
ÂÂÂÂÂÂÂÂ0ÂÂÂÂÂÂÂÂ2ÂÂÂÂÂÂ 10008*4 =ÂÂÂÂÂÂ40020 ..ÂÂÂÂÂÂ40030
ÂÂÂÂÂÂÂÂ1ÂÂÂÂÂÂ 14ÂÂÂÂÂÂ 10010*4 =ÂÂÂÂÂÂ40040 ..ÂÂÂÂÂÂ400b0

ÂÂ16 partitions:

ÂÂÂÂ indexÂÂÂÂÂÂtypeÂÂÂÂÂÂoffset .. end offsetÂÂ size/hex =ÂÂ size/dec =ÂÂMiBÂÂstatus
ÂÂÂÂ------------------------------------------------------------------------------------
ÂÂÂÂÂÂ0.0ÂÂ UPDATE 1ÂÂÂÂÂÂ 50000 ..ÂÂÂÂad80000ÂÂÂÂad30000 =ÂÂ181600256 =ÂÂ173ÂÂ-
ÂÂÂÂÂÂ0.1ÂÂÂÂ DATA 0ÂÂÂÂ f800000 ..ÂÂ1e9d50000ÂÂ1da550000 = 7957970944 = 7589ÂÂ-
ÂÂÂÂÂÂ1.0ÂÂÂÂ "J8AH"ÂÂ 1da550000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.1ÂÂÂÂ "J9AH"ÂÂ 1db000000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.2ÂÂÂÂ "JABH"ÂÂ 1dbab0000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.3ÂÂÂÂ "JBBH"ÂÂ 1dc580000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.4ÂÂÂÂ "JCBH"ÂÂ 1dd0f0000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.5ÂÂÂÂ "JDBH"ÂÂ 1ddbc0000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.6ÂÂÂÂ "JEBH"ÂÂ 1de670000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.7ÂÂÂÂ "JFBH"ÂÂ 1df160000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.8ÂÂÂÂ "JGBH"ÂÂ 1dfd00000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.9ÂÂÂÂ "JHBH"ÂÂ 1e08a0000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.10ÂÂÂÂ"JIBH"ÂÂ 1e1760000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.11ÂÂÂÂ"JJBH"ÂÂ 1e2710000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.12ÂÂÂÂ"JKBH"ÂÂ 1e3760000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.13ÂÂÂÂ"JLBH"ÂÂ 1e6e30000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled

as far as that mariokart ISO that crashed wit, it doesn't crash this version. instead it just spits out this
Code:
!! wit_1333: ERROR #33 [FATAL ERROR] in wd_load_part() @ src/libwbfs/wiidisc.c#985
!!ÂÂÂÂÂÂÂÂÂÂ ASSERTION FAILED !!!
and no useful information about the rest of the game.


EDIT>>

there is also now a error in the DUMP region setting. this is the line from No More Heroes 2 in the latest stable version
Code:
Region setting:ÂÂ1 / 80 11 80 80ÂÂ80 80 80 80
and in this beta version...
Code:
Region setting:ÂÂ16777216 / 80 11 80 80ÂÂ80 80 80 80



it would be nice to have an assured space between columns. using DUMP --show=all, i get some of the columns running together.
Code:
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ** Partition #0.1, 0 [DATA] **
ÂÂÂÂÂÂÂÂÂÂÂÂ-ÂÂÂÂÂÂ - N=5536ÂÂÂÂDATA/
ÂÂÂÂÂÂf800000ÂÂÂÂ 2a4ÂÂÂÂÂÂ676ÂÂDATA/ticket.bin
ÂÂÂÂÂÂf8002c0ÂÂÂÂ 208ÂÂÂÂÂÂ520ÂÂDATA/tmd.bin
ÂÂÂÂÂÂf8004e0ÂÂÂÂ a00ÂÂÂÂ 2560ÂÂDATA/cert.bin
ÂÂÂÂÂÂf808000ÂÂ 18000ÂÂÂÂ98304ÂÂDATA/h3.bin
ÂÂÂÂÂÂÂÂÂÂÂÂ-ÂÂÂÂÂÂ - N=2ÂÂÂÂÂÂ DATA/disc/
ÂÂÂÂÂÂÂÂÂÂÂÂ0ÂÂÂÂ 100ÂÂÂÂÂÂ256ÂÂDATA/disc/header.bin
ÂÂÂÂÂÂÂÂ4e000ÂÂÂÂÂÂ20ÂÂÂÂÂÂ 32ÂÂDATA/disc/region.bin
ÂÂÂÂÂÂÂÂÂÂÂÂ-ÂÂÂÂÂÂ - N=5ÂÂÂÂÂÂ DATA/sys/
ÂÂÂÂÂÂÂÂÂÂÂÂ0+ÂÂÂÂ440ÂÂÂÂ 1088ÂÂDATA/sys/boot.bin
ÂÂÂÂÂÂÂÂÂÂ440+ÂÂ 2000ÂÂÂÂ 8192ÂÂDATA/sys/bi2.bin
ÂÂÂÂÂÂÂÂ 2440+ÂÂ3b7dcÂÂ 243676ÂÂDATA/sys/apploader.img
ÂÂÂÂÂÂÂÂ3dd00+ 497e20ÂÂ4816416ÂÂDATA/sys/main.dol
ÂÂÂÂÂÂ 4d5c00+ÂÂ25a18ÂÂ 154136ÂÂDATA/sys/fst.bin
ÂÂÂÂÂÂÂÂÂÂÂÂ-ÂÂÂÂÂÂ - N=5522ÂÂÂÂDATA/files/
ÂÂÂÂ e7000000+1000000 16777216ÂÂDATA/files/border.dat
ÂÂÂÂÂÂ 500000+bebc200 200000000ÂÂDATA/files/dummy1.dat
ÂÂÂÂ1b0900000+bebc200 200000000ÂÂDATA/files/dummy2.dat
ÂÂÂÂÂÂÂÂÂÂÂÂ-ÂÂÂÂÂÂ - N=309ÂÂÂÂ DATA/files/effect/
ÂÂÂÂÂÂÂÂÂÂÂÂ-ÂÂÂÂÂÂ - N=27ÂÂÂÂÂÂDATA/files/effect/assist/
ÂÂÂÂ 2a13d400+ÂÂÂÂ 80ÂÂÂÂÂÂ128ÂÂDATA/files/effect/assist/ef_ast_ridley.pac
ÂÂÂÂ 2a13d480+ÂÂ13ec0ÂÂÂÂ81600ÂÂDATA/files/effect/assist/ef_barbara.pac

and can you explain the + after some of the offsets?
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
giantpune said:
nice!... and not ready yet.

giantpune said:
heres a couple little things i see...
it seems that "ILIST --show=offset,..." always shows the offset in hex. i dont see how to get it to display in dec.My idea: It makes no sense to print the offset in dec, because all references do it in hex. The size value is different. for offset calculation a hex value is good and the dec value is for normal humans. Is there really a need to print offsets in dec?

giantpune said:
ILIST still doesnt show me all the partitions. i tried -psel=all and it still misses the VC partitions in SSBB.SSBB channel support is not ready yet, because the only dump I have is without the channels. I own the original SSBB but superdump failes.

giantpune said:
there is also now a error in the DUMP region setting. this is the line from No More Heroes 2 in the latest stable version
Code:
Region setting:ÂÂ1 / 80 11 80 80ÂÂ80 80 80 80
and in this beta version...
CODERegion setting:ÂÂ16777216 / 80 11 80 80ÂÂ80 80 80 80
ups?

QUOTE(giantpune @ Jul 5 2010, 09:41 AM)
it would be nice to have an assured space between columns.
...
and can you explain the + after some of the offsets?
In deed, spacing is wrong.

You know that partition addressing is different because of the check sums. And the '+' means: Remember, this value is relative to beginning of partition and in partition addressing and not absoulte from beginning of disc.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
A little update (svn repository only; use the bate test links beneath)

Code:
wit v1.10a.beta r1338 - 2010-07-05ÂÂ(repos only)

- Channels partitions enabled, but not tested.
- The field width of offset and size columns of FST listings is now
ÂÂ calculated. A space between the columns is guaranteed.
- wit DUMP: A forgotten endian calculation results in a wrong region info.

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.
 

giantpune

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
2,860
Trophies
0
XP
213
Country
United States
right now the only issues i see with 1139 are cosmetic ones. you can see in the spoiler in my last post, the IDs for VC partitions are endian swapped. there is also a little issue with the way it is used in a string. it shows up normally ( but backwards ) almost everywhere. it shows up incorrectly in strings like this
Code:
Partition table #1, partition #0, type 4841384a ["J8AH?GoÞ"]:
Partition table #1, partition #1, type 4841394a ["J9AH?GoÞ"]:
artition table #1, partition #2, type 4842414a ["JABH?GoÞ"]:
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
giantpune said:
right now the only issues i see with 1139 are cosmetic ones. you can see in the spoiler in my last post, the IDs for VC partitions are endian swapped. there is also a little issue with the way it is used in a string. it shows up normally ( but backwards ) almost everywhere. it shows up incorrectly in strings like this
Code:
Partition table #1, partition #0, type 4841384a ["J8AH€GoÞ"]:
Partition table #1, partition #1, type 4841394a ["J9AH€GoÞ"]:
artition table #1, partition #2, type 4842414a ["JABH€GoÞ"]:
And I know why
smile.gif

I have a centralized the part type printing and that function takes a host endian type.
 

giantpune

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
2,860
Trophies
0
XP
213
Country
United States
is there a reason that it lists "update/disc/blabla..." and "data/disc/blabla...."? aren't these the same files? i dont know where would be the best place to put them, but i just thought i'd point that out.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
I needed disc/header.bin and disc/region.bin to compose a disc. It is extracted for every partition because wit is able to built a wii disc based on any partition and not only with the data partition.

On the other hand it seems senseless to build a disc from update or a channel partitions. And now (with thanks to your suggestions) wit don't need both files because it is able to generate it from boot.bin.

So it's possible to through away this disc/* support generally. wit does this already if saying "--files =nodisc"
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
WIT: Wiimms ISO Tools v1.10a - 2010-07-09
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.10a.beta r1333 - 2010-07-05

- New option: --width wd: Define the width (number of columns) for help and
ÂÂ other messages and disables the automatic detection of the terminal width.
- wwt EXTRACT: Support '%X' and '%Y' in output filenames.
- I have rewritten the wiidisc lib (part of libwmfs) from scratch. It has a
ÂÂ complete new interface and an improved functionality. It uses dynamic data
ÂÂ structures and collect data as needed. This has considerable advantages
ÂÂ for the whole WIT project:
ÂÂÂÂ- All information about a Wii disc is now in one hand. Things like usage
ÂÂÂÂÂÂmaps and partition data are loaded/built once and only if needed.
ÂÂÂÂ- wit DUMP --show=files: Print a list with images files (like -F+ before).
ÂÂÂÂÂÂOption --show=offset,size,dec,hex,header controls the output columns.
ÂÂÂÂ- wit DUMP --show=usage: Print a wii sector usage map.
ÂÂÂÂ- wit ILIST: Redesigned. Option --show=offset,size,dec,hex,header,path
ÂÂÂÂÂÂcontrols the output columns.
ÂÂÂÂ- Option --psel extended:
ÂÂÂÂÂÂÂÂ--psel=NO-ID : use all partitions but not partitions with an ID type.
ÂÂÂÂÂÂÂÂ--psel=PTAB0 : use all partitions of table #0 but no other partitions.
ÂÂÂÂÂÂÂÂ--psel=ALLÂÂ : use all partitions (the default).
ÂÂÂÂÂÂÂÂ--psel=WHOLE : use all partitions and don't scrub partitions
ÂÂÂÂÂÂÂÂ--psel=RAWÂÂ : more than 'WHOLE': copy whole dics
ÂÂÂÂ- wit DIFF: If using the option --psel the partition tables are normalized
ÂÂÂÂÂÂbefore comparing. This enables DIFF to compare DATA partitions only
ÂÂÂÂÂÂindependent from the existence of other partitions.

wit v1.10a.beta r1338 - 2010-07-05ÂÂ(repos only)

- Channels partitions enabled, but not tested.
- The field width of offset and size columns of FST listings is now
ÂÂ calculated. A space between the columns is guaranteed.
- wit DUMP: A forgotten endian calculation results in a wrong region info.

wit v1.10a.beta r1359 - 2010-07-09

- ID renaming: A point ('.') means: leave id character unchanged.
- Options --ios, --id and --name modify only disc data and the DATA partition,
ÂÂ but no longer other any other partitions.
- There is an complete new implementation of option --psel: Combinations like
ÂÂ '--psel DATA,UPDATE' or '--psel -CHANNEL' are supported now.
- New: wit DUMP --show=patch: Shows a address map with patching infos.
- wwt EXTRACT: Complete new and improved calculation of output filename.
- Option --files: Macro calls are now prefixed by a colon (':'). The previous
ÂÂ prefix '=' is obsolete, but still allowed.
- Command "wit ILIST" evaluates option --psel now.
- I have run my test scripts against this release without any reported errors.

Missing docu:

- wit commands ILIST + EXTRACT
- Option --show => see built in help
- Option --psel => see built in help
- file ./setup.txt when composing

The source is published under the license of GPL2. Checkout the sources directly from the SVN repository or browse the source. his URLs are different from the product version. Visit http://wit.wiimm.de/ for more information.
 

giantpune

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
2,860
Trophies
0
XP
213
Country
United States
in this build, "wit DUMP blabla --show=..." isnt working for me


EDIT
it appears to not be the --show option, but instead using a fst game as source. if i use ISO as source, it prints out everything as normal. if i use FST, it appears to only show info from the first partition it finds
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
giantpune said:
in this build, "wit DUMP blabla --show=..." isnt working for me


EDIT
it appears to not be the --show option, but instead using a fst game as source. if i use ISO as source, it prints out everything as normal. if i use FST, it appears to only show info from the first partition it finds
I can't reproduce it. Perhaps wit detects only one partition. Follows the the directory layout this guide: Definition of a FST disc. wit only accepts DATA, UPDATE and CHANNEL partitions, but not the special channel partitions of SSBB.

If you use -LL (or --log --log) the composer prints info about composing layout like:
CODEMemory layout of virtual disc:

ÂÂÂÂÂÂ offset .. offset endÂÂÂÂ sizeÂÂcomment
ÂÂ------------------------------------------------------------------------------
ÂÂÂÂÂÂÂÂÂÂÂÂ0 ..ÂÂÂÂÂÂ 100ÂÂÂÂÂÂ 100ÂÂdisc header [RHAP01]
ÂÂÂÂÂÂÂÂ40000 ..ÂÂÂÂ 40030ÂÂÂÂÂÂÂÂ30ÂÂpartition tables
ÂÂÂÂÂÂÂÂ4e000 ..ÂÂÂÂ 4e020ÂÂÂÂÂÂÂÂ20ÂÂregion settings, region=2
ÂÂÂÂÂÂÂÂ4fffc ..ÂÂÂÂ 50000ÂÂÂÂÂÂÂÂ 4ÂÂmagic c3-f8-1a-8e
ÂÂÂÂÂÂÂÂ50000 ..ÂÂÂÂ 70000ÂÂÂÂ 20000ÂÂUPDATE partition, header
ÂÂÂÂÂÂÂÂ70000 ..ÂÂ 4a38000ÂÂ 49c8000ÂÂUPDATE partition, data
ÂÂÂÂÂÂf800000 ..ÂÂ f820000ÂÂÂÂ 20000ÂÂDATA partition, header
ÂÂÂÂÂÂf820000 ..ÂÂ158f8000ÂÂ 60d8000ÂÂDATA partition, data

Memory layout of virtual UPDATE partition:

ÂÂÂÂÂÂ offset .. offset endÂÂÂÂ sizeÂÂcomment
ÂÂ------------------------------------------------------------------------------
ÂÂÂÂÂÂÂÂÂÂÂÂ0 ..ÂÂÂÂÂÂ2440ÂÂÂÂÂÂ2440ÂÂboot.bin [RELSAB] + bi2.bin
ÂÂÂÂÂÂÂÂ 2440 ..ÂÂÂÂ 36a1cÂÂÂÂ 345dcÂÂapploader.img
ÂÂÂÂÂÂÂÂ36b00 ..ÂÂÂÂ 36c40ÂÂÂÂÂÂ 140ÂÂmain.dol
ÂÂÂÂÂÂÂÂ36d00 ..ÂÂÂÂ 36efcÂÂÂÂÂÂ 1fcÂÂfst.bin
ÂÂÂÂÂÂ 1f0000 ..ÂÂ 47759a0ÂÂ 45859a0ÂÂ16 files + directories

Memory layout of virtual DATA partition:

ÂÂÂÂÂÂ offset .. offset endÂÂÂÂ sizeÂÂcomment
ÂÂ------------------------------------------------------------------------------
ÂÂÂÂÂÂÂÂÂÂÂÂ0 ..ÂÂÂÂÂÂ2440ÂÂÂÂÂÂ2440ÂÂboot.bin [RHAP01] + bi2.bin
ÂÂÂÂÂÂÂÂ 2440 ..ÂÂÂÂ 36a1cÂÂÂÂ 345dcÂÂapploader.img
ÂÂÂÂÂÂÂÂ36b00 ..ÂÂÂÂ3b2660ÂÂÂÂ37bb60ÂÂmain.dol
ÂÂÂÂÂÂ 3b2700 ..ÂÂÂÂ3b3f40ÂÂÂÂÂÂ1840ÂÂfst.bin
ÂÂÂÂÂÂ 3b3f40 ..ÂÂ 5dd0cb0ÂÂ 5a1cd70ÂÂ123 files + directories
 

giantpune

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
2,860
Trophies
0
XP
213
Country
United States
maybe the VC partitions are messing it up for me then. i have a folder with update, data, and VC partitions. wit does the update partition, then i guess it gets to a VC partition folder and stops doing what it is doing and doesnt bother to do anything with the data partition.

EDIT>>

nope, that is not the cause. i removed the VC partitions from my game folder, so now i am left with DATA and UPDATE. and still wit DUMP doesnt list the DATA partition.

to reproduce it, start with SSBB full ISO.
wit COPY that iso to FST. i ended up with all partitions.
remove the VC partitions, and im left with DATA and UPDATE

DATA partition is now marked as invalid, though all files appear to be present

Code:
$ ./wit DUMP /home/j/c/gui_fork/SSBB_J_ALL_PARTITIONS_TO_USA --show=intro,tmd,P-Map,P-Info,D-Map -LL

Memory layout of virtual disc:

ÂÂÂÂÂÂ offset .. offset endÂÂÂÂ sizeÂÂcomment
ÂÂ------------------------------------------------------------------------------
ÂÂÂÂÂÂÂÂÂÂÂÂ0 ..ÂÂÂÂÂÂ 100ÂÂÂÂÂÂ 100ÂÂdisc header [RSBJ01]
ÂÂÂÂÂÂÂÂ40000 ..ÂÂÂÂ 40030ÂÂÂÂÂÂÂÂ30ÂÂpartition tables
ÂÂÂÂÂÂÂÂ4e000 ..ÂÂÂÂ 4e020ÂÂÂÂÂÂÂÂ20ÂÂregion settings, region=0
ÂÂÂÂÂÂÂÂ4fffc ..ÂÂÂÂ 50000ÂÂÂÂÂÂÂÂ 4ÂÂmagic c3-f8-1a-8e
ÂÂÂÂÂÂÂÂ50000 ..ÂÂÂÂ 70000ÂÂÂÂ 20000ÂÂUPDATE partition, header
ÂÂÂÂÂÂÂÂ70000 ..ÂÂ aee8000ÂÂ ae78000ÂÂUPDATE partition, data
ÂÂÂÂÂÂf800000 ..ÂÂ f820000ÂÂÂÂ 20000ÂÂDATA partition, header
ÂÂÂÂÂÂf820000 .. 1ca750000 1baf30000ÂÂDATA partition, data

Memory layout of virtual UPDATE partition:

ÂÂÂÂÂÂ offset .. offset endÂÂÂÂ sizeÂÂcomment
ÂÂ------------------------------------------------------------------------------
ÂÂÂÂÂÂÂÂÂÂÂÂ0 ..ÂÂÂÂÂÂ2440ÂÂÂÂÂÂ2440ÂÂboot.bin [RELSAB] + bi2.bin
ÂÂÂÂÂÂÂÂ 2440 ..ÂÂÂÂ 3dc5cÂÂÂÂ 3b81cÂÂapploader.img
ÂÂÂÂÂÂÂÂ3dd00 ..ÂÂÂÂ 3de40ÂÂÂÂÂÂ 140ÂÂmain.dol
ÂÂÂÂÂÂÂÂ3df00 ..ÂÂÂÂ 3e3dcÂÂÂÂÂÂ 4dcÂÂfst.bin
ÂÂÂÂÂÂ 1f0000 ..ÂÂ a901100ÂÂ a711100ÂÂ32 files + directories

Memory layout of virtual DATA partition:

ÂÂÂÂÂÂ offset .. offset endÂÂÂÂ sizeÂÂcomment
ÂÂ------------------------------------------------------------------------------
ÂÂÂÂÂÂÂÂÂÂÂÂ0 ..ÂÂÂÂÂÂ2440ÂÂÂÂÂÂ2440ÂÂboot.bin [RSBJ01] + bi2.bin
ÂÂÂÂÂÂÂÂ 2440 ..ÂÂÂÂ 3dc1cÂÂÂÂ 3b7dcÂÂapploader.img
ÂÂÂÂÂÂÂÂ3dd00 ..ÂÂÂÂ4d5b20ÂÂÂÂ497e20ÂÂmain.dol
ÂÂÂÂÂÂ 4d5c00 ..ÂÂÂÂ4fb618ÂÂÂÂ 25a18ÂÂfst.bin
ÂÂÂÂÂÂ 4fb640 .. 1ad1b5614 1accb9fd4ÂÂ5312 files + directories


Dump of file /home/j/c/gui_fork/SSBB_J_ALL_PARTITIONS_TO_USA

ÂÂID & type:ÂÂÂÂÂÂ RSBJ01, FST
ÂÂFile size:ÂÂÂÂÂÂ 1ca730000/hex = 7691501568 = 7335 MiB
ÂÂDisc name:ÂÂÂÂÂÂ Super Smash Bros. Brawl
ÂÂRegion:ÂÂÂÂÂÂÂÂÂÂJapan [JAPA]
ÂÂRegion setting:ÂÂ0 / 00 00 00 00ÂÂ00 00 00 00
ÂÂDirectories:ÂÂÂÂÂÂÂÂÂÂ5
ÂÂFiles:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 43
ÂÂUsed ISO blocks:ÂÂ 5535 * 32 KiB = 173 MiB

ÂÂPartition table #0, partition #0, type 1 [UPDATE]:
ÂÂÂÂPartition is marked as 'not encrypted'.
ÂÂÂÂPartition key: a7b447b0 f1faaa93 0ad6aeae c00f2bd3
ÂÂÂÂÂÂTIK:ÂÂÂÂÂÂÂÂÂÂ0 ..ÂÂÂÂÂÂ 2c0 ->ÂÂÂÂ 50000 ..ÂÂÂÂ 502c0, size:ÂÂÂÂÂÂ 2c0/hex =ÂÂÂÂÂÂÂÂ704
ÂÂÂÂÂÂTMD:ÂÂÂÂÂÂÂÂ2c0 ..ÂÂÂÂÂÂ 4c8 ->ÂÂÂÂ 502c0 ..ÂÂÂÂ 504c8, size:ÂÂÂÂÂÂ 208/hex =ÂÂÂÂÂÂÂÂ520
ÂÂÂÂÂÂCERT:ÂÂÂÂÂÂ 4e0 ..ÂÂÂÂÂÂ ee0 ->ÂÂÂÂ 504e0 ..ÂÂÂÂ 50ee0, size:ÂÂÂÂÂÂ a00/hex =ÂÂÂÂÂÂ 2560
ÂÂÂÂÂÂH3:ÂÂÂÂÂÂÂÂ8000 ..ÂÂÂÂ 20000 ->ÂÂÂÂ 58000 ..ÂÂÂÂ 70000, size:ÂÂÂÂ 18000/hex =ÂÂÂÂÂÂ98304
ÂÂÂÂÂÂData:ÂÂÂÂ 20000 ..ÂÂ ae98000 ->ÂÂÂÂ 70000 ..ÂÂ aee8000, size:ÂÂ ae78000/hex =ÂÂ182943744
ÂÂÂÂTMD:
ÂÂÂÂÂÂIssuer:ÂÂÂÂÂÂÂÂÂÂRoot-CA00000001-CP00000004
ÂÂÂÂÂÂSignature type:ÂÂÂÂÂÂ10001/hex =ÂÂÂÂÂÂ65537
ÂÂÂÂÂÂVersion:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 0
ÂÂÂÂÂÂCA version:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂSigner version:ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂSytem version:ÂÂ 00000001 00000004 = IOS 4 = IOS 0x04
ÂÂÂÂÂÂTitle ID:ÂÂÂÂÂÂÂÂ00010000 0055504a = '.....UPJ'
ÂÂÂÂÂÂTitle type:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ1/hex =ÂÂÂÂÂÂÂÂÂÂ1
ÂÂÂÂÂÂGroup ID:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ3/hex =ÂÂÂÂÂÂÂÂÂÂ3
ÂÂÂÂÂÂAccess rights:ÂÂÂÂÂÂÂÂÂÂ 0/hex =ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂTitle version:ÂÂÂÂÂÂÂÂÂÂ 8/hex =ÂÂÂÂÂÂÂÂÂÂ8
ÂÂÂÂÂÂBoot index:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ0/hex =ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂN(content):ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ1/hex =ÂÂÂÂÂÂÂÂÂÂ1
ÂÂÂÂÂÂContent #0, ID:ÂÂÂÂÂÂÂÂÂÂ4/hex =ÂÂÂÂÂÂÂÂÂÂ4
ÂÂÂÂÂÂContent #0, index:ÂÂÂÂÂÂ 0/hex =ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂContent #0, type:ÂÂÂÂÂÂÂÂ3/hex =ÂÂÂÂÂÂÂÂÂÂ3
ÂÂÂÂÂÂContent #0, size:ÂÂa758000/hex =ÂÂ175472640
ÂÂÂÂÂÂContent #0, hash: 7dafeaaa 34c0bde1 8c932b3f c1fea873 fcde5228


ÂÂISO Memory Map:

ÂÂÂÂÂÂÂÂÂÂunused :ÂÂ off(beg) ..ÂÂ off(end) :ÂÂÂÂÂÂsize : info
ÂÂÂÂ------------------------------------------------------------------------------------------
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ :ÂÂÂÂÂÂÂÂÂÂ0 ..ÂÂÂÂÂÂÂÂ100 :ÂÂÂÂÂÂ 100 : Header, magic=5d-1c-9e-a3, id=RSBJ01
ÂÂÂÂÂÂÂÂÂÂ 3ff00 :ÂÂÂÂÂÂ40000 ..ÂÂÂÂÂÂ40020 :ÂÂÂÂÂÂÂÂ20 : Partition address table
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ :ÂÂÂÂÂÂ40020 ..ÂÂÂÂÂÂ40030 :ÂÂÂÂÂÂÂÂ10 : Partition table #0 with 2 partitions
ÂÂÂÂÂÂÂÂÂÂÂÂdfd0 :ÂÂÂÂÂÂ4e000 ..ÂÂÂÂÂÂ4e020 :ÂÂÂÂÂÂÂÂ20 : Region settings, region=0
ÂÂÂÂÂÂÂÂÂÂÂÂ1fdc :ÂÂÂÂÂÂ4fffc ..ÂÂÂÂÂÂ50000 :ÂÂÂÂÂÂÂÂ 4 : Magic2: c3-f8-1a-8e
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ :ÂÂÂÂÂÂ50000 ..ÂÂÂÂÂÂ502c0 :ÂÂÂÂÂÂ 2c0 : P.0.0 UPDATE: ticket, id=.UPJ
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ :ÂÂÂÂÂÂ502c0 ..ÂÂÂÂÂÂ504c8 :ÂÂÂÂÂÂ 208 : P.0.0 UPDATE: tmd, ios=4, id=.UPJ
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ18 :ÂÂÂÂÂÂ504e0 ..ÂÂÂÂÂÂ50ee0 :ÂÂÂÂÂÂ a00 : P.0.0 UPDATE: cert
ÂÂÂÂÂÂÂÂÂÂÂÂ7120 :ÂÂÂÂÂÂ58000 ..ÂÂÂÂÂÂ70000 :ÂÂÂÂ 18000 : P.0.0 UPDATE: h3
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ :ÂÂÂÂÂÂ70000 ..ÂÂÂÂÂÂb8000 :ÂÂÂÂ 48000 : P.0.0 UPDATE: data+fst, N(fst)=34
ÂÂÂÂÂÂÂÂÂÂ1b8000 :ÂÂÂÂ 270000 ..ÂÂÂÂaee8000 :ÂÂ ac78000 : P.0.0 UPDATE: data+fst
ÂÂÂÂÂÂÂÂ 4918000 :ÂÂÂÂf800000 ..ÂÂÂÂf800000 :ÂÂÂÂÂÂÂÂ 0 : P.0.1 DATA: ** INVALID **
ÂÂÂÂÂÂ 1baf30000 :ÂÂ1ca730000 ..ÂÂ1ca730000 :ÂÂÂÂÂÂÂÂ 0 : -- End of file/disc --
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
I think it is the size of the ISO. When composing it is pre set to ~4.7G. The new wiidisc lib declares partitions as invalid if they point outsize the iso size. I will check it later. Thanx for reporting.

BTW: Is there any need to include the VC partitions while composing?
 

giantpune

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
2,860
Trophies
0
XP
213
Country
United States
i would say that it is not necessarily needed to be able to do this. but it sure would be great if it did work. i would put it lower on the list of priority simply because it only affects 1 game out of like 600. i would say it goes right before adding the ability to make multi boot games ( which are pretty much obsolete ).
 

giantpune

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
2,860
Trophies
0
XP
213
Country
United States
ok, it works now for me
smile.gif

any chance of more vigorous error reporting? i would have expected this to spit out something to stderr in at least one of these
1) it first determined the size of the ISO was too large
2) when it first determined that the data partition was invalid in the composing step
3) at the end of the DUMP command when it is outputting all the text and it was dumping data about an invalid partition
4) maybe one of these would also trigger a exit error status
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
WIT: Wiimms ISO Tools v1.10a - 2010-07-13
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:Highlights of this release:
  • I hope that this release is the last in the beta series for the new wiidisc library. It seems to be stable and and all wit+wwt commands use it. Only the listing commands "wit DUMP" and "wit ILIST" have been improved to test the new lib. This new library facilitate the planed patching functionality.
    .
Please report positive and negative tests!



Change log:


Code:
wit v1.10a.beta r1333 - 2010-07-05

- New option: --width wd: Define the width (number of columns) for help and
ÂÂ other messages and disables the automatic detection of the terminal width.
- wwt EXTRACT: Support '%X' and '%Y' in output filenames.
- I have rewritten the wiidisc lib (part of libwbfs) from scratch. It has a
ÂÂ complete new interface and an improved functionality. It uses dynamic data
ÂÂ structures and collect data as needed. This has considerable advantages
ÂÂ for the whole WIT project:
ÂÂÂÂ- All information about a Wii disc is now in one hand. Things like usage
ÂÂÂÂÂÂmaps and partition data are loaded/built once and only if needed.
ÂÂÂÂ- wit DUMP --show=files: Print a list with images files (like -F+ before).
ÂÂÂÂÂÂOption --show=offset,size,dec,hex,header controls the output columns.
ÂÂÂÂ- wit DUMP --show=usage: Print a wii sector usage map.
ÂÂÂÂ- wit ILIST: Redesigned. Option --show=offset,size,dec,hex,header,path
ÂÂÂÂÂÂcontrols the output columns.
ÂÂÂÂ- Option --psel extended:
ÂÂÂÂÂÂÂÂ--psel=NO-ID : use all partitions but not partitions with an ID type.
ÂÂÂÂÂÂÂÂ--psel=PTAB0 : use all partitions of table #0 but no other partitions.
ÂÂÂÂÂÂÂÂ--psel=ALLÂÂ : use all partitions (the default).
ÂÂÂÂÂÂÂÂ--psel=WHOLE : use all partitions and don't scrub partitions
ÂÂÂÂÂÂÂÂ--psel=RAWÂÂ : more than 'WHOLE': copy whole dics
ÂÂÂÂ- wit DIFF: If using the option --psel the partition tables are normalized
ÂÂÂÂÂÂbefore comparing. This enables DIFF to compare DATA partitions only
ÂÂÂÂÂÂindependent from the existence of other partitions.

wit v1.10a.beta r1338 - 2010-07-05ÂÂ(repos only)

- Channels partitions enabled, but not tested.
- The field width of offset and size columns of FST listings is now
ÂÂ calculated. A space between the columns is guaranteed.
- wit DUMP: A forgotten endian calculation results in a wrong region info.

wit v1.10a.beta r1359 - 2010-07-09

- ID renaming: A point ('.') means: leave id character unchanged.
- Options --ios, --id and --name modify only disc data and the DATA partition,
ÂÂ but no longer other any other partitions.
- There is an complete new implementation of option --psel: Combinations like
ÂÂ '--psel DATA,UPDATE' or '--psel -CHANNEL' are supported now.
- New: wit DUMP --show=patch: Shows a address map with patching infos.
- wwt EXTRACT: Complete new and improved calculation of output filename.
- Option --files: Macro calls are now prefixed by a colon (':'). The previous
ÂÂ prefix '=' is obsolete, but still allowed.
- Command "wit ILIST" evaluates option --psel now.
- I have run my test scripts against this release without any reported errors.

wit v1.10a.beta r1363 - 2010-07-09ÂÂ(repos only)

- Bug fix: File size calculation error for when composing large discs.

wit v1.10a.beta r1374 - 2010-07-13

- New wiidisc lib: Advanced error handling.
- wit ILIST: List files like 'fst.bin' too.

Missing docu:

- wit commands ILIST + EXTRACT
- Option --show => see built in help
- Option --psel => see built in help
- file ./setup.txt when composing

The source is published under the license of GPL2. Checkout the sources directly from the SVN repository or browse the source. his URLs are different from the product version. Visit http://wit.wiimm.de/ for more information.


@giantpune: error reporting implemented.
 

giantpune

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
2,860
Trophies
0
XP
213
Country
United States
sweetness. too bad i can't see any of that improved error reporting, because it now loads all my games and doesnt throw any errors. ill just have to take your word for it now
smile.gif
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
giantpune said:
sweetness. too bad i can't see any of that improved error reporting, because it now loads all my games and doesnt throw any errors. ill just have to take your word for it now
smile.gif


I have a bad ssb dump here:
CODE# wit d ssb.wdf
!! wit: ERROR #13 [INVALID WII DISC] in wd_load_part() @ src/libwbfs/wiidisc.c#1092
!!ÂÂÂÂÂÂInvalid header in partition '50384148 ["HA8P"]': ssb.wdf
!! wit: ERROR #13 [INVALID WII DISC] in wd_load_part() @ src/libwbfs/wiidisc.c#1080
!!ÂÂÂÂÂÂPosition of partition '50394148 ["HA9P"]' exceeds file size: ssb.wdf
!! wit: ERROR #13 [INVALID WII DISC] in wd_load_part() @ src/libwbfs/wiidisc.c#1080
!!ÂÂÂÂÂÂPosition of partition '50414248 ["HBAP"]' exceeds file size: ssb.wdf
!! wit: ERROR #13 [INVALID WII DISC] in wd_load_part() @ src/libwbfs/wiidisc.c#1080
!!ÂÂÂÂÂÂPosition of partition '46424248 ["HBBF"]' exceeds file size: ssb.wdf
!! wit: ERROR #13 [INVALID WII DISC] in wd_load_part() @ src/libwbfs/wiidisc.c#1080
!!ÂÂÂÂÂÂPosition of partition '50424248 ["HBBP"]' exceeds file size: ssb.wdf
!! wit: ERROR #13 [INVALID WII DISC] in wd_load_part() @ src/libwbfs/wiidisc.c#1080
!!ÂÂÂÂÂÂPosition of partition '50434248 ["HBCP"]' exceeds file size: ssb.wdf
!! wit: ERROR #13 [INVALID WII DISC] in wd_load_part() @ src/libwbfs/wiidisc.c#1080
!!ÂÂÂÂÂÂPosition of partition '50444248 ["HBDP"]' exceeds file size: ssb.wdf
!! wit: ERROR #13 [INVALID WII DISC] in wd_load_part() @ src/libwbfs/wiidisc.c#1080
!!ÂÂÂÂÂÂPosition of partition '50454248 ["HBEP"]' exceeds file size: ssb.wdf
!! wit: ERROR #13 [INVALID WII DISC] in wd_load_part() @ src/libwbfs/wiidisc.c#1080
!!ÂÂÂÂÂÂPosition of partition '50464248 ["HBFP"]' exceeds file size: ssb.wdf
!! wit: ERROR #13 [INVALID WII DISC] in wd_load_part() @ src/libwbfs/wiidisc.c#1080
!!ÂÂÂÂÂÂPosition of partition '50474248 ["HBGP"]' exceeds file size: ssb.wdf
!! wit: ERROR #13 [INVALID WII DISC] in wd_load_part() @ src/libwbfs/wiidisc.c#1080
!!ÂÂÂÂÂÂPosition of partition '50494248 ["HBIP"]' exceeds file size: ssb.wdf
!! wit: ERROR #13 [INVALID WII DISC] in wd_load_part() @ src/libwbfs/wiidisc.c#1080
!!ÂÂÂÂÂÂPosition of partition '504b4248 ["HBKP"]' exceeds file size: ssb.wdf
!! wit: ERROR #13 [INVALID WII DISC] in wd_load_part() @ src/libwbfs/wiidisc.c#1080
!!ÂÂÂÂÂÂPosition of partition '504c4248 ["HBLP"]' exceeds file size: ssb.wdf

Dump of file ssb.wdf

ÂÂReal path:ÂÂÂÂÂÂ /disk/ide1/users/dc/nobackup/work/pool/wdf/ssb.wdf
ÂÂID & type:ÂÂÂÂÂÂ RSBP01, WDF+ISO
ÂÂVirtual size:ÂÂÂÂ1da600000/hex = 7958691840 = 7590 MiB
ÂÂWDF file size:ÂÂ 1af5a1014/hex = 7236882452 = 6902 MiB, 90%
ÂÂDisc name:ÂÂÂÂÂÂ Super Smash Bros. Brawl
ÂÂDB title:ÂÂÂÂÂÂÂÂSuper Smash Bros. Brawl
ÂÂRegion:ÂÂÂÂÂÂÂÂÂÂPAL [PAL ]
ÂÂRegion setting:ÂÂ2 / 80 80 80 0cÂÂ0c 0c 0c 0c
ÂÂDirectories:ÂÂÂÂÂÂÂÂ194
ÂÂFiles:ÂÂÂÂÂÂÂÂÂÂÂÂ 5891
ÂÂUsed ISO blocks: 220869 * 32 KiB = 6902 MiB


ÂÂ2 partition tables with 14 partitions (patching recommended):

ÂÂÂÂ tab.idxÂÂ n(part)ÂÂÂÂÂÂ offset(part.tab) .. end(p.tab)
ÂÂÂÂ--------------------------------------------------------
ÂÂÂÂÂÂÂÂ0ÂÂÂÂÂÂÂÂ1ÂÂÂÂÂÂ 10008*4 =ÂÂÂÂÂÂ40020 ..ÂÂÂÂÂÂ40028
ÂÂÂÂÂÂÂÂ1ÂÂÂÂÂÂ 13ÂÂÂÂÂÂ 10010*4 =ÂÂÂÂÂÂ40040 ..ÂÂÂÂÂÂ400a8

ÂÂ14 partitions:

ÂÂÂÂ indexÂÂÂÂÂÂtypeÂÂÂÂÂÂoffset .. end offsetÂÂ size/hex =ÂÂ size/dec =ÂÂMiBÂÂstatus
ÂÂÂÂ------------------------------------------------------------------------------------
ÂÂÂÂÂÂ0.0ÂÂÂÂ DATA 0ÂÂÂÂ f800000 ..ÂÂ1da550000ÂÂ1cad50000 = 7697924096 = 7341ÂÂ-
ÂÂÂÂÂÂ1.0ÂÂÂÂ "HA8P"ÂÂ 1da550000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.1ÂÂÂÂ "HA9P"ÂÂ 1daff0000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.2ÂÂÂÂ "HBAP"ÂÂ 1dbaa0000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.3ÂÂÂÂ "HBBF"ÂÂ 1dc570000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.4ÂÂÂÂ "HBBP"ÂÂ 1dd0e0000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.5ÂÂÂÂ "HBCP"ÂÂ 1ddc50000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.6ÂÂÂÂ "HBDP"ÂÂ 1de720000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.7ÂÂÂÂ "HBEP"ÂÂ 1df1d0000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.8ÂÂÂÂ "HBFP"ÂÂ 1dfcc0000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.9ÂÂÂÂ "HBGP"ÂÂ 1e08b0000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.10ÂÂÂÂ"HBIP"ÂÂ 1e1490000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.11ÂÂÂÂ"HBKP"ÂÂ 1e2490000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled
ÂÂÂÂÂÂ1.12ÂÂÂÂ"HBLP"ÂÂ 1e5d40000ÂÂÂÂÂÂÂÂ ** INVALID PARTITION **ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ disabled


WARNING: Disc contains 13 invalid partitions!

# echo $?
13

# wit error 13
INVALID WII DISC
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    ShdwTakashi @ ShdwTakashi: pineapple belong on pizza? The answer is yes until proven otherwise