Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: PuNKKoMmANDO77 on Wed 12/06/2013 13:50:25

Title: Speech file error
Post by: PuNKKoMmANDO77 on Wed 12/06/2013 13:50:25
Hi, i'm working on the talkie version of my game The Path of the Pumpkin, the game have 11000 speech files but seems that the last 800 have a problem.
The version of AGS is 3.1.2
When i build the speech compressed file for try the game AGS give me this error:
Unable to initialize speech sample file - check for corruptions and that it belongs to this game

I try to open all the mp3 with Windows media player and VLC and no one seems corrupted, next i try to convert all the files in .ogg but AGS give me the error again.
So i try two software for repair corrupted mp3, the first mp3Val say to me that all the files aren't corrupted, the second Mp3Diag try to adjust the possible error but nothing change.
So, i'm not an expert of audio files, but i can't understand where can be the problem.
Title: Re: Speech file error
Post by: PuNKKoMmANDO77 on Wed 12/06/2013 14:47:51
Ok, maybe i found the problem, this version of ags can't have more than 9999 speech files, how i can increase that limit?
Title: Re: Speech file error
Post by: Khris on Wed 12/06/2013 19:31:29
By changing the engine. You have to get the source code, get MS Visual C++ 6, find the part that handles speech, and compile your own version.
Title: Re: Speech file error
Post by: Crimson Wizard on Wed 12/06/2013 20:01:27
If I understand correctly, 9999 is a max number per character.
Meanwhile, is it possible to deal with this issue by making a dummy character(s) who would speak extra lines for real one(s)?
Title: Re: Speech file error
Post by: PuNKKoMmANDO77 on Wed 12/06/2013 20:50:13
QuoteIf I understand correctly, 9999 is a max number per character.

Yes, the Ags library tells 9999 for character but after some test i see that if the total files on the speech folder are more than 9999 the speech file are corrupted, so i divided the game in two parts (two games) with the second protected by a password that the player obtain at the end of the first part.
Title: Re: Speech file error
Post by: Crimson Wizard on Thu 13/06/2013 21:32:12
That is because AGS does not let the data package have more than 10k files inside :(.

We will need to modify the package format to make this work. I will post update in the Development forum if there are any news on this matter.
Title: Re: Speech file error
Post by: PuNKKoMmANDO77 on Thu 13/06/2013 21:36:03
Oh, thanks for the info Wizard.