Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Secret Fawful on Sat 08/01/2005 21:13:17

Title: Music won't add to the game [SOLVED]
Post by: Secret Fawful on Sat 08/01/2005 21:13:17
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???
Title: Re: Music won't add to the game
Post by: Ishmael on Sat 08/01/2005 21:26:52
..what format are you using?
Title: Re: Music won't add to the game
Post by: Secret Fawful on Sat 08/01/2005 21:41:10
mp3 and wav
Title: Re: Music won't add to the game
Post by: Ishmael on Sat 08/01/2005 22:19:09
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...
Title: Re: Music won't add to the game
Post by: strazer on Sun 09/01/2005 17:44:44
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?
Title: Re: Music won't add to the game
Post by: 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 ppl
Title: Re: Music won't add to the game
Post by: JimmyShelter on Tue 11/01/2005 17:29:06
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.
Title: Re: Music won't add to the game
Post by: Scorpiorus on Tue 11/01/2005 19:03:55
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.
Title: Re: Music won't add to the game
Post by: Secret Fawful on Tue 11/01/2005 23:54:07
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???
Title: Re: Music won't add to the game
Post by: Scorpiorus on Wed 12/01/2005 13:17:00
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)
Title: Re: Music won't add to the game
Post by: Secret Fawful on Wed 12/01/2005 15:32:35
ok, thanks