!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> Sniper's Paradises




Sniper's Paradise!


Importing Sounds

Before you import the sound

A short checklist of common problems:

Do Not Alter Default Packages 
This will cause version mismatches!
No spaces or other funny characters in the file or its directory tree 
UnrealEd will not import files with spaces in the directory or file name. Move the file to a different directory, if necessary. (This is not a problem for #exec directives though, as long as you enclose the file in double quotes.)
No compression 
The engine only accepts uncompressed wave files. No ADPCM! No MP3 wave! No <insert other sound format>! Only plain old PCM wave audio files.
No stereo 
...or other multi-channel formats. The engine can only handle mono files.
Watch the format 
The engine wants a standard sampling rate at 8 or 16 bit per sample. For Unreal you should stick to 11 or 22 kHz, newer games will definitely also handle 8, 16, 32, 44 and 48 kHz, but here you should find the lowest sampling rate that still sounds good. In most cases you will want to use 22 or 44 kHz at 16 bits/sample.

Importing

So you have your PCM Mono wave file without any spaces in its file name or directory name and want to get it into the game. You have three options for importing now:

UnrealEd (to .UAX or myLevel)

  1. Open the sound browser.
  2. Click File -> Import.
  3. Select your file(s) and click Open.
  4. A dialog box comes up for every file you selected asking you for the destination package, the group name and the sound name. Package and group name default to the currently selected package and group in the sound browser. Changes here will carry on to the next sound file's dialog box. The sound name defaults to the sound file name. Click 'OK' to import the sound. 'OK All' will import all sounds using their file names as their sound name into the package and group displayed in the dialog box. You can also 'Skip' over the current file and go to the next. 'Cancel' skips all remaining files.
  5. Your sound should now show up in the sound browser. If you can't find it, chances are you did something wrong. Open the log window ("ShowLog" in the console) and check for errors. Also read over the first section of this page again to see whether you need to convert the sound file or rename/move it.

Remember to use your sound in your map if you imported it to myLevel or save the sound package to a UAX file, otherwise the sound will be lost when you close UnrealEd.

Console commands (to .U or via UnrealEd Console)

The console command for importing sounds looks like this:

AUDIO IMPORT FILE=filename [NAME=soundname] [GROUP=groupname] [PACKAGE=packagename]

Mostly this command is used for importing sounds into a code package at compile time. In this case the Package parameter should be left out, otherwise the sound will only be imported to a temporary package that is not saved.

#exec AUDIO IMPORT FILE="Sounds\Tazer\TSHOTA6.WAV" NAME="TazerFire" GROUP="ASMD"

You can also use the command (and some variations) in the UnrealEd Console:

Don't forget to save the new or modified package afterwards.
Note: A new package created this way might not immediately show up in the sound browser.

UCC Editor.BatchImport

You can use the BatchImport UCC commandlet to create a sound package without opening UnrealEd or compiling UnrealScript classes. See BatchImportCommandlet for details.

Creating Looping Sounds (only UT)

Ever wondered why your imported sounds wouldn't loop properly? I did too, and I found this:

Taken from EpicGames' Audio Reference:

To create a looping sound effect in a .wav file, you need a sound editing program like SoundForge which supports looping sound effects. In Sound Forge, follow these instructions:

  1. Run SoundForge.
  2. Load your .wav file (either 8-bit or 16-bit).
  3. Bring up the "Special/Edit Sample..." dialog.
  4. Click on the "Sustaining" choice (as opposed to "One shot").
  5. Select "File/Save As...".
  6. Make sure that the "Save Sampler Information in file" option is checked.
  7. Click on the "Save button".

So that means the Looping property is set in the sound file itself, and not in UnrealEd. Not sure what other programs are able to do this...

A free Alternative that can insert Loop Points in a Wave file, that is compatible with the editor is Wavosaur.

Modplug Tracker has also loop and sustain loop options for it's Wave samples that can be saved, but these are, to my knowledge, incompatible with the editor.



Spam Killer

Back To Top
2005 Sniper's Paradise
All logos and trademarks are properties of their respective owners.
Unreal™ is a registered trademark of Epic Games Inc.
Privacy Policy
Website by Softly
Powered by RUSH