Welcome Guest [Log In] [Register]
Welcome to the Heavenly Host Elementary School: A Corpse Party Forum. We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Game assets (+more)
Topic Started: August 7, 2016, 1:31 am (2,420 Views)
L3Z4
Member Avatar

Ah! Wonderful, thank you very much.
I'll be honest, I have no idea what ADPCM is. Really not savvy when it comes to audio files and that kinda thing. I tried using a HEX editor, but other than confirming what I already suspected (that those were .vag files), I had no idea how to proceed.

Also-- it's funny, yesterday I tried different searches before even posting here asking for a tool/script that I could use, but I had no luck. Today I've tried again-- and have already found a few. Oh well. :V

Again, thanks. I'll see what I can do now.

Edit: I just noticed, that was a debug build, am I wrong? I've got VC++ runtime redist installed on my computer, just not the debug version. Probably should compile the thing myself then. |'D
Edited by L3Z4, August 9, 2016, 5:04 am.
Posted Image Tumblr/dgtranslations Posted Image Twitter (@itssarabruh) Posted Image Twitch.tv
Offline Profile Quote Post Goto Top
 
Rohzek
Member Avatar
Leader
It could be.. Honestly it was my first time playing with Visual Studio (‘-’*)

Hmm... Yes. Yes it was. ( .. )
Try this one instead.
Made sure set it to release build this time.
Edited by Rohzek, August 9, 2016, 11:26 am.

Posted Image
Offline Profile Quote Post Goto Top
 
L3Z4
Member Avatar

Oh my, thank you for recompiling it for me, haha--
I was going to do that tonight as soon as I got off work, but yeah.

Anyway-- if I don't run into any other problems, then I should be able to upload the audio files tonight. : )

Edit: AHHH! It's not working. I'm afraid there's a 99% chance this is a newer version or something.
It's still VAG as far as I know, but something's CLEARLY off. It just won't do anything, and I've gone as far as modifying the script you sent me in order to try and get it to work. No luck.

I can't seem to find the version that was used either. According to PSDEVWIKI, that should be located at offset 0x04, the expected value being 00 00 00 06 (or v0.6). Here, it is 00 02 00 01. I don't know.
I've uploaded one file for you to take a look at, if you want to. At this point I'm not entirely sure how to proceed.
https://drive.google.com/file/d/0B-X1Ea3lM5zOQjhoQURBQ1RnODg/view?usp=sharing
Edited by L3Z4, August 9, 2016, 4:36 pm.
Posted Image Tumblr/dgtranslations Posted Image Twitter (@itssarabruh) Posted Image Twitch.tv
Offline Profile Quote Post Goto Top
 
Rohzek
Member Avatar
Leader
Hmm.. This is weird all around. First, at 0x20 the name is missing all together, and the version number seems off, as you said...

The frequency is also a little off compared to the other time I've seen VAG files in a Corpse Party game (Blood Covered PSP they switched to AHX in Book of Shadows, and HCA in 2U), and I find it kind of weird they would change something like that by just a few Hz. Here is the file I was comparing it to, if you want to as well.

I forced it to convert to WAV anyway and... well.. no real luck. I can barely make out the faintest sound of talking over horrible, horrible.. well.. Static. it's not even white noise, too loud for that... You can listen to if you want: here but seriously, volume down to like 1% or you'll break your ears and speakers.

With the discrepancy in version number, and lack of name data, and the signs of working audio under the trash, I think it could be encrypted in some way, or somehow got corrupted while pulling it out of the files.. But honestly the second option isn't likely, especially if all of them share the same pattern of header. Some sort of encryption may be more likely.

Out of Curiosity, are all the audio files in the same format, or are some (like the music files) in a different one?


With more Google-fu, it seems the vita uses new version of VAG, called "HE-VAG" which doesn't use the same algorithm as the older one from PS1/2/3... So back to square one maybe.

Edit 2:
So, one person has found a way to decode HEVAG files, and he hasn't released his source code.. so we have to play by his rules, unless I can find a way to do it myself.

His program can be found here. In order for the program to work, the files MUST be mono, which the file you sent me is.. so I guess they all are.. and the output file will be in 44100 Hz regardless of input, so it'll have to be slowed down to 22050 to be played correctly. I've done that to test thefile: here and it seems to have worked.
Edited by Rohzek, August 9, 2016, 6:37 pm.

Posted Image
Offline Profile Quote Post Goto Top
 
L3Z4
Member Avatar

I don't think it's encrypted, and definitely not corrupted as far as I can tell. All of them are in the same format, too.
And yeah, I thought so-- this just confirms my worst fears then.
HE-VAG... well, thank you very much for making our lives harder, Sony. I might have to spend the next 48 hours trying to find a way to convert your stupid fancy audio files.

Anyway, funny you should mention music files; I was wondering just where those might be. All I've been able to find were audio files-- voice acting, etc.
So I guess, before I upload anything, I'll try to see if I can find these first.

Ah, yeah-- since I doubt I'll be able to find a way to convert the audio files to .wav now that we know that was a new version of VAG all along, what should I do in case I'm not able to? Upload everything "as is", or--?

Edit: Woah, I just saw your edit. Damn, props to you for finding that. Now that's good news. Thanks! I'll give that a try asap.
Edit 2: It works. Now I wish I could convert more than one file at once. There are over 7000 files. Oh well. |'3
Edited by L3Z4, August 9, 2016, 7:15 pm.
Posted Image Tumblr/dgtranslations Posted Image Twitter (@itssarabruh) Posted Image Twitch.tv
Offline Profile Quote Post Goto Top
 
Rohzek
Member Avatar
Leader
They're doing their job, I guess! Trying more and more to stop people from breaking their formats!
They should stop trying though. (p^-^)p

Ever since I started researching how to get into 2U, before I even posted about it here, I found a bunch of communities for people who are working together just to do stuff like this, haha, so I had a decent sized pool to look through. Glad they chose one of the ones I searched to talk about it!

Yaay! As for how to get them from HEVAG to WAV you can use an easy windows batch command:

Code: decode.bat
 

@echo off
forfiles /m *.83 /c "cmd /c hevag_decoder.exe @FILE"
pause


(Assuming all of them end in .83 like the one you uploaded.. if not you'd have to batch rename them first haha.)

As for as slowing them from 44100Hz to 22050Hz, I don't know of a program off the top of my head that can run batches of commands like that (only editing metadata) but I'm sure that's possible too! (・□・;) I'll take a look!

Posted Image
Offline Profile Quote Post Goto Top
 
L3Z4
Member Avatar

Yeah, they're just doing their job, I guess! |'D

Ah-- yep, that's what my problem is right now. I don't mind manual labour (not really) as long as it's just a few files, but there are too many... luckily, Audacity's here to save the day! Or so I read. Will give it a try later, haha.
And yeah, I figured I could use a bat script like that. This is what I used.

Code:
 
for /r %%a in (*.83) do hevag_decoder "%%a"
pause

The thing is, I won't lie, I've got a pretty crappy PC here at my place of work so it tends to freeze and stop responding every few files. So, this will have to wait until I get home, sadly.

Anyway, thank you so much! You're really helping me here. c:

P.S: I wonder, are you a computer engineer too, or--? You do seem to know your way around computers, haha.
Edited by L3Z4, August 10, 2016, 9:05 am.
Posted Image Tumblr/dgtranslations Posted Image Twitter (@itssarabruh) Posted Image Twitch.tv
Offline Profile Quote Post Goto Top
 
Rohzek
Member Avatar
Leader
I'm not sure Audacity will work (。•́︿•̀。)
The batch scripts in Audacity don't include a "change sample rate" option, and just exporting a file with automation sets the sample rate to 44100Hz even if you've set your global default to something else in the preferences.

I'm found a program called SOX last night that's supposed to let you batch processes together, it's a command line converter that includes sample rate, but I went to bed before playing with it.

Oh noes! Well at least you don't have to do them all by hand! o(^▽^)o

Yaaay! Glad I can help. \(@ ̄∇ ̄@)/

(For now, I'm just a hobbyist who spends wayy too much time on the computer. I'm going to uni to be though! More Software than "Computer" because I suck at understanding how hardware works though \|  ̄ヘ ̄|/)

Posted Image
Offline Profile Quote Post Goto Top
 
L3Z4
Member Avatar

SOX, huh? Well, we'll see if that works, haha.
And yeah, that's a relief. OTL

Also, I must admit I'm quite impressed-- for a hobbyist you sure do seem to know a lot about this sort of thing. Hell, I'm sure most of my coworkers wouldn't have been able to help me as much as you have, and they're all senior programmers! (I'm just a UI developer, by the way, although I did major in computer science. But hey, same here, hardware is just not my thing) |'3

Edit: YAY! It worked, haha! I'm posting the code I used this time-- who knows, somebody might find it useful someday. Will upload the audio files as soon as possible (we're falling behind schedule at work, unfortunately, and we already missed a deadline-- so that might have to wait until tomorrow).

Code:
 
mkdir converted
for %%a in (*.wav) do sox %%a "converted/%%~nxa" rate -v 22050 speed 0.50
pause
Edited by L3Z4, August 11, 2016, 4:20 pm.
Posted Image Tumblr/dgtranslations Posted Image Twitter (@itssarabruh) Posted Image Twitch.tv
Offline Profile Quote Post Goto Top
 
Rebecca Ashford
Member Avatar
Nexios Leader
I'm considering remaking the first chapter of blood covered in unity 5 using these texures would be for a learning experience still new to unity 5
Posted Image
3DS Friend Code! 1564-4805-2990(pm me if you wish to add me!)

Posted Image
JOIN MY DISCORD XD
https://discord.gg/2bXhCTR
we have a lot of members and were very active come join us!
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
ZetaBoards - Free Forum Hosting
ZetaBoards gives you all the tools to create a successful discussion community.
Learn More · Register for Free
Go to Next Page
« Previous Topic · Corpse Party: Blood Drive · Next Topic »
Add Reply