Dolphin, the GameCube and Wii emulator - Forums

Full Version: Trying to repair a corrupted Smash Bros Melee Save File
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
This system of every comment being approved doesn't seem to help the confusion here.  I could no longer edit the first post and change the attachment so I put it in the latest one but it didn't show up so I click insert into post and got that which at least on my end isn't a hyperlink.

[attachment=19571]
You're lucky SSBM's save file format is somewhat understood. Using https://github.com/dansalvato/melee-gci-compiler and this script:

Code:
#!/usr/bin/env python3

import sys
from mgc.gci_tools import meleegci

def main(argv):
    gci = meleegci.melee_gamedata("01-GALE-SuperSmashBros0110290334_00.gci", packed=True)
    gci.unpack()
    gci.recompute_checksums()
    gci.pack()
    f = open("01-GALE_checksums-fixed.gci", "wb")
    f.write(gci.raw_bytes)
    f.close()
    return


if __name__ == "__main__":
    main(sys.argv)

I was able to fix the checksums for the data. This likely means that there is still some corrupted data in there, but the game will now accept it. I looked over it and nothing seems obviously wrong, but the tool did report incorrect checksums in six out of the ten blocks, so who knows. Hope this helps though!
Dude, you are my hero! All these years later and my save file has been restored. And even better on PC now where I know it's safe. The dates/stats are just as I remember them! I still can't believe this, thank you so much!!!!!!!!!!
Pages: 1 2