Hacking wwt+wit: Wiimms WBFS+ISO Tools

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
Both parameter are bools and the best choice is the non existing ||= operator.
And so I don't like |= for bool operations. Another solution is:
fo->f.create_directory = fo->f.create_directory || opt_mkdir;

Ok, in C "bool" is only another name for "int".

Resume: It's only an optical + logical reason for the "if...".
 

NReale3370

Well-Known Member
Member
Joined
Aug 13, 2009
Messages
187
Trophies
1
XP
91
Country
United States
I've been cross compiling wit for my MIPSR2 based router, and it always worked absolutely wonderful on it, but the recent revisions (not sure when it started), I've been getting errors on compile due to helper-ui. I was able to remove most references to it and still build wit, and it SEEMS to run ok, is the helper-ui stuff important? If so, better cross compile support would be most appreciated. I would also be happy to help provide mipsel versions of all the tools.
 

NReale3370

Well-Known Member
Member
Joined
Aug 13, 2009
Messages
187
Trophies
1
XP
91
Country
United States
Here's my exact error message (haven't had the time yet to track down which revision this started on). Don't mind the utime warning almost everything throws that with this compiler.
Code:
***  object wit-mix.o
***  helper gen-ui
collect2: ld terminated with signal 11 [Segmentation fault]
lib-file.o: In function `XSetFileTime':
lib-file.c:(.text.XSetFileTime+0xd4): warning: the use of OBSOLESCENT `utime' is discouraged, use `utimes'
make: *** [gen-ui] Error 1
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
I have updated the SNV repository (trunk, not beta branch):
* auto directory creation if using %-escapes
* using utimes() instead of utime()
The new tool version is "v2.07a.beta1". "Beta" only to distinguish a complete release.
 

jservs7

Witcher of Whores
Member
Joined
May 14, 2008
Messages
892
Trophies
0
XP
222
Country
United States
Excuse my noobness with this software, but I am working on converting the WBFS partition on my drive to FAT32 and I have been trying to verify my games. So far, I am going through my command prompt on Windows using wwt verify -a.

I have gotten a few !H0-ERR message, but only with the UPDATE partition of the game, not the DATA partition. Should those games be able to work fine after the conversion? Or would I have to do something like remove the UPDATE partition of that game? What command would I run?

Also, one game gave me a message, then stated it was OK:

Code:
>scan	 1.0/64	 DATA	 SMNE01	 New Super Mario Bros. Wii	 >info	 TICKET is well signed. TMD is fake signed. Partition is encrypted and scrubbed.

+OK	 1.0/64  DATA	 SMNE01  New Super Mario Bros. Wii
Is this game ok? Or is there something I can do to repair it?

UPDATE 1: So I got a total of 15 bad discs found, so I am assuming the ones that show "TICKET is well signed. TMD is fake signed. Partition is encrypted and scrubbed" aren't part of the bad discs list, just the ones with the !H0-ERR message.

14 of those games had the !H0-ERR next to UPDATE, so basically I need to know, should those games work fine on my soon to be converted FAT32 partition?

There was only 1 game with the !H0-ERR next to DATA, so I am assuming that is the only game that cannot be repaired.

Any clarification from anyone would be great. :)
 
  • Like
Reactions: joshiors

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
A H0 error means: The calculated checksum on level 0 is different from the stored one. It can't be corrected because there is no failure correction code. This discs are simply "bad dumps". But the update partition is not needed for the game (most people simply remove the update partition to save space). This means, errors in update partitions can be ignored if not making a disc driven system update.

The "encrypted and scrubbed" messages are only the result of a quick analysis of some sectors to give base infos: A fake signed disc is not the original!
 

kylster

mich weich töten
Member
Joined
Sep 11, 2010
Messages
1,393
Trophies
0
Age
37
Location
Fr33D0M R1N6
XP
472
Country
United States
wit don't create folders if not instructed by --DEST / -D (upper case letters) with one exception: The dest filename contains %-pattern. Now this don't work any longer -- reason unknown.

For the moment:
Code:
replace: wit copy ....  /wbfs/%x/%+
by:	  wit copy ....  -D /wbfs/%x/%+
This isn't working for me it's making a two files named 1.wbfs & +.wbfs. Here is how my .bat file is setup:
md c:\ISO c:\WIA c:\WBFS

cd c:\wit\bin

wit

wit copy c:/WIA/*.wia -D c:/wbfs/%x/%+ --wbfs -z
Am I missundersatanding something?
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
The forward slash is a good choice for calling any windows/cygwin tools. Another issue may be the usage of % because the special meaning in windows scripts. If you use -E$ (or --esc=$) you can replace all '%' by '$' in the destination path.

btw: Internally dos+windows accepts the forward slash since DOS 3.3. The only exception is the command line interpreter.
 

kylster

mich weich töten
Member
Joined
Sep 11, 2010
Messages
1,393
Trophies
0
Age
37
Location
Fr33D0M R1N6
XP
472
Country
United States
The forward slash is a good choice for calling any windows/cygwin tools. Another issue may be the usage of % because the special meaning in windows scripts. If you use -E$ (or --esc=$) you can replace all '%' by '$' in the destination path.

btw: Internally dos+windows accepts the forward slash since DOS 3.3. The only exception is the command line interpreter.
This seems to make a folder but the folder also has .wbfs at the end & I'll let you all know the final results thanks again for helping me :) it's almost figured out lol

EDIT: Ok so the folder it makes is "Super Smash Bros. Brawl [RSBE01].wbfs/RSBE01.wbfs" is there any way to make it so the game folder does not display the .wbfs at the end? I've tried both of these & am receiving the same results:
wit copy c:/WIA/*.wia -D c:/wbfs/$x/$+ --wbfs -z -E$
wit copy c:/WIA/*.wia -D c:/wbfs/$x/ --wbfs -z -E$

Both of these will output the same folder structure and path as mentioned above.
 

kylster

mich weich töten
Member
Joined
Sep 11, 2010
Messages
1,393
Trophies
0
Age
37
Location
Fr33D0M R1N6
XP
472
Country
United States
try %Y instead of %x
DING DING DING!!
This seems provide the correct folder structure but where do you guys get your knowledge from??? Well here is my new .bat
md c:\ISO c:\WIA c:\WBFS

cd c:\wit\bin

wit

wit copy c:/WIA/ -D c:/wbfs/$Y/$+ --wbfs -z -E$

Note: I did have one problem where I needed to add *.wia to look like this c:/WIA/*.wia
Thanks again for the help everyone :)

EDIT: Also PsyBlade if I were to substitute "/" for "\" with the line starting "wit copy" the .bat file will automatically close out after two secs. You mentioned to try this earlier but that was my result for what ever reason this was the only way I could get it working.
 

ice1006

Active Member
Newcomer
Joined
Sep 8, 2009
Messages
30
Trophies
0
XP
55
Country
United States
Hey Wiimm, I found another bug while extracting an ISO to file system (--fst).

If we extract the newest ISO "ZERO SHINKU NO CHO"(SL2J01) or "Project Zero 2"(SL2P01) with "wit.exe copy --fst" command, it will create many empty folders, most files are lost. The ISO file size is 4.3G, but the unpacked folder is only aboult 190M, and the "align-files.txt" file is missed, too. I think it's a bug of wit, hope you could fix it.

Thanks & Regards.
 

ice1006

Active Member
Newcomer
Joined
Sep 8, 2009
Messages
30
Trophies
0
XP
55
Country
United States
I haven't these games, so it's hard to verify. Are you sure, that your images are bug free? What does "wit verify" say?

Hi Wiimm, I am sure there is no bug of this image, because it runs well on Wii or Dolphin.


Code:
D:\Downloads\Wii>wit verify cvn-zsc.iso
*****  wit: Wiimms ISO Tool v2.06a r3832 cygwin - Dirk Clemens - 2012-06-15  *****
+OK	 .0  UPDATE  SL2J01 cvn-zsc.iso
+OK	 .1  DATA	SL2J01 cvn-zsc.iso

It's a great game, I advise you pick up it and hope you could fix this bug, wit is a nice tool :)
 

giantpune

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
2,860
Trophies
0
XP
213
Country
United States
It may be that the game contains files and directories that are made of characters that are not allowed on fat and/or ntfs. I saw similar stuff before on another japanese game 'Juon' (RJOP99). http://code.google.com/p/qtwitgui/issues/detail?id=3&can=1

You can check the file list with "wit DUMP ..." and see if the names contain any goofy characters.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • ZeroT21 @ ZeroT21:
    supermarket pizza is ass
  • K3Nv2 @ K3Nv2:
    x65 would just yell at me
  • ZeroT21 @ ZeroT21:
    sounds ok, he didn't pull a gun out ,so...
  • K3Nv2 @ K3Nv2:
    $12 large any style pizza deal
  • K3Nv2 @ K3Nv2:
    Each bite is a $1 well spent
  • SylverReZ @ SylverReZ:
    @ZeroT21, Agreed. I hate oven pizza, only from pizza place.
    +1
  • K3Nv2 @ K3Nv2:
    Nah I can still go for totinos
  • RedColoredStars @ RedColoredStars:
    i like totinos party pizzas. lol.
  • RedColoredStars @ RedColoredStars:
    the cracker-like crust is great on those
  • RedColoredStars @ RedColoredStars:
    My neighbor and I are going to make this next month....
  • SylverReZ @ SylverReZ:
    Tiger crust is great.
  • K3Nv2 @ K3Nv2:
    I'm beefing with a neighbor currently each time I ask him for help with something he makes bs excuses then ignores my calls text but seems to randomly speak when I'm done with the project after doing things to help him
  • RedColoredStars @ RedColoredStars:
    DiGiorno Crispy Pan Pizza tasted pretty dang close to Pizza hut pan pizza, but Im not sure if theyve been discontinued or not. Havent seen them locally for a couple of months now.
  • RedColoredStars @ RedColoredStars:
    The croissant crust is still available though, but not quite as good imo.
  • RedColoredStars @ RedColoredStars:
    @SylverReZ Never heard of tiger crust. What is it?
  • SylverReZ @ SylverReZ:
    @RedColoredStars, Its known as tiger bread, also known as dutch crust.
  • Maximumbeans @ Maximumbeans:
    It's fuggin gooooood
    +1
  • RedColoredStars @ RedColoredStars:
    I mean. Whats different about it?
  • RedColoredStars @ RedColoredStars:
    Never even seen a tiger crust pizza in any stores around here. Walmart, Cub, or otherwise.
  • RedColoredStars @ RedColoredStars:
    Must be a regional thing.
  • RedColoredStars @ RedColoredStars:
    Gonna smoke this bowl then go get kitties ashes. <3
  • RedColoredStars @ RedColoredStars:
    Last thing I told her is how much I love her, and that Im not leaving her there forever and I promise to come back and take her back home with me.
  • Bunjolio @ Bunjolio:
    halllo
    RedColoredStars @ RedColoredStars: hello