READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

Ratchet and Clank Into the nexus Audio

Get help on any and all audio formats, or chip in and help others!
Post Reply
User avatar
Flamingspaz
n00b
Posts: 10
Joined: Sat Dec 28, 2013 12:39 pm
Location: Egypt
Has thanked: 3 times

Ratchet and Clank Into the nexus Audio

Post by Flamingspaz » Wed Jun 11, 2014 8:32 pm

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,
Last edited by Flamingspaz on Tue Jun 24, 2014 3:12 pm, edited 2 times in total.
Image
Image
Special thanks to shakotay2 and luxox18

User avatar
mgrandi
n00b
Posts: 15
Joined: Tue May 20, 2014 6:55 am
Been thanked: 3 times

Re: Ratchet and Clank Into the nexus Raw Audio

Post by mgrandi » Wed Jun 11, 2014 11:24 pm

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!

User avatar
Flamingspaz
n00b
Posts: 10
Joined: Sat Dec 28, 2013 12:39 pm
Location: Egypt
Has thanked: 3 times

Re: Ratchet and Clank Into the nexus Raw Audio

Post by Flamingspaz » Sun Jun 15, 2014 10:47 pm

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!
Last edited by Flamingspaz on Tue Jun 24, 2014 3:12 pm, edited 1 time in total.
Image
Image
Special thanks to shakotay2 and luxox18

User avatar
Flamingspaz
n00b
Posts: 10
Joined: Sat Dec 28, 2013 12:39 pm
Location: Egypt
Has thanked: 3 times

Re: Ratchet and Clank Into the nexus Raw Audio

Post by Flamingspaz » Sun Jun 22, 2014 1:27 am

Image
Bump, please help :/ ,as i am pretty low on scripting
Image
Image
Special thanks to shakotay2 and luxox18

User avatar
mgrandi
n00b
Posts: 15
Joined: Tue May 20, 2014 6:55 am
Been thanked: 3 times

Re: Ratchet and Clank Into the nexus Raw Audio

Post by mgrandi » Tue Jun 24, 2014 11:01 am

i didn't know that the filename was in the file, i'll write up something to do that for you

User avatar
mgrandi
n00b
Posts: 15
Joined: Tue May 20, 2014 6:55 am
Been thanked: 3 times

Re: Ratchet and Clank Into the nexus Raw Audio

Post by mgrandi » Tue Jun 24, 2014 11:39 am

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!

User avatar
mgrandi
n00b
Posts: 15
Joined: Tue May 20, 2014 6:55 am
Been thanked: 3 times

Re: Ratchet and Clank Into the nexus Audio

Post by mgrandi » Wed Jun 25, 2014 3:53 am

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.

Post Reply