WIT: Wiimms ISO Tools / beta test

Discussion in 'Wii - Hacking' started by Wiimm, Jul 5, 2010.

Jul 5, 2010

WIT: Wiimms ISO Tools / beta test by Wiimm at 7:43 AM (29,232 Views / 0 Likes) 223 replies

  1. Wiimm
    OP

    Member Wiimm Developer

    Joined:
    Aug 11, 2009
    Messages:
    2,051
    Location:
    Germany
    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.
     


  2. giantpune

    Member giantpune GBAtemp Addict

    Joined:
    Apr 10, 2009
    Messages:
    2,860
    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...
    Warning: Spoilers inside!

    using this beta version, i get this

    Warning: Spoilers inside!

    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.
    Warning: Spoilers inside!

    and can you explain the + after some of the offsets?
     
  3. Wiimm
    OP

    Member Wiimm Developer

    Joined:
    Aug 11, 2009
    Messages:
    2,051
    Location:
    Germany
    Country:
    Germany
    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.
     
  4. Wiimm
    OP

    Member Wiimm Developer

    Joined:
    Aug 11, 2009
    Messages:
    2,051
    Location:
    Germany
    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.
     
  5. giantpune

    Member giantpune GBAtemp Addict

    Joined:
    Apr 10, 2009
    Messages:
    2,860
    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Þ"]:
     
  6. Wiimm
    OP

    Member Wiimm Developer

    Joined:
    Aug 11, 2009
    Messages:
    2,051
    Location:
    Germany
    Country:
    Germany
    And I know why [​IMG]
    I have a centralized the part type printing and that function takes a host endian type.
     
  7. giantpune

    Member giantpune GBAtemp Addict

    Joined:
    Apr 10, 2009
    Messages:
    2,860
    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.
     
  8. Wiimm
    OP

    Member Wiimm Developer

    Joined:
    Aug 11, 2009
    Messages:
    2,051
    Location:
    Germany
    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"
     
  9. Wiimm
    OP

    Member Wiimm Developer

    Joined:
    Aug 11, 2009
    Messages:
    2,051
    Location:
    Germany
    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.
     
  10. giantpune

    Member giantpune GBAtemp Addict

    Joined:
    Apr 10, 2009
    Messages:
    2,860
    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
     
  11. Wiimm
    OP

    Member Wiimm Developer

    Joined:
    Aug 11, 2009
    Messages:
    2,051
    Location:
    Germany
    Country:
    Germany
     
  12. giantpune

    Member giantpune GBAtemp Addict

    Joined:
    Apr 10, 2009
    Messages:
    2,860
    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 --
     
  13. Wiimm
    OP

    Member Wiimm Developer

    Joined:
    Aug 11, 2009
    Messages:
    2,051
    Location:
    Germany
    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?
     
  14. giantpune

    Member giantpune GBAtemp Addict

    Joined:
    Apr 10, 2009
    Messages:
    2,860
    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 ).
     
  15. Wiimm
    OP

    Member Wiimm Developer

    Joined:
    Aug 11, 2009
    Messages:
    2,051
    Location:
    Germany
    Country:
    Germany
    I have committed a bug fix for the file size bug.
     
  16. giantpune

    Member giantpune GBAtemp Addict

    Joined:
    Apr 10, 2009
    Messages:
    2,860
    Country:
    United States
    ok, it works now for me [​IMG]
    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
     
  17. Wiimm
    OP

    Member Wiimm Developer

    Joined:
    Aug 11, 2009
    Messages:
    2,051
    Location:
    Germany
    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.
     
  18. giantpune

    Member giantpune GBAtemp Addict

    Joined:
    Apr 10, 2009
    Messages:
    2,860
    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 [​IMG]
     
  19. Wiimm
    OP

    Member Wiimm Developer

    Joined:
    Aug 11, 2009
    Messages:
    2,051
    Location:
    Germany
    Country:
    Germany
     
  20. giantpune

    Member giantpune GBAtemp Addict

    Joined:
    Apr 10, 2009
    Messages:
    2,860
    Country:
    United States
    nevermind. this seems to be some error of mine somewhere
     

Share This Page