Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: red runner on Sun 15/06/2008 00:40:45

Title: Unknown scripting error
Post by: red runner on Sun 15/06/2008 00:40:45
I was setting an interaction for a character. Now, when I go to test the game, I get this:

GlobalScript.asc(-10): Runtime error: unexpected eof

I can't seem to fix it. If it can't, then fortunately I backed it up before this happend.
Title: Re: Unknown scripting error
Post by: TwinMoon on Sun 15/06/2008 00:56:29
Most likely you put a { somewhere and forgot a }
I would suggest start checking at the bottom of the script, since AGS doesn't allow embedded functions, the problem must be in the last function.
Title: Re: Unknown scripting error
Post by: Ishmael on Sun 15/06/2008 02:16:42
I thought mismatched brackets give the error on the last line? Or has that been changed?
Title: Re: Unknown scripting error
Post by: Khris on Sun 15/06/2008 12:57:01
A missing bracket isn't in any line, hence -10.
Title: Re: Unknown scripting error
Post by: Ishmael on Sun 15/06/2008 19:11:26
Oh, ok, then I probably remember wrong.
Title: Re: Unknown scripting error
Post by: red runner on Mon 16/06/2008 02:25:19
I don't know. There wasn't one missing in the part I was working on. I don't want to try and mess with the rest.