Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: seeee on Sun 03/01/2010 22:58:46

Title: 0
Post by: seeee on Sun 03/01/2010 22:58:46
0
Title: -
Post by: seeee on Sun 03/01/2010 23:10:08
-
Title: Re: GlobalScript.asc(-10): Runtime error: unexpected eof
Post by: Ryan Timothy B on Sun 03/01/2010 23:16:03
Little tip in case you don't know.
You can press Ctrl+B when you're near a brace and it'll highlight the brace it's closing/opening for.
Title: -
Post by: seeee on Sun 03/01/2010 23:20:10
-
Title: Re: GlobalScript.asc(-10): Runtime error: unexpected eof
Post by: Khris on Mon 04/01/2010 06:42:43
For future reference, this is usually caused by a missing " at the end of a string.
Title: Re: GlobalScript.asc(-10): Runtime error: unexpected eof
Post by: monkey0506 on Mon 04/01/2010 07:43:22
That's pretty much right. AGS is usually pretty good at telling you if you're missing a brace. Usually you would get (at least) an error that you can't have nested functions (unless the missing bracket was in the very last function in the script). It doesn't however detect improperly terminated string literals (i.e., quote-encapsulated text like "this" when they are missing a closing quote like "this) very nicely.
Title: -
Post by: seeee on Mon 04/01/2010 23:15:13
-