Gamecube ISO/GCM Organizer Script

Discussion in 'Wii - Emulation and Homebrew' started by syntax53, Aug 12, 2017.

  1. syntax53
    OP

    syntax53 Member

    Newcomer
    28
    19
    Jul 11, 2017
    United States
    I couldn't find anything out there that would automatically organize and name a folder full of ISOs/GCMs like WiiBackup manager can do. So I wrote yet another script utilizing some other tools to get the job done. Requires DiscEx and the Gamecube ISO Tool (both included in the zip). If you don't run the batch alongside these folders, you'll need to edit it and specify the location of those tools.

    Download: https://www.dropbox.com/s/rzwums6n80959y4/Gamecube ISO Organizer.7z?dl=1

    It will take a folder full of IOS's and GCM's, nested however deep, and turn it into a single folder with "Title [GameID]\game.iso" (and \disc2.iso if applicable). Example:

    Before: before.png After: after.png

    It won't overwrite any existing ISO's so you can safely run it multiple times as you add new games (It does need to re-read any ISO/GCMs in your source folder to extract the GameID in order to determine if the game folder already exists though).

    Usage--
    powershell -executionpolicy bypass -f "Gamecube ISO Organizer.ps1" -scan "e:\PATH\TO\ISOS_AND_GCMS\TO_SCAN" -dest "e:\PATH\TO\DESTINATION"
     
    Last edited by syntax53, Aug 30, 2017
    prof955, crnppscls, Madalone and 3 others like this.
  2. migles

    migles Mei the sexiest bae

    Member
    GBAtemp Patron
    migles is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    7,074
    4,755
    Sep 19, 2013
    Saint Kitts and Nevis
    my dad works for nintendo.
    thanks!
     
  3. syntax53
    OP

    syntax53 Member

    Newcomer
    28
    19
    Jul 11, 2017
    United States
    Script updated: converted to powershell due to file naming issues with special characters. Also reverted discex from 0.9 to v0.8b due to disc 2 detection issues.
     
  4. AACThaKid

    AACThaKid Dark Wolf is watching

    Member
    123
    16
    Jul 2, 2012
    United States
    Manchester, Ohio
    oh man thank you so so very much for this!!!

    my old Wii HardDrive failed and i just got a new one, have been getting all my gamecude games back but man..... renaming all of them is a big prob.

    thank you so much for this awesome fix/tool!!



    IMPORTANT EDIT:
    For people on Windows 10/10 Pro... you may have an issue of the script not running, or get the error "ps1 cannot be loaded because the execution of scripts is disabled on this system". if you do please follow these instructions....

    1. Navigate to and Run powershell.exe (*RUN AS ADMIN*)
    2. Check the current setting for ExecutionPolicy:
    Code:
    Get-ExecutionPolicy -List
    3. Set the ExecutionPolicy for the level and scope you want, for example:
    Code:
    Set-ExecutionPolicy -Scope LocalMachine Unrestricted
    Set-ExecutionPolicy -Scope CurrentUser Unrestricted
    4. You will be asked if you are sure, select "Yes" by pressing "Y" and then hit enter

    Note that you may need to run PowerShell as administrator depending on the scope you are trying to set the policy for. You can always go back into this and change it back to what is was set to before.
     
    Last edited by AACThaKid, Aug 30, 2017 - Reason: Helpful info.
    syntax53 likes this.
  5. syntax53
    OP

    syntax53 Member

    Newcomer
    28
    19
    Jul 11, 2017
    United States
    You can also execute a script by adding the "-executionpolicy bypass" switch. e.g.--

    powershell -executionpolicy bypass -f "Gamecube ISO Organizer.ps1" -scan "e:\PATH\TO\ISOS_AND_GCMS\TO_SCAN" -dest "e:\PATH\TO\DESTINATION"

    I'll add it to the usage instructions. Thanks.
     
    AACThaKid likes this.
  6. AACThaKid

    AACThaKid Dark Wolf is watching

    Member
    123
    16
    Jul 2, 2012
    United States
    Manchester, Ohio
    glad i could help and point that out, do you want me to leave my edit up?
     
  7. Columbo2811

    Columbo2811 GBAtemp Maniac

    Member
    1,381
    830
    Jul 19, 2015
    This is something I've been waiting for but am I doing something wrong here. Tool starts working fine but it's not just renaming my folders it's copying then to a separate folder on my hard drive even though the path is the same as the scan folder. So I need double the space of my GameCube games folder which is 352gb with 254 games.
     
    AACThaKid likes this.
  8. syntax53
    OP

    syntax53 Member

    Newcomer
    28
    19
    Jul 11, 2017
    United States
    That's correct, I don't modify your source structure at all. The only thing I can suggest is you run it for half your files and then delete what it has processed already and then run it on the other half.
     
    AACThaKid likes this.
  9. Columbo2811

    Columbo2811 GBAtemp Maniac

    Member
    1,381
    830
    Jul 19, 2015
    Yeah reading through your 1st post I understood that now. The tool works great btw and is something I've been waiting for. I could just set destination from hard drive to copy to pc then copy back to hard drive after. My folders are all named by title id only using some old tool from years ago and it's obviously hard to tell what games are what with just there title id. :yay:
     
    AACThaKid likes this.
  10. prof955

    prof955 Newbie

    Newcomer
    1
    0
    Jul 19, 2017
    Turkey
    they did a lot thing with Nintendon't which is nintendo not doing it :)
    but it's like a friendzoned teenager, like an orphan, like a unwanted child.... it's just soo not finished not polished thing.

    i am really happy to see somebodys thinking/having hard time like me.
    why we need ID's???
    ok if we need it, why the emulator doesn't find it ID on the fly or when we first select game and leave file for fronted?
    am i asking too much? :)

    @syntax53 thank you for the script.
    isn't it posible to have exe for that?
    i don't know script stuff, could be a silly question.
     
  11. syntax53
    OP

    syntax53 Member

    Newcomer
    28
    19
    Jul 11, 2017
    United States
    Sorta kinda: https://gallery.technet.microsoft.com/PS2EXE-Convert-PowerShell-9e4e07f1
    ... but not really as you would still need to specify command line options so it's not really any different. Unless you are referring to creating a GUI version. That would take a decent amount of time for very little benefit.
     
    prof955 likes this.
  12. crnppscls

    crnppscls Newbie

    Newcomer
    1
    0
    Nov 26, 2017
    United Kingdom
    Thank you very much for this. Saved me a shed load of time