ROM Hack any help with .BAR files?

PennyThePeanut

New Member
OP
Newbie
Joined
Mar 21, 2017
Messages
4
Trophies
0
Age
25
XP
52
Country
United States
I have extracted the files from Asphalt 3D, and I am wondering if there are any ways to open, or extract the files from the BAR files, like sounds.bar. Anyone have any idea?
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,321
Country
United Kingdom
Did you end up in the wrong section? Asphalt 3d is a 3ds game as far as I can see.

Still I tangled with it briefly an audio format using the extension .bar a while back, different game with different dev but both published by Ubisoft so might be worth looking at. Said format was a pretty simple wrapper for a wave file of a sort anyway.
http://gbatemp.net/threads/the-various-audio-formats-of-the-ds.305167/
 

PennyThePeanut

New Member
OP
Newbie
Joined
Mar 21, 2017
Messages
4
Trophies
0
Age
25
XP
52
Country
United States
Yes, I did end up in the wrong section. I meant to post about me placing it wrong, but I guess I didn't post. Sorry about that XD and alright! thank you for the lead!
But what would I use to extract it in WAV? Is there a particular program I should use or head for?

I am very new to stuff, I know :P
 
Last edited by PennyThePeanut,

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,321
Country
United Kingdom
In my case I just searched for RIFF in hex editor (it is the thing that starts the file http://soundfile.sapp.org/doc/WaveFormat/ ) and copied everything including that until the next time RIFF was mentioned. That is then a standard wave file that whatever you want to use to play it will hopefully sort.

That said file extensions are not sacred things and can be altered or entirely defined anew by anybody. I would have to look at the game, or the file, to see what goes.
 

PennyThePeanut

New Member
OP
Newbie
Joined
Mar 21, 2017
Messages
4
Trophies
0
Age
25
XP
52
Country
United States
I have done that, and it seems to have extracted fine! Good quality straight from the .bar! Thank you so much FAST!

No one had an HD quality of the soundtrack from this game, so I wanted to get it and upload it somewhere myself. And I wanted to jam out myself. Endless thank yous from me :D

Now I just gotta go through every single song. Kill me XD
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,321
Country
United Kingdom
Assuming you have not done it in the subsequent few hours you can do a more automated approach.

If you don't want to code up a tool, which I guess you would have done if you were so inclined, then your hex editor will hopefully have the option to search. With it you can create a list of all the locations of RIFF. Get this and feed it to a spreadsheet. You will also want to make a list of lengths of section (take the next location and minus the current one from it). Numbers will want to be in decimal so hex2dec(cell) in libreoffice ( https://wiki.openoffice.org/wiki/Documentation/How_Tos/Calc:_HEX2DEC_function ), https://support.office.com/en-gb/article/HEX2DEC-function-8c8c3155-9f37-45a5-a3ee-ee5379ef106e and http://www.excelfunctions.net/Excel-Hex2Dec-Function.html for the newer versions of MS office (older ones will also have it but may need the engineering analysis toolpak installed).


With said list you can make a batch file using a tool to cut files up.
http://min.midco.net/cracker/filecutter.zip is one such tool.
Usage: filecutter file.in length file.out <-s start>

so it will be something like (note numbers picked randomly as I don't have the file to look at)
filecutter sounds.bar 473920 1.wav -s 41216
filecutter sounds.bar 768690 2.wav -s 41990
and so on and so on.

Takes a little while to set up but possibly more accurate than going by hand, certainly a lot less tedious. Not to mention you can always send your batch file and a link to the tool to someone else so they can rip their own copy. A more elegant version would not use the results of a search but decode the pointers I presume the file starts with but should not be many problems using a search for this.
 

PennyThePeanut

New Member
OP
Newbie
Joined
Mar 21, 2017
Messages
4
Trophies
0
Age
25
XP
52
Country
United States
I did it all manually! I cut out every section between the RIFFs into its own file in HexEditor, and saved each as a wave. And I got high quality audio clips. THank you still for going out of your way for it all!
I DOUBT you'd want it, but I can give the sound track as well if youd like. XD
I'm uploading it regardless :P
 
Last edited by PennyThePeanut,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: https://youtube.com/shorts/WOppJ92RgGU?si=KE79L6A_3jESsGQM