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 02:18 AM.
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
Wii Backup Manager has these functions built-in.. under settings.
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.
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
Golddenfly's script worked great here on Xp 32bit . Thanks
@ 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
Originally Posted by goldenfly