Game Development Community

Script error that seems correct

by James Anderson · in Technical Issues · 10/16/2008 (8:38 am) · 5 replies

Hi All,

I am having trouble with a script that I'm trying to run.
I have checked the syntax and I am sure its correct
but when it loads I'm getting this:


>>> Advanced script error report. Line 533.
>>> Some error context, with ## on sides of error halt:

Function HumanMaleAvatar:##:##doDismount(%this, %obj, %forced)

>>> Error report complete.

the line is:

Function HumanMaleAvatar::doDismount(%this, %obj, %forced)

any easy explainations for this (Im a bit of a noob)
FYI - I am taking this from Ken Finneys Book "3d game programming all in one"

Thanks
J.

Ps how do you all make those cool grey boxes with quoted code that I see in many posts?

#1
10/16/2008 (10:29 am)
The syntax is correct and it is strange that it errors out there. Were there any other error messages to go with that one. It may not be pertinent but what are you using to edit your scripts?

Whenever you Post a Reply you see this at the bottom of the editing/entry box:
Quote:Want to use bold, italics and add links to your text? Click here to learn how)
It's too bad that it doesn't show up when you create a thread.

edit: pre-coffee spelling and grammar
#2
10/16/2008 (11:28 am)
Actually the syntax isn't correct.

It should be:

function

not:

Function

Keywords in Torque are case sensitive.
#3
10/16/2008 (12:41 pm)
So true, I didn't even notice that.
#4
10/16/2008 (1:12 pm)
Its an easy one to overlook. I almost missed it myself until I checked some code to get an idea of why it would throw an error there.
#5
10/17/2008 (10:21 am)
YES!!!!!
thank you Scott