I NEED HELP! HOW TO OPEN (.VAC) AUDIO FILE?

Codecs, formats, encoding/decoding of game audio, video and music
zad
Posts: 11
Joined: Wed Jun 01, 2022 10:05 am

I NEED HELP! HOW TO OPEN (.VAC) AUDIO FILE?

Post by zad »

previously I posted about (.VBIN) file.... but still can`t extract/open it....

viewtopic.php?f=5&t=16953

now i have more problem... :cry:

i don`t know how to play (.VAC) audio...

so.... i need help to open/convert that file...

i have try to open it use foobar2000... but error..... i don`t know what plugin to open the file

ULTIMATEPRIMARY.rar
DKDave
Posts: 136
Joined: Mon Nov 23, 2020 6:01 pm

Re: I NEED HELP! HOW TO OPEN (.VAC) AUDIO FILE?

Post by DKDave »

That's just raw PS2 (Sony ADPCM) audio data. There are no headers for sample rate info, channels, etc., so the game probably stores that somewhere.

Which game is it from, how did you extract the file, etc.?
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: I NEED HELP! HOW TO OPEN (.VAC) AUDIO FILE?

Post by BloodRaynare »

DKDave wrote:That's just raw PS2 (Sony ADPCM) audio data. There are no headers for sample rate info, channels, etc., so the game probably stores that somewhere.

Which game is it from, how did you extract the file, etc.?



If you've clicked on the previous thread the OP's linked, it was from Transformers (2004). I did take a look at this game, and the VAC file also has the accompanying TLB file that includes the info for offsets, sample rates, loop flag, etc. However, the infos in TLB file was stored as a plain text file (kind of like a .ini file).

Here's the example of one of the TLBs reflecting the OP post:

Code: Select all

~ToneLibrary 
{
   Version: 3
   Tones: 2
   Datafile: "ultimateprimary.vac"
   ~Tone
   {
      Version: 2
      Name: "Ultimate_Primary_L"
      Offset: 0
      SampleRate: 44100
      Loop: false
      RootNote: 60
      
   } // Tone
   ~Tone
   {
      Version: 2
      Name: "Ultimate_Primary_R"
      Offset: 74608
      SampleRate: 44100
      Loop: false
      RootNote: 60
      
   } // Tone
   Instruments: 0
   Sequences: 0
   
} // ToneLibrary


Then there's also compiled variant called TLA (as evidenced by the extension). The tools for that are available here: https://github.com/christorrella/fish-tools
DKDave
Posts: 136
Joined: Mon Nov 23, 2020 6:01 pm

Re: I NEED HELP! HOW TO OPEN (.VAC) AUDIO FILE?

Post by DKDave »

Yeah, it's a bit crappy having the info in a text file. I've done a script which should extract all the sounds from those VAC archives as playable .vag files. I've tested it on all ones in ENGINESOUNDS, MINICONS and UI. Some of the sounds are stereo, stored as separate mono files with the suffix _L and _R. If you play one of those in Foobar, it will automatically pick up the other and play it in stereo.

tlb.zip
zad
Posts: 11
Joined: Wed Jun 01, 2022 10:05 am

Re: I NEED HELP! HOW TO OPEN (.VAC) AUDIO FILE?

Post by zad »

eh...... how to run the python?
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: I NEED HELP! HOW TO OPEN (.VAC) AUDIO FILE?

Post by BloodRaynare »

zad wrote:eh...... how to run the python?


You'll need to install python first of course, but why? Are you needing the data inside the TLA files too?
If it's about TLB and VAC files that already existed, no need to. Just use the script that DKDave provided.
zad
Posts: 11
Joined: Wed Jun 01, 2022 10:05 am

Re: I NEED HELP! HOW TO OPEN (.VAC) AUDIO FILE?

Post by zad »

yea... if you know... I'm not an expert game ripper.... but just a game developer... and i want to remake these game for pc/android (never learn anything about python)
zad
Posts: 11
Joined: Wed Jun 01, 2022 10:05 am

Re: I NEED HELP! HOW TO OPEN (.VAC) AUDIO FILE?

Post by zad »

how about the (.VBIN)?
zad
Posts: 11
Joined: Wed Jun 01, 2022 10:05 am

Re: I NEED HELP! HOW TO OPEN (.VAC) AUDIO FILE?

Post by zad »

by the way... tanks for the tlb.zip DKDave..... foobar2000 can play the .ms audio file....
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: I NEED HELP! HOW TO OPEN (.VAC) AUDIO FILE?

Post by BloodRaynare »

zad wrote:how about the (.VBIN)?


There's a BMS script in this post @ Xentax to convert it to 3DS which you can open with Blender. However no UVs, which means you can't apply textures on it.
zad
Posts: 11
Joined: Wed Jun 01, 2022 10:05 am

Re: I NEED HELP! HOW TO OPEN (.VAC) AUDIO FILE?

Post by zad »

wait... so... no animation and no bones?
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: I NEED HELP! HOW TO OPEN (.VAC) AUDIO FILE?

Post by BloodRaynare »

zad wrote:wait... so... no animation and no bones?


I mean, that script only handles model conversions so yeah, no uv for texture coords or even animation or bones.
zad
Posts: 11
Joined: Wed Jun 01, 2022 10:05 am

Re: I NEED HELP! HOW TO OPEN (.VAC) AUDIO FILE?

Post by zad »

and.....how to open the .ITF?

that bms script only works for character?
because I've tried to extract geometry mesh.vbin but nothing happened
zad
Posts: 11
Joined: Wed Jun 01, 2022 10:05 am

Re: I NEED HELP! HOW TO OPEN (.VAC) AUDIO FILE?

Post by zad »

OK!!!!!!!!!!!!!!!!!!!!!!!!!!!... every transformers2004 assets in my hand now ......
start the game development... thanks for the link BloodRaynare.... and thanks for the script DKDave..........
zad
Posts: 11
Joined: Wed Jun 01, 2022 10:05 am

Re: I NEED HELP! HOW TO OPEN (.VAC) AUDIO FILE?

Post by zad »

eh..... tooooooooooooooooooooooooooooooooooooooooo many wrong vertices in the map..... ANYONE CAN FIX THIS BMS SCRIPT!.... the character is normal.. but the map...... very... VERRRRYYYYYYYYYYYY..............VERRRRRRRRYYYYYYYYYYYYYY... makes me dizzy :oops: :evil: ......... i can fix it manually(the 3d model)....... but it takes a lot of time :| ............

maps.rar