Questions about vpc ans str files

Codecs, formats, encoding/decoding of game audio, video and music
terry336
Posts: 12
Joined: Mon Jun 20, 2022 4:54 pm

Questions about vpc ans str files

Post by terry336 »

Hello, I extracted a str audio file from an arcade game, is there any software to open this type of file or a script to convert it to a common audio format?
I also extracted, from the same arcade game, a vpc archive file which contains adx audio files, how to extract them?
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: Questions about vpc ans str files

Post by BloodRaynare »

From a quick glance at the STR file, I assume this game was a SEGA NAOMI title? You need to tell us what the name of the game.
Anyway, STR file is playable with vgmstream plugin by just renaming the extension from STR to SPSD or if using foobar2000, just check "Enable unknown exts" in the vgmstream preference without need to renaming the extensions. As for VPC, I need to look at it more.
terry336
Posts: 12
Joined: Mon Jun 20, 2022 4:54 pm

Re: Questions about vpc ans str files

Post by terry336 »

BloodRaynare wrote:From a quick glance at the STR file, I assume this game was a SEGA NAOMI title? You need to tell us what the name of the game.
Anyway, STR file is playable with vgmstream plugin by just renaming the extension from STR to SPSD or if using foobar2000, just check "Enable unknown exts" in the vgmstream preference without need to renaming the extensions. As for VPC, I need to look at it more.


Ok, I will test and the name of the game is Dinosaur King - Operation Dinosaur Rescue.
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: Questions about vpc ans str files

Post by BloodRaynare »

Here's the BMS script to extracting ADX audio from the VPC file:

Code: Select all

get FILES long

for i = 0 < FILES
   get OFFSET long
   get SIZE long
   putarray 0 i OFFSET
   putarray 1 i SIZE
next i

for i = 0 < FILES
   getDstring NAME 20
   putarray 2 i NAME
next i

savepos REL_OFFSET

for i = 0 < FILES
   getarray OFFSET SIZE NAME 0 i
   math OFFSET + REL_OFFSET
   log NAME OFFSET SIZE
next i
terry336
Posts: 12
Joined: Mon Jun 20, 2022 4:54 pm

Re: Questions about vpc ans str files

Post by terry336 »

BloodRaynare wrote:Here's the BMS script to extracting ADX audio from the VPC file:

Code: Select all

get FILES long

for i = 0 < FILES
   get OFFSET long
   get SIZE long
   putarray 0 i OFFSET
   putarray 1 i SIZE
next i

for i = 0 < FILES
   getDstring NAME 20
   putarray 2 i NAME
next i

savepos REL_OFFSET

for i = 0 < FILES
   getarray OFFSET SIZE NAME 0 i
   math OFFSET + REL_OFFSET
   log NAME OFFSET SIZE
next i


Thanks you very much for the help, it's working.