Author Topic: Sounds...  (Read 822 times)

Anyone know how to make sounds customly made to work in Blockland. The ones I made are .wav and are in the sound folder for Blockland...

Some hints on getting sounds to work would be much appriciated! :cookieMonster:

Look at the example Add-Ons.

Sound_Beeps.zip contains the sound files and defines datablocks for them in server.cs.

Code: [Select]
datablock AudioProfile(Beep_Checkout_Sound)
{
filename = "./Beep_Checkout.wav";
description = AudioClosest3d;
preload = false;
};

datablock AudioProfile(Beep_Denied_Sound : Beep_Checkout_Sound)
{
filename = "./Beep_Denied.wav";
};

...

datablock AudioProfile(Beep_TryAgain_Sound : Beep_Checkout_Sound)
{
filename = "./Beep_TryAgain.wav";
};

Is that the only way to install them because that looks very confusing? {:0


Do you think if I give you the sounds you could put them into a file for me?
« Last Edit: August 31, 2008, 03:52:13 PM by Lord Templar »

Basically:

Put all the sounds as .wav format in a new folder in Add-Ons. ("Sound_MyNewSounds")
Create a file "description.txt" in the folder, and write something like this, then save it: (You must keep the Title: and Author: parts)
Quote
Title: Sound Pack - My New Sounds
Author: Lord Templar
Some new sounds for the game.
Create a new text file, and rename it "server.cs". Say 'yes' to any dialogs about changing the file extension. Open this file in a plain text editor. (e.g. Notepad, not Word on a Windows computer)

For the first sound, add this code, changing the bold parts:
Quote
datablock AudioProfile(First_Sound)
{
   filename = "./NameOfSoundFile.wav";
   description = AudioClosest3d;
   preload = false;
};

For each one after this, add this, changing the bold parts:
Quote
datablock AudioProfile(Another_Sound : First_Sound)
{
   filename = "./NameOfOtherSoundFile.wav";
};

Save this, and put the files (not including the folder!) into a .zip.


Alternately, if you really get stuck, send me the files by hosting them on some website and I'll do it for you.

Thnx I'll try to figure it out... P.S. are you bringing back the bots mod. I know there is one for V9 but its not as easy as yours XD