Author Topic: Making a sound... [SOLVED]  (Read 902 times)

I'm trying to create a sound, but because I'm new to this, it failed.
I opened it in-game, and the audio file was on the list, but it wouldn't play.
Can anyone tell me where I need to fix my code?
I based it directly off of Sound_Beeps' code.
Code: [Select]
datablock AudioProfile(FTL_Victory_Sound)
{
filename = "./FTL_Victory.wav";
description = AudioClosest3d;
preload = false;
};
« Last Edit: August 22, 2013, 06:19:21 AM by Mrmii21 »

The Sound_Beeps Add-On has a namecheck.txt in, make sure that it is correct in your add-on if you copied all of it over, also did you make sure that you saved the sound correctly?
Edit: Try checking the console too when the add-on is loaded, it should display any errors.

The Sound_Beeps Add-On has a namecheck.txt in, make sure that it is correct in your add-on if you copied all of it over, also did you make sure that you saved the sound correctly?
Edit: Try checking the console too when the add-on is loaded, it should display any errors.

Yes, I put the name of the addon (Sound_FTLVictory) into the namecheck.txt.
I'll try the console thing now.

EDIT:
I watched the console, and nothing seems to have happened.
All it does is create a lag spike.
But if you can find anything, here's my console.log.
« Last Edit: August 19, 2013, 07:43:57 AM by Mrmii21 »

Code: [Select]
Loading Add-On: Sound_FTLVictory (CRC:-2050738542)
Executing Add-Ons/Sound_FTLVictory/server.cs.
1 datablocks added.
Seems like the script works fine, It must be the sound.

Sorry for the late response.

Seems like the script works fine, It must be the sound.

Yeah, is it because my sound is stereo?

EDIT:
I figured out what was wrong.
I thought an easier way to convert a sound file was to change the file extension (in this case, .mp3 to .wav).
I used a file converter this time and it worked.
« Last Edit: August 20, 2013, 06:05:08 AM by Mrmii21 »