SCRIPTING BUG

Started by limeTree, Fri 26/12/2008 20:29:36

Previous topic - Next topic

limeTree

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

Khris

It's not exactly a bug, but maybe the compiler could indeed check for line breaks inside strings and suggest a missing ".

limeTree

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

Trent R

#3
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
To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

Khris

No, in that case, AGS says Error (line X) Expected ';'

I've only encountered the eof thing in connection with a missing " yet.

limeTree

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 "   )

SSH

Of course, since CRs are valid in strings and you never close the string, it does actually give the correct error.
12

limeTree

oh,so just the eof thing is misplaced then?
that one doesnt even say the line number

SSH

The EOF will always be at the End of File. It might be helpful for AGS to mention where the string STARTED, though.
12

SMF spam blocked by CleanTalk