Is there a list of script global variable & its value options?
by Rosey · in Technical Issues · 04/19/2006 (7:42 am) · 6 replies
Is there any document of list of Torque script global variable and it's value options?
like I saw in default.cs :
$pref::Video::displayDevice = "OpenGL";
but how can I know besides"OpenGL", what else value can be set to $pref::Video::displayDevice?
Thanks in advance!
Rosey
like I saw in default.cs :
$pref::Video::displayDevice = "OpenGL";
but how can I know besides"OpenGL", what else value can be set to $pref::Video::displayDevice?
Thanks in advance!
Rosey
#2
Thanks Tom and wish you a good day!
Rosey
04/19/2006 (8:16 am)
Hi, Thanks Tom for your quick response!! but my point is for all the script global variables how can I know their optional values? like $Interior::insideDistanceFalloff , $OpenGL::primCount , you know there are tons of those globale variables. Is any document of a list them all?Thanks Tom and wish you a good day!
Rosey
#3
I don't know of any such list, so apart from playing with the OptionsDlg I'm not much use. :)
Tom.
04/19/2006 (8:26 am)
After a quick search, I found a rather old resource www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2444 which lists some variables, but not their optional values.I don't know of any such list, so apart from playing with the OptionsDlg I'm not much use. :)
Tom.
#4
thanks anyway for your help, let's hope somebody else can give us some good news:)
Rosey
04/19/2006 (8:32 am)
I found that too, but without optional values:( thanks anyway for your help, let's hope somebody else can give us some good news:)
Rosey
#5
i think the basic answer here is that that document is about as good as it gets.
garagegames acquired the source almost totally without documentation, and has been building up the docs ever since.
something you can do yourself if you're interested in a particular global variable is do a find-in-files in the entire source tree. Visual Studio has an excellent find-in-files tool and i'm sure there's others.
Be sure to leave off the dollar-sign, since the C++ side probably won't include it.
Also remember that some of those variables are inputs but some are outputs.
eg using find-in-files, you can fairly quickly see that $Interior::insideDistanceFalloff seems to be an input affecting the routine InteriorInstance::getPointInsideScale(), while $OpenGL::primCount seems to be an output from the poly-count metrics.
04/19/2006 (9:30 am)
Hey rosey,i think the basic answer here is that that document is about as good as it gets.
garagegames acquired the source almost totally without documentation, and has been building up the docs ever since.
something you can do yourself if you're interested in a particular global variable is do a find-in-files in the entire source tree. Visual Studio has an excellent find-in-files tool and i'm sure there's others.
Be sure to leave off the dollar-sign, since the C++ side probably won't include it.
Also remember that some of those variables are inputs but some are outputs.
eg using find-in-files, you can fairly quickly see that $Interior::insideDistanceFalloff seems to be an input affecting the routine InteriorInstance::getPointInsideScale(), while $OpenGL::primCount seems to be an output from the poly-count metrics.
#6
Rosey
04/19/2006 (6:40 pm)
Hi, Orion! yes I did "find in files", but in this way I had to read the code, I was thinking maybe there is a completed help file to enumerate each single script variables, but as I am new here, it might be not necessary. Thanks for your help, this is a great community, I love to work with it!Rosey
Torque Owner Tom Bushby
If you want to know what the values are, play around with the values in the OptionsDlg and see what the values are the preferences scripts once you change them.
Hope that helps,
Tom