Chapter 20 error with car.cs
by Mike Rowley · in Torque Game Engine · 03/04/2006 (10:41 am) · 7 replies
I have one error left in car.cs. I can't figure it out.
Here is my code:
and the error message:
This error doesn't make any since to me. everything looks correct.
Any help would be greatly appreciated.
Thanks
Here is my code:
// 3rd person camera settings cameraRoll = true; // Roll the camera with the vehicle cameraMaxDist = 6; // Far distance from vehicle cameraOffset = 1.5; // Vertical offset from camera mount point cameraLag = 0.1; // Velocity lag of camera cameraDecay = 0.75; // Decay per sec. rate of velocity lag
and the error message:
Quote:
Compiling control/server/vehicles/car.cs...
control/server/vehicles/car.cs Line: 242 - Syntax error.
>>> Advanced script error report. Line 483.
>>> Some error context, with ## on sides of error halt:
cameraRoll = true; //roll the cam with the vehicle
cameraMaxDist = 6 //far distance from vehicle
cameraOffset ##=## 1.5; //verticle offset from camera mount point
cameraLag = 0.1; //velocity lag of camera
>>> Error report complete.
This error doesn't make any since to me. everything looks correct.
Any help would be greatly appreciated.
Thanks
#2
I've looked and looked, and even compared my code to working code that came on the cd, and it looks identicle which leads me to believe the error is actually somewhere else.
Now, all I have to do is to figure out where that "somewhere else" may be. :/
I put in the copy from Koob that was working, and get no more eror messeges. I'm going to search both pages and see if I can find the error.
Thanks for the help. :)
03/04/2006 (11:49 am)
It never finished compiling. Once it got to this error, it stopped. I don't have a dso for car.cs.I've looked and looked, and even compared my code to working code that came on the cd, and it looks identicle which leads me to believe the error is actually somewhere else.
Now, all I have to do is to figure out where that "somewhere else" may be. :/
I put in the copy from Koob that was working, and get no more eror messeges. I'm going to search both pages and see if I can find the error.
Thanks for the help. :)
#3
There is a missing ; after the cameraMaxDist line.
03/04/2006 (1:15 pm)
In the error it states:Quote:
cameraRoll = true; //roll the cam with the vehicle
cameraMaxDist = 6 //far distance from vehicle
cameraOffset ##=## 1.5; //verticle offset from camera mount point
cameraLag = 0.1; //velocity lag of camera
There is a missing ; after the cameraMaxDist line.
#4
03/04/2006 (2:09 pm)
That's what I said. ;)
#6
Edit :
But there is also a semicolon missing in the error report just before this line, try deleting the semicolon and typing it again.
03/04/2006 (3:18 pm)
Try commenting the whole cameraOffset parameter. It will probalby default to some value.Edit :
But there is also a semicolon missing in the error report just before this line, try deleting the semicolon and typing it again.
Torque Owner Joe Melton
Fails At Making Games
However, if you look at the code and then at the error, it appears you have two different "versions" ... due to that comment. It is spelled correctly in your code, but misspelled in the error text, leading me to believe that the one in the error could be older than the one in the code you posted. Try deleting the .dso's and run it again.
Also, the one showing in the error doesn't have a semicolon after the 6 on the previous line.
I could be way off base...