Author Topic: Sounds Help  (Read 320 times)

i was Wondering How You Make a Sound?

You need to have your sound file saved as a ".WAV". For this, I would use Audacity, a free sound editing software. It is very useful in the making of sound packs and music files. It's safe, I use it myself.

Then it need to be packaged like so (This is an example of a properly packaged sound file). I use winRAR, a file zipping program used to keep files joined in a way that the game can read. You'll need this.

Inside that file you will see the following:


The first file "admin", is the sound file you want to play ingame.

The "description.txt" is the text file describing what your sound is. The format is as shown:
Code: [Select]
Title: Admin Sound
Author: Mr.Noßody
The sound that plays when admin is given, or when preferences are changed.
Has the title (Youd put your sound's or soundpack's name there), the Author (Your name would go there), and the last part is a brief description of your sound.

Inside the "Server.cs", youll see:
Code: [Select]
datablock AudioProfile(admin_Sound)
{
filename = "./admin.wav";                                       
description = AudioClosest3d;
preload = false;
};

You would change the words "admin" with the corresponding name of your sound as needed. If your sound file's name was "pickle", you would change "admin" with "pickle".

If you want to include more than one sound, you would add the following to the Server.cs file:
Code: [Select]
datablock AudioProfile(example_Sound : admin_Sound)
{
filename = "./example.wav";
};
In this case, my sound file's name is "example". You would add this line of code for each new sound you add to your pack.
Make sure to keep the name of the first sound in the pack in the Audio Profile line, or the first line. You can see that "admin_Sound" is still there even though this is a new sound. You must remember to keep the name of your first sound file there in each new sound file added.



I hope this is adequate.


Quote
I use winRAR, a file zipping program used to keep files joined in a way that the game can read.
Its not a file zipping program, its a file archiver, by the way.

...Yeah, thanks for the clear up there. I hope you feel important.