Game Development Community

Control Torque from the external application

by Dane McGreevy · in Torque Game Engine · 03/03/2006 (12:35 am) · 3 replies

Hi All,

I am just wondering whether we could be using the external application to control Torque, say openning the Torque Demo application, selecting the mission file you would like to read in, controling the view in Torque once the mission has been loaded up, or even moving the player.

This motivation comes as I am hoping to control Torque by ArcGIS, a mapping application which has a nice support on VBA. While the user changes the 2D view (e.g. a 2D map) in ArcGIS, the scene in Torque would also alter accordingly. This scenario could be called a live linkage between an external application and Torque, I think.

What I am now concerned about is whether it's possible to implement? If positive, I guess that there would be some Torque APIs we can consider. Could anybody have an idea about it and further point me to the right direction? Best thanks in advance~

#1
03/03/2006 (1:41 am)
You might be able to use a program like girder to send key events to Torque. However, this is something usually done with commercial software that you can't modify, unlike Torque. A better way to do it would be to have Torque respond to windows messages and then have your program send the appropriate messages. Other possibilities include named pipes, sockets, tcp/ip, and I'm sure some others I haven't thought of.

Opening the demo app and reading in a particular mission file can be done with command line arguments.
#2
03/04/2006 (6:54 pm)
Great Philip!
I will be looking at using tcp/ip and sockets to hook them up. Thank you very much.
#3
03/05/2006 (12:27 pm)
It's all already built into Torque, because you can telnet into the engine and do and see whatever you will on the remote console.