Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: WackyWildCard on Sat 09/02/2008 17:44:56

Title: Runtime Error - Unexpected eof - room 39 Line -10
Post by: WackyWildCard on Sat 09/02/2008 17:44:56
(http://img100.imageshack.us/img100/5369/runtimeerrorunexpectedeto0.th.jpg) (http://img100.imageshack.us/my.php?image=runtimeerrorunexpectedeto0.jpg)

As you can see, AGS will not let me save room 39. There is a character, a farmer with a plow, that I permanently change into a man with a lantern. Please tell me what I did wrong.  ???


(http://img218.imageshack.us/img218/8586/farmerandplowanimationche4.th.gif) (http://img218.imageshack.us/my.php?image=farmerandplowanimationche4.gif)


(http://img230.imageshack.us/img230/7264/farmerthefullcyclerightbn1.th.gif) (http://img230.imageshack.us/my.php?image=farmerthefullcyclerightbn1.gif)

Thank you!
Title: Re: Runtime Error - Unexpected eof - room 39 Line -10
Post by: Ishmael on Sat 09/02/2008 17:49:18
I'd guess it's about your dialog script, does that do anything special? Run dialog_request for exampe? Since line -10 isn't inside the script and nothing seems wrong there it must be somewhere else.
Title: Re: Runtime Error - Unexpected eof - room 39 Line -10
Post by: NiksterG on Sat 09/02/2008 18:29:36
It looks like the function room_load() doesn't have brackets, but parenthesis. I think that makes a difference.

Also, I've had this mysterious error before too. Check to make sure your dialog is all syntaxed correctly. (Make sure there is a semicolon after every command, check if you're missing a closing parenthesis on a command, that kind of stuff.) That was the problem for mine.
Title: Re: Runtime Error - Unexpected eof - room 39 Line -10
Post by: Khris on Sun 10/02/2008 01:50:12
Yep, it's got to be the () instead of {}.
I've encountered this error message a few times, and it has always been due to a missing " at the end of a string.
Title: Re: Runtime Error - Unexpected eof - room 39 Line -10
Post by: Matti on Sun 10/02/2008 13:00:44
Additionally it seems the cFarm.Walk-function has a bracket too much though I don't know if this has any consequences.
Title: Re: Runtime Error - Unexpected eof - room 39 Line -10 - SOLVED!
Post by: WackyWildCard on Sun 10/02/2008 15:49:31
 :D Thanks guys for all your help!

I did what you suggested... changed the bracket style...and VOILA! It saves and runs!

Problem Solved.  :)
Title: Re: Runtime Error - Unexpected eof - room 39 Line -10
Post by: Ishmael on Sun 10/02/2008 16:11:13
Quote from: NiksterG on Sat 09/02/2008 18:29:36
It looks like the function room_load() doesn't have brackets, but parenthesis. I think that makes a difference.

Yeah, that... A pixel or so difference so I missed it :P