Results 1 to 7 of 7

Thread: A script needed to rename *.wbfs game file to GAMETITLE [GAMEID] instead of GAMEID

  1. #1
    New Member
    Join Date
    Feb 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    A script needed to rename *.wbfs game file to GAMETITLE [GAMEID] instead of GAMEID

    I used a script from the CFG usb loader package that renamed wbfs game folders containing GAMEID.wbfs game files from GAMEID_GAMETITLE to GAMETITLE [GAMEID] based on titles.txt file put in the same directory. I need the same script but to rename *.wbfs game file to GAMETITLE [GAMEID].wbfs instead of GAMEID.wbfs with no folder just the files I've attached the script Please help
    rename game folders-title_[id].zip
    Last edited by bolaghobrial; 07-17-2010 at 01:18 AM.

  2. #2
    New Member
    Join Date
    Mar 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you are still looking for a solution, here's one written using Python. Tested using Windows, probably will work under Linux. The file 'titles.txt' should be in the same folder as 'renameWiiNames.py'.

    To get the latest version of titles.txt, get it from: http://wiitdb.com/titles.txt

    ... stupid BBS attachments feature is busted... here's the external link

  3. #3
    New Member Chubbs's Avatar
    Join Date
    Sep 2008
    Posts
    108
    Thanks
    5
    Thanked 45 Times in 17 Posts
    Wii Backup Manager has these functions built-in.. under settings.


  4. #4
    New Member
    Join Date
    Feb 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Many thanks to both goldenfly and Chubbs for their help. Wii Backup Manager worked fine for me. I did not know that it has all those wonderful options. I used Game Backup Manager before.

    Dear Golddenfly
    I tried your script on Windows 7 Ultimate x64 after downloading and installing Python 3.2 x64 version. I tried the script on Castlevania Judgment [RDGEA4] after converting the ISO file to RDGEA4.wbfs and putting both the script and the titles.txt file beside the wbfs file but it did not rename the file as it should do. I tried to excute the script again from CMD and found the following error:

    File "C:\CASTLE~1\renameWiiNames.py", line 74
    print '\r\nTHE FOLLOWING FILES HAVE BEEN MOVED:'
    ^
    SyntaxError: invalid syntax

    Please advice what is wrong or missing

  5. #5
    New Member
    Join Date
    Apr 2010
    Posts
    193
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Golddenfly's script worked great here on Xp 32bit . Thanks

  6. #6
    New Member
    Join Date
    Mar 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    @ bolaghobrial: Hmm it might be because the syntax for "print" has been changed from Python 2.x to 3.x:

    What?s New In Python 3.0 — Python v3.0.1 documentation

    To fix, change occurrences of "print 'XYZ'" to "print('XYZ')". Or, just comment out line 103:

    # DisplayNotice(notice_good, notice_bad) # new line 103 has '#' sign in front

    Even if the script crashed there, by the time the code reached line 74, files that need to be moved will have already been moved. I recommend you try the script again just to be sure. Also, I am using Windows 7 64-bit too, so the OS shouldn't be the problem.

  7. #7
    New Member
    Join Date
    Feb 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by goldenfly View Post
    @ bolaghobrial: Hmm it might be because the syntax for "print" has been changed from Python 2.x to 3.x:

    What?s New In Python 3.0 — Python v3.0.1 documentation

    To fix, change occurrences of "print 'XYZ'" to "print('XYZ')". Or, just comment out line 103:

    # DisplayNotice(notice_good, notice_bad) # new line 103 has '#' sign in front

    Even if the script crashed there, by the time the code reached line 74, files that need to be moved will have already been moved. I recommend you try the script again just to be sure. Also, I am using Windows 7 64-bit too, so the OS shouldn't be the problem.
    Dear goldenfly thanks very much I tried commenting out line 103 but it did not solve the problem. I tried uninstalling Python 3.2 and installing last Python v2 which is v2.7.2 and worked fine. Thanks again

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •