GCMM+ 1.0rev4

Discussion in 'Wii - Emulation and Homebrew' started by Excelsiior, Aug 20, 2012.

Aug 20, 2012

GCMM+ 1.0rev4 by Excelsiior at 11:41 AM (3,626 Views / 2 Likes) 30 replies

  1. Excelsiior
    OP

    Member Excelsiior GBAtemp Regular

    Joined:
    Sep 13, 2009
    Messages:
    258
    Country:
    Germany
    Some may already have noticed that some guy from hacksden provided some patches to GCMM more than a year ago.

    I took all those patches, along with my own changes and made 'GCMM+'.

    About:

    GCMM+ 1.0rev04
    http://www.nanolx.org
    (Under GPL License)

    GameCube Memorycard Manager+ is an aplication to backup Nintendo
    GameCube savegames.

    GCMM is a project started by dsbomb and justb, which is based on
    Askot's modification to add SD support to the mcbackup libogc example.

    suloku has updated the code to newest libraries to port it to the Wii
    system, and what I find more important: restoring savegames now works
    properly. GCMM+ is a fork of GCMM featuring all modifications done to
    GCMM in various places, plus several minor new stuff.

    FEATURES:
    * Backups and restores savegames into GCI format
    * Deletes savegames from memory card
    * Wiimote and GameCube controller support
    * Power button support
    * Front SD (wii) and SDGecko (gc) support
    * A (somewhat) nice UI
    * Open Source!

    TODO:
    * Add icon and banner display for the savegames
    * Add raw image read and write support
    * Add hotswapping
    * Better code
    * Support storing on USB
    * Support EXT-FS

    LIMITATIONS:

    Protected Savegames:
    Protected gamesaves will only be able to be restored on
    the card it was backuped from. Even though, some protected
    savegames will still not work as some save protection rely
    in the situation of the gamesave on the memory card.

    Protected savegames rely on the serial ID that is given to
    the memory card when it is formated. That's why they won't
    work in other cards and why they won't work on the same card
    if that has been formatted.

    Restoring a raw image to a different card has still to be
    tested to see if that will permit using a protected gamesave
    on another memory card.

    Other savegame formats:
    There are computer programs that can transform other savegame
    formats into GCI. GCP format is a raw savegame image of the
    memory card. At the moment creating a raw image is possible
    thanks to Masken, but there are still problems when restoring.

    CREDITS:
    *SoftDev for his contributions to the GC/WII scene
    *Costis for helping with some doubts, he's allways there
    *Masken for his code on raw data reading/writing
    *Justb & dsbomb for originally creating gcmm
    *CowTRobo & Samsom for very useful old sources
    *Tantric for pointing out that official memory cards won't work
    on wii mode, which encouraged me to continue gcmm as all my previous
    efforts where in vane due to using an official card for the testing.

    ChangeLog:

    rev04 (2012-08-20)
    • fix compilation with latest libOGC
    • fixup Makefiles regarding portlibs
    • if it fails to find some freetype headers, try:
    • ln -sf ${DEVKITPRO}/portlibs/ppc/include/freetype2/freetype ${DEVKITPRO}/portlibs/ppc/include/
    • or whatever the equivalent for your OS is
    • add zlib to list of libraries to link against
    • killed whitespace / convert line-endings to Unix format
    • revised README / added icon.png
    • new images by JoostinOnline
    • use DejavuSans as font (much better readability)
    • fixed several strings
    • fixed some layout stuff
    • no longer need to accept each cancelled action
    • no longer prepend 001...009...etc to backup name
    • add ability to overwrite a savegame on MC
    • compiled with latest libOGC (contains patch from tueidj that should give support for official memory cards)
    Download:

    GIT Repo: http://git.tuxfamily...us/gcmmplus.git
    HBF Tarball: http://www.nanolx.or...v04-hbf.tar.bz2
    Source Tarball: http://www.nanolx.or...+-rev04.tar.bz2
     
    2 people like this.


  2. Cyan

    Global Moderator Cyan GBATemp's lurking knight

    Joined:
    Oct 27, 2002
    Messages:
    16,403
    Location:
    Engine room, learning
    Country:
    France
    Could you add folder browsing?
    It says "Couldn't open fat:/gcsaves/2012 08 20"
    I store my saves in multiple folders named after the backup date.

    That would be a great addition :)


    I tested backup of my official 59 block, it worked fine.
    I didn't test restore yet. Restore doesn't work great yet. we will debug it together.

    Thank you for the update.
    no more MCBackup for me :P
     
  3. Excelsiior
    OP

    Member Excelsiior GBAtemp Regular

    Joined:
    Sep 13, 2009
    Messages:
    258
    Country:
    Germany
    I may add this on the list for next revision.

    Sounds good, if backup worked, now lets hope restore works, too. Sadly I don't have an official card, nor one of those problematic games (all games I have restored just perfect). So it's a bit hard for me to test.
     
  4. tueidj

    Member tueidj I R Expert

    Joined:
    Jan 8, 2009
    Messages:
    2,569
    Country:
    libogc is still broken until somebody fixes the sramex struct and flash id checksum stuff.
     
  5. Excelsiior
    OP

    Member Excelsiior GBAtemp Regular

    Joined:
    Sep 13, 2009
    Messages:
    258
    Country:
    Germany
    I read this on your post in devo thread.

    I was about to do this, but during the tests I stumpled upon another issue, so I skept it for rev04. Though I'm not even comparable with you, when it comes to GC stuff, so I doubt it will be anytime soon.

    Either way libOGC is 3-clause-BSD-licensed, so one could fork it...
     
  6. tueidj

    Member tueidj I R Expert

    Joined:
    Jan 8, 2009
    Messages:
    2,569
    Country:
    Slapping a BSD license on a bunch of "borrowed" SDK code doesn't make it BSD licensed.
     
  7. Excelsiior
    OP

    Member Excelsiior GBAtemp Regular

    Joined:
    Sep 13, 2009
    Messages:
    258
    Country:
    Germany
    lol. I didn't know they just did it like that... still one could provide a patch-set atleast.
     
  8. suloku

    Member suloku GBAtemp Advanced Fan

    Joined:
    Apr 28, 2008
    Messages:
    857
    Country:
    Spain
    Great work, thank you for updating GCMM!

    EDIT: can you include gamecube dol in next builds? Some people could still make use of it, even though softdev's app for gamecube is probably better implemented (and has raw backup/restore suport, it even checks the flashID to prevent restoring to a different card)

    BTW, I tried restoring a GCI to an official memory card, it worked perfectly. Now I'm wondering why raw image restoring in ctr-gcs doens't work :S
    EDIT2: just tried restoring gci with ctr-gcs 0.3a, it worked fine apparently.

    I'll try if the game correctly loads the savegame tomorrow, but if the savefile is correctly written raw image writing should work, even with current libogc...
     
  9. OriginalHamster

    Member OriginalHamster UStealthy

    Joined:
    Nov 2, 2008
    Messages:
    3,258
    Country:
    Chile
    Thanks for updating this, nice GUI BTW ;)
     
  10. JoostinOnline

    Member JoostinOnline Certified Crash Test Dummy

    Joined:
    Apr 2, 2011
    Messages:
    10,834
    Location:
    The Twilight Zone
    Country:
    United States
    Ditto. ;)
     
  11. Excelsiior
    OP

    Member Excelsiior GBAtemp Regular

    Joined:
    Sep 13, 2009
    Messages:
    258
    Country:
    Germany
    beta testers still have issues with several games when restoring on same official card. eg: luigis mansion gets restored, but is not playable then...

    gcmm+ rev05 beta (no changes yet, except compiled with patched libOGC (tueidj changes in card.c) - needs more love, though):
    Wii: http://downloads.nan...g/gcmm+-wii.dol
    GC: http://downloads.nan...rg/gcmm+-gc.dol

    Backup on official card flawless, restore sometimes(!) works, but not always playable. Gives several errors -6 and -9 on official card, need to fix that.
     
    1 person likes this.
  12. bm123456

    Member bm123456 GBAtemp Advanced Fan

    Joined:
    Jun 7, 2011
    Messages:
    565
    Location:
    Houston
    Country:
    United States
    thanks for the update on the progress, keep up the good work.:)
     
  13. suloku

    Member suloku GBAtemp Advanced Fan

    Joined:
    Apr 28, 2008
    Messages:
    857
    Country:
    Spain
    Does it happen to all testers?
    PAL or USA savegame? (I only have the PAL game for testing)
     
  14. JoostinOnline

    Member JoostinOnline Certified Crash Test Dummy

    Joined:
    Apr 2, 2011
    Messages:
    10,834
    Location:
    The Twilight Zone
    Country:
    United States
    Did you update the background?
     
  15. Cyan

    Global Moderator Cyan GBATemp's lurking knight

    Joined:
    Oct 27, 2002
    Messages:
    16,403
    Location:
    Engine room, learning
    Country:
    France
    He didn't change anything yet, that's the same version he posted in PM.
     
    1 person likes this.
  16. suloku

    Member suloku GBAtemp Advanced Fan

    Joined:
    Apr 28, 2008
    Messages:
    857
    Country:
    Spain
    By the way, why did you remove the separated wii/gc background? I don't see any sense in showing a wii remote in gamecube mode, it's not like you had to manually change anything to use another background when compiling.
     
  17. JoostinOnline

    Member JoostinOnline Certified Crash Test Dummy

    Joined:
    Apr 2, 2011
    Messages:
    10,834
    Location:
    The Twilight Zone
    Country:
    United States
    What? I'm responsible for the gfx, so if something is messed up, I'm the one to blame. It's still based on the original background.
    Old:
    Warning: Spoilers inside!
    New:
    Warning: Spoilers inside!
     
  18. Cyan

    Global Moderator Cyan GBATemp's lurking knight

    Joined:
    Oct 27, 2002
    Messages:
    16,403
    Location:
    Engine room, learning
    Country:
    France
    I think he is talking about "hiding Wii remote" when using the homebrew in gamecube mode.
    But the homebrew is no more a gamecube homebrew, it's now a Wii homebrew.

    As a Wii homebrew you can use either (and at the same time) the Wiimote or the Gamecube controller.
    This background is perfectly fine.

    @[member='JoostinOnline']:
    And I prefer the new one.

    I have another idea in mind, I'll try to make a mockup.

    Edit:

    Here is my idea.
    Is a Very bad looking mockup, but it's just a mockup :P
    not a final version.
    Warning: Spoilers inside!
    Explanation:
    • Cursor: Move the cursor freely UP/Down = change selected item, LEFT/RIGHT = change the highligt to the other column; and change the mode (at the left it's in backup mode, at the right it's in restore mode).

    • Press A : Transfer
    if on the left, it's in backup mode, it will transfer to the SD card
    if the highlight in is on right, it's in restore mode, it will transfer to the Memory card (have to decide how to choose MC A or MC B), maybe asking the user at the bottom, or highlight the Card icon at the left, and display a message at the bottom "Press UP or Down to select the destination memory card and press A to transfer"

    • Middle arrow:
    Change the arrow direction depending on the highlighted pane side.

    • Left pane:
    Both memory card listed at the same time, auto-re-loaded after each command.
    If too big to fit the screen, show only the fitting game names, and add an icon at the top/bottom to show you can "scroll past the screen".

    • Right pane:
    the SD card. Display the current folder. and same as the left side if too many item to list, display top/bottom arrow.

    • Bottom part:
    Same as current version. Display messages to the user.


    • Missing: Savegame info.
    Maybe add a button to display the currently selected savegame info. (Y or 1) for example
     
    1 person likes this.
  19. Excelsiior
    OP

    Member Excelsiior GBAtemp Regular

    Joined:
    Sep 13, 2009
    Messages:
    258
    Country:
    Germany
    suloko is right, the background image is the same now for both GC and Wii. GCMM+ rev05 is (again) fully operatable on GC (there was a bug introduced in rev03). But I didn't care about a separated background image for GC. Maybe I'll add that back.

    @[member='Cyan']: looks interesting... though... I'd maybe split the right pane vertically, top: SD, bottom: save info...

    Either way, I'm currently busy with other stuff (besides GCMM+), so don't expect that to happen soon. FYI: I just bought an official MC and a SD Gecko, so that I can test on my own and also in GC Mode.

    Actually there are two ways:

    a] hack around libOGC (I believe the only person with enough knowledge right now is tueidj to do this)
    b] modify WiiGator's cMIOS to access SD in GC-Mode, just as DML does (source fully available)

    Maybe option b] is simpler? With a modified/configurable homebrew-loader it should be possible to use cMIOS from a different slot (say: 252) so that it does not interefere with DM/DML. I made a quick test and except missing SD-Card GCMM+ works with WiiGators cMIOS.
     
    1 person likes this.
  20. Cyan

    Global Moderator Cyan GBATemp's lurking knight

    Joined:
    Oct 27, 2002
    Messages:
    16,403
    Location:
    Engine room, learning
    Country:
    France
    the modified MIOS is already done with Wii Gamecube Homebrew Launcher (but it's a lot of step to use).
    It's a modified MIOS, when a gamecube mode is initiated, it's loading the dol instead of the game disc.


    To be able to use a different MIOS Slot, you need to patch BC or Boot2 (which is the one loading the MIOS).
     

Share This Page