Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: limeTree on Fri 26/12/2008 20:29:36

Title: SCRIPTING BUG
Post by: limeTree on Fri 26/12/2008 20:29:36
Hy,i am using AGS 3.01.
i dont't know if this was already changed.
there is a small bug in script debbug output window
when i put

cghoul.say("Hello);

you notice i didn't put " after hello.

the problem is that the debbuger never says its that problem but says something else like:
unrecognized eof or you might have forgotten to close the bracket.

i know this because when i write a long set of codes and enter the game,the debugger says
something else and i keep trying to find the mistake,but now o located the problem and i don't want someone to exerience the same,cheers
Title: Re: SCRIPTING BUG
Post by: Khris on Fri 26/12/2008 21:19:07
It's not exactly a bug, but maybe the compiler could indeed check for line breaks inside strings and suggest a missing ".
Title: Re: SCRIPTING BUG
Post by: limeTree on Sat 27/12/2008 13:02:43
yeah,couse its really anyoing,i have to go through all my script to find the mistake couse not that it just gives a wrong problem info but doesnt give you the line number too
Title: Re: SCRIPTING BUG
Post by: Trent R on Sun 28/12/2008 01:57:04
I believe it is working correctly, because that is the error that pops up (I think) when you don't put an semicolon on the end of a line (which is what AGS thinks you've done).

~Trent

Sorry, Khris is right. I didn't think I was anyway....

~Trent
Title: Re: SCRIPTING BUG
Post by: Khris on Sun 28/12/2008 14:07:25
No, in that case, AGS says Error (line X) Expected ';'

I've only encountered the eof thing in connection with a missing " yet.
Title: Re: SCRIPTING BUG
Post by: limeTree on Sun 28/12/2008 15:43:19
to me sometimes it says: you probably forgot to close the bracket!
then i put " on the right playe when i find its missing and all is fine

(note that it said-missing closing bracket-in the line befoe where there actually is a problem with missing "   )
Title: Re: SCRIPTING BUG
Post by: SSH on Sun 28/12/2008 15:47:42
Of course, since CRs are valid in strings and you never close the string, it does actually give the correct error.
Title: Re: SCRIPTING BUG
Post by: limeTree on Sun 28/12/2008 15:50:10
oh,so just the eof thing is misplaced then?
that one doesnt even say the line number
Title: Re: SCRIPTING BUG
Post by: SSH on Sun 28/12/2008 15:55:57
The EOF will always be at the End of File. It might be helpful for AGS to mention where the string STARTED, though.