Hacking wbfs2fat.py

PsyBlade

Snake Charmer
OP
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
Whats the fucking deal with you people?

Im willing and able to help with problem.

But if me asking for more details or the backup file cause you suddenly vanish in a puff of bad smoke, never to be heard of again
then please do not ask me for help. It would just be a fucking waste of time for both of us.

Im OK with people that are not able/willing to provide that info (even if I think "not willing" is stupid and probably can't help you).
Just tell me that. I will see what we can do.
Or if that request is such a big insult to you that you don't wan't my help anymore then tell me that too.

Don't just fucking leave without me even knowing. That just gets me pissed of at people asking support.

BTW: Please post support request here, not as PM
 

onyxx

Member
Newcomer
Joined
Nov 6, 2008
Messages
11
Trophies
1
XP
141
Country
United States
Hi great program My friend told me about it and i decided to convert my wbfs drive. I seem to be running into a wall with the conversion part. I get this far then get a ERROR
Code:
W2F: checking for WBFS
W2F: analysing WBFS
W2F: creating FAT filesystem
W2F: creating placeholder Files
W2F: linking used Blocks to Files
ERROR
I decided to check the wbfs with wiimms wwt and i got this.
Code:
C:\Program Files\Wiimm\WIT> wwt CHECK w:\
*****  wwt: Wiimms WBFS Tool v2.07a r3955 cygwin - Dirk Clemens - 2012-07-14  **
***
!! wwt: ERROR #25 [CAN'T OPEN FILE] in AnalyzePartitions() @ src/wbfs-interface.
c#346
!!	  Can't open file: /cygdrive/w
!!	  -> Permission denied [13]
!! wwt: ERROR #17 [NO WBFS FOUND] in AnalyzePartitions() @ src/wbfs-interface.c#
448
!!	  no WBFS partitions found -> abort
C:\Program Files\Wiimm\WIT>
I'm running windows xp pro, the hdd is 500gb with 250gb partitioned as wbfs and the other is fat32. Any help I can get would be appreciated, thanks.
 

PsyBlade

Snake Charmer
OP
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
first try running wbfs2fat 0.8.6beta3 (or newer)
from http://www.unix-ag.uni-kl.de/~t_schmid/wbfs2fat/
it will still not work, but it will create a file called "wbfs2fat.debug"
please upload it somewhere before continuing

try running "wwt check -v"
-v means verbose and tell you more about what is going on
and running it without a drive parameter should cause it to check all WBFS partitions it finds
(wwt's drive selection needs unix style notation not windows drive letters (stupid, I know))
 

onyxx

Member
Newcomer
Joined
Nov 6, 2008
Messages
11
Trophies
1
XP
141
Country
United States
first try running wbfs2fat 0.8.6beta3 (or newer)
from http://www.unix-ag.u...chmid/wbfs2fat/
it will still not work, but it will create a file called "wbfs2fat.debug"
please upload it somewhere before continuing

try running "wwt check -v"
-v means verbose and tell you more about what is going on
and running it without a drive parameter should cause it to check all WBFS partitions it finds
(wwt's drive selection needs unix style notation not windows drive letters (stupid, I know))
Here are the results
http://www.2shared.c...S/wbfs2fat.html

Code:
C:\Program Files\Wiimm\WIT>wwt check -v
wwt: Wiimms WBFS Tool v2.07a r3955 cygwin - Dirk Clemens - 2012-07-14

One WBFS partition found.
CHECK /dev/sdd2
* Scan 63 discs in 500 slots.
* Check for disc block errors.
* Check free blocks table.
* Summary of WBFS check: no errors found.

C:\Program Files\Wiimm\WIT>
 

onyxx

Member
Newcomer
Joined
Nov 6, 2008
Messages
11
Trophies
1
XP
141
Country
United States
fixed in beta4 (uploading right now)

was a stupid bug on my side that was triggered by not having a game located in the beginning of the disk
Code:
W2F: checking for WBFS
W2F: analysing WBFS
W2F: creating FAT filesystem
W2F: creating placeholder Files
W2F: linking used Blocks to Files
W2F: creating Backup of overlap
WARNING: start of dangerous part
W2F: creating WBFS File Headers
W2F: writing FAT to Disk
W2F: end of dangerous part
W2F: moving Files to destination
W2F: Conversion completed
Its all good now! ;) . thanks man great program.
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,649
Country
France
the games have a reduced file size on FAT32 or NTFS too, they can be scrubbed by removing unused data, and the file is renamed .wbfs instead of .iso

If the file .wbfs is > 4GB, it's then split into another file .wbf1 so you can have big games on FAT32 too.
 

PsyBlade

Snake Charmer
OP
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
There only ever was one download for wbfs2fat.
One archive containing two folders.

The python folder includes the real program as written by me.
That same code can run on Windows, Linux and Cygwin (provided you got python installed).

Aditionally there is a windows folder that contains everything needed to run it on windows bundled together.

I thought about splitting it because the bundled version makes up 99.8% of the downloads size but I never got around to do it.
Most people will probably want that one anyway.

Yes WBFS can save space by storing only the used parts of the game.
But that still applies to .wbfs files. (They are marginally larger, probably 2MiB)
 

PsyBlade

Snake Charmer
OP
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
I added some code to create an MBR on unpartitioned drives converting them into partitioned ones.

While somewhat uncommon it is possible to have a filesystem directly on the disk without a partition.
Personally I think its preferable to partition the drive even for a single partition setup.
But I read some claims that people have WBFS without partitioning.
wbfs2fat converted such WBFS to FAT32 fine, but Windows is afaik unable to read them (Linux reads them fine).
I now added an option to create a MBR with a single partition containing the resulting FAT32.

As this was part of general overhaul a regular version with this feature might take some time.
Should you want to give it a try regardless of some edges, post here and I will upload a snapshot.

edit
uploaded 0.9.0beta1
DO NOT RESTORE THE BACKUP MANUALLY WITH WBFS2FAT IF YOU USED "CREATE MBR"
 

Wanderlei777

Well-Known Member
Member
Joined
Oct 7, 2012
Messages
104
Trophies
0
XP
147
Country
United States
What a brilliant tool, worked absolutely flawlessly. Once again I am blown away by the by the wii gurus who put their time in making such tools.
 

NewFang

Well-Known Member
Newcomer
Joined
Feb 11, 2010
Messages
79
Trophies
0
XP
165
Country
United States
I'm having a real problem with this. I finally figure out how to use this and it reads.... "WBFS corrupt". I tried using wwt verify and it say "No WFBS drive detected". I lastly tried the ignore 6 option and I ended up with an "ERROR <class 'struct.error'>" Please help!
 

PsyBlade

Snake Charmer
OP
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
if wwt can't even read your WBFS it's probably fucked up bad
sadly wwt is the only tool I know that can repair WBFS
maybe you find something else somewhere on the inet

if you upload the backup (prefered) or debug file somewhere I can try to find out what's wrong with it
 

PsyBlade

Snake Charmer
OP
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
the backup file is "wbfs.DRIVENAME.TIMESTAMP.back" but might not be there if it crashed to early
the debug file is "wbfs2fat.debug"
both are located in the directory from where you called wbfs2fat

upload them to your hoster of choice and post (or pm) the url
maybe compress it (with eg 7zip) if you have something at hand
 

NewFang

Well-Known Member
Newcomer
Joined
Feb 11, 2010
Messages
79
Trophies
0
XP
165
Country
United States
PsyBlade, I don't even know how to do that. I'm not much of a tech guy (obviously) and need idiot/noob terms inorder to follow instructions. If you would like to go through PM so I'm not clogging up your thread with my issues lmk. If you are still willing to help. Thank you.

edit: I click the wbfs.debug file and it says windows cannot find that program. I cannot find the BACKUP file. Am I supposed to click the "restore BACKUP" option in wbfs2fat.exe?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: @OctoAori20, Cool. Same here.