Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: picklegreen on Thu 08/09/2011 10:41:11

Title: Template Issues, Urgent!
Post by: picklegreen on Thu 08/09/2011 10:41:11
Ok so I've been working on a game for a couple of months...

I started it by clicking new game, 9 verb template.

It comes with 2 rooms and a short puzzle to solve, fine no problem you can still change stuff.
The only problem is everytime I change something in a room that was part of that small template game is messes up.
It's really really starting to annoy me, I changed a hot spot in room 1, (hotspot 2) and now I have a runtime error

"Runtime error: unexpected eof.      Room1.asc.          (Line) -10



Where the hell is like -10??

Room1 script (in fact all the scripts) start from line 1 there is no minus numbers :s


I tried to change it back by copying and pasting from another template but no luck.

Heeeellllppp meeeee!
Title: Re: Template Issues, Urgent!
Post by: Lt. Smash on Thu 08/09/2011 11:12:58
It often says line -10, if you have forgotten a closing bracket } somewhere in the script (often the last function)...
Title: Re: Template Issues, Urgent!
Post by: hedgefield on Thu 08/09/2011 13:15:27
Yeah unexpected EndOfFunction usually means there's a bracket or parenthesis missing somewhere. If you can't find it right away, try commenting out parts of the code and see if the error still occurs. That should help you narrow down the culprit function.
Title: Re: Template Issues, Urgent!
Post by: Khris on Thu 08/09/2011 16:18:44
Actually, that error is almost always caused by a missing quotemark. Check your code for something like:

  Display("Hello.);