Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: jetxl on Thu 14/10/2004 13:51:55

Title: Suggestion: mp3 string length
Post by: jetxl on Thu 14/10/2004 13:51:55
To save bits and webspace I have seperated the music files from the game.
Instead of making a music pack I have choosen to let the player download some mp3 files from a free music server. This way my website isn't overloaded and dial-up users can choose if they want to download music.

The problem is that one of the mp3 file strings is to big (25 char) and AGS crashes. I tried ~ but that doesn't work I think.
I can't rename the mp3 file because every player has to rename it, and that's not user friendly. I also can't rename the mp3 file on the server because it isn't mine.

xerxes-the_day_we_met.mp3Ã,  Ã,  Ã, <- filename
xerxes-the_day~.mp3Ã,  <- am I doing this wrong?

all the mp3 files begin with xerxes-
Title: Re: mp3 string length
Post by: strazer on Thu 14/10/2004 14:15:07
The 8+3 filenames are xerxes~1.mp3, xerxes~2.mp3 and so on.
You can display these filenames if you open a dos prompt and type
dir /x
Title: Re: mp3 string length
Post by: Fuzzpilz on Thu 14/10/2004 14:40:56
Unfortunately, the numbers in those will depend on the order in which players download the files, and will probably not always be the same. I'm afraid your best choices are using shorter names or bothering CJ about extending this apparent limit. (or just using a music.vox, for that matter, though I understand why you might want not to)
Title: Re: mp3 string length
Post by: jetxl on Thu 14/10/2004 14:46:05
Still doesn't seems to work.
AGS cant find xerxes~5.mp3.

The other files are also bigger then 8 char but CAN be played. Weird.
Title: Re: mp3 string length
Post by: strazer on Thu 14/10/2004 14:53:30
Right, I've created some copies and file 5 is named XE859B~1.MP3, file 6 XE8597~1.MP3. Weird.
The best solution seems to be to have PlayMP3File support long(er) filenames...
Title: Re: Suggestion: mp3 string length
Post by: Gilbert on Fri 15/10/2004 05:12:53
My suggestion is:
Please don't use filenames for external datafiles/sound/etc. for the game to load that don't comply with the 8.3 DOS format. Even if the functions support LFN, the game just can't be guaranteed to work in all systems.

So, if you really need players to download mp3 files from some otehr souces, provide information for how to rename the files after downloading in the game's documentations.
Title: Re: Suggestion: mp3 string length
Post by: Pumaman on Sat 16/10/2004 21:09:14
Hmm, there's no real reason for that 25 character limit, I'll scrap it.