advanced script error unclear.
by rennie moffat · in Torque Game Builder · 05/12/2010 (10:19 am) · 9 replies
Hi, sorry for asking this, but I am getting an advanced script error/some error context on line 2.
I have a sequence of this chuck of code in my on update, so object 1 moves to node 2 if object 3 is at 4 and object 2 is at 3... essentially a winding/rotating door.
When I take this check out it runs fine.
::: Totally unsure as to why.
If anyone has any ideas, please pass them along.
thanks.
I have a sequence of this chuck of code in my on update, so object 1 moves to node 2 if object 3 is at 4 and object 2 is at 3... essentially a winding/rotating door.
When I take this check out it runs fine.
::: Totally unsure as to why.
If anyone has any ideas, please pass them along.
thanks.
if(t2dVectorCompare(%bB1Pos, %this.node2Pos))
{
if(t2dVectorCompare(%bB2Pos, %this.node3Pos))
{
if(t2dVectorCompare(%bB3Pos, %this.node4Pos))
{
%this.bB3.moveTo(%this.node1Pos, %this.velocity, true);
}
}
}About the author
My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.
#2
05/12/2010 (12:12 pm)
advanced script error/some error context
#3
05/12/2010 (2:04 pm)
Was it a syntax error?
#4
:::?
05/12/2010 (2:12 pm)
I am not sure. I could see no syntax error. If you look at the code I provided I can see none in it and the error was on line 2. "#{#":::?
#5
05/12/2010 (2:22 pm)
But did it say "Syntax error"?
#6
I think what William is asking, is what exactly is shown in the console to indicate an error (I.E the red text). Is it possible to copy and paste from the console the exact error(s)
05/12/2010 (2:25 pm)
Hi RennieI think what William is asking, is what exactly is shown in the console to indicate an error (I.E the red text). Is it possible to copy and paste from the console the exact error(s)
#7
Check the parameters of this line.
*hint*
moveTo(%targetX, %targetY, %speed...)
05/12/2010 (2:29 pm)
%this.bB3.moveTo(%this.node1Pos, %this.velocity, true);
Check the parameters of this line.
*hint*
moveTo(%targetX, %targetY, %speed...)
#8
~behavior.cs Line 176 (aka in the threads case 2) - parse error
>>>Advanced script error report. Line 176.
>>>Some error context, with ## on sides of error halt:
@Stefan. Agreed, but it ran three identical (nearly -meaning node to object numbers change, structure is identical tho) chunks of code before the error and when I remove this chunk completely, it runs fine.
:::??
05/12/2010 (2:39 pm)
quote from console...~behavior.cs Line 176 (aka in the threads case 2) - parse error
>>>Advanced script error report. Line 176.
>>>Some error context, with ## on sides of error halt:
@Stefan. Agreed, but it ran three identical (nearly -meaning node to object numbers change, structure is identical tho) chunks of code before the error and when I remove this chunk completely, it runs fine.
:::??
Associate William Lee Sims
Machine Code Games