When I try to add my music files to the game, I get an error message saying the files were unable to be added cause they are an LFN. What is an LFN??? And how do I fix this problem???
..what format are you using?
mp3 and wav
Could be a compression issue with the .mp3. Tried using some very generic compression codec in case you have a bit more uncommon one? (I think Lame was one...)
There has been something going on about the .wav format for background music, but I don't recall it covering into anything like this...
You're using the PlayMP3File function, right?
LFN is a long filename. Try shortening the filename.
AGS v2.62 removed the 25 character limit, don't know why it would still give that error message. You are using v2.62, right?
If you are using the normal PlayMusic function, what is the full filename of the file you're trying to use?
sorry but i dont understand anything that you just said but i have the same problem so can you say it more easyer for the uncomputer savee ppl
Quote from: h1ppy on Tue 11/01/2005 10:18:54
sorry but i dont understand anything that you just said but i have the same problem so can you say it more easyer for the uncomputer savee people
Not too to sound harsh or anything but read this quote from the homepage:
NOTE: AGS is not for everyone. To make more advanced parts of a game, such as cutscenes, you will need to be prepared to learn the scripting language. It is recommended that you have at least a basic knowledge of computers before attempting to use AGS - such as, you know what a PCX file is, you can think logically and you know the difference between your hard drive and your RAM.
Strazer post was really clear: probably the filenames of the music files are too long. So tru too shorten them.
Quote from: h1ppy on Tue 11/01/2005 10:18:54
sorry but i dont understand anything that you just said but i have the same problem so can you say it more easyer for the uncomputer savee people
Try looking into the AGS manual or Beginners FAQ - Music&Sound section (http://bfaq.terran-x.com/#audio) for how to set up your music and(or) sound to work, but basically you just need:
- find some music file you want to play. For example,
MyFavoriteTrack.mp3- rename it to
music0.mp3 and place that file into your
game folder.
- save your game project (AGS will ask you to rebuild vox files -- choose yes)
The music file should now be played once you start the game.
If it doesn't work try some other mp3 file. Some of the mp3 formats may not be supported by AGS, as Ishmael mentioned.
It works now. But now I can't figure out how to see what number the sounds are. Where can I see the sounds in the editor and how do I add them to a bg???
If you use the Interaction Editor without scripting then you have to remember what number corresponds to a certain sound effect, thus if you have the following sound files on your game folder:
sound1.wav
sound2.wav
sound3.wav
... the appropriate interaction editor action commands to play those sound effects are:
Game - Play sound effect (1)
Game - Play sound effect (2)
Game - Play sound effect (3)
ok, thanks