GCMM 1.1

Discussion in 'Wii - Emulation and Homebrew' started by suloku, Aug 29, 2012.

Aug 29, 2012

GCMM 1.1 by suloku at 11:36 AM (5,933 Views / 3 Likes) 38 replies

  1. suloku
    OP

    Member suloku GBAtemp Advanced Fan

    Joined:
    Apr 28, 2008
    Messages:
    857
    Country:
    Spain
    http://code.google.com/p/gcmm/

    UPDATE (08 october 2012): GCMM 1.4 available. Icon animation! Restore all saves!
    UPDATE: GCMM 1.3 available. F-zero and Phantasy Star Online support! Lots of thanks to Ralf!
    Check out Raw Tools if you are interested in restoring a raw image to a different card: http://code.google.c.../wiki/Raw_Tools

    How to use Raw Mode
    Warning: Spoilers inside!


    [What's New 1.4 - october 08, 2012 - By suloku]
    * Animated icon alongside several (minor) graphical improvements
    * Ability to select SD Gecko slot in GameCube mode (just like Wii mode SD/USB prompt)
    * Moved "Backup All" to Backup Mode (press R/1 when in Backup Mode)
    * Added an analog "Restore All" in Restore Mode (overwriting is supported)
    * Shows filename when prompted to overwrite (also in "Restore All")
    * Savegame permisions are shown in a more explicit and user friendly way
    * Shows memory card freeblocks
    * Page number display in file selector
    * Left and right now scroll 5 file entries at once
    * Scrolling of file entries can be done holding the button (up/down/left/right)
    * Added security checks to Raw Restore Mode
    * Added some special characters to the font (needed for savegame comments)
    * Minor code tweaks

    Lots of thanks to bm123456 and themanuel for beta testing and support!

    [What's New 1.3 - september 14, 2012 - By suloku]

    * Shows card/image serial number in Raw Restore Mode
    * F-zero and Phantasy Star Online Ep I&II and Phantasy Star Online III savegames
    are patched uppon restoring so they will work on target card (by Ralf)

    [What's New 1.2d - september 08, 2012 - By suloku]

    * Previous version couldn't raw backup if backup folder didn't exist in sd/usb
    * Added (double)overwrite prompt when restoring a savefile to memory card (Nano/Excelsiior's idea)
    * Updated graphics so raw mode commands are less cryptic (wii mode design based on JoostinOnline's for GCMM+)
    * Use DejavuSans as font (much better readability) from GCMM+ by Nano/Excelsiior

    [What's New 1.2c - september 06, 2012 - By suloku]

    * Raw backups are now named with the number of blocks: insted of Backup_*timestamp*.raw now it is 0059b_*timestamp.raw, 2043b_*timestamp.raw...
    * Minor code changes (just for safety)

    [What's New 1.2b - september 06, 2012 - By suloku]

    * Solved a potential bug, 1.2 and 1.2a seemed unaffected by it.

    [What's New 1.2a - september 06, 2012 - By suloku]

    * 1.2 wasn't correctly freeing memory and eventually raw backup and restore would hang the app (a 2043 block card would make it hang at the second attempt to raw backup the card)

    [What's New 1.2 - september 06, 2012 - By suloku]

    * Added raw backup mode (in .raw format, compatible with dolphin and devolution)
    * Added RAW/GCP/MCI support for raw restore mode
    * Added format mode
    * Flash ID of inserted card and SD image are shown in Raw Restore Mode
    * Protection against writing a raw image to the wrong card (trough Flash ID checking)
    * Raw mode works with official and unofficial cards, as well as gci mode (thanks to tueidj for pointing me in the right path!)

    ______________________________________________________

    This is something I started long ago and I really wanted to have a fully working version, with no issues with official cards, proper restoring... (protected savegames like F-zero and PSO aside).

    I tested a USA savegame of Tales of Symphonia, downloaded from gamefaqs, then converted it to PAL and restored to my official 251block card (card was blank and I never played ToS before). Worked perfectly.
    Also tried a downloaded Luigi's Mansion savegame, also working on the same card.

    Great novelty: Banner and Icon showing!
    Also added usb device support and memory card slot selection for wii mode!
    "Unlimited" gci backups (via number suffix, so your precious savegame isn't overwriten. If you don't need a gci anymore, delete it trough computer!)

    note: 2 of my usb devices didn't work, but those same devices make the homebrew channel code dump, so if your device doesn't work, try another one.

    ps: just to clarify, this isn't based on GCMM+, I won't say I dind't look at its source, but I didn't copy any of it. I really apreciate Excelsiior for his work, but as I stated, this is something I started long ago and I felt I had to do it myself.

    Changelog:
    Warning: Spoilers inside!
     
    3 people like this.


  2. Dogway

    Member Dogway GBAtemp Regular

    Joined:
    Aug 16, 2010
    Messages:
    214
    Country:
    Spain
    Thank you!! A year ago I bought F-Zero game and official memcard just to overcome the game saves hazard, and now I realize that an unofficial card would have been way better. Anyways, I will test your tool, MCBACKUP wasn't working at all.
     
  3. suloku
    OP

    Member suloku GBAtemp Advanced Fan

    Joined:
    Apr 28, 2008
    Messages:
    857
    Country:
    Spain
    For F-zero you still need an unofficial card, see ctr-gcs 0.3a thread.

    There's also AR cheat codes that enable F-zero savegame to be copied and used in a different memory card
     
  4. Dogway

    Member Dogway GBAtemp Regular

    Joined:
    Aug 16, 2010
    Messages:
    214
    Country:
    Spain
    Yes, I was reading there, I just got to the conclusion that you can take out the saves, but you can't restore them back.

    I think I misread your first line, this one can manage everything "except" protected savegames.

    Sorry for that, but still valuable so I will use!.
     
  5. OriginalHamster

    Member OriginalHamster UStealthy

    Joined:
    Nov 2, 2008
    Messages:
    3,260
    Country:
    Chile
    thanks it worked fine in my official 251 mc :)
     
  6. suloku
    OP

    Member suloku GBAtemp Advanced Fan

    Joined:
    Apr 28, 2008
    Messages:
    857
    Country:
    Spain
    No, you can restore to protected savegames either by:
    - Unofficial memory card (either by gci+header or by writing a raw image) --> this is only handled by ctr-gcs 0.3a at the moment, I may add raw/header functions in the future (with proper checks to prevent restoring wrong headers to official memory card)
    - The SAME card (official or not) the savegame was backuped from IF the card hasn't been formatted since.

    Note that even if you format a memory card the .hdr file extracted by ctr-gcs will work in the same card EVEN if it is an official one, so actually you can backup your, say, f-zero .gci and memcard's .hdr from official card, format the card, and that f-zero savegame will still work on that card as long as the header is restored too.

    Good to know!
     
  7. Augusta

    Member Augusta GBAtemp Regular

    Joined:
    Aug 14, 2011
    Messages:
    120
    Country:
    Canada
    EDIT: Would also like to mention I was able to backup my own save files as well flawlessly.
    I couldn't do any of this on the previous version because my MC's were official.

    Awesome work Suloku!!
     
  8. suloku
    OP

    Member suloku GBAtemp Advanced Fan

    Joined:
    Apr 28, 2008
    Messages:
    857
    Country:
    Spain
    It's good to see that restoring properly works for more people and different games!
     
  9. bm123456

    Member bm123456 GBAtemp Advanced Fan

    Joined:
    Jun 7, 2011
    Messages:
    565
    Location:
    Houston
    Country:
    United States
    Needing any Beta testers for your memory apps, I'm game just send me a Pm or post . :) thank you for looking into these GC memory mangers again.
     
  10. tueidj

    Member tueidj I R Expert

    Joined:
    Jan 8, 2009
    Messages:
    2,569
    Country:
    lol yeah "awesome" work fixing official memory cards :P
     
  11. suloku
    OP

    Member suloku GBAtemp Advanced Fan

    Joined:
    Apr 28, 2008
    Messages:
    857
    Country:
    Spain
    There must be a bug somewhere, I can't find the reason why restoring to unofficial cards works while doing so to official cards corrupts them (actually, data isn't writen properly, the only thing I got to write properly are 00 bytes, and I think it works because the sector is erased before writing...)

    I'm about to give up on this, too much time invested and yet again I don't have the knowledge needed to fix it. I hope one day someone looks into it and gets it working.

    At least, thanks to tueidj we can restore gci files to official cards!
     
  12. tueidj

    Member tueidj I R Expert

    Joined:
    Jan 8, 2009
    Messages:
    2,569
    Country:
    When a sector is erased it should become full of 0xFFs, then the writing process actually "removes" the bits that aren't needed. There shouldn't be any differences for the writing process between official and unofficial cards though.
     
  13. suloku
    OP

    Member suloku GBAtemp Advanced Fan

    Joined:
    Apr 28, 2008
    Messages:
    857
    Country:
    Spain
    EDIT: OK, now that was very useful information. I didn't know that the byte needs to be set to 0xFF in order to properly write to the card. I saw that libogc erased the sector before writing, but I didn't think it was a requirement before writing.

    I've implemented __erasesector and official cards are properly restored now, or at least my tests confirm it. I think I can finally say that GCMM is complete, or as complete as I wanted it to be (still missing hotswapping, but hey, just reboot the app...)

    Thank you very much tueidj!

    ps: maybe unofficial cards erase the sector before writing automagically and that's why they worked...
     
  14. bm123456

    Member bm123456 GBAtemp Advanced Fan

    Joined:
    Jun 7, 2011
    Messages:
    565
    Location:
    Houston
    Country:
    United States
    Thank you for the update!!! :)
     
  15. suloku
    OP

    Member suloku GBAtemp Advanced Fan

    Joined:
    Apr 28, 2008
    Messages:
    857
    Country:
    Spain
    Updated to 1.2a, there was a "bug" carried over from ctr-gcs.

    EDIT: updated to 1.2b, I forgot to change something in a function, it shouldn't affect the app in any way, but let's be safe...
     
    2 people like this.
  16. OriginalHamster

    Member OriginalHamster UStealthy

    Joined:
    Nov 2, 2008
    Messages:
    3,260
    Country:
    Chile
    how can you make a raw backup with this app? I mean the app create a memorycardA.raw file, not .gci
     
  17. suloku
    OP

    Member suloku GBAtemp Advanced Fan

    Joined:
    Apr 28, 2008
    Messages:
    857
    Country:
    Spain
    The graphical update was a bit quick, you may notice the "L/B+ Raw Mode" on top, that means you must keep pressed the L trigger or B button and then press the backup/restore/delete button. The combos are in the readme as well, anyway:

    For wii:
    Hold B button then:

    Raw backup: press minus
    Raw restore: press plus
    Format card: press 2


    For gamecube:
    Hold L trigger then:

    Raw backup: press Y
    Raw restore: press X
    Format card: press Z

    It won't create "MemoryCardX.raw", but rather something like
    The restore mode has a file selector, which will indicate the size of the image (in blocks), its flash id, and the same data for the memory card.
     
    1 person likes this.
  18. OriginalHamster

    Member OriginalHamster UStealthy

    Joined:
    Nov 2, 2008
    Messages:
    3,260
    Country:
    Chile
    Gotcha! XD
    I only saw the B+ for Wiimote, so I though it only could restore a .raw file into the MC. Thanks ;)
     
  19. suloku
    OP

    Member suloku GBAtemp Advanced Fan

    Joined:
    Apr 28, 2008
    Messages:
    857
    Country:
    Spain
    I've updated it to 1.2c, I wasn't going to post it (only to svn) but I decided to.

    I've changed the names of the raw backup, insted of backup it will write the number of blocks (just thought it is a more useful information than just "Backup".
    Also there's a message when reading the file, I noticed that in gamecube mode when reading a 16 megabyte raw image it seems like the program crashed (because it's slow).
    And some code-wise changes.

    Basically, 1.2c works just as well as 1.2b, but 1.2c is fancier ^^

    (This is the last update, I promise!)

    EDIT: uh... I didn't keep my promise, 1.2d is available!

    Just some fancy things



    [What's New 1.2d - september 08, 2012 - By suloku]

    * Previous version couldn't raw backup if backup folder didn't exist in sd/usb
    * Added (double)overwrite prompt when restoring a savefile to memory card (Nano/Excelsiior's idea)
    * Updated graphics so raw mode commands are less cryptic (wii mode design based on JoostinOnline's for GCMM+)
    * Use DejavuSans as font (much better readability) from GCMM+ by Nano/Excelsiior


    Thank Excelsiior and JoostinOnline for this one ^^, it really does look way better with the new font
     
    1 person likes this.
  20. bm123456

    Member bm123456 GBAtemp Advanced Fan

    Joined:
    Jun 7, 2011
    Messages:
    565
    Location:
    Houston
    Country:
    United States
    Nice update :) GCMM 1.2d works great !! thank you . this is my preferred GC memory manager.
     

Share This Page