Page 1 of 1

Ratchet and Clank Into the nexus Audio

Posted: Wed Jun 11, 2014 8:32 pm
by Flamingspaz
Hello,
ive been trying to rip audio from Ratchet and Clank Into the nexus lately..
but the problem is most of the files are with the same name and its kinda frustrating viewing all the files and searching for the file name in the hex editor, to know the file name or what it is used for.. :(
So my question is...
Is there is a script that can Rename all files to the Hex name, (View samples to understand).
Please help [roll]
Thanks,

Re: Ratchet and Clank Into the nexus Raw Audio

Posted: Wed Jun 11, 2014 11:24 pm
by mgrandi
https://gist.github.com/mgrandi/547d68114c0768edbbee

you will need python 3: https://www.python.org/

Code: Select all

Corvidae:myscripts markgrandi$ python3 rename-file-to-parent-folder.py --help
usage: rename-file-to-parent-folder.py [-h] [--verbose]
                                       inputFolder fileToRenameRegex

renames files to include the parent folder's name

positional arguments:
  inputFolder        the folder that contains the files to rename
  fileToRenameRegex  the regex to use to figure out what files to rename, if
                     unsure just type the entire name (like
                     'resident_sound.dat')

optional arguments:
  -h, --help         show this help message and exit
  --verbose          use this to increase verbosity
so basically, just open up cmd.exe or whatever and run

Code: Select all

python rename-file-to-parent-folder.py <FOLDER CONTAINING FILES> resident_sound.dat
and it should output for every file that was renamed:
/Users/markgrandi/Temp/3a/3a2b289a/resident_sound.dat renamed to /Users/markgrandi/Temp/3a/3a2b289a/resident_sound_3a2b289a.dat
enjoy!

Re: Ratchet and Clank Into the nexus Raw Audio

Posted: Sun Jun 15, 2014 10:47 pm
by Flamingspaz
Hello ,
Thanks for your Reply .. but you still didn't get my point
What I meant was :
If you open file "resident_sound.dat" in a hex editor
you can find at 0x100 to 0x118 the file name
so what I'm seeking is something that can actually rename resident_sound.dat to prop_museum_doors_open_dj
or whatever name is in the file ,
thank you and Please help!

Re: Ratchet and Clank Into the nexus Raw Audio

Posted: Sun Jun 22, 2014 1:27 am
by Flamingspaz
Image
Bump, please help :/ ,as i am pretty low on scripting

Re: Ratchet and Clank Into the nexus Raw Audio

Posted: Tue Jun 24, 2014 11:01 am
by mgrandi
i didn't know that the filename was in the file, i'll write up something to do that for you

Re: Ratchet and Clank Into the nexus Raw Audio

Posted: Tue Jun 24, 2014 11:39 am
by mgrandi
try this:

https://gist.github.com/mgrandi/e784f2365ac922b0e248

Code: Select all

Corvidae:myscripts markgrandi$ python3 ratchet_and_clank_nexus_rename_soundfiles.py --help
usage: ratchet_and_clank_nexus_rename_soundfiles.py [-h] [--verbose]
                                                    inputFolder outputFolder
                                                    fileToRenameRegex

script to name audio files from 'ratchet and clank into the nexus' to human
readable names

positional arguments:
  inputFolder        the folder that contains the files to rename
  outputFolder       Where to output the resulting files
  fileToRenameRegex  the regex to use to figure out what files to rename, if
                     unsure just type the entire name (like
                     'resident_sound.dat')

optional arguments:
  -h, --help         show this help message and exit
  --verbose          use this to increase verbosity

Copyright Jun 23, 2014 Mark Grandi
You need Python 3

so basically, just open up cmd.exe or whatever and run:

Code: Select all

python3 ratchet_and_clank_nexus_rename_soundfiles.py /Users/markgrandi/Temp/3a /Users/markgrandi/Temp/3atest "resident_sound.dat"
and it outputs stuff like this for every file that was renamed:

Code: Select all

/Users/markgrandi/Temp/3a/3a03cbb4/resident_sound.dat renamed to /Users/markgrandi/Temp/3atest/cha_clank_voc_tossspecialb_mdc.dat
/Users/markgrandi/Temp/3a/3a1c603a/resident_sound.dat renamed to /Users/markgrandi/Temp/3atest/prop_museum_doors_open_dj.dat
/Users/markgrandi/Temp/3a/3a2b289a/resident_sound.dat renamed to /Users/markgrandi/Temp/3atest/cha_thugbrawler_gethit_large.dat
done!

Re: Ratchet and Clank Into the nexus Audio

Posted: Wed Jun 25, 2014 3:53 am
by mgrandi
For people who can't deal with command line programs, here is a GUI for it:
https://dl.dropboxusercontent.com/u/962 ... dfiles.zip

just browse for a input directory, browse for an output directory , you shouldn't have to touch the filename mask, and then just hit go.