Game Development Community

Alpha3b: What happened whit the script error messages?

by Adam Johnston · in Torque Game Builder · 01/23/2006 (2:16 pm) · 3 replies

In alpha3b script errors are not showing the useful ##error##
I guess there is a global variable, only problem I can't find it in the code
Suggestions?

#1
01/23/2006 (8:09 pm)
Hrm, you know I noticed that too but forgot to comment on it
#2
01/24/2006 (1:45 pm)
I was trying to follow the flow of execution, but somehow VC++ 2003 can't
stop in the breakpoint I put in CMDscan.cc (2076):
void CMDerror(char *, ...)
{
   gSyntaxError = true;
   if(fileName)
      Con::errorf(ConsoleLogEntry::Script, "%s Line: %d - Syntax error.",   // breakpoint
         fileName, lineIndex);
   else
      Con::errorf(ConsoleLogEntry::Script, "Syntax error in input.");
}
, "breakpoint disabled because there is no code in the block"
Somebody knows why?.

Nothing really important, but any insight would be appretiated.
#3
02/11/2006 (1:37 pm)
So what's the word on this? If there's a syntax error in my code the console prints it out but gives no more info than the line number - and the drop-down list at the top says no errors occured! Even worse is the fact that the error told me it was line 1318, when it was really me missing a closing bracket way back on line 1054.

I'm using Beta 1 btw