Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Anarcho on Mon 13/06/2005 05:40:22

Title: Runtime error: unexpected eof
Post by: Anarcho on Mon 13/06/2005 05:40:22
I'm trying to save my game here and I'm getting an error in the Global script:

"Runtime error: unexpected eof"

It doesn't say where the error in the global script is.  The only mention of EOF in the help file is about EOF Property but I don't really understand it.  I was editing a dialog request just prior to this error coming up.  Hopefully someone can help me out without having to go through my whole script, but just in case:

http://www.geocities.com/princebusterlw/EE_Script6132005.txt
Title: Re: Runtime error: unexpected eof
Post by: InCreator on Mon 13/06/2005 05:48:17
else if (value == 38) { //  Percy Gives her shit
     character[EGO].AddInventory((iDress);
     character[EGO].AddInventory((iJumpsuit);


Look closely...

There may be more mistakes like this aswell. The code is way too long to spend a night on it :D

I usually get eof errors when using wrong brackets, like this--

DisplaySpeech(EGO,"well done"];

So keep an eye for such things too.
Title: Re: Runtime error: unexpected eof
Post by: Anarcho on Mon 13/06/2005 15:21:44
Ah, thanks so much.  That would ((do it), right?  I've got to stop coding things after midnight.
Title: Re: Runtime error: unexpected eof
Post by: InCreator on Mon 13/06/2005 16:02:34
The usage of double brackets(right word?) was just unneccessary.

character[who].AddInventory(thing)

is enough.