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
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    I'll reformat and have a 3tb raid0 m. 2 at least
    +1
  • K3Nv2 @ K3Nv2:
    Lmao that sold out fast
    +1
  • Veho @ Veho:
    Yeet the cat.
    +1
  • K3Nv2 @ K3Nv2:
    Good idea
    +1
  • The Real Jdbye @ The Real Jdbye:
    i thought everybody knew cocktails are like 75% ice
  • Veho @ Veho:
    Yeah but not like this.
  • Veho @ Veho:
    It's not like they're complaining that their Slurpee is 99% ice or something, but if the cocktail calls for "shot of vodka, shot of vermouth, shot of gin, shot of Campari, three shots of juice, squirt of lemon" and ends up being a thimbleful of booze, that's a problem.
  • The Real Jdbye @ The Real Jdbye:
    the funny thing is cocktails in norway are only allowed to have 1 20ml shot of booze
  • The Real Jdbye @ The Real Jdbye:
    so..... yeah
  • The Real Jdbye @ The Real Jdbye:
    we're used to only having a thimbleful of booze
  • Veho @ Veho:
    Booo.
  • The Real Jdbye @ The Real Jdbye:
    same thing if you want whisky on the rocks or something, you can't get a double
  • The Real Jdbye @ The Real Jdbye:
    but you could buy as many shots of whisky (or anything else) as you want and ask for a glass of ice and pour them in
  • The Real Jdbye @ The Real Jdbye:
    it's dumb
  • Veho @ Veho:
    Maybe.
  • Veho @ Veho:
    There was a comparison of the number of Ibuprofen poisonings before and after they limited the maximum dosage per box or per pill (i'll look that up). No limit on the number of boxes you can still buy as many as you want, so people argued it was pointless.
  • Veho @ Veho:
    But the number of (accidental) poisonings dropped because drinking an entire package of ibuprofen pills went from "I need a new liver" to "I need a new box of Ibuprofen".
  • Veho @ Veho:
    Here we have ketoprofen that used to be prescription-only because of the risk of toxic dosages, but then they halved the dose per pill and sell them in bottles of six pills apiece instead of twenty and it doesn't need a prescription any more. Yes you can buy more than one bottle but people simply don't.
  • Psionic Roshambo @ Psionic Roshambo:
    Usually accidentally overdose of ibuprofen here is from people taking like cold medicine then ibuprofen for a headache and the combination is over what they need
    Veho @ Veho: https://imgur.com/gallery/QQkYnQu