Stunts Forum

Stunts - the Game => Stunts Reverse Engineering => Topic started by: zapper on July 27, 2010, 06:18:39 PM

Title: Sound Files Editing (VCE)
Post by: zapper on July 27, 2010, 06:18:39 PM
My experience with editing VCE files was, back in 2002, very basic. I had to use Microsoft EDIT (DOS aplication) to change some bytes of these files.

Using this EDIT app (EDIT.COM) that still remains in Windows Xp (system32 folder) I was able to get some "patterns" on ASCII bytes and discover some samples used by engine, skids, crash, and other sound that were used in game.

But I had to use EDIT with "open in binary" switch option to see byte values.
Getting it straight, on windows command prompt you write this:
 
edit /93 pceng1.vce <- for pc sound editing.
edit /100 adeng1.vce <- for ad sound editing.

Then you will see this:   (for pc speaker)
(http://img525.imageshack.us/img525/8784/image2wc.png)

Next I show what I had written in 2002 to explain what I had edit and its consequences:
(http://img341.imageshack.us/img341/5379/image1apu.png)

Note: above pictures show content files that were written by me. EDT file extension is not used on game.

For Adlib(SoundBlaster) its very similar to edit.

Now I will show what I had analysed in sound file content, taking Adlib file as example:
(http://img442.imageshack.us/img442/6051/image9f.png)
(this is a mod screenshot to show all content bytes on file)

Has you can see there is a STOPSTARENGIBLOWSKIDSCRABUMPCRAS text on first line, spacing these chars in logic words, it identifies 8 words that is the number of rows below the first text line of the file content.

Assuming this, Stop sound sample code corresponds to the first line, Star(t) the second, The third is for Engi(ne) sound and so on.

I don't know what all chars do in each line, I tried to change on by one, but the most relevant were those that I point at pictures above.

And that is some of what I remember of this. All suggestions are welcome to get this sound sampling code revealed.

Cheers

Title: Re: Sound Files Editing (VCE)
Post by: llm on July 29, 2010, 07:51:13 AM
nice work but... why on earth don't you use a real hex-editor like http://mh-nexus.de/en/hxd/ (http://mh-nexus.de/en/hxd/) or others?
Title: Re: Sound Files Editing (VCE)
Post by: zapper on July 29, 2010, 09:50:42 AM
Because at that time, in 2002 I was no such expert on file editing, rarely had internet access to get more powerfull tools, so I work with the tools I had on my system.

To get this in this topic I had to go to my old Pentium 100 and backup my "note files".

Today it would be different of course, but has I stated earlier, I post what I remember that I did at that time, literally.


Title: Re: Sound Files Editing (VCE)
Post by: CTG on December 09, 2011, 11:07:19 PM
B Ö Ö Ö Ö Ö Ö Ö Ö F F ! ! !
Title: Re: Sound Files Editing (VCE)
Post by: Duplode on December 10, 2011, 12:24:28 AM
Since this is a sound effects thread, it's of course very natural that the the böff must be louder, and modulated as well.
Title: Re: Sound Files Editing (VCE)
Post by: zapper on December 12, 2011, 01:31:29 AM
What does it mean "Böff"?

Title: Re: Sound Files Editing (VCE)
Post by: BonzaiJoe on December 12, 2011, 10:43:48 AM
What does it mean "Böff"?

It means "I'm gay".
Title: Re: Sound Files Editing (VCE)
Post by: Chulk on December 12, 2011, 04:22:54 PM
What does it mean "Böff"?

It means "I'm gay".
So "Böff" means Bonzai Joe is gay? Or it means I (Chulk) am gay? I'm confused!!!
Title: Re: Sound Files Editing (VCE)
Post by: CTG on December 12, 2011, 09:35:04 PM
What does it mean "Böff"?

It means "I'm gay".

I always knew that BJ is homo.
Title: Re: Sound Files Editing (VCE)
Post by: BonzaiJoe on December 12, 2011, 09:55:18 PM
http://en.wikipedia.org/wiki/Quote_sign
Title: Re: Sound Files Editing (VCE)
Post by: CTG on December 12, 2011, 10:09:10 PM
http://en.wikipedia.org/wiki/Quote_sign

You are an öblös one. ;D
Title: Re: Sound Files Editing (VCE)
Post by: BonzaiJoe on December 12, 2011, 10:33:20 PM
A gay from a bay.
Title: Re: Sound Files Editing (VCE)
Post by: CTG on December 12, 2011, 10:54:04 PM
A gay from a bay.

He admitted. Beware guys, this is a danger zone for your ass. ;D
Title: Re: Sound Files Editing (VCE)
Post by: zapper on December 12, 2011, 11:44:42 PM
Ok, so you all are go thrashing this thread?
Please, there is an appropriate section to do that!

If you write some thing, do it "ontopic" only.
Title: Re: Sound Files Editing (VCE)
Post by: CTG on December 13, 2011, 01:50:49 AM
Btw böff is stomach gas, belch, whatever... :D
Title: Re: Sound Files Editing (VCE)
Post by: dstien on December 13, 2011, 02:11:37 PM
VCEs are Stunts resource archives. Working on the MIDI file conversion (http://forum.stunts.hu/index.php?topic=2560.msg46214#msg46214) I identified some values in the MT-32 voices file that holds MIDI controller data:
Code: [Select]
char *vce = findResource(vceBuf, seq->voices[i].id);

if (vce == NULL) {
  seq->voices[i].enabled = false;
}
else {
  seq->voices[i].enabled   = true;
  seq->voices[i].channel   = vce[0x43];
  seq->voices[i].program   = vce[0x44];
  seq->voices[i].volume    = vce[0x45];
  seq->voices[i].pan       = vce[0x46];
  seq->voices[i].transpose = vce[0x10];
  seq->voices[i].hasHits   = vce[0x25];
}
Title: Re: Sound Files Editing (VCE)
Post by: CTG on October 25, 2012, 09:23:05 AM
I need a deep engine voice for the airplanes. Is it possible to solve?
Title: Re: Sound Files Editing (VCE)
Post by: CTG on August 07, 2013, 09:33:54 AM
It would be cool to have a main theme remix to replace the old one. But I guess music file editing has no priority. :)
Title: Re: Sound Files Editing (VCE)
Post by: Duplode on August 07, 2013, 04:16:02 PM
I need a deep engine voice for the airplanes. Is it possible to solve?

Probably not unless you don't mind all other vehicles being affected (cf. Zapper's sound pack).