Docs or something?
by Skitchy · in Torque Game Engine · 08/18/2004 (6:45 pm) · 5 replies
I bought Torque, and the 3D Game Programming All In One book. I'm learning, but there's something about this whole thing I don't understand :
How do you look up the names/parameters/uses of functions / callbacks / standard engine vars etc.?
For example, here's a line from the book that you blindly type in :
$pref::Video::allowOpenGL=true;
Its pretty obvious what it does, but look at it from this perspective :
I'm scripting, when suddenly I feel the need to set a PREFerence that allows the VIDEO card to use OPENGL - how do I find out the exact procedure to do this? I can't just hit F1 and 'browse by category' as in other languages, so I'm stumped???
So far, I feel like I'm trying to reverse engineer everything :(
How do you look up the names/parameters/uses of functions / callbacks / standard engine vars etc.?
For example, here's a line from the book that you blindly type in :
$pref::Video::allowOpenGL=true;
Its pretty obvious what it does, but look at it from this perspective :
I'm scripting, when suddenly I feel the need to set a PREFerence that allows the VIDEO card to use OPENGL - how do I find out the exact procedure to do this? I can't just hit F1 and 'browse by category' as in other languages, so I'm stumped???
So far, I feel like I'm trying to reverse engineer everything :(
#2
Torque isn't an IDE. It isn't a game. It's an engine. There are docs for it, and some extensive tutorials about it.
Check here for a ton of information. Then search the web. You're not really reverse engineering... you're learning.
- Brett
08/19/2004 (4:52 am)
Some things are going to have to be reverse engineered as they aren't a basic part of the engine. Other things are added in the engine that aren't immediately described anywhere. However, Eustacia has the right idea with using a text editor, or a good file search tool, to find out about things you don't understand.Torque isn't an IDE. It isn't a game. It's an engine. There are docs for it, and some extensive tutorials about it.
Check here for a ton of information. Then search the web. You're not really reverse engineering... you're learning.
- Brett
#3
under search then find in files add cs gui mis and cc
lead it to your torque directory and search for key words like pref it will show you every file that has pref in it
08/19/2004 (5:03 am)
Get textpad at www.textpad.comunder search then find in files add cs gui mis and cc
lead it to your torque directory and search for key words like pref it will show you every file that has pref in it
#4
I know that Torque is an engine, but it is powered by a scripting language that doesn't seem to have any official documentation (correct me if I'm wrong on that). Hence it *is* like its own programming language - it even compiles the scripts to byte-code. I'm used to developing in an environment where I can look commands up quickly on the fly. Its nigh on impossible to memorize an entire command set, and I thought I might be missing something obvious being a noob to Torque.
Well, I decided to put together my own 'quick-docs'. I've separated all the core commands/functions from a doc I found on here into separate html files. I'll put together an index grouped by category (audio, video, server, etc.) and if you're lucky I might just post it ;)
08/19/2004 (5:57 am)
Sorry if that came off as harsh :)I know that Torque is an engine, but it is powered by a scripting language that doesn't seem to have any official documentation (correct me if I'm wrong on that). Hence it *is* like its own programming language - it even compiles the scripts to byte-code. I'm used to developing in an environment where I can look commands up quickly on the fly. Its nigh on impossible to memorize an entire command set, and I thought I might be missing something obvious being a noob to Torque.
Well, I decided to put together my own 'quick-docs'. I've separated all the core commands/functions from a doc I found on here into separate html files. I'll put together an index grouped by category (audio, video, server, etc.) and if you're lucky I might just post it ;)
#5
For your particular question, I'd check out Joel Baxter's $Pref reference. There's also a related resource on script globals. One great thing about Torque and the GG community is that people around here kickass at offering help. :) It sometimes takes a bit of digging, but you often find nuggets like this for questions you might have.
As far as the official docs, we do have lots of script documentation. You've seen the official stuff? I'm not totally satisfied with that documentation, it is getting a *huge* update in the next few days. So check that link again next week. Other than that, check out another of Joel Baxter's excellent resources for even more scripting info.
As far as your own quick-docs, keep me posted on your progress. Always helpful to hear of and maybe incorporate good doc work.
08/19/2004 (2:34 pm)
Hey Skitchy,For your particular question, I'd check out Joel Baxter's $Pref reference. There's also a related resource on script globals. One great thing about Torque and the GG community is that people around here kickass at offering help. :) It sometimes takes a bit of digging, but you often find nuggets like this for questions you might have.
As far as the official docs, we do have lots of script documentation. You've seen the official stuff? I'm not totally satisfied with that documentation, it is getting a *huge* update in the next few days. So check that link again next week. Other than that, check out another of Joel Baxter's excellent resources for even more scripting info.
As far as your own quick-docs, keep me posted on your progress. Always helpful to hear of and maybe incorporate good doc work.
Torque Owner Eustacia Green