Minimal application
by Markus Rudolph · in Torque 3D Professional · 10/09/2012 (5:50 am) · 2 replies
Hi,
I want to write a minimal application in C++ (a GUICanvas ready for deploying cubes, ground planes and GUI elements).
Therefore I first want to write it in TorqueScript. What are the basic steps?
Here is what I have now:
But the program crashes because no video card profile was found.
How must my code continue for a minimal application?
I want to write a minimal application in C++ (a GUICanvas ready for deploying cubes, ground planes and GUI elements).
Therefore I first want to write it in TorqueScript. What are the basic steps?
Here is what I have now:
$appName = "test"; new GuiControlProfile (GuiDefaultProfile); new GuiControlProfile (GuiTooltipProfile); new GuiCanvas(Canvas);
But the program crashes because no video card profile was found.
How must my code continue for a minimal application?
About the author
#2
10/09/2012 (12:43 pm)
This should help. The minimal examples are in Python, but they call the TS commands through the console. So you should be able to extrapolate the functions needed for your minimum apps. Feel free to create a resource with what you find and share. That way you can save someone else the time.
Torque Owner Jonajoint
Default Studio Name
"My Projects\<My Project Name>\game\main.cs"
You will see it defines a bunch of global variables and functions ,
the first of which is the createCanvas(%windowTitle) function.
further down you will come across a call to 'onStart()' search the the scripts for onStart... and so on..
As for the missing card profile, then look in the "My Projects\<My Project Name>\game\profile" folder of the full (or minimum) template and you will find the profiles you need :)