Game Development Community

Out of Date or Inaccurate Documentation?

by Blame · in Torque Game Builder · 11/07/2006 (9:07 am) · 2 replies

Hello there,

I'm just starting my first project in Torque Game Builder, having worked through the tutorials, so I'm not completely familiar with where everything is yet. :)

I've got an error when running my script that says, "t2dSceneObject::mount() - Invalid number of parameters!"

The TGB Reference.pdf declares mount as "mount(%object, %offsetX, %offsetY, %force, %trackRotation, %sendToMount, %ownedByMount, %inheritAttributes)"

But the scroller demo's player.cs file uses mount like this "%helper.mount( %this.mountSystem, %mountPosition, 0, false );"

I've written my code to use the eight parameters specified in the reference material, but the game engine obviously expects differently. What I was wondering then is whether the documentation is out of date and/or there's another source of documentation than that which comes with the installation of TGB? Failing that, does anyone know what the correct parameters are for the mount command?

Cheers for any help/suggestions, etc. :)

Blame

PS: I fear this is just the first of many questions. :)

PPS: I have the feeling there is another forum, somewhere, for registered users of TGB, but I can't find it... can anyone show me the way?

#1
11/07/2006 (11:53 am)
The first thing is that many functions have default values for parameters, so you don't have to put in all the parameters for it to work. You'll probably have to repost this with actual script details in the private forums. To access them, go to the main forum listings, and hit Edit Subscriptions at the top of the page. From there, add the Private TGB forums.

It's also possible (if the mount is working) that the engine is complaining when it shouldn't. I've seen that before.
#2
11/08/2006 (2:31 am)
Hi Tom,

Thanks for the help. I've now found the private forums, so I'll take my questions over there.

Cheers for the help,
Blame