ROM Hack Help - Extracting content from .dat files of the ROMFS and repacking them

  • Thread starter Thread starter SWRosetta
  • Start date Start date
  • Views Views 9,287
  • Replies Replies 25
I have extracted the music files from fs1.dat. They are NUS3BANK files , similar to Smash Bros 3DS , so i used this guide
to extract and inject , and it works.

https://gbatemp.net/threads/smash-3...-guide-textures-music-sfx-voice-clips.414548/

Also i noticed that while voices seem to be in fs0.dat ; the CSS voices are inside fs1.dat because in the hex editor there are these files inside fs1.dat
.eJwNyksOgyAQANC7sJeB4Td6jR7AECRgomBgump69_at30e8xyU2UZmfuQEc50x9HHJyH7FkWXovV47POWXqN0TmmOqdG0_QRMGtzqMxqDQ6awFXQ8F6p8hb7bwPCK80cm6zdt7_KyzKLKh3TRJJ6iCfVsT3B19GKDU.Fwh4HMWvhgANboiFSYt5j-gQIo0


If you put inside the new romfs a corrupt fs1.dat file from the na folder these voices will mute and some music will too , that's how im sure this are the ones from the CSS.

These voices however are not extracted with the NUS3BANK.py script , which makes me believe they are not in the NUS3BANK format.

I have tried several other tools and nothing works and i dont know what format these are if it's not NUS3BANK.

:sad::sad::sad:
 
Last edited by SWRosetta,
i didn't understand at the time , but i actually talked to the creator and he explained me how to do all of it.
 
Ok so i finally made considerable progress , here's what i got so far.

The distributions for sound files in this game are divided in the 3 files of the na folder.

fs0.dat and fs1.dat were arranged by Bandai Namco while fs2.dat was arranged by Camelot.

This is notable because:

• Character Select voices
• General Sound Effects
• Voices of the characters for Horse Racing, Soccer and Baseball
• Amiibo mode SFX

Are all in fs0.dat

• Sound Test Music
• Menu music
• Music used in the gameplay of Horse Racing, Soccer and Baseball

Are all in fs1.dat

All of this developed by Bandai Namco.

The other file which is fs2.dat has all the Camelot Stuff which are:

• Golf voices
• Golf SFX
• Tennis Voices
• Tennis SFX
• Music used in those modes (the samples in fs1.dat are only for the sound test regarding only the Camelor sports , which are these 2. If you replace fs1.dat music for Golf or Tennis you wont be changing the gameplay music , you will actually only change it for the sound test slot and you can only hear it there)

So , regarding the extraction of the files:

fs1.dat is the easiest. It can be extracted with NUS3BANK injector/extractor , like in Smash 3DS.

For fs0.dat , what i did to extract the files was the following:

I opened the file and used the ''Find'' function on the Hex Editor

lcGZo87.png

i typed NUS3 to find the Bank archives , if you do that you will find individual packs that contains sound files for a specific character.

To keep searching you need to press ''find again'' or F3 on the keyboard if there's more ''NUS3'' archives.

The one in the picture contains Rosalina's Baseball voices , as the codename represents BSB= Baseball , rosetta = Rosalina.

So i copied the whole thing beggining with the NUS3 on this file and put in a new file which i saved as a .dat file named RS.dat

XApiGSE.png

After this was done, i was able to use the nus3bank.py script to dump the IDSP files from RS.dat , i guess this worked because the script only works if it recognizes the header as NUS3BANK , which the original fs0.dat lacks.

I got all the files from this pack , working fine.

However , unlike fs1.dat , i cannot insert new sounds for fs0.dat

I have tried many solutions including the injector itself and nus3bank editor and it doesnt work at all.

Here's what i did:

I saved RS.dat in another file as RS.nus3bank so i can open it with nus3bank editor

it opens fine and i can replace sounds. Once i get the new nus3bank with my custom sound , i try to replace the one inside the fs0.dat by copy/pasting the data on the hex editor (i look again for the NUS3 of rosetta BSB inside fs0.dat and select all of that and replace it with the data from the RS.nus3ban)

But it doesn't work , the game never loads.

Also i noticed that injecting the new sound inside changes the file size , i don't know why

RfZ3r3N.png

RS.nus3bank is the original file that i took from fs0.dat

RS2.nus3bank is that file after i replaced a sound with nus3bank editor , for some reason it's smaller and the data inside it's different if you check it with the Hex editor.

fs2.dat is a file that i haven't got anything from yet , i don't know how to open it even less how to replace things from it.



Can anybody assist me on this? It's a bit confusing and i am running out of ideas on how to solve this.
 
Last edited by SWRosetta,
the custom idsp was the same size as the original inside the nus3bank

I don't see how that matters though , because the difference between the final file is huge for some reason , the new one is smaller as i posted.
 

Site & Scene News

New Hot Discussed User Submitted