Hacking wwt+wit: Wiimms WBFS+ISO Tools

shuall

Member
Newcomer
Joined
May 6, 2014
Messages
7
Trophies
0
Age
28
XP
47
Country
United States
For each file class, the minimal aligned value is calculated by looking the offset of all files.

Example: "0x80 = files/*.pak" means, that all *.pak files are aligned at 0x80 boundary, but not at 0x100.
Makes sense.

For an example of what I don't understand: align-files.txt for a certain iso has some files set to align to 0x10, but the offsets in the fst.bin for those files all end in 0x8 or 0xc.
Is it aligned to 0x10 from the previous file's offset, or is it supposed to end in 0x0?

Thanks for any help, I'm trying to rebuild an fst with extra files, and I don't want to rely on gcrebuilder.exe.
I can't get any info from gcrebuilder's output because the fst's it generates are different from the originals and all have offsets greater than 0x90000000, I have no idea what it's doing and how that works.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
For an example of what I don't understand: align-files.txt for a certain iso has some files set to align to 0x10, but the offsets in the fst.bin for those files all end in 0x8 or 0xc.
Is it aligned to 0x10 from the previous file's offset, or is it supposed to end in 0x0?
Does it? This might be a bug. GC or Wii? Concrete example?
 

shuall

Member
Newcomer
Joined
May 6, 2014
Messages
7
Trophies
0
Age
28
XP
47
Country
United States
Does it? This might be a bug. GC or Wii? Concrete example?

Gamecube games are all I've tried so far.
Zelda wind waker as an example has all alignments being some multiple of 0x10, but "xxd -c 12 -g 4 sys/fst.bin" yields almost all the entries starting at offsets with non-zero endings usually multiples of 0x4, though.
There's a couple ending in 0x6, but I don't see any ending in other multiples of 2, which is weird if it's just alignment.
Reading each entry as "filename | offset | length" as per http://hitmen.c02.at/files/yagcd/yagcd/chap13.html
 

shuall

Member
Newcomer
Joined
May 6, 2014
Messages
7
Trophies
0
Age
28
XP
47
Country
United States
It's maybe a bug between Wii and GC and factor 4:
The Wii stores value=offset/4 because it supports offsets >4GB.


maybe, it would probably be offset/2 then, because some offsets were 0x6.
I'm going to check another iso to see if it has offsets ending in 2,a, or e.
 

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 really a factor-4 bug. I will fix all code places soon.

EDIT:
If you want to compile it yourself: Here is the path:
Code:
Index: src/iso-interface.c
===================================================================
--- src/iso-interface.c (revision 5733)
+++ src/iso-interface.c (working copy)
@@ -2898,7 +2898,10 @@
        && ReduceToPathAndType(source,sizeof(source),file->path) )
    {
        noPRINT("ALIGN: %s\n",source);
-      InsertParamField(&wfi->align_info,source,file->offset4<<2);
+      uint off = file->offset4;
+      if (!part->part->is_gc)
+          off <<= 2;
+      InsertParamField(&wfi->align_info,source,off);
    }
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
wiimms-tools.png


WIT: Wiimms ISO Tools v2.30a - 2014-11-15
A command line ISO+WBFS tool set for various os.

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

Feature overview:
Visit http://wit.wiimm.de/features.html for more details.

Download of the current version:

There are also some GUI available:


Change log:
Code:
wit v2.30a r5771 - 2014-11-15

 - Bug fix for GameCube extracts: The alignments in file 'align-files.txt'
   were too large by a factor of 4.

 - WDF version 2 is now the default WDF version. Use --wdf1 to force v1.

 - With v2.21a (June 2013) the default output file format was switched from
   WDF to WBFS. Since that command SKELETON used this new default by mistake.
   Now the much more efficient WDFv2 is used as default for skeletons.

 - Command SKELETON supports now GameCube images.

 - Windows only: Cygwin update to v1.7.32 2014-08-13.

The source is published under the license of GPL2. Checkout the sources directly from the SVN repository or browse the source. Visit http://wit.wiimm.de/ for more information.
 
  • Like
Reactions: tmv_josue

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
No I have closes GC support before finishing it, because no longer interests in GC gaming.
Independent of this, nearly all of my free time goes into the Wiimmfi project.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
wiimms-tools.png


WIT: Wiimms ISO Tools v2.31a - 2015-02-08
A command line ISO+WBFS tool set for various os.

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

Feature overview:
Visit http://wit.wiimm.de/features.html for more details.

Download of the current version:

There are also some GUI available:


Change log:

Code:
wit v2.31a r6005 - 2015-02-08

 - Some minor text edits.
 - Title database updated.
 - Windows only: Cygwin update to v1.7.34-6 2015-02-04.

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

Rioluwott

Well-Known Member
Member
Joined
Feb 23, 2014
Messages
853
Trophies
1
Age
28
XP
2,546
Country
Mexico
Sorry if this is the wrong topic
I downloaded the hack of mario kart wii with every past track and im asking if someone can give me the save with everything i used this tool to create the iso thanks and sorry if im in the wrong topic
 

gcb

Active Member
Newcomer
Joined
Nov 14, 2010
Messages
42
Trophies
0
XP
96
Country
Brazil
i can't figure out the syntax for `wwt REMOVE`... the site only says "REMOVE id6" but where do i tell it where is the partition... i tried as the first argument but that didn't work

Code:
(0) ~/code/wiimms-iso-tools
$ ./wwt RM /dev/sdn2 RGLE7D -v -v -v -v
 
wwt: Wiimms WBFS Tool v2.31a r6044 x86_64 - Dirk Clemens - 2015-02-19
 
PROGRAM_NAME  = wwt
SEARCH_PATH[0] = /DATA/code/wiimms-iso-tools/
SEARCH_PATH[1] = /usr/local/share/wit/
 
!! wwt: ERROR #19 [NO WBFS FOUND] in AnalyzePartitions() @ src/wbfs-interface.c#447
!!      no WBFS partitions found -> abort
wwt: Command 'REMOVE' returns with status #19 [NO WBFS FOUND]
 
(19) ~/code/wiimms-iso-tools
$ ./wwt LS /dev/sdn2
 
ID6    10/215 discs (21 GiB)
----------------------------------------------------------------------
RBWE01  ...[ several lines of output cut]...
----------------------------------------------------------------------
Total: 10/215 discs, 21812 MiB ~ 21 GiB used, 11942 MiB ~ 12 GiB free.
 
 
(0) ~/code/wiimms-iso-tools
$
 

bug

Well-Known Member
Newcomer
Joined
May 11, 2006
Messages
50
Trophies
0
Website
Visit site
XP
209
Country
I would like to include PAL or NTSC in the destination filename. Is there an escape sequence I can use to insert the region of the game into the destination filename?
 

TonyM

Banned!
Banned
Joined
Jan 9, 2015
Messages
61
Trophies
0
Age
47
XP
-6
Country
France
thank you to the team for the project M 3.5 v1.00 NTSC M j wbfs onligne in the dumper:bow:
jai all personages sonic crash bandicounte screen and full of character
must be set up in the 50 HERTZ for which is stable

NSMBW_Mod_ISO_Builder 1.07 wiit that he is about to dump lots of games nouvo thank you
thank you Wiimm http://wiimm.de/r/d/fun-2015-03 with aplication I have done Newer Newer super super luigi wii and super marios bros newer auttre 7 demo Newer iso i rename the name official games and I have full image cfg loader
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    LeoTCK @ LeoTCK: yes for nearly a month i was officially a wanted fugitive, until yesterday when it ended