Author Topic: Just getting into making sounds; what is this "server.cs"?  (Read 593 times)

I've done almost everything I need to do for making a custom sound. The wav file, the description and the namecheck, but not the "server.cs". I don't know what it is, because I can't open it from other sound add-ons zip-files.

Can someone please tell me what this thing is? I'm just getting into making custom sounds for Blockland, but I don't know what the server.cs is.

The server.cs makes it so the .wavs have a datablock so they can be used in-game. It also identifies the sound as 2d or 3d, and makes the name you see in-game.
« Last Edit: August 01, 2012, 01:01:12 PM by Aware »

The server.cs makes it so the .wavs have a datablock so they can be used in-game. It also identifies the sound as 2d or 3d.

Okay. So, how do I make it?

change Sound1Name and Sound2Name to anything you want, just make sure you locate the correct .wav

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

datablock AudioProfile(Sound2Name)
{
filename = "./Sound2Name.wav";
description = AudioClosest3d;
preload = false;
};

an optional way to do every sound after Sound1

Code: [Select]
datablock AudioProfile(Sound1Name : Sound2Name)
{
filename = "./Sound2Name.wav";
};

datablock AudioProfile(Sound1Name : Sound3Name)
{
filename = "./Sound3Name.wav";
};

Okay. So, how do I make it?

Code: [Select]

//ServerPlay2D(SoundDatablockName);
//%client.Play2D(SoundDatablockName);
//or just keep it like that for playSound sounds
datablock AudioProfile(SoundDatablockName)
{
filename = "./filename.wav";
description = AudioClosest3d;
preload = false;
};


Quote from: SMF Board - Aware's Time
11:09:46

Quote from: SMF Board - My Time
11:10:29

Dang

change Sound1Name and Sound2Name to anything you want, just make sure you locate the correct .wav

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

datablock AudioProfile(Sound2Name)
{
filename = "./Sound2Name.wav";
description = AudioClosest3d;
preload = false;
};

an optional way to do every sound after Sound1

Code: [Select]
datablock AudioProfile(Sound1Name : Sound2Name)
{
filename = "./Sound2Name.wav";
};

datablock AudioProfile(Sound1Name : Sound3Name)
{
filename = "./Sound3Name.wav";
};

Isn't there a specific program I need to do this in, or is notepad just fine?

Isn't there a specific program I need to do this in, or is notepad just fine?

Notepad is fine, any text editor will do the job.

Notepad is fine, any text editor will do the job.

Okay, thanks. I think I've got the thing up and running now.

Locking...