Nanook / NKitv1

MIT License
88 stars 22 forks source link

Can't verify Wii isos on Linux, works fine on Windows #5

Open alucryd opened 4 years ago

alucryd commented 4 years ago

I can't get nkit to work with Wii isos on Linux, known good dumps fail to verify, when they do on windows. No problem on the Gamecube side however. Not sure what I can provide to help diagnose this :/

Nanook commented 4 years ago

I'll add this to my notes. I have an arm Linux environment to test on. I'll give the new version a test. It's a month or 2 away yet.

alucryd commented 4 years ago

Thanks, looking forward to it!

Pixelnarium commented 4 years ago

Just encountered the same issue. I also tried the pending pull request for the .NET 3.1 core runtime and it is the same result here. Tried to recover an nkit.iso without an update partition to a proper redump iso. The update partition is there. Just copying everything to Windows and executing it there works just fine.

RecoverToISO v1.4, NKit.dll v1.4 :: Nanook

Processing command line and scanning files...
Found 1 file

DAT ENTRIES
-------------------------------------------------------------------------------
[3596 redump ] Redump.dat
[   0 custom ] Custom.dat
[   0 gametdb] wiitdb.txt

RECOVERY DATA
-------------------------------------------------------------------------------
[  44 Redump ] /home/user/Downloads/NKit/Recovery/Redump/Wii
[  0 Other  ] /home/user/Downloads/NKit/Recovery/Other/Wii

#####[ 1 / 1 ]#################################################################

FILES
-------------------------------------------------------------------------------
Input: /home/user/Downloads
  No More Heroes (USA) (En,Fr,Es).nkit.iso

Temp:  /home/user/Downloads/NKit/Processed
SmLog: /home/user/Downloads/NKit/Processed/NKitSummary.txt

PROCESSING [DELETE SOURCE]
-------------------------------------------------------------------------------
NO MORE HEROES [RNHE]  Wii  [MiB:3252,2]

4 Passes: [NKit.ISO] >> [1:To ISO] >> [2:Recover ISO] >> [3:Calc Hashes] >> [4:Full Verify]

To ISO:         .1.2.3.4.5.6.7.8.9.10 ~ 2m  0s  [MiB: 4482,3]  NKit Invalid

    |DETAIL
    |...............................
    |!! Update partition *_5A7E2CD4 missing - Adding filler. It may be Recoverable
    |...............................

Verification Failed Crc:353DFD84 - Failed Test Crc:4CF0EBE2
Deleting Output

Summary Log Written

Press enter / return to exit . . .
John-Gee commented 4 years ago

I'm curious, when it fails on Linux does it fail with both Mono and Wine or just one of those and the other works?

cgarz commented 2 years ago

I'm having pretty much the same issue converting to nkit format if it's set to remove partitions. Verify fail and checksum mismatch on Linux, but works fine on winblows.

It does work on wine, but uh, it takes over 20 times longer. ~128 sec on winblows or mono, ~2913 sec on wine 😳.

I notice that the crc is always 00000000 in the detail section with mono. It also never seems to realize that the partition to remove is already stored so it stores it again as an NKitExtracted one, ending in _N_00000000 instead of a proper crc.