Game Development Community

Comprehensive function list?

by Frigid · in Torque Game Engine · 12/31/2005 (6:57 pm) · 12 replies

Hey I just got Torque and got through the tutorial allright. I understand Torque script pretty well, it seems like a mix of C and Perl which I have experience in. My question is whether there is a list of function and object methods somewhere? I'm playing around and I want to try out different things but really have no idea what the function is called etc. ?

For example, I made a player gui that displayed a bitmap in the left corner of the screen(GuiBitmapCtrl i think) and i wanted in script to delete this at a certain time. Would it be DeleteGui("MyGui")? %mygui.destroy() ?

I basically just need a list of available functions.

About the author

Recent Threads


#1
12/31/2005 (7:51 pm)
If you're curious about a specific object, just call dump() on it for a complete list of what it does... ie, %myControl.dump().
#2
01/01/2006 (3:52 am)
You can check out details in all the C header files as well. I'm trying to download the latest version of Open Office on a dial-up link(!) at the moment. If I manage it, I hope to scrag all the header file info into one doc, export in PDF and wiki format (thanks Ben) and use it for myself as a reference. If I do it, I'll post it on the TDN and update this thread.

Dave.
#3
01/01/2006 (5:27 am)
Try writeOutFunctions() and writeOutClasses() in the console...
this should create scriptFunctions.txt and scriptClasses.txt in your TGE example folder.
#4
01/01/2006 (6:29 am)
Hmmm, no comments to suggest what anything does, and everything in the classes file is written out twice per line. Still, nice to know those commands are there!
#5
01/01/2006 (2:55 pm)
If you run in debug you'll get all the available comments for parameters & usage that's in the source.
#6
01/02/2006 (7:15 pm)
How about dumpConsoleFunctions and dumpConsoleClasses gets aliased to "/?" or "list" or something in the console?
*Note I am a complete Torque newbie away from my SDK so don't hate me if /? or list are already used in the console
#7
01/02/2006 (7:46 pm)
Actually, all console commands are the same as script, so the syntax would be a little different, but...

Would it be useful for you to get several thousand lines of documentation dumped at you?

(I mean this seriously. If it is, then adding a helper function to this would be a good idea. :)
#8
01/02/2006 (9:20 pm)
I found my solution, kind of. Using Codeweaver, formerly TorqueDev, I can view all the functions, variables, and object methods; a little drop down list appears when I type a period after an object, so I can browse the list.

This is working good for me so far. :)
#9
01/08/2006 (12:47 am)
@Frigid: Hate to bring back an old thread ;)

You can also hit F4 at any time to get a list of objects and functions. The new version also includes type-as-you-go autocomplete.

Check out the website at www.torquedev.com.

Also, take a look at this blog post of mine for a list of things you didn't know the software had support for ;)
#10
01/08/2006 (9:22 am)
Yeah I got the new version. Thanx a lot for the great tool, it sure helps a noob like me.
#11
01/12/2006 (5:40 pm)
I see your point Ben. Maybe if you could break down the list into categories or something:
So typing List()/Help() would firstly give categories:
All
AI
Graphics
Math
Network
Resource Management
Scene Management
etc..

Then to actually get a list of objects and functions you have to type
List("Graphics") or Help("All")

It seems most are getting along fine without something like this though.
#12
01/12/2006 (5:42 pm)
I would love something like that