AxionDrak / GameCube-Backup-Manager

GameCube Backup Manager - a software to convert ISO files to Nintendont format.
MIT License
125 stars 12 forks source link

Bug: Certain nkit.iso formatted backups do not work with Gamecube Backup Manager #53

Closed jmynes closed 2 years ago

jmynes commented 2 years ago

Expected behavior: Any valid "good" dump of a game ISO, converted to NKit v1.4's .nkit.iso format, should be importable in Gamecube Backup Manager.

Description of issue: A rare few of my good dumps, once converted to .nkit.iso, do not import in Gamecube Backup Manager, and instead throw the error: The image is too small!


Files I've received this error message from, so far:


Dolphin's Properties > Verify tab does not report any unique errors with these files The below errors display on all of my 200+ .nkit.iso files, but only the above 3 give Gamecube Backup Manager trouble, so far:

"This disc image has an unusual size. This will likely make the emulated loading times longer. When using NetPlay or sending input recordings to other people, you will likely experience desyncs if anyone is using a good dump."

"This disc image is in the NKit format. It is not a good dump in its current form, but it might become a good dump if converted back. The CRC32 of this file might match the CRC32 of a good dump even though the files are not identical."


However, if I convert these files back to full-sized ISOs, Dolphin now shows the message This is a good dump., as expected.

The full-sized version of these ISOs can be read by Gamecube Backup Manager, without issue; The trimmed versions created by NKit v1.4 do not.

The interesting thing about this is that running the Install Game (Scrub) operation against these files results in game.iso files which are approximately the same size as the .nkit.iso files, anyway.

The resulting game.iso files in Dolphin report:

"This disc image has an unusual size. This will likely make the emulated loading times longer. You will likely be unable to share input recordings and use NetPlay with anyone who is using a good dump."

Brycey92 commented 2 years ago

I'm also getting the The image is too small! error with the following games:

jmynes commented 2 years ago

Is this issue considered closed since PR #59 was merged in? Is any further testing or messaging to the user required?

Brycey92 commented 2 years ago

I would defnitely not consider #59 a fix for this issue, it's just a temporary measure to let the program be used with nkit.iso files for now without throwing size errors. There are no checks to make sure the nkit.iso file is valid, beyond reading the header data. Even worse is that this fix does nothing for the installed files once they get named to game.iso or disc2.iso. The program will not recognize that they're nkit.iso files, and continues to throw the same image too small error.

Since the changes in #59 are still better than nothing, I made a PR for them despite all these shortcomings, but someone who understands nkit.iso format will need to add file format checks beyond file extension, and also add integrity checks.

sjohnson1021 commented 2 years ago

@Brycey92 @jmynes @laetemn Can we discuss further on #42 ?

Screenshot 2022-09-01 155142