Adding Sounds

Andy said he was having problems with sounds, so I figured I'd post this simple guide.
Sounds require three things. An emitter, an actual sound file, and AlcScript. Let's start with the first thing, an emitter.
In Blender's 3D window, SPACE > Add > Empty. This will be your emitter. Name it to something quick and meaningful (I'll use "Emitter01").
Now, your sound file. You will need the file in WAV and OGG format. The free program Audacity supports exporting of these files. I've made a very, very simple white noise file with it, which I'll use. I'll name it "WhiteNoise01" for now. This will do nicely. I'll export it in WAV and OGG format. I'll put the WAV in my Age's BLEND file's folder. I will also need to copy it to my URU directory (usually C:\Program Files\URU - Complete Chronicles\ or something similar)\sfx\streamingCache, and I will need to copy the OGG file to my URU directory\sfx. This being done, we can now start setting it up.
Open a Video Sequence Editor window in Blender. Use Add > Audio (RAM) to place the file somewhere you'll remember it in this editor. Now save your BLEND, because you've come a long way already.
Open up a Text Editor window (we're done with the Video Sequence Editor, so you can use that) and load up your AlcScript file. Write the following (pay attention to what's in parentheses, they need to be replaced with something else):
BackgroundMusic, Ambience, and a few other things work instead of SoundFX--but I can't see the difference between them yet. Does anyone know?
-Kato
Sounds require three things. An emitter, an actual sound file, and AlcScript. Let's start with the first thing, an emitter.
In Blender's 3D window, SPACE > Add > Empty. This will be your emitter. Name it to something quick and meaningful (I'll use "Emitter01").
Now, your sound file. You will need the file in WAV and OGG format. The free program Audacity supports exporting of these files. I've made a very, very simple white noise file with it, which I'll use. I'll name it "WhiteNoise01" for now. This will do nicely. I'll export it in WAV and OGG format. I'll put the WAV in my Age's BLEND file's folder. I will also need to copy it to my URU directory (usually C:\Program Files\URU - Complete Chronicles\ or something similar)\sfx\streamingCache, and I will need to copy the OGG file to my URU directory\sfx. This being done, we can now start setting it up.
Open a Video Sequence Editor window in Blender. Use Add > Audio (RAM) to place the file somewhere you'll remember it in this editor. Now save your BLEND, because you've come a long way already.
Open up a Text Editor window (we're done with the Video Sequence Editor, so you can use that) and load up your AlcScript file. Write the following (pay attention to what's in parentheses, they need to be replaced with something else):
- Code: Select all
(your emitter's name, mine's Emitter01):
type: soundemit
sound:
flags: loop | start
file: (your sound file's name, mine's WhiteNoise01)
volume: 0.05
type: SoundFX

BackgroundMusic, Ambience, and a few other things work instead of SoundFX--but I can't see the difference between them yet. Does anyone know?
-Kato