Game Development Community

Make TGB and TGE(A) communicate with each other?

by Iml_sg · in Torque Game Builder · 07/16/2009 (12:55 am) · 2 replies

Just as the title suggests, is there anyway to make these two engines running on a same machine exchange information in real time?

The setup is like this, TGB is used on a large-scale multi-touch surface, as a console to control game elements in TGEA. Now I already modified TGB to support multi-touch input, and the problem comes out: how to send control signals to the TGEA that is runnning at the same time? and how to receive feedbacks from TGEA?

Thank you very much for replys!

#1
07/16/2009 (5:26 am)
Someone with more specific experience would have to comment but I'd suspect if you have good understanding of network programming you should be able to modify the engine code to cause the TGEA program to act like a server and the TGB program to act like a client...
#2
07/16/2009 (3:46 pm)

I think I'd take the short route and just have both of them send TorqueScript code to each other. Using Torque's TCPObject, you could probably write this entirely from within script. When basically using one as an input device to the other, though, I'm not sure what the response time will be.

Still, this could be a quick and easy way.