Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: TheJBurger on Thu 10/06/2010 00:05:55

Title: "Create Voice Acting Script" Error
Post by: TheJBurger on Thu 10/06/2010 00:05:55
I keep getting an error when trying to use the "Create Voice Acting Script" from the drop down menu. I've run Auto-number speech lines first and that went through fine. However, when choosing the Create Voice Acting Script I get this error:


Unterminated string in script


I posted about this before here (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=40051.msg527651#msg527651), but I didn't find a solution, unfortunately. Is there a way to fix this problem?
Title: Re: "Create Voice Acting Script" Error
Post by: Pumaman on Sun 13/06/2010 22:43:40
Looks like the editor is getting confused by a string in one of your scripts somehow. If you'd like to upload the game files I can trace the problem and find out why.
Title: Re: "Create Voice Acting Script" Error
Post by: TheJBurger on Mon 14/06/2010 05:02:08
I've sent you a PM. Let me know if you got it, thanks!
Title: Re: "Create Voice Acting Script" Error
Post by: Pumaman on Fri 25/06/2010 14:30:47
Thanks for uploading, sorry for the delay responding.

It looks like the voice acting script parser isn't ignoring commented out lines, so the commented out line in your Dialog 44 Script:

player.Say("The

is confusing it.

Remove this line completely and try again, meanwhile I will fix this for a future version of AGS.
Title: Re: "Create Voice Acting Script" Error
Post by: TheJBurger on Sat 26/06/2010 08:20:57
Thanks! That fixed it.

I noticed that some--but not all--of the commented out lines (at least in the dialog editor) are still assigned voice numbers -- is that normal?
Title: Re: "Create Voice Acting Script" Error
Post by: Sslaxx on Sat 26/06/2010 09:32:23
Sounds like it's related to the initial issue you were having?
Title: Re: "Create Voice Acting Script" Error
Post by: Pumaman on Mon 12/07/2010 21:06:04
Yes, that's part of the same bug.
Title: Re: "Create Voice Acting Script" Error
Post by: Grim on Thu 17/05/2012 13:13:34
Consider me another victim of this bug... I'm searching through all the rooms looking for a commented line that contains unfisnihed player.Say command... but there are so many lines I really can't find it;( Is there a better way of tracking it down?
Title: Re: "Create Voice Acting Script" Error
Post by: Sslaxx on Thu 17/05/2012 14:30:00
Would SpeechCenter - http://www.adventuregamestudio.co.uk/yabb/index.php?topic=45622.0 - be of any use?
Title: Re: "Create Voice Acting Script" Error
Post by: Grim on Thu 17/05/2012 18:29:58
I'm thinking that it might be. I've read all about it before, but while it will not number the speech files for me, it probably will make numbering them by hand much easier.

I've managed to produce a txt file speechref. that's got all text from the game numbered in it. At least that's better than nothing. I can use that for recording voices and reference, and then number speech lines in the game manually... With Speech Center I might not have to look for text that's spread out everywhere- if it does what it says on the "cover" I will have an easy access to all speech + playback option...

I still wish there was some way to fix this...
Title: Re: "Create Voice Acting Script" Error
Post by: SpeechCenter on Sat 19/05/2012 13:55:13
Feel free to drop me a line to tell me how it goes.
I assume the txt file contains the commented line and I also assume it's sorted by script file. If that's the case, try sorting/filtering in the plugin per file and see if the txt file reports more lines than the plugin. It might just help find that rogue line.