Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Tue 25/01/2005 14:50:52

Title: Displayspeech with a wave or mp3
Post by: on Tue 25/01/2005 14:50:52
I have this script that says DisplaySpeech(HIST " &1 test test test test.");
The &1 is a wave files called "HIST01", but when a preview the game, it comes up with a warning "can not add HIST01.wave because it is a LFN"

This is a very basic scripting, but where is the error?
...and what is a LFN? ???
thank you

-magnus.   
Title: Re: Displayspeech with a wave or mp3
Post by: Ishmael on Tue 25/01/2005 15:03:08
LFN, if I recall correctly, is Long File Name, but I recall also version 2.6 removing the issue with LFN... or something. Is the file extension really ".wave"? If so, try changing it to ".wav"... just a thought...
Title: Re: Displayspeech with a wave or mp3
Post by: on Tue 25/01/2005 15:12:25
Maybe i shouldn't call it .wav at all?
The LFN warning stills bugs me, cus it doesn't matters if the file named "01" or "HIST01" it keeps on telling my its a LFN...
but thanks anyway...
Title: Re: Displayspeech with a wave or mp3
Post by: Ishmael on Tue 25/01/2005 15:29:06
What format it actually is? Though most of the players can play it, you can get a conflict at some point of you name a .mp3 encoded file to .wav extension.
Title: Re: Displayspeech with a wave or mp3
Post by: on Tue 25/01/2005 15:50:01
Yeah ofcouse, but a have tried with both .mp3 and .wav and even .ogg....
And i've tried with the names "sound01" and "hist01" (it's the characters name).

But i've give it a last shot tonight before i'll smash the computer out of the window..hehe...
Title: Re: Displayspeech with a wave or mp3
Post by: Ishmael on Tue 25/01/2005 17:17:56
You've tried rebuilding VOX files? Or is that what gives you the error?

Smells like a bug... or then I've overlooked something...
Title: Re: Displayspeech with a wave or mp3
Post by: Scorpiorus on Tue 25/01/2005 17:36:28
Yeah, naming the file right is important thing here. I'm not sure about why AGS treats it as a LFN but if I remeber correctly there shoudn't be any leading zeros:

hist1.wav
hist0.wav
hist12.wav
Title: Re: Displayspeech with a wave or mp3
Post by: Ishmael on Tue 25/01/2005 17:57:54
Ach, right... ::) yes indeed, leading zeros...
Title: Re: Displayspeech with a wave or mp3
Post by: strazer on Tue 25/01/2005 18:03:20
QuoteI have this script that says DisplaySpeech(HIST " &1 test test test test.");

I guess you forgot to add the comma when posting here?

DisplaySpeech(HIST, " &1 test test test test.");

And before anyone asks, there's a tracker for xxx001.xxx-style file names: http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=139
Title: Re: Displayspeech with a wave or mp3
Post by: on Thu 27/01/2005 10:45:24
Quote from: strazer on Tue 25/01/2005 18:03:20
QuoteI have this script that says DisplaySpeech(HIST " &1 test test test test.");

I guess you forgot to add the comma when posting here?

DisplaySpeech(HIST, " &1 test test test test.");

And before anyone asks, there's a tracker for xxx001.xxx-style file names: http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=139
thanks guys....i did it my own way....
Title: Re: Displayspeech with a wave or mp3
Post by: TerranRich on Thu 27/01/2005 14:45:34
Which was? Geez, I wish people would tell us what they did to solve their problem, so we can tell others. A lot of people keep doing this, saying simply "Never mind, fixed it," or "Delete this thread" or something like that. Tell us what you did!! :P
Title: Re: Displayspeech with a wave or mp3
Post by: Ishmael on Fri 28/01/2005 13:12:46
Add it to the rules :P "If you solve the problem yourself or by off-forum help, come back to tell how you did it."