Hacking WIT: Wiimms ISO Tools / beta test

  • Thread starter Thread starter Wiimm
  • Start date Start date
  • Views Views 44,299
  • Replies Replies 223
Wiimm said:
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).

which parts of the ISO images are we on about manipulating here? i didnt get much from that explanation haha
 
i just tried r1451 with the MIX command. the resulting ISO appears to be mostly correct. the iso has the partitions i wanted in the places and types that i wanted them. however, when i try to load this iso, im getting errors. IDK if it the iso or the wode, since the errors dont always happen at the same place.

the first few times i try to load this game, the system menu spits out the "an error has occurred.." crap. then once i tried to play the game and it was able to show the banner in the disc channel, but when i try to play the game, it comes up with errors. im not sure whats going wrong though.


after a bit of cussing at my HDD, i was able to get this game to load. both partitions can be read and everything appears to be working in this ISO.
yay.gif
 
I have committed a new version in the beta branch:
First implementation of wit mix --overlay:

wit help mix
Code:
....
ÂÂÂÂ --overlayÂÂÂÂMost partitions have holes (unused areas) in the data
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂsection. If combining multiple partitons into one disc
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂit is possible to overlay the partitions so that the
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂdata of one partition resides in the hole of other
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂpartitions. This option enables this featureÂÂand limits
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂthe number of input partitions to 12, because the
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂcalculation is rated as O(n^2).

History:
Code:
 - Command "wit MIX" accepts now the option --overlay: Partitions will
ÂÂ be overlayed so that data from one partition is stored in unused areas
ÂÂ of a other partition. To find the optimum order a permutation is done.
ÂÂ Option --overlay limits the number of input partitions to 12, because
ÂÂ the calculation is rated as O(n^2).ÂÂ*** "wit MIX" is EXPERIMENTAL! ***

- "wit MIX" wil accept the keyword 'psel' as alternative to 'select'.
ÂÂ The reason is that 'select' accepts the same keyword list as --psel.

- The disc subsystems recognize overlayes partitons. For overlayed
ÂÂ partitions the --psel keyword "WHOLE" is ignored.

- Command "wit DUMP" will print an info line for overlayed partitions.

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.
 
LMAO... i just tried this out and i shit myself when it actually worked. i expected that there would be something about it that wouldn't work, but it does.

sadly, it didnt seem to help get the filesize of the mariokart pwns iso down as those 2 games dont have enough holes to overlay. but, as there is more than one use for this, i decided to test further. i managed to get mariokart and tetris party deluxe to overlay and i am able to play both games without any trouble, and the whole iso is ~4.2GB. if the 2 werent overlayed, it would be about 8GB.
 
thats what ive been doing. good news for people that have 4.3J or K and a balance board though... wii fit + lego indiana jones = 5400MB. thats plenty small enough to put on a DVD-DL. though, its not really worth buying the balance board just for this, as a wode is about the same price as the wii fit bundle.
 
I have committed a new version in the beta branch (like every beta: not tested very well):
First implementation of wit mix ... ignore ruleset:

With the qualifier 'ignore' the user select files that are not needed in the resulting image. The files do exists in the FST directory, but the content of these files are not copied if the sector is not needed anywhere. This creates an bad dump. If a running programm access such file the wii halts immediately.

Details: http://wit.wiimm.de/wit/cmd-mix.html#ignore

If you need only some files you can create a listing file such mkw.list and call:
Code:
wit mix mkw.iso ignore @mkw.list otherimage.iso --dest newimage.iso --overlay

mkw.list is like this:
All files prefixed by '-' are disabled for ignoring (=not ignored). The last line '+/files/' means: Ignore all other files. (details: http://wit.wiimm.de/info/file-filter.html)

Code:
-/files/opening.bnr
-/files/Boot/Strap/us/English.szs
-/files/rel/StaticR.rel
-/files/sound/revo_kart.brsar
-/files/contents/HomeButton.arc
-/files/contents/HomeButtonSe.arc
-/files/hbm/homeBtn_ENG.szs
-/files/hbm/SpeakerSe.arc
-/files/hbm/home.csv
-/files/hbm/config.txt
-/files/hbm/homeBtnIcon.tpl
-/files/hbm/HomeButtonSe.arc
-/files/contents/RFLRes01.arc
-/files/Boot/savebanner.tpl
-/files/Scene/UI/Font.szs
-/files/Boot/wadlistR.dat
-/files/Scene/Model/MiiBody.szs
-/files/Scene/Model/Earth.szs
-/files/Scene/UI/Channel.szs
-/files/Scene/UI/Channel_U.szs
-/files/Scene/UI/Title.szs
-/files/Scene/UI/Title_U.szs
-/files/sound/revo_kart.brsar
-/files/thp/title/top_menu.thp
-/files/Scene/Model/Earth.szs
-/files/Scene/Model/MiiBody.szs
-/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/

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.


EDIT:
use "wit dump image --ignore-files ruleset --show usage" to view the results of ignoring files.
 
Regarding the "--region" option in wit , I just tried to use the command below:

wit edit lego indiana jones.iso --region JAPAN

Patching table of the disc:

offset .. offset end size comment
----------------------------------------------
4e000 .. 4e020 20 region: 0

Does this mean I can change the game region ? (from Lego USA to Lego JAPAN )

BTW, when will the wit v1.14a be available to download ?
 
I've been wondering... is there a Windows version of this tool?
I've been waiting to use this thing since Wiiscrubber is failing me at the moment.
 
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?

Apropos: This is the WIT beta thread with many direct and indirect download links.
 
Dear Wiimm

Can I extend maximum size? i want to try mariokart + ssbb but it' say

!! wit: ERROR #28 [SEMANTIC ERROR] in cmd_mix() @ src/wit.c#2394
!! Total size (11532 MiB) exceeds maximum size (8964 MiB).

so i use --max-chunks 12000 but it's show same result
 
airline38 said:
Regarding the "--region" option in wit , I just tried to use the command below:

wit edit lego indiana jones.iso --region JAPAN

Patching table of the disc:

offset .. offset end size comment
----------------------------------------------
4e000 .. 4e020 20 region: 0

Does this mean I can change the game region ? (from Lego USA to Lego JAPAN )

BTW, when will the wit v1.14a be available to download ?

I burned the 'region changed' Lego Indiana Jones (USA-> JAPAN) disc but it can't be read by 4.3J modchip Wii.
 
because your modchip cant do shit about the region checking in system menu 4.2 or higher. it would have to rebuild the TID and forge some stuff and then sign the disc which it simply cant do. wit can change the TID, but it must fakesign everything. and the 4.3 IOSes wont read this.
 
airline38 said:
Regarding the "--region" option in wit , I just tried to use the command below:

wit edit lego indiana jones.iso --region JAPAN

Patching table of the disc:

offset .. offset end size comment
----------------------------------------------
4e000 .. 4e020 20 region: 0

Does this mean I can change the game region ? (from Lego USA to Lego JAPAN )

BTW, when will the wit v1.14a be available to download ?
It changes only the region info in the disc info area (disc offset 0x4e000) but not the fourth letter of the id, which is also a region code. wit can do it for you, but I don't know the real effects for different Wii system. Belief giantpune: he knows much more about this than me.
 
WIT: Wiimms ISO Tools v1.14a - 2010-08-06
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:
  • wit MIX --overlay image.iso ignore ruleset ....:
    This command will mix partitions and overlay the data to save disc space. The rulset defines files which are not needed. This enlarge the holes and makes overlay more efficient. See http://wit.wiimm.de/wit/cmd-mix.html for more details.
    .
  • The overlay algorithm works only with 2 blocks and one hole. The next step is to implement a sector based overlay algorithm. This algorithm is already in my head.
    .
  • There are 3 new (patching) option: --rm-files, --zero-files and --ignore-files.
    Option --ignore-files works like the "wit mix" modifier ignore. Read this and try the command "wit dump image1 --show usage --ignore-files ruleset" to view the effect of ignored files.
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.

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.
 

Site & Scene News

Popular threads in this forum