Template Issues, Urgent!

Started by picklegreen, Thu 08/09/2011 10:41:11

Previous topic - Next topic

picklegreen

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!

Lt. Smash

It often says line -10, if you have forgotten a closing bracket } somewhere in the script (often the last function)...

hedgefield

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.

Khris

Actually, that error is almost always caused by a missing quotemark. Check your code for something like:

Code: ags
  Display("Hello.);

SMF spam blocked by CleanTalk