Game Development Community

Using torquescript for non game creating purposes?

by MD · in General Discussion · 03/20/2013 (6:36 pm) · 8 replies

Hey, I'm going to be developing a system for my company to use. I have a lot of knowledge in Torquescript and was wondering if there was a way to create a program (.exe) that when launched, will just be a GUI and some code. I'm asking this because it'd be 10x faster to develop this in Torquescript than if I went over to Java, or Python (due to my lack of knowledge from the both of those languages).

I need answers ASAP, thanks guys.

#1
03/20/2013 (9:57 pm)
Sure, the T3D main executable does this - right up until you load a mission. So, if you just stick to GUIs that do whatever and never load a mission you should be fine.

But you pretty much have to use T3D or T2D - the older licenses have clauses about non-game use that you would have to read, understand and abide by.
#2
03/20/2013 (11:19 pm)
And installing this on my company's computer shouldn't be a problem right? It'd be a little program so I don't really need all the intros, screen fades, etc.
#3
03/21/2013 (7:52 am)
Define "problem". If your company is ok with it, then I don't see any other potential issue. T3D and T2D are both MIT licensed - you can literally do whatever you like with them (except try to sell the name as your own), even repackage it and sell distributions of it as far as I know (maybe ask someone at GG for absolute clarification on that last one). So, from a real legal standpoint (from what I can tell - not a lawyer) as long as your company is cool with using it then you're in the clear.
#4
03/21/2013 (10:43 am)
Honestly, even if you do not know Python it would be better in the long run to develop the app using a GUI editor system like PySide (Qt lib) and Python. If you develop a "solution" using Torque products you will be limited to a subset of tools normally available to a game engine and not a business app. I am also going to suggest that the complexity to develop a Torque app using TS and the available widgets is on par with Python development. I would even say once you get a few of days into Python development you will start to see that Python is much more problem solving oriented and the tools are richer.

To address your initial question:
There are no restrictions on using Torque MIT products for any purpose. The license is actually more permissive than using Python even.
#5
03/21/2013 (12:36 pm)
I say go for it. An enterprising person can do things with Torque GUI that many would never think of.

// Set the name of our application
$appName = "Do-nothing Window";
enableWinConsole(true); // for console feedback until GUI is done

new GuiControlProfile(GuiDefaultProfile);  
new GuiControlProfile(GuiToolTipProfile);  
new GuiCanvas(Canvas);  
Canvas.setWindowTitle("T3D - "@ $appName);  

//exec("modules/baseClient.cs");
new RenderPassManager(DiffuseRenderPassManager);  
setLightManager("Basic Lighting");  

activateDirectInput();  
GlobalActionMap.bindCmd("keyboard", "escape", "quit();", "");
Note that this will not give you any of the tools, GUI or World -- although it shouldn't take much to get the GUI Editor working in such an environment.

Also, you can of course prune a lot of the classes you're not using for your app out of the engine -- anything in the T3D directory for example.
#6
03/21/2013 (3:27 pm)
Hmm, so the T2D is now free to download under the MIT license? Great.

I've started with Java already but I think I may switch to Torquescript because I could literally finish this program in a day, while doing it in Java would take weeks.

Could one of you guys link me to the T2D MIT download? Thanks everyone for the answers.
#8
03/21/2013 (4:42 pm)
MD:

If you going to be using T3D and happen to know .NET, you can also look into DotNetTorque.

http://winterleafentertainment.com/Products/DotNetTorque.aspx