ROM Hack Voice clip format?

  • Thread starter Thread starter Necron
  • Start date Start date
  • Views Views 4,853
  • Replies Replies 22
rastsan said:
extracted sound files from the ds game or the psx game? and what with?
as much info as possible please...
what you used to pack, the format and converter, etc.? and does the psx version have a different sound track for the voices than the ds?
Important as you don't need to change something thats already there.
Help the programmer by searching the ds rom for references to the .cpk files that need changing listing those references in a spreadsheet with the offsets listed also. list also any file names that were found in the unpacked voice files, they're (there(?)) offsets (within that file, and within the rom prefereably) list as much info as you can - I want to help you with this as I am working on the same type of thing for a couple of other projects of mine also (they don't deal with .cpk, so its easier, way easier I just keep the same file size and reinsert)
I have extracted the ds files directly from the game. For the PSX ones, someone in other forum ripped directly from the game and put it in download (I needed win2k, and I have XP)

When I got the PSX files, they were in 22050 HZ and the DS ones had 16364 HZ. I used audacity to edit the psx files and change them to 16364 HZ.
I figured out by myself that the unnamed files were .AHX files, so searching a little I found a command line exe to convert them to wav, and then I found the CRI ADX/AHX enconder (very lucky with this one)

Yesterday, I converted the edited PSX wav files to ahx, and with crystaltile2 I replaced the hex values of one file with the new one. This works. But with this method, It will allow me only to put files that are shorter or the same size as the old ones, but won't allow me to put larger files and I need to put 5-6 voices that are larger than the original. That's why I need someone to tell me how to change the offsets so the game knows where the larger files begin and end.

QUOTEdoes the psx version have a different sound track for the voices than the ds?
Yes, they have different voice samples. I just wanted to change Arngrim and Freya voices, because I find that the ones put in this game are very lame compared with the PSX ones, and the new Lenneth voices, they just lack the spirit they had in the old version.
 
okay so back to the offset (pointer thing). so you have within the rom sound_battle_voice1.cpk in the rom it located at 031A4600 its size is 2271432 the size you need to insert is bigger but its located in the rom still around 031A4600 offset. you know from unpacking that .cpk that unpacked its this size and that within it these files equal so much so the .adx file is so many bytes and the other is so many bytes, well either way you can percantage it and use that percentage of where that file was packed. 1st file is at 0100, 2nd is at 0200 (not really just an example) unpacked - packed its smaller but you can figure out how much smaller and where those files begin with some math.
hopefully though the unpacker gave you some offsets for where the files were, packed so you may not need to bother with this but if not you still need to know.
why? so you can do a relative search for the numbers from the offsets add up the offsets 031A4600 plus whatever the new offset within the file is (you may not use the hole number and you may have to research big and little endian ordering 0100 changes 1000 or something like that, but the offset you have is 02000100 okay (agian just an example not really true but it serves)
the relative searcher tell you that 1000 is found in 13 places but only two of those places have reference to the file in question sound_battle_voice1.cpk or the files in the file in question okay. what are the chances that that is your pointer? prettty good. so you know that your new packed files have these new offsets and the old one had those offsets you need to note those offsets for the old ones- search for reference to them or to there filenames and change the numbers to match the new ones
if your lucky they will all be bunched together and very easy to edit if not they will be scattered everywhere or even worse- the ds my have added a little extra to where the offset is so instead of 1000 1002 (0120) 20 bytes difference but thats where it looking
why i told you to look up reference to any files listed in the packed file and to look for numbers near those references cause those may be the pointers you need to change. hopefully the larger file won't effect other offsets and thus the pointers for other files after it in the rom. but if its working with the old files technically missing then this shouldn't be a problem. confused, eh it took me a while to get this myself. and whole lot of other people too so its not a big deal.
wow for a fast reply I sure wrote a lot.... sigh
 
Thanks for the theory, but I think that I've found the relative data of the offsets (with the help of a friend)
We think that these offsets are stored in the Battle_PrivateFiles.cpk but inside it has like 890 files, many of them compressed. I will be looking inside this file if I can find something.
 

Site & Scene News

Popular threads in this forum