Blockland Forums > Modification Help

how to get a sound in BL?

Pages: << < (2/2)

Blastdown:

rtbinfo.txt is a file that is added to an add-on when put through the Return to Blockland process (in other words, not required). Don't make one yourself, it's pointless.
namecheck.txt, although not required, basically just won't allow the add-on to execute if the name is changed to something different from what is inside the .txt file. I believe the Return to Blockland process adds one if you don't, but I don't remember.

server.cs is used to execute the add-on, I am quite sure description.txt is required.

server.cs generally looks like this:

--- Quote from: server.cs ---datablock AudioProfile(datablockNameHere)
{
   filename = "./nameHere.wav";
   description = AudioClosest3d;
   preload = false;
};
--- End quote ---

description.txt generally looks like this:

--- Quote ---Title: Add-on Name
Author: Me
Description
--- End quote ---

obviously you also include the sound file in the .zip, which I believe is required to be a .wav file, which should be named "Sound_NameHere".


If you look inside the default add-on "Sounds_Beeps", you get the general idea of how it works.

otto-san:

namecheck.txt is made automatically by the game.

Blockomanian:


--- Quote from: Blastdown on July 04, 2011, 09:25:57 PM ----snip

--- End quote ---
awesome, thanks!

blockhead55:

We have a brick creator why not a sound creator where you just put in a mp3. 

otto-san:


--- Quote from: blockhead55 on July 05, 2011, 04:21:35 PM ---We have a brick creator why not a sound creator where you just put in a mp3. 

--- End quote ---
why make a .mp3 converter built in when you can just convert it to .wav yourself

Pages: << < (2/2)

Go to full version