Author Topic: Sound Scripting NEED HELP [solved]  (Read 809 times)

I am trying to make a sound test, I want to learn how to script. This is my first script so i recorded my voice on audacity and exported it as a wav and called it : Test_1.wav. I then put it in a .zip and named it Sound_Test_1.zip. I made a server.cs file and this is it:

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

When I put it in my add-ons, it doesn't appear. Could you please help! My OS is Windows Vista.

Maybe I need a description file... hmmmm.....
« Last Edit: February 02, 2009, 09:22:53 PM by AGlass0fMilk »

Nevermind, Turns out that my description wasn't saved in notepad, it was saved in word pad -__- dam you similar names. I'm dumb but it's appearing in the game add ons menue!

not
SOLVED

It may appear in Add-ons, but when I check the file in the add ons game menu, it unchecks itself and i am unable to use it... Any suggestions?
« Last Edit: February 02, 2009, 08:13:32 PM by AGlass0fMilk »

I made another sound file from a wav i got online. It works and appears in the add ons and does not uncheck itself but when I try to load a server, it crashes my Blockland, and I know it's the sound file because thats the last thing that the console tries to load before it stops working. Any Idea why? I AM SO CONFUSED!

I scripted it all right and everything, but for some reason the sound file i had didnt work. So I got another sound file and it worked perfectly, guess i just had a bad sound file...