Blockland Forums > Modification Help

My sound pack won't play its sounds in-game

Pages: (1/3) > >>

Supreme Guy:

Admittedly, I've got no experience with coding of any sort so talking to me in any sort of pseudo-code fashion really won't help me out.
I recently slapped together a sound pack from .wavs from freelancer and edited a default sound script, substituting my own file extensions and such.
Unlike previous attempts, Blockland hasn't crashed and the sound files show up when I access them in events. The kicker though is that they don't actually play any sound. I haven't a clue what I could've done wrong so the most I can do is provide you with the .zip and let someone help out/fix it

http://puu.sh/vxst

Planr:

You're missing a huge amount of code in the server.cs file.

I cannot even open any of the .wav files in audacity. They are an unrecognizeable format. That might be your problem too.

Also, these sounds are way too quiet. Amplify them all in audacity to the loudest acceptable quality level. By that i mean just click on the amplify effect and hit ok without changing anything.

Supreme Guy:


--- Quote from: Planr on May 19, 2012, 09:13:52 AM ---You're missing a huge amount of code in the server.cs file.

I cannot even open any of the .wav files in audacity. They are an unrecognizeable format. That might be your problem too.

--- End quote ---
What part of the code am I missing?

Planr:


--- Quote from: Supreme Guy on May 19, 2012, 09:18:36 AM ---What part of the code am I missing?

--- End quote ---
Alot. Every sound should have code like this in the .cs file:


--- Code: ---datablock AudioProfile(STTOS_Button1)
{
filename = "./STTOS_Button1.wav";
description = AudioClosest3d;
preload = false;
};

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

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

datablock AudioProfile(STTOS_Button4)
{
      filename = "./STTOS_Button4.wav";
      description = AudioClosest3d;
      preload = false;
};
--- End code ---
Taken from an unreleased soundpack I have.

I learned to make soundpacks by copying and pasting code from downloaded soundpack addons, i don't know if default soundpacks will work; they don't appear to.

Supreme Guy:


--- Quote from: Planr on May 19, 2012, 09:28:58 AM ---Alot. Every sound should have code like this:


--- Code: ---
--- End code ---
Taken from an unreleased soundpack I have.

I learned to make soundpacks by copying and pasting code from downloaded soundpack addons, i don't know if default soundpacks will work; they don't appear to.

--- End quote ---
I've had a successful soundpack before that didn't use that. I had a help topic for that a while ago too and someone told me it should work fine because I parented the sounds the sound that had the audio description and such.

last time I had these errors it turned out I had just made a misspell or something

edit
loving


Pages: (1/3) > >>

Go to full version