XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Thu Dec 13, 2018 10:14 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Ratchet and Clank Into the nexus Audio
PostPosted: Wed Jun 11, 2014 8:32 pm 
Offline
n00b
User avatar

Joined: Sat Dec 28, 2013 12:39 pm
Posts: 10
Location: Egypt
Has thanked: 3 times
Have thanks: 0 time

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,

You can make the ads go away by registering


_________________
Image
Image
Special thanks to shakotay2 and luxox18


Last edited by Flamingspaz on Tue Jun 24, 2014 3:12 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: Ratchet and Clank Into the nexus Raw Audio
PostPosted: Wed Jun 11, 2014 11:24 pm 
Offline
n00b
User avatar

Joined: Tue May 20, 2014 6:55 am
Posts: 15
Has thanked: 0 time
Have thanks: 3 times
https://gist.github.com/mgrandi/547d68114c0768edbbee

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

Code:
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:
python rename-file-to-parent-folder.py <FOLDER CONTAINING FILES> resident_sound.dat


and it should output for every file that was renamed:

Quote:
/Users/markgrandi/Temp/3a/3a2b289a/resident_sound.dat renamed to /Users/markgrandi/Temp/3a/3a2b289a/resident_sound_3a2b289a.dat


enjoy!


Top
 Profile  
 
 Post subject: Re: Ratchet and Clank Into the nexus Raw Audio
PostPosted: Sun Jun 15, 2014 10:47 pm 
Offline
n00b
User avatar

Joined: Sat Dec 28, 2013 12:39 pm
Posts: 10
Location: Egypt
Has thanked: 3 times
Have thanks: 0 time
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!

_________________
Image
Image
Special thanks to shakotay2 and luxox18


Last edited by Flamingspaz on Tue Jun 24, 2014 3:12 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Ratchet and Clank Into the nexus Raw Audio
PostPosted: Sun Jun 22, 2014 1:27 am 
Offline
n00b
User avatar

Joined: Sat Dec 28, 2013 12:39 pm
Posts: 10
Location: Egypt
Has thanked: 3 times
Have thanks: 0 time
Image
Bump, please help :/ ,as i am pretty low on scripting

_________________
Image
Image
Special thanks to shakotay2 and luxox18


Top
 Profile  
 
 Post subject: Re: Ratchet and Clank Into the nexus Raw Audio
PostPosted: Tue Jun 24, 2014 11:01 am 
Offline
n00b
User avatar

Joined: Tue May 20, 2014 6:55 am
Posts: 15
Has thanked: 0 time
Have thanks: 3 times
i didn't know that the filename was in the file, i'll write up something to do that for you


Top
 Profile  
 
 Post subject: Re: Ratchet and Clank Into the nexus Raw Audio
PostPosted: Tue Jun 24, 2014 11:39 am 
Offline
n00b
User avatar

Joined: Tue May 20, 2014 6:55 am
Posts: 15
Has thanked: 0 time
Have thanks: 3 times
try this:

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

Code:
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:
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:
/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!


Top
 Profile  
 
 Post subject: Re: Ratchet and Clank Into the nexus Audio
PostPosted: Wed Jun 25, 2014 3:53 am 
Offline
n00b
User avatar

Joined: Tue May 20, 2014 6:55 am
Posts: 15
Has thanked: 0 time
Have thanks: 3 times
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.



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group