Hacking Wii backup Manager for Windows

VashTS

Beat it, son
Member
Joined
Mar 14, 2009
Messages
4,281
Trophies
1
Age
38
Location
Upstate NY
XP
3,422
Country
United States
im getting an invalid listing from my hdd, i've done a scan disk and its healthy and fine. when i click it, wii backup manager craps out, makes me force close it. i want to know where this invalid game is so i can fix it/delete it.

any help or ideas?
 

VashTS

Beat it, son
Member
Joined
Mar 14, 2009
Messages
4,281
Trophies
1
Age
38
Location
Upstate NY
XP
3,422
Country
United States
thanks man i sent it to you via pm, i tried an older version before the covers were added (i used that one for a long time before updating) and it does not have the invalid item there. strange.
 

fig2k4

Well-Known Member
OP
Member
Joined
Oct 30, 2009
Messages
758
Trophies
0
Location
Scotland
Website
www.wiibackupmanager.co.uk
XP
173
Country
The good news is that all your games are fine. It's the WiiWare that's the problem.

Whatever you used to create these WBFS files didn't write the header correctly. The WBFS sector (block) count in the header is zero in every one of them.

I don't see how this wouldn't happen in older versions since the information that's missing from the header is vital for using WBFS normally. That part of my code hasn't changed since day 1.

Can you let me know what you used to create the WiiWare WBFS files? Do the WiiWare games work in a loader?

You could enable "Force mode" by selecting to "Tools->WBFS->Force mode", which basically recalculates the values that would be stored in the header (the real header is ignored). That would work round your current error, but others might appear when reading the game data. Maybe you had force mode enabled already in the older version that didn't show the error?

If WBM did created these WBFS files, I'll try to reproduce it and fix the problem.
smile.gif
 

fig2k4

Well-Known Member
OP
Member
Joined
Oct 30, 2009
Messages
758
Trophies
0
Location
Scotland
Website
www.wiibackupmanager.co.uk
XP
173
Country
I was way off with my assumption.
tongue.gif
The problem was related to very small ISO files, where some values were rounded down to zero instead of up to one. This is how my log looks with a WiiWare forwarder ISO now..

11:29:43 WiiFatDrive.OpenVolume Opened volume C:\wbfs\Flight Control [WFHE00].wbfs
11:29:43 WBFSPartition.OpenFromHandle WBFS partition info
HDSectorSize = 512 Bytes
NumHDSectors = 12288
NumWiiSectors = 192
WBFSSectorSize = 2048 KB
NumWBFSSectors = 3
WBFSSectorsPerDisc = 4482
DiscCount = 1
MaxDiscs = 215
FreeSpace = 0 MB
UsedSpace = 6 MB
TotalSpace = 6 MB

The fixes will be in the next version. Thanks for the report and the log.

BTW, the problem was only with reading the WBFS files, any files written should be OK, like you already said with the older version of WBM.
 

nobody_tw

Well-Known Member
Newcomer
Joined
Feb 18, 2011
Messages
45
Trophies
0
XP
33
Country
Taiwan
Hi, fig2k4
Thanks for your program WBM.
It's a wonderful tool to manage wii backups.

I have a question about the new added function.
The sha-1 hash checks for wii backup file.
Two different fail situation log about backup file.

situation 1.
...
TotalSpace = ... MB
WiiDisc.PartitionReadBlock Hash check failed 1044692992/32768
WiiDisc.PartitionRead Error reading block 127522/29696
WiiDisc.DoDisc Error reading partition 1
Data partition
VerifyDataThread ...... Fail

situation 2.
...
TotalSpace = ... MB
Settings Dialog shown
WiiDisc.DoDisc Error reading partition 2
Data partition
VerifyDataThread ...... Fail

Situation 1 obiously is a bad backup.
Situation 2 is strange.
Is there possible just misreading the firmware upgrade partition.
If the firmware upgrade partition had been removed first, the error is just like this?

Thanks!!
 

fig2k4

Well-Known Member
OP
Member
Joined
Oct 30, 2009
Messages
758
Trophies
0
Location
Scotland
Website
www.wiibackupmanager.co.uk
XP
173
Country
Both errors are for the game partitions.

In situation 1, there's at least one error in the game partition, so I'd imagine it would be better to use a clean copy..

In situation 2, it looks like the update partition hasn't been removed. You can tell from the partitions column, it'll have a UG or similar to show that the disc has an update and game partition. If there's definitely no update partition, there must be an error in the partition table which makes it look like there's a valid second partition, but there isn't.

You could try transferring that game to an ISO, keeping only the game partition. Then load the ISO on the files page and test it to see if the error still occurs.

Before you delete anything, you could also verify the results using wit, just in case.
 

Nah3DS

Madre de Dios! Es El POLLO DIABLO!!!
Member
Joined
Feb 9, 2010
Messages
3,858
Trophies
1
XP
2,891
Country
United States
dunno if this has been asked before, but it will be posible to add sneek support to wii backup manager? It will save a lot of time to sneek users... using discex kind of sucks
 

Wiimm

Developer
Member
Joined
Aug 11, 2009
Messages
2,291
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,467
Country
Germany
NahuelDS said:
dunno if this has been asked before, but it will be posible to add sneek support to wii backup manager? It will save a lot of time to sneek users... using discex kind of sucks
Use wit or (if you need a gui) qtwitgui by giantpune.
wit command: wit extract --sneek MY_IMAGE DEST_DIR
 

nobody_tw

Well-Known Member
Newcomer
Joined
Feb 18, 2011
Messages
45
Trophies
0
XP
33
Country
Taiwan
@fig2k4

Thanks for your rapid reply about situation 2.

I will reply the results according to your suggestion.

If there any possible to export only the errors to a file.
It's take time to do the fail backups record!!

Thanks again
yaywii.gif
 

nobody_tw

Well-Known Member
Newcomer
Joined
Feb 18, 2011
Messages
45
Trophies
0
XP
33
Country
Taiwan
@fig2k4
I have tested some backups which are belong to situation 2.
(according to your method, transfer to iso, and check within file tab)
No luck, They are all the same error logs as before.

No "hash check failed error"
only
"WiiDisc.DoDisc Error reading partition 2
Data partition
VerifyDataThread ...... Fail"

Is there any possible that the data partition is good.
It is just missing partition info or errror partition info within the backup.

Using wiiscrubber v1.4 to check the iso files.
Only data partition no update partition, strange?!
unsure.gif
 

fig2k4

Well-Known Member
OP
Member
Joined
Oct 30, 2009
Messages
758
Trophies
0
Location
Scotland
Website
www.wiibackupmanager.co.uk
XP
173
Country
It's definitely weird, there shouldn't be a second partition..

Can you do me a big favour and use wit to extract the header to file? http://wit.wiimm.de/download.html If you can send me the header, I'll be able to see exactly what the problem is. The commandline should be something like this..

wit extract -s filename -F +header.bin --psel raw -d destinationdir

@Wiimm.. Feel free to correct the commandline if there's any errors.
smile.gif


edit: Scrap that idea, I'll need to knock something up that also extracts the partition table... I'll get back to you.
smile.gif


Cheers.
 

Etheboss

Official LULWUT supporter
Member
Joined
Feb 24, 2009
Messages
2,445
Trophies
0
Location
Around somewhere
XP
851
Country
Netherlands
Wiimm said:
NahuelDS said:
dunno if this has been asked before, but it will be posible to add sneek support to wii backup manager? It will save a lot of time to sneek users... using discex kind of sucks
Use wit or (if you need a gui) qtwitgui by giantpune.
wit command: wit extract --sneek MY_IMAGE DEST_DIR
OverjoY and odbc are also working on a cDI module for UNEEK that is able to use WBFS files...they are still working on it, but it already works very good.
Which means DiscEx maybe something of the past.

Link here: http://gbatemp.net/t307200-testers-wanted
 

fig2k4

Well-Known Member
OP
Member
Joined
Oct 30, 2009
Messages
758
Trophies
0
Location
Scotland
Website
www.wiibackupmanager.co.uk
XP
173
Country
@nobody_tw

I've knocked up this not so little console app to extract the disc header, partition table and partition headers. Hopefully that should be enough info.

http://www.4shared.com/file/F48_JyU8/skelciso.html

Just drag an ISO onto the exe in explorer. You should see the console window appear then disappear. You'll then find a "skel.ciso" file in the same folder as the ISO. Send me this file so I can do some testing. If you rar the ciso file, it'll probably half the size because I didn't bother trying to optimise anything..
 

Wiimm

Developer
Member
Joined
Aug 11, 2009
Messages
2,291
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,467
Country
Germany
fig2k4 said:
@nobody_tw

I've knocked up this not so little console app to extract the disc header, partition table and partition headers. Hopefully that should be enough info.

http://www.4shared.com/file/F48_JyU8/skelciso.html

Just drag an ISO onto the exe in explorer. You should see the console window appear then disappear. You'll then find a "skel.ciso" file in the same folder as the ISO. Send me this file so I can do some testing. If you rar the ciso file, it'll probably half the size because I didn't bother trying to optimise anything..

My wit tool have a similar command for a long time: wit skel ....
It creates a copy of a disk. With such skeleton I can view partitions, file listings, tmd and ticket. Only the file data is zeroed. I use it to collect game infos with very small space amount.
 

fig2k4

Well-Known Member
OP
Member
Joined
Oct 30, 2009
Messages
758
Trophies
0
Location
Scotland
Website
www.wiibackupmanager.co.uk
XP
173
Country
Just attach the ciso to an email and send it to [email protected] or you could send one created with wit..

wit skel "sourcefilename" --ciso

That file will compress to around 9KB. I knew there was a way to use wit, but I couldn't remember the command.
wink.gif


If you can't email it, just upload it somewhere and post a link.
 
General chit-chat
Help Users
    Skelletonike @ Skelletonike: Never heard about it tbh. Guess it has something to do with the DS?